]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a 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 | ||
cc6dd355 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 |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 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 { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 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 *); | |
cc6dd355 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 | ||
cc6dd355 | 126 | |
d14a1e28 RD |
127 | /*********************************************************************** |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
d14a1e28 RD |
137 | #include "Python.h" |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 174 | |
d14a1e28 RD |
175 | /* Python-specific SWIG API */ |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
994141e6 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
cc6dd355 RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
994141e6 RD |
198 | /* ----------------------------------------------------------------------------- |
199 | * the needed conversions between C++ and python | |
200 | * ----------------------------------------------------------------------------- */ | |
201 | /* basic types */ | |
202 | /* | |
203 | utilities | |
204 | */ | |
205 | SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
206 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr); | |
207 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj); | |
208 | SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type, | |
209 | long min_value, long max_value); | |
210 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type, | |
211 | unsigned long max_value); | |
212 | SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
213 | SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info, | |
214 | char** cptr, size_t* size); | |
215 | SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info, | |
216 | char* carray, size_t size); | |
217 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size); | |
218 | SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv); | |
d14a1e28 RD |
219 | |
220 | ||
221 | /* Contract support */ | |
222 | ||
9d1d5697 | 223 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 224 | |
d14a1e28 RD |
225 | #ifdef __cplusplus |
226 | } | |
227 | #endif | |
228 | ||
229 | ||
230 | ||
231 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
232 | ||
233 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[0] | |
234 | #define SWIGTYPE_p_wxRealPoint swig_types[1] | |
235 | #define SWIGTYPE_p_wxSizerItem swig_types[2] | |
236 | #define SWIGTYPE_p_wxGBSizerItem swig_types[3] | |
237 | #define SWIGTYPE_p_wxScrollEvent swig_types[4] | |
238 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5] | |
239 | #define SWIGTYPE_p_wxSizer swig_types[6] | |
240 | #define SWIGTYPE_p_wxBoxSizer swig_types[7] | |
241 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[8] | |
242 | #define SWIGTYPE_p_wxGridBagSizer swig_types[9] | |
243 | #define SWIGTYPE_p_wxAcceleratorEntry swig_types[10] | |
244 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[11] | |
245 | #define SWIGTYPE_p_wxMenu swig_types[12] | |
246 | #define SWIGTYPE_p_wxEvent swig_types[13] | |
247 | #define SWIGTYPE_p_wxGridSizer swig_types[14] | |
248 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[15] | |
249 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[16] | |
250 | #define SWIGTYPE_p_wxItemContainer swig_types[17] | |
251 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[18] | |
252 | #define SWIGTYPE_p_wxPaintEvent swig_types[19] | |
253 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20] | |
254 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21] | |
255 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22] | |
256 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23] | |
257 | #define SWIGTYPE_p_wxControl swig_types[24] | |
258 | #define SWIGTYPE_p_wxFont swig_types[25] | |
259 | #define SWIGTYPE_p_wxMenuBarBase swig_types[26] | |
260 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[27] | |
261 | #define SWIGTYPE_p_wxFSFile swig_types[28] | |
262 | #define SWIGTYPE_p_wxCaret swig_types[29] | |
263 | #define SWIGTYPE_p_wxRegion swig_types[30] | |
264 | #define SWIGTYPE_p_wxPoint2D swig_types[31] | |
265 | #define SWIGTYPE_p_int swig_types[32] | |
266 | #define SWIGTYPE_p_wxSize swig_types[33] | |
267 | #define SWIGTYPE_p_wxDC swig_types[34] | |
268 | #define SWIGTYPE_p_wxPySizer swig_types[35] | |
269 | #define SWIGTYPE_p_wxNotifyEvent swig_types[36] | |
270 | #define SWIGTYPE_p_wxPyEvent swig_types[37] | |
271 | #define SWIGTYPE_p_wxPropagationDisabler swig_types[38] | |
272 | #define SWIGTYPE_p_wxAppTraits swig_types[39] | |
273 | #define SWIGTYPE_p_wxArrayString swig_types[40] | |
274 | #define SWIGTYPE_p_wxShowEvent swig_types[41] | |
275 | #define SWIGTYPE_p_wxToolTip swig_types[42] | |
4d5c3d91 RD |
276 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[43] |
277 | #define SWIGTYPE_p_wxIconizeEvent swig_types[44] | |
278 | #define SWIGTYPE_p_wxActivateEvent swig_types[45] | |
279 | #define SWIGTYPE_p_wxMoveEvent swig_types[46] | |
280 | #define SWIGTYPE_p_wxSizeEvent swig_types[47] | |
d14a1e28 RD |
281 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[48] |
282 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[49] | |
283 | #define SWIGTYPE_p_wxIdleEvent swig_types[50] | |
284 | #define SWIGTYPE_p_wxMenuItem swig_types[51] | |
285 | #define SWIGTYPE_p_wxStaticBox swig_types[52] | |
286 | #define SWIGTYPE_p_long swig_types[53] | |
287 | #define SWIGTYPE_p_wxTIFFHandler swig_types[54] | |
288 | #define SWIGTYPE_p_wxXPMHandler swig_types[55] | |
289 | #define SWIGTYPE_p_wxPNMHandler swig_types[56] | |
290 | #define SWIGTYPE_p_wxJPEGHandler swig_types[57] | |
291 | #define SWIGTYPE_p_wxPCXHandler swig_types[58] | |
292 | #define SWIGTYPE_p_wxGIFHandler swig_types[59] | |
293 | #define SWIGTYPE_p_wxPNGHandler swig_types[60] | |
294 | #define SWIGTYPE_p_wxANIHandler swig_types[61] | |
295 | #define SWIGTYPE_p_wxMemoryFSHandler swig_types[62] | |
4d5c3d91 RD |
296 | #define SWIGTYPE_p_wxEvtHandler swig_types[63] |
297 | #define SWIGTYPE_p_wxCURHandler swig_types[64] | |
298 | #define SWIGTYPE_p_wxICOHandler swig_types[65] | |
299 | #define SWIGTYPE_p_wxBMPHandler swig_types[66] | |
300 | #define SWIGTYPE_p_wxImageHandler swig_types[67] | |
301 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[68] | |
302 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[69] | |
303 | #define SWIGTYPE_p_wxInternetFSHandler swig_types[70] | |
304 | #define SWIGTYPE_p_wxZipFSHandler swig_types[71] | |
d14a1e28 RD |
305 | #define SWIGTYPE_p_wxRect swig_types[72] |
306 | #define SWIGTYPE_p_wxGBSpan swig_types[73] | |
307 | #define SWIGTYPE_p_wxPropagateOnce swig_types[74] | |
308 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[75] | |
994141e6 RD |
309 | #define SWIGTYPE_p_char swig_types[76] |
310 | #define SWIGTYPE_p_wxGBPosition swig_types[77] | |
311 | #define SWIGTYPE_p_wxImage swig_types[78] | |
312 | #define SWIGTYPE_p_wxFrame swig_types[79] | |
313 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[80] | |
314 | #define SWIGTYPE_p_wxImageHistogram swig_types[81] | |
315 | #define SWIGTYPE_p_byte swig_types[82] | |
316 | #define SWIGTYPE_p_wxPoint swig_types[83] | |
317 | #define SWIGTYPE_p_wxCursor swig_types[84] | |
318 | #define SWIGTYPE_p_wxObject swig_types[85] | |
319 | #define SWIGTYPE_p_wxPyInputStream swig_types[86] | |
320 | #define SWIGTYPE_p_wxOutputStream swig_types[87] | |
321 | #define SWIGTYPE_p_wxInputStream swig_types[88] | |
322 | #define SWIGTYPE_p_wxDateTime swig_types[89] | |
323 | #define SWIGTYPE_p_wxKeyEvent swig_types[90] | |
324 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[91] | |
325 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[92] | |
326 | #define SWIGTYPE_p_wxWindow swig_types[93] | |
327 | #define SWIGTYPE_p_wxMenuBar swig_types[94] | |
4d5c3d91 RD |
328 | #define SWIGTYPE_p_wxFileSystem swig_types[95] |
329 | #define SWIGTYPE_p_wxBitmap swig_types[96] | |
330 | #define SWIGTYPE_p_wxMenuEvent swig_types[97] | |
331 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[98] | |
332 | #define SWIGTYPE_p_unsigned_char swig_types[99] | |
333 | #define SWIGTYPE_p_wxCloseEvent swig_types[100] | |
334 | #define SWIGTYPE_p_wxEraseEvent swig_types[101] | |
335 | #define SWIGTYPE_p_wxMouseEvent swig_types[102] | |
336 | #define SWIGTYPE_p_wxPyApp swig_types[103] | |
337 | #define SWIGTYPE_p_wxCommandEvent swig_types[104] | |
338 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[105] | |
339 | #define SWIGTYPE_p_wxPyDropTarget swig_types[106] | |
340 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[107] | |
341 | #define SWIGTYPE_p_wxFocusEvent swig_types[108] | |
342 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[109] | |
343 | #define SWIGTYPE_p_wxControlWithItems swig_types[110] | |
344 | #define SWIGTYPE_p_wxColour swig_types[111] | |
345 | #define SWIGTYPE_p_wxValidator swig_types[112] | |
346 | #define SWIGTYPE_p_wxPyValidator swig_types[113] | |
347 | static swig_type_info *swig_types[115]; | |
d14a1e28 RD |
348 | |
349 | /* -------- TYPES TABLE (END) -------- */ | |
350 | ||
351 | ||
352 | /*----------------------------------------------- | |
353 | @(target):= _core.so | |
354 | ------------------------------------------------*/ | |
355 | #define SWIG_init init_core | |
356 | ||
357 | #define SWIG_name "_core" | |
358 | ||
994141e6 RD |
359 | #include <limits.h> |
360 | #include <float.h> | |
361 | #include <string.h> | |
362 | ||
363 | #ifndef SWIGSTATIC | |
364 | #ifdef __cplusplus | |
365 | #define SWIGSTATIC(a) static inline a | |
366 | #else | |
367 | #define SWIGSTATIC(a) static a | |
368 | #endif | |
369 | #endif | |
370 | ||
371 | #ifndef numeric_cast | |
372 | #ifdef __cplusplus | |
373 | #ifdef HAVE_NUMERIC_CAST | |
374 | #define numeric_cast(type,a) numeric_cast<type>(a) | |
375 | #else | |
376 | #define numeric_cast(type,a) static_cast<type>(a) | |
377 | #endif | |
378 | #else | |
379 | #define numeric_cast(type,a) (type)(a) | |
380 | #endif | |
381 | #endif | |
382 | ||
383 | ||
384 | ||
385 | #define SWIG_PyObj_FromSignedChar PyInt_FromLong | |
386 | #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong | |
387 | #define SWIG_PyObj_FromShort PyInt_FromLong | |
388 | #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong | |
389 | #define SWIG_PyObj_FromInt PyInt_FromLong | |
390 | #define SWIG_PyObj_FromLong PyInt_FromLong | |
391 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
392 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
393 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
394 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
395 | ||
396 | ||
d14a1e28 RD |
397 | #include "wx/wxPython/wxPython_int.h" |
398 | #include "wx/wxPython/pyclasses.h" | |
399 | ||
400 | ||
401 | #ifndef wxPyUSE_EXPORT | |
402 | // Helper functions for dealing with SWIG objects and such. These are | |
403 | // located here so they know about the SWIG types and functions declared | |
404 | // in the wrapper code. | |
405 | ||
406 | #include <wx/hashmap.h> | |
407 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
408 | ||
409 | ||
410 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
411 | // name of a class either looks up the type info in the cache, or scans the | |
412 | // SWIG tables for it. | |
413 | extern PyObject* wxPyPtrTypeMap; | |
414 | static | |
415 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
416 | ||
417 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
418 | ||
419 | if (typeInfoCache == NULL) | |
420 | typeInfoCache = new wxPyTypeInfoHashMap; | |
421 | ||
422 | wxString name(className); | |
423 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
424 | ||
425 | if (! swigType) { | |
426 | // it wasn't in the cache, so look it up from SWIG | |
427 | name.Append(wxT(" *")); | |
428 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
429 | ||
430 | // if it still wasn't found, try looking for a mapped name | |
431 | if (!swigType) { | |
432 | PyObject* item; | |
433 | name = className; | |
434 | ||
435 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
436 | (char*)(const char*)name.mbc_str())) != NULL) { | |
437 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
438 | name.Append(wxT(" *")); | |
439 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
440 | } | |
441 | } | |
442 | if (swigType) { | |
443 | // and add it to the map if found | |
444 | (*typeInfoCache)[className] = swigType; | |
445 | } | |
446 | } | |
447 | return swigType; | |
448 | } | |
449 | ||
450 | ||
451 | // Check if a class name is a type known to SWIG | |
452 | bool wxPyCheckSwigType(const wxChar* className) { | |
453 | ||
454 | swig_type_info* swigType = wxPyFindSwigType(className); | |
455 | return swigType != NULL; | |
456 | } | |
457 | ||
458 | ||
459 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
460 | // object for it. | |
461 | PyObject* wxPyConstructObject(void* ptr, | |
462 | const wxChar* className, | |
463 | int setThisOwn) { | |
464 | ||
465 | swig_type_info* swigType = wxPyFindSwigType(className); | |
466 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
467 | ||
468 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
469 | } | |
470 | ||
471 | ||
472 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
473 | // Ensures that the proxy object is of the specified (or derived) type. If | |
474 | // not able to perform the conversion then a Python exception is set and the | |
e811c8ce | 475 | // error should be handled properly in the caller. Returns True on success. |
d14a1e28 RD |
476 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, |
477 | const wxChar* className) { | |
478 | ||
479 | swig_type_info* swigType = wxPyFindSwigType(className); | |
e811c8ce | 480 | wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr")); |
d14a1e28 RD |
481 | |
482 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
483 | } | |
484 | ||
485 | ||
486 | // Make a SWIGified pointer object suitable for a .this attribute | |
487 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
488 | ||
489 | PyObject* robj = NULL; | |
490 | ||
491 | swig_type_info* swigType = wxPyFindSwigType(className); | |
492 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
493 | ||
494 | #ifdef SWIG_COBJECT_TYPES | |
495 | robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); | |
496 | #else | |
497 | { | |
498 | char result[1024]; | |
499 | char *r = result; | |
500 | *(r++) = '_'; | |
501 | r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); | |
502 | strcpy(r, swigType->name); | |
503 | robj = PyString_FromString(result); | |
504 | } | |
505 | #endif | |
506 | ||
507 | return robj; | |
508 | } | |
509 | ||
510 | ||
511 | ||
512 | ||
513 | // Export a C API in a struct. Other modules will be able to load this from | |
514 | // the wx.core module and will then have safe access to these functions, even if | |
515 | // they are located in another shared library. | |
516 | static wxPyCoreAPI API = { | |
517 | ||
518 | (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, | |
519 | (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, | |
520 | (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, | |
521 | (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, | |
522 | (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, | |
523 | (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, | |
524 | (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, | |
525 | (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, | |
526 | (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, | |
527 | (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, | |
528 | (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, | |
529 | (p_SWIG_Python_PackData_t)SWIG_Python_PackData, | |
530 | (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, | |
531 | (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, | |
532 | (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, | |
533 | (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, | |
534 | (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, | |
535 | ||
994141e6 RD |
536 | (p_SWIG_PyObj_AsCharPtr_t)SWIG_PyObj_AsCharPtr, |
537 | (p_SWIG_PyObj_FromCharPtr_t)SWIG_PyObj_FromCharPtr, | |
538 | (p_SWIG_PyObj_AsUnsignedLong_t)SWIG_PyObj_AsUnsignedLong, | |
539 | (p_SWIG_PyObj_AsLongInRange_t)SWIG_PyObj_AsLongInRange, | |
540 | (p_SWIG_PyObj_AsUnsignedLongInRange_t)SWIG_PyObj_AsUnsignedLongInRange, | |
541 | (p_SWIG_PyObj_AsNewCharPtr_t)SWIG_PyObj_AsNewCharPtr, | |
542 | (p_SWIG_PyObj_AsCharPtrAndSize_t)SWIG_PyObj_AsCharPtrAndSize, | |
543 | (p_SWIG_PyObj_AsCharArray_t)SWIG_PyObj_AsCharArray, | |
544 | (p_SWIG_PyObj_FromCharArray_t)SWIG_PyObj_FromCharArray, | |
545 | (p_SWIG_PyObj_AsFloatConv_t)SWIG_PyObj_AsFloatConv, | |
546 | ||
d14a1e28 RD |
547 | wxPyCheckSwigType, |
548 | wxPyConstructObject, | |
549 | wxPyConvertSwigPtr, | |
550 | wxPyMakeSwigPtr, | |
551 | ||
552 | wxPyBeginAllowThreads, | |
553 | wxPyEndAllowThreads, | |
554 | wxPyBeginBlockThreads, | |
555 | wxPyEndBlockThreads, | |
556 | ||
557 | wxPy_ConvertList, | |
558 | ||
559 | wxString_in_helper, | |
560 | Py2wxString, | |
561 | wx2PyString, | |
562 | ||
563 | byte_LIST_helper, | |
564 | int_LIST_helper, | |
565 | long_LIST_helper, | |
566 | string_LIST_helper, | |
567 | wxPoint_LIST_helper, | |
568 | wxBitmap_LIST_helper, | |
569 | wxString_LIST_helper, | |
570 | wxAcceleratorEntry_LIST_helper, | |
571 | ||
572 | wxSize_helper, | |
573 | wxPoint_helper, | |
574 | wxRealPoint_helper, | |
575 | wxRect_helper, | |
576 | wxColour_helper, | |
577 | wxPoint2D_helper, | |
578 | ||
579 | wxPySimple_typecheck, | |
580 | wxColour_typecheck, | |
581 | ||
582 | wxPyCBH_setCallbackInfo, | |
583 | wxPyCBH_findCallback, | |
584 | wxPyCBH_callCallback, | |
585 | wxPyCBH_callCallbackObj, | |
586 | wxPyCBH_delete, | |
587 | ||
588 | wxPyMake_wxObject, | |
589 | wxPyMake_wxSizer, | |
590 | wxPyPtrTypeMap_Add, | |
591 | wxPy2int_seq_helper, | |
592 | wxPy4int_seq_helper, | |
593 | wxArrayString2PyList_helper, | |
594 | wxArrayInt2PyList_helper, | |
595 | ||
596 | wxPyClientData_dtor, | |
597 | wxPyUserData_dtor, | |
598 | wxPyOORClientData_dtor, | |
599 | ||
600 | wxPyCBInputStream_create, | |
601 | ||
602 | wxPyInstance_Check, | |
603 | wxPySwigInstance_Check | |
604 | ||
605 | }; | |
606 | ||
607 | #endif | |
608 | ||
609 | ||
d14a1e28 RD |
610 | #if ! wxUSE_HOTKEY |
611 | enum wxHotkeyModifier | |
612 | { | |
613 | wxMOD_NONE = 0, | |
614 | wxMOD_ALT = 1, | |
615 | wxMOD_CONTROL = 2, | |
616 | wxMOD_SHIFT = 4, | |
617 | wxMOD_WIN = 8 | |
618 | }; | |
619 | #define wxEVT_HOTKEY 9999 | |
620 | #endif | |
621 | ||
196addbf | 622 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
623 | wxString wxObject_GetClassName(wxObject *self){ |
624 | return self->GetClassInfo()->GetClassName(); | |
625 | } | |
626 | void wxObject_Destroy(wxObject *self){ | |
627 | delete self; | |
628 | } | |
629 | ||
630 | #ifndef __WXMAC__ | |
631 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
632 | #endif | |
633 | ||
994141e6 RD |
634 | |
635 | SWIGSTATIC(int) | |
636 | SWIG_PyObj_AsInt(PyObject *obj) | |
637 | { | |
638 | return numeric_cast(int, | |
639 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
640 | } | |
641 | ||
e811c8ce | 642 | PyObject *wxSize_Get(wxSize *self){ |
d14a1e28 RD |
643 | wxPyBeginBlockThreads(); |
644 | PyObject* tup = PyTuple_New(2); | |
645 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
646 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
647 | wxPyEndBlockThreads(); | |
648 | return tup; | |
649 | } | |
994141e6 RD |
650 | |
651 | SWIGSTATIC(double) | |
652 | SWIG_PyObj_AsDouble(PyObject *obj) | |
653 | { | |
654 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
655 | #if HAVE_LONG_LONG | |
656 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
657 | #else | |
658 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
659 | #endif | |
660 | if (PyErr_Occurred()) { | |
661 | PyErr_Clear(); | |
662 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
663 | } | |
664 | } | |
665 | ||
d14a1e28 RD |
666 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ |
667 | self->x = x; | |
668 | self->y = y; | |
669 | } | |
e811c8ce | 670 | PyObject *wxRealPoint_Get(wxRealPoint *self){ |
d14a1e28 RD |
671 | wxPyBeginBlockThreads(); |
672 | PyObject* tup = PyTuple_New(2); | |
673 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
674 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
675 | wxPyEndBlockThreads(); | |
676 | return tup; | |
677 | } | |
994141e6 RD |
678 | |
679 | SWIGSTATIC(long) | |
680 | SWIG_PyObj_AsLong(PyObject * obj) | |
681 | { | |
682 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
683 | } | |
684 | ||
d14a1e28 RD |
685 | void wxPoint_Set(wxPoint *self,long x,long y){ |
686 | self->x = x; | |
687 | self->y = y; | |
688 | } | |
e811c8ce | 689 | PyObject *wxPoint_Get(wxPoint *self){ |
d14a1e28 RD |
690 | wxPyBeginBlockThreads(); |
691 | PyObject* tup = PyTuple_New(2); | |
692 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
693 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
694 | wxPyEndBlockThreads(); | |
695 | return tup; | |
696 | } | |
697 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
698 | self->x = x; | |
699 | self->y = y; | |
700 | self->width = width; | |
701 | self->height = height; | |
702 | } | |
e811c8ce | 703 | PyObject *wxRect_Get(wxRect *self){ |
d14a1e28 RD |
704 | wxPyBeginBlockThreads(); |
705 | PyObject* tup = PyTuple_New(4); | |
706 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
707 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
708 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
709 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
710 | wxPyEndBlockThreads(); | |
711 | return tup; | |
712 | } | |
713 | ||
714 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
715 | wxRegion reg1(*r1); | |
716 | wxRegion reg2(*r2); | |
717 | wxRect dest(0,0,0,0); | |
718 | PyObject* obj; | |
719 | ||
720 | reg1.Intersect(reg2); | |
721 | dest = reg1.GetBox(); | |
722 | ||
723 | if (dest != wxRect(0,0,0,0)) { | |
724 | wxPyBeginBlockThreads(); | |
725 | wxRect* newRect = new wxRect(dest); | |
e811c8ce | 726 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); |
d14a1e28 RD |
727 | wxPyEndBlockThreads(); |
728 | return obj; | |
729 | } | |
730 | Py_INCREF(Py_None); | |
731 | return Py_None; | |
732 | } | |
733 | ||
734 | ||
735 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
736 | PyObject* o2; | |
737 | PyObject* o3; | |
738 | ||
739 | if (!target) { | |
740 | target = o; | |
741 | } else if (target == Py_None) { | |
742 | Py_DECREF(Py_None); | |
743 | target = o; | |
744 | } else { | |
745 | if (!PyTuple_Check(target)) { | |
746 | o2 = target; | |
747 | target = PyTuple_New(1); | |
748 | PyTuple_SetItem(target, 0, o2); | |
749 | } | |
750 | o3 = PyTuple_New(1); | |
751 | PyTuple_SetItem(o3, 0, o); | |
752 | ||
753 | o2 = target; | |
754 | target = PySequence_Concat(o2, o3); | |
755 | Py_DECREF(o2); | |
756 | Py_DECREF(o3); | |
757 | } | |
758 | return target; | |
759 | } | |
760 | ||
761 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
762 | self->m_x = x; | |
763 | self->m_y = y; | |
764 | } | |
e811c8ce | 765 | PyObject *wxPoint2D_Get(wxPoint2D *self){ |
d14a1e28 RD |
766 | wxPyBeginBlockThreads(); |
767 | PyObject* tup = PyTuple_New(2); | |
768 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
769 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
770 | wxPyEndBlockThreads(); | |
771 | return tup; | |
772 | } | |
773 | ||
774 | #include "wx/wxPython/pyistream.h" | |
775 | ||
776 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
777 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
778 | if (wxis) | |
779 | return new wxPyInputStream(wxis); | |
780 | else | |
781 | return NULL; | |
782 | } | |
994141e6 RD |
783 | |
784 | SWIGSTATIC(PyObject*) | |
785 | SWIG_PyObj_FromChar(char c) | |
786 | { | |
787 | return PyString_FromStringAndSize(&c,1); | |
788 | } | |
789 | ||
790 | ||
791 | SWIGSTATIC(PyObject* ) | |
792 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
793 | { | |
794 | return (value > (unsigned long)(LONG_MAX)) ? | |
795 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
796 | } | |
797 | ||
798 | ||
799 | SWIGSTATIC(char) | |
800 | SWIG_PyObj_AsChar(PyObject *obj) | |
801 | { | |
802 | char c = 0; | |
803 | if (PyInt_Check(obj) || PyLong_Check(obj)) { | |
804 | c = numeric_cast(char, | |
805 | SWIG_PyObj_AsLongInRange(obj, "char",CHAR_MIN, CHAR_MAX)); | |
806 | } else { | |
807 | char* cptr; size_t csize; | |
808 | SWIG_PyObj_AsCharPtrAndSize(obj, 0, &cptr, &csize); | |
809 | if (csize == 1) { | |
810 | c = cptr[0]; | |
811 | } else { | |
812 | PyErr_SetString(PyExc_TypeError, "a char is expected"); | |
813 | } | |
814 | } | |
815 | return c; | |
816 | } | |
817 | ||
d14a1e28 RD |
818 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ |
819 | // We use only strings for the streams, not unicode | |
820 | PyObject* str = PyObject_Str(obj); | |
821 | if (! str) { | |
822 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
823 | return; | |
824 | } | |
825 | self->Write(PyString_AS_STRING(str), | |
826 | PyString_GET_SIZE(str)); | |
827 | Py_DECREF(str); | |
828 | } | |
829 | ||
830 | #include "wx/wxPython/pyistream.h" | |
831 | ||
832 | ||
833 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
834 | { | |
835 | public: | |
836 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
837 | ||
838 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
839 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
840 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
841 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
842 | ||
843 | wxString GetProtocol(const wxString& location) { | |
844 | return wxFileSystemHandler::GetProtocol(location); | |
845 | } | |
846 | ||
847 | wxString GetLeftLocation(const wxString& location) { | |
848 | return wxFileSystemHandler::GetLeftLocation(location); | |
849 | } | |
850 | ||
851 | wxString GetAnchor(const wxString& location) { | |
852 | return wxFileSystemHandler::GetAnchor(location); | |
853 | } | |
854 | ||
855 | wxString GetRightLocation(const wxString& location) { | |
856 | return wxFileSystemHandler::GetRightLocation(location); | |
857 | } | |
858 | ||
859 | wxString GetMimeTypeFromExt(const wxString& location) { | |
860 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
861 | } | |
862 | ||
863 | PYPRIVATE; | |
864 | }; | |
865 | ||
866 | ||
867 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
868 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
869 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
870 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
871 | ||
872 | ||
994141e6 RD |
873 | SWIGSTATIC(bool) |
874 | SWIG_PyObj_AsBool(PyObject *obj) | |
875 | { | |
876 | return PyObject_IsTrue(obj) ? true : false; | |
877 | } | |
878 | ||
879 | ||
d14a1e28 RD |
880 | wxString wxFileSystem_URLToFileName(const wxString& url) { |
881 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
882 | return fname.GetFullPath(); | |
883 | } | |
884 | ||
885 | ||
886 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
887 | wxImage& image, | |
888 | long type) { | |
889 | wxMemoryFSHandler::AddFile(filename, image, type); | |
890 | } | |
891 | ||
892 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
893 | const wxBitmap& bitmap, | |
894 | long type) { | |
895 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
896 | } | |
897 | ||
898 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
899 | PyObject* data) { | |
900 | wxMemoryFSHandler::AddFile(filename, | |
901 | // TODO: Verify data type | |
902 | (void*)PyString_AsString(data), | |
903 | (size_t)PyString_Size(data)); | |
904 | } | |
905 | ||
906 | ||
907 | #include "wx/wxPython/pyistream.h" | |
908 | ||
994141e6 RD |
909 | |
910 | SWIGSTATIC(unsigned char) | |
911 | SWIG_PyObj_AsUnsignedChar(PyObject *obj) | |
912 | { | |
913 | return numeric_cast(unsigned char, | |
914 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX)); | |
915 | } | |
916 | ||
d14a1e28 RD |
917 | wxImage *new_wxImage(int width,int height,bool clear){ |
918 | if (width > 0 && height > 0) | |
919 | return new wxImage(width, height, clear); | |
920 | else | |
921 | return new wxImage; | |
922 | } | |
923 | wxImage *new_wxImage(wxBitmap const &bitmap){ | |
924 | return new wxImage(bitmap.ConvertToImage()); | |
925 | } | |
926 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
927 | // Copy the source data so the wxImage can clean it up later | |
928 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
929 | if (copy == NULL) { | |
930 | PyErr_NoMemory(); | |
931 | return NULL; | |
932 | } | |
933 | memcpy(copy, data, width*height*3); | |
e811c8ce | 934 | return new wxImage(width, height, copy, False); |
d14a1e28 RD |
935 | } |
936 | PyObject *wxImage_GetData(wxImage *self){ | |
937 | unsigned char* data = self->GetData(); | |
938 | int len = self->GetWidth() * self->GetHeight() * 3; | |
939 | PyObject* rv; | |
940 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
941 | return rv; | |
942 | } | |
943 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
944 | unsigned char* dataPtr; | |
945 | ||
946 | if (! PyString_Check(data)) { | |
947 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
948 | return /* NULL */ ; | |
949 | } | |
950 | ||
951 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
952 | dataPtr = (unsigned char*) malloc(len); | |
953 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
954 | self->SetData(dataPtr); | |
955 | // wxImage takes ownership of dataPtr... | |
956 | } | |
957 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
958 | unsigned char* data = self->GetData(); | |
959 | int len = self->GetWidth() * self->GetHeight() * 3; | |
960 | PyObject* rv; | |
961 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
962 | return rv; | |
963 | } | |
964 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
965 | unsigned char* buffer; | |
966 | int size; | |
967 | ||
968 | wxPyBeginBlockThreads(); | |
969 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
970 | goto done; | |
971 | ||
972 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
973 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
974 | goto done; | |
975 | } | |
976 | self->SetData(buffer); | |
977 | done: | |
978 | wxPyEndBlockThreads(); | |
979 | } | |
980 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
981 | unsigned char* data = self->GetAlpha(); | |
982 | if (! data) { | |
983 | RETURN_NONE(); | |
984 | } else { | |
985 | int len = self->GetWidth() * self->GetHeight(); | |
986 | PyObject* rv; | |
987 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
988 | return rv; | |
989 | } | |
990 | } | |
991 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
992 | unsigned char* dataPtr; | |
993 | ||
994 | if (! PyString_Check(data)) { | |
995 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
996 | return /* NULL */ ; | |
997 | } | |
998 | ||
999 | size_t len = self->GetWidth() * self->GetHeight(); | |
1000 | dataPtr = (unsigned char*) malloc(len); | |
1001 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1002 | self->SetAlpha(dataPtr); | |
1003 | // wxImage takes ownership of dataPtr... | |
1004 | } | |
1005 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1006 | unsigned char* data = self->GetAlpha(); | |
1007 | int len = self->GetWidth() * self->GetHeight(); | |
1008 | PyObject* rv; | |
1009 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1010 | return rv; | |
1011 | } | |
1012 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1013 | unsigned char* buffer; | |
1014 | int size; | |
1015 | ||
1016 | wxPyBeginBlockThreads(); | |
1017 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1018 | goto done; | |
1019 | ||
1020 | if (size != self->GetWidth() * self->GetHeight()) { | |
1021 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1022 | goto done; | |
1023 | } | |
1024 | self->SetAlpha(buffer); | |
1025 | done: | |
1026 | wxPyEndBlockThreads(); | |
1027 | } | |
1028 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ | |
1029 | wxBitmap bitmap(*self); | |
1030 | return bitmap; | |
1031 | } | |
1032 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1033 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1034 | wxBitmap bitmap( mono, 1 ); | |
1035 | return bitmap; | |
1036 | } | |
1037 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1038 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1039 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1040 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1041 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
1042 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
1043 | if (PyCallable_Check(func)) { | |
1044 | self->Connect(id, lastId, eventType, | |
1045 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1046 | new wxPyCallback(func)); | |
1047 | } | |
1048 | else if (func == Py_None) { | |
1049 | self->Disconnect(id, lastId, eventType, | |
1050 | (wxObjectEventFunction) | |
1051 | &wxPyCallback::EventThunker); | |
1052 | } | |
1053 | else { | |
1054 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
1055 | } | |
1056 | } | |
1057 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1058 | return self->Disconnect(id, lastId, eventType, | |
1059 | (wxObjectEventFunction) | |
1060 | &wxPyCallback::EventThunker); | |
1061 | } | |
1062 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1063 | if (_self && _self != Py_None) { | |
1064 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1065 | } | |
1066 | else { | |
1067 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1068 | if (data) { | |
1069 | self->SetClientObject(NULL); // This will delete it too | |
1070 | } | |
1071 | } | |
1072 | } | |
1073 | int wxKeyEvent_GetUniChar(wxKeyEvent *self){ | |
3b7224dc RD |
1074 | #if wxUSE_UNICODE |
1075 | return self->m_uniChar; | |
1076 | #else | |
d14a1e28 | 1077 | return 0; |
3b7224dc | 1078 | #endif |
d14a1e28 | 1079 | } |
994141e6 RD |
1080 | |
1081 | #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong | |
1082 | ||
1083 | ||
1084 | SWIGSTATIC(unsigned int) | |
1085 | SWIG_PyObj_AsUnsignedInt(PyObject *obj) | |
1086 | { | |
1087 | return numeric_cast(unsigned int, | |
1088 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX)); | |
1089 | } | |
1090 | ||
d14a1e28 RD |
1091 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ |
1092 | self->m_size = size; | |
1093 | } | |
1094 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1095 | self->m_pos = pos; | |
1096 | } | |
1097 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1098 | int count = self->GetNumberOfFiles(); | |
1099 | wxString* files = self->GetFiles(); | |
1100 | PyObject* list = PyList_New(count); | |
1101 | ||
1102 | if (!list) { | |
1103 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1104 | return NULL; | |
1105 | } | |
1106 | ||
1107 | for (int i=0; i<count; i++) { | |
1fc9204a | 1108 | PyList_SetItem(list, i, wx2PyString(files[i])); |
d14a1e28 RD |
1109 | } |
1110 | return list; | |
1111 | } | |
1112 | ||
1113 | ||
1114 | wxPyApp *new_wxPyApp(){ | |
1115 | wxPythonApp = new wxPyApp(); | |
1116 | return wxPythonApp; | |
1117 | } | |
39f61e25 | 1118 | int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; } |
d14a1e28 RD |
1119 | |
1120 | void wxApp_CleanUp() { | |
1121 | __wxPyCleanup(); | |
1122 | } | |
1123 | ||
1124 | ||
1125 | wxPyApp* wxGetApp() { | |
1126 | return (wxPyApp*)wxTheApp; | |
1127 | } | |
1128 | ||
1129 | ||
1130 | ||
e811c8ce | 1131 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
d14a1e28 RD |
1132 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1133 | wxWindowList& list = self->GetChildren(); | |
1134 | return wxPy_ConvertList(&list); | |
1135 | } | |
1136 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1137 | ||
1138 | ||
1139 | ||
e811c8ce | 1140 | return False; |
d14a1e28 RD |
1141 | |
1142 | } | |
1143 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1144 | ||
1145 | ||
1146 | ||
e811c8ce | 1147 | return False; |
d14a1e28 RD |
1148 | |
1149 | } | |
1150 | long wxWindow_GetHandle(wxWindow *self){ | |
1151 | return wxPyGetWinHandle(self); | |
1152 | } | |
1153 | ||
1154 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1155 | return wxWindow::FindWindowById(id, parent); | |
1156 | } | |
1157 | ||
1158 | wxWindow* wxFindWindowByName( const wxString& name, | |
1159 | const wxWindow *parent = NULL ) { | |
1160 | return wxWindow::FindWindowByName(name, parent); | |
1161 | } | |
1162 | ||
1163 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1164 | const wxWindow *parent = NULL ) { | |
1165 | return wxWindow::FindWindowByLabel(label, parent); | |
1166 | } | |
1167 | ||
1168 | ||
1169 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
1170 | #ifdef __WXMSW__ | |
1171 | wxWindow* win = new wxWindow; | |
1172 | win->SetHWND(hWnd); | |
1173 | win->SubclassWin(hWnd); | |
1174 | return win; | |
1175 | #else | |
39f61e25 | 1176 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1177 | return NULL; |
1178 | #endif | |
1179 | } | |
1180 | ||
1181 | ||
1182 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1183 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1184 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1185 | ||
1186 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1187 | ||
1188 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1189 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1190 | wxMenuItemList& list = self->GetMenuItems(); | |
1191 | return wxPy_ConvertList(&list); | |
1192 | } | |
1193 | int MenuItem_GetDefaultMarginWidth(){ return 0; } | |
b2dc1044 | 1194 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1195 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1196 | if (clientData) { | |
1197 | wxPyClientData* data = new wxPyClientData(clientData); | |
1198 | return self->Append(item, data); | |
1199 | } else | |
1200 | return self->Append(item); | |
1201 | } | |
1202 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1203 | if (clientData) { | |
1204 | wxPyClientData* data = new wxPyClientData(clientData); | |
1205 | return self->Insert(item, pos, data); | |
1206 | } else | |
1207 | return self->Insert(item, pos); | |
1208 | } | |
1209 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1210 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1211 | if (data) { | |
1212 | Py_INCREF(data->m_obj); | |
1213 | return data->m_obj; | |
1214 | } else { | |
1215 | Py_INCREF(Py_None); | |
1216 | return Py_None; | |
1217 | } | |
1218 | } | |
1219 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1220 | wxPyClientData* data = new wxPyClientData(clientData); | |
1221 | self->SetClientObject(n, data); | |
1222 | } | |
1223 | ||
1224 | ||
994141e6 RD |
1225 | |
1226 | SWIGSTATIC(float) | |
1227 | SWIG_PyObj_AsFloat(PyObject *obj) | |
1228 | { | |
1229 | return SWIG_PyObj_AsFloatConv(obj, SWIG_PyObj_AsDouble); | |
1230 | } | |
1231 | ||
d14a1e28 RD |
1232 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ |
1233 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1234 | if (data) { | |
1235 | Py_INCREF(data->m_obj); | |
1236 | return data->m_obj; | |
1237 | } else { | |
1238 | Py_INCREF(Py_None); | |
1239 | return Py_None; | |
1240 | } | |
1241 | } | |
1242 | ||
1243 | // Figure out the type of the sizer item | |
1244 | ||
1245 | struct wxPySizerItemInfo { | |
1246 | wxPySizerItemInfo() | |
e811c8ce RD |
1247 | : window(NULL), sizer(NULL), gotSize(False), |
1248 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1249 | {} |
1250 | ||
1251 | wxWindow* window; | |
1252 | wxSizer* sizer; | |
1253 | bool gotSize; | |
1254 | wxSize size; | |
1255 | bool gotPos; | |
1256 | int pos; | |
1257 | }; | |
1258 | ||
1259 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1260 | ||
1261 | wxPySizerItemInfo info; | |
1262 | wxSize size; | |
1263 | wxSize* sizePtr = &size; | |
1264 | ||
1265 | // Find out what the type of the item is | |
1266 | // try wxWindow | |
1267 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1268 | PyErr_Clear(); | |
1269 | info.window = NULL; | |
1270 | ||
1271 | // try wxSizer | |
1272 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1273 | PyErr_Clear(); | |
1274 | info.sizer = NULL; | |
1275 | ||
1276 | // try wxSize or (w,h) | |
1277 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1278 | info.size = *sizePtr; | |
e811c8ce | 1279 | info.gotSize = True; |
d14a1e28 RD |
1280 | } |
1281 | ||
1282 | // or a single int | |
1283 | if (checkIdx && PyInt_Check(item)) { | |
1284 | info.pos = PyInt_AsLong(item); | |
e811c8ce | 1285 | info.gotPos = True; |
d14a1e28 RD |
1286 | } |
1287 | } | |
1288 | } | |
1289 | ||
1290 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1291 | // no expected type, figure out what kind of error message to generate | |
1292 | if ( !checkSize && !checkIdx ) | |
1293 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1294 | else if ( checkSize && !checkIdx ) | |
1295 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1296 | else if ( !checkSize && checkIdx) | |
1297 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1298 | else | |
1299 | // can this one happen? | |
1300 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1301 | } | |
1302 | ||
1303 | return info; | |
1304 | } | |
1305 | ||
1306 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1307 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1308 | } | |
1309 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1310 | ||
1311 | wxPyUserData* data = NULL; | |
1312 | wxPyBeginBlockThreads(); | |
e811c8ce | 1313 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1314 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1315 | data = new wxPyUserData(userData); | |
1316 | wxPyEndBlockThreads(); | |
1317 | ||
1318 | // Now call the real Add method if a valid item type was found | |
1319 | if ( info.window ) | |
1320 | self->Add(info.window, proportion, flag, border, data); | |
1321 | else if ( info.sizer ) | |
1322 | self->Add(info.sizer, proportion, flag, border, data); | |
1323 | else if (info.gotSize) | |
1324 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1325 | proportion, flag, border, data); | |
1326 | } | |
1327 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1328 | ||
1329 | wxPyUserData* data = NULL; | |
1330 | wxPyBeginBlockThreads(); | |
e811c8ce | 1331 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1332 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1333 | data = new wxPyUserData(userData); | |
1334 | wxPyEndBlockThreads(); | |
1335 | ||
1336 | // Now call the real Insert method if a valid item type was found | |
1337 | if ( info.window ) | |
1338 | self->Insert(before, info.window, proportion, flag, border, data); | |
1339 | else if ( info.sizer ) | |
1340 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1341 | else if (info.gotSize) | |
1342 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1343 | proportion, flag, border, data); | |
1344 | } | |
1345 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1346 | ||
1347 | wxPyUserData* data = NULL; | |
1348 | wxPyBeginBlockThreads(); | |
e811c8ce | 1349 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1350 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1351 | data = new wxPyUserData(userData); | |
1352 | wxPyEndBlockThreads(); | |
1353 | ||
1354 | // Now call the real Prepend method if a valid item type was found | |
1355 | if ( info.window ) | |
1356 | self->Prepend(info.window, proportion, flag, border, data); | |
1357 | else if ( info.sizer ) | |
1358 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1359 | else if (info.gotSize) | |
1360 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1361 | proportion, flag, border, data); | |
1362 | } | |
1363 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1364 | wxPyBeginBlockThreads(); | |
e811c8ce | 1365 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1366 | wxPyEndBlockThreads(); |
1367 | if ( info.window ) | |
1368 | return self->Remove(info.window); | |
1369 | else if ( info.sizer ) | |
1370 | return self->Remove(info.sizer); | |
1371 | else if ( info.gotPos ) | |
1372 | return self->Remove(info.pos); | |
1373 | else | |
e811c8ce | 1374 | return False; |
d14a1e28 | 1375 | } |
e811c8ce | 1376 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
d14a1e28 | 1377 | wxPyBeginBlockThreads(); |
e811c8ce | 1378 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1379 | wxPyEndBlockThreads(); |
1380 | if ( info.window ) | |
1381 | self->SetItemMinSize(info.window, size); | |
1382 | else if ( info.sizer ) | |
1383 | self->SetItemMinSize(info.sizer, size); | |
1384 | else if ( info.gotPos ) | |
1385 | self->SetItemMinSize(info.pos, size); | |
1386 | } | |
1387 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1388 | wxSizerItemList& list = self->GetChildren(); | |
1389 | return wxPy_ConvertList(&list); | |
1390 | } | |
1391 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
e811c8ce | 1392 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1393 | if ( info.window ) |
1394 | self->Show(info.window, show); | |
1395 | else if ( info.sizer ) | |
1396 | self->Show(info.sizer, show); | |
1397 | } | |
1398 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
e811c8ce | 1399 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1400 | if ( info.window ) |
1401 | self->Hide(info.window); | |
1402 | else if ( info.sizer ) | |
1403 | self->Hide(info.sizer); | |
1404 | } | |
1405 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
e811c8ce | 1406 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1407 | if ( info.window ) |
1408 | return self->IsShown(info.window); | |
1409 | else if ( info.sizer ) | |
1410 | return self->IsShown(info.sizer); | |
1411 | else | |
e811c8ce | 1412 | return False; |
d14a1e28 RD |
1413 | } |
1414 | ||
1415 | // See pyclasses.h | |
1416 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1417 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1418 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1419 | ||
1420 | ||
1421 | ||
1422 | ||
1423 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1424 | { | |
1425 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1426 | } | |
1427 | ||
1428 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1429 | { | |
1430 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1431 | } | |
1432 | ||
1433 | ||
22faec7d RD |
1434 | bool wxGBPosition___eq__(wxGBPosition *self,wxGBPosition const *other){ return other ? (*self == *other) : False; } |
1435 | bool wxGBPosition___ne__(wxGBPosition *self,wxGBPosition const *other){ return other ? (*self != *other) : True; } | |
e811c8ce RD |
1436 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1437 | self->SetRow(row); | |
1438 | self->SetCol(col); | |
1439 | } | |
1440 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
d14a1e28 RD |
1441 | wxPyBeginBlockThreads(); |
1442 | PyObject* tup = PyTuple_New(2); | |
1443 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1444 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1445 | wxPyEndBlockThreads(); | |
1446 | return tup; | |
1447 | } | |
22faec7d RD |
1448 | bool wxGBSpan___eq__(wxGBSpan *self,wxGBSpan const *other){ return other ? (*self == *other) : False; } |
1449 | bool wxGBSpan___ne__(wxGBSpan *self,wxGBSpan const *other){ return other ? (*self != *other) : True; } | |
e811c8ce RD |
1450 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1451 | self->SetRowspan(rowspan); | |
1452 | self->SetColspan(colspan); | |
1453 | } | |
1454 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
d14a1e28 RD |
1455 | wxPyBeginBlockThreads(); |
1456 | PyObject* tup = PyTuple_New(2); | |
1457 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1458 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
1459 | wxPyEndBlockThreads(); | |
1460 | return tup; | |
1461 | } | |
1462 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1463 | ||
1464 | wxPyUserData* data = NULL; | |
1465 | wxPyBeginBlockThreads(); | |
e811c8ce | 1466 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1467 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1468 | data = new wxPyUserData(userData); | |
1469 | wxPyEndBlockThreads(); | |
1470 | ||
1471 | // Now call the real Add method if a valid item type was found | |
1472 | if ( info.window ) | |
1473 | return self->Add(info.window, pos, span, flag, border, data); | |
1474 | else if ( info.sizer ) | |
1475 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1476 | else if (info.gotSize) | |
1477 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1478 | pos, span, flag, border, data); | |
e811c8ce | 1479 | return False; |
d14a1e28 RD |
1480 | } |
1481 | ||
1482 | ||
1483 | #ifdef __cplusplus | |
1484 | extern "C" { | |
1485 | #endif | |
196addbf RD |
1486 | static int _wrap_EmptyString_set(PyObject *_val) { |
1487 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); | |
1488 | return 1; | |
1489 | } | |
1490 | ||
1491 | ||
1492 | static PyObject *_wrap_EmptyString_get() { | |
1493 | PyObject *pyobj; | |
1494 | ||
1495 | { | |
1496 | #if wxUSE_UNICODE | |
1497 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1498 | #else | |
1499 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1500 | #endif | |
1501 | } | |
1502 | return pyobj; | |
1503 | } | |
1504 | ||
1505 | ||
d14a1e28 RD |
1506 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1507 | PyObject *resultobj; | |
1508 | wxObject *arg1 = (wxObject *) 0 ; | |
1509 | wxString result; | |
1510 | PyObject * obj0 = 0 ; | |
1511 | char *kwnames[] = { | |
1512 | (char *) "self", NULL | |
1513 | }; | |
1514 | ||
1515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
1516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1517 | { | |
1518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1519 | result = wxObject_GetClassName(arg1); | |
1520 | ||
1521 | wxPyEndAllowThreads(__tstate); | |
1522 | if (PyErr_Occurred()) SWIG_fail; | |
1523 | } | |
1524 | { | |
1525 | #if wxUSE_UNICODE | |
1526 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1527 | #else | |
1528 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1529 | #endif | |
1530 | } | |
1531 | return resultobj; | |
1532 | fail: | |
1533 | return NULL; | |
1534 | } | |
1535 | ||
1536 | ||
1537 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1538 | PyObject *resultobj; | |
1539 | wxObject *arg1 = (wxObject *) 0 ; | |
1540 | PyObject * obj0 = 0 ; | |
1541 | char *kwnames[] = { | |
1542 | (char *) "self", NULL | |
1543 | }; | |
1544 | ||
1545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
1546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1547 | { | |
1548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1549 | wxObject_Destroy(arg1); | |
1550 | ||
1551 | wxPyEndAllowThreads(__tstate); | |
1552 | if (PyErr_Occurred()) SWIG_fail; | |
1553 | } | |
1554 | Py_INCREF(Py_None); resultobj = Py_None; | |
1555 | return resultobj; | |
1556 | fail: | |
1557 | return NULL; | |
1558 | } | |
1559 | ||
1560 | ||
1561 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1562 | PyObject *obj; | |
1563 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1564 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1565 | Py_INCREF(obj); | |
1566 | return Py_BuildValue((char *)""); | |
1567 | } | |
1568 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1569 | PyObject *resultobj; | |
1570 | wxSize *arg1 = (wxSize *) 0 ; | |
1571 | int arg2 ; | |
1572 | PyObject * obj0 = 0 ; | |
994141e6 | 1573 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1574 | char *kwnames[] = { |
1575 | (char *) "self",(char *) "x", NULL | |
1576 | }; | |
1577 | ||
994141e6 | 1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1580 | { |
1581 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1582 | if (PyErr_Occurred()) SWIG_fail; | |
1583 | } | |
d14a1e28 RD |
1584 | if (arg1) (arg1)->x = arg2; |
1585 | ||
1586 | Py_INCREF(Py_None); resultobj = Py_None; | |
1587 | return resultobj; | |
1588 | fail: | |
1589 | return NULL; | |
1590 | } | |
1591 | ||
1592 | ||
1593 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1594 | PyObject *resultobj; | |
1595 | wxSize *arg1 = (wxSize *) 0 ; | |
1596 | int result; | |
1597 | PyObject * obj0 = 0 ; | |
1598 | char *kwnames[] = { | |
1599 | (char *) "self", NULL | |
1600 | }; | |
1601 | ||
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
1603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1604 | result = (int) ((arg1)->x); | |
1605 | ||
994141e6 | 1606 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1607 | return resultobj; |
1608 | fail: | |
1609 | return NULL; | |
1610 | } | |
1611 | ||
1612 | ||
1613 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1614 | PyObject *resultobj; | |
1615 | wxSize *arg1 = (wxSize *) 0 ; | |
1616 | int arg2 ; | |
1617 | PyObject * obj0 = 0 ; | |
994141e6 | 1618 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1619 | char *kwnames[] = { |
1620 | (char *) "self",(char *) "y", NULL | |
1621 | }; | |
1622 | ||
994141e6 | 1623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1625 | { |
1626 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1627 | if (PyErr_Occurred()) SWIG_fail; | |
1628 | } | |
d14a1e28 RD |
1629 | if (arg1) (arg1)->y = arg2; |
1630 | ||
1631 | Py_INCREF(Py_None); resultobj = Py_None; | |
1632 | return resultobj; | |
1633 | fail: | |
1634 | return NULL; | |
1635 | } | |
1636 | ||
1637 | ||
1638 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1639 | PyObject *resultobj; | |
1640 | wxSize *arg1 = (wxSize *) 0 ; | |
1641 | int result; | |
1642 | PyObject * obj0 = 0 ; | |
1643 | char *kwnames[] = { | |
1644 | (char *) "self", NULL | |
1645 | }; | |
1646 | ||
1647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
1648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1649 | result = (int) ((arg1)->y); | |
1650 | ||
994141e6 | 1651 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1652 | return resultobj; |
1653 | fail: | |
1654 | return NULL; | |
1655 | } | |
1656 | ||
1657 | ||
1658 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1659 | PyObject *resultobj; | |
1660 | int arg1 = (int) 0 ; | |
1661 | int arg2 = (int) 0 ; | |
1662 | wxSize *result; | |
994141e6 RD |
1663 | PyObject * obj0 = 0 ; |
1664 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
1665 | char *kwnames[] = { |
1666 | (char *) "w",(char *) "h", NULL | |
1667 | }; | |
1668 | ||
994141e6 RD |
1669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; |
1670 | if (obj0) { | |
1671 | { | |
1672 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
1673 | if (PyErr_Occurred()) SWIG_fail; | |
1674 | } | |
1675 | } | |
1676 | if (obj1) { | |
1677 | { | |
1678 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1679 | if (PyErr_Occurred()) SWIG_fail; | |
1680 | } | |
1681 | } | |
d14a1e28 RD |
1682 | { |
1683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1684 | result = (wxSize *)new wxSize(arg1,arg2); | |
1685 | ||
1686 | wxPyEndAllowThreads(__tstate); | |
1687 | if (PyErr_Occurred()) SWIG_fail; | |
1688 | } | |
1689 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 1); | |
1690 | return resultobj; | |
1691 | fail: | |
1692 | return NULL; | |
1693 | } | |
1694 | ||
1695 | ||
1696 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1697 | PyObject *resultobj; | |
1698 | wxSize *arg1 = (wxSize *) 0 ; | |
1699 | PyObject * obj0 = 0 ; | |
1700 | char *kwnames[] = { | |
1701 | (char *) "self", NULL | |
1702 | }; | |
1703 | ||
1704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
1705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1706 | { | |
1707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1708 | delete arg1; | |
1709 | ||
1710 | wxPyEndAllowThreads(__tstate); | |
1711 | if (PyErr_Occurred()) SWIG_fail; | |
1712 | } | |
1713 | Py_INCREF(Py_None); resultobj = Py_None; | |
1714 | return resultobj; | |
1715 | fail: | |
1716 | return NULL; | |
1717 | } | |
1718 | ||
1719 | ||
1720 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1721 | PyObject *resultobj; | |
1722 | wxSize *arg1 = (wxSize *) 0 ; | |
1723 | wxSize *arg2 = 0 ; | |
1724 | bool result; | |
1725 | wxSize temp2 ; | |
1726 | PyObject * obj0 = 0 ; | |
1727 | PyObject * obj1 = 0 ; | |
1728 | char *kwnames[] = { | |
1729 | (char *) "self",(char *) "sz", NULL | |
1730 | }; | |
1731 | ||
1732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1734 | { | |
1735 | arg2 = &temp2; | |
1736 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1737 | } | |
1738 | { | |
1739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 1740 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
1741 | |
1742 | wxPyEndAllowThreads(__tstate); | |
1743 | if (PyErr_Occurred()) SWIG_fail; | |
1744 | } | |
4d5c3d91 | 1745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1746 | return resultobj; |
1747 | fail: | |
1748 | return NULL; | |
1749 | } | |
1750 | ||
1751 | ||
1752 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1753 | PyObject *resultobj; | |
1754 | wxSize *arg1 = (wxSize *) 0 ; | |
1755 | wxSize *arg2 = 0 ; | |
1756 | bool result; | |
1757 | wxSize temp2 ; | |
1758 | PyObject * obj0 = 0 ; | |
1759 | PyObject * obj1 = 0 ; | |
1760 | char *kwnames[] = { | |
1761 | (char *) "self",(char *) "sz", NULL | |
1762 | }; | |
1763 | ||
1764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1766 | { | |
1767 | arg2 = &temp2; | |
1768 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1769 | } | |
1770 | { | |
1771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 1772 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
1773 | |
1774 | wxPyEndAllowThreads(__tstate); | |
1775 | if (PyErr_Occurred()) SWIG_fail; | |
1776 | } | |
4d5c3d91 | 1777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1778 | return resultobj; |
1779 | fail: | |
1780 | return NULL; | |
1781 | } | |
1782 | ||
1783 | ||
1784 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1785 | PyObject *resultobj; | |
1786 | wxSize *arg1 = (wxSize *) 0 ; | |
1787 | wxSize *arg2 = 0 ; | |
1788 | wxSize result; | |
1789 | wxSize temp2 ; | |
1790 | PyObject * obj0 = 0 ; | |
1791 | PyObject * obj1 = 0 ; | |
1792 | char *kwnames[] = { | |
1793 | (char *) "self",(char *) "sz", NULL | |
1794 | }; | |
1795 | ||
1796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
1797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1798 | { | |
1799 | arg2 = &temp2; | |
1800 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1801 | } | |
1802 | { | |
1803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1804 | result = (arg1)->operator +((wxSize const &)*arg2); | |
1805 | ||
1806 | wxPyEndAllowThreads(__tstate); | |
1807 | if (PyErr_Occurred()) SWIG_fail; | |
1808 | } | |
1809 | { | |
1810 | wxSize * resultptr; | |
1811 | resultptr = new wxSize((wxSize &) result); | |
1812 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1813 | } | |
1814 | return resultobj; | |
1815 | fail: | |
1816 | return NULL; | |
1817 | } | |
1818 | ||
1819 | ||
1820 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1821 | PyObject *resultobj; | |
1822 | wxSize *arg1 = (wxSize *) 0 ; | |
1823 | wxSize *arg2 = 0 ; | |
1824 | wxSize result; | |
1825 | wxSize temp2 ; | |
1826 | PyObject * obj0 = 0 ; | |
1827 | PyObject * obj1 = 0 ; | |
1828 | char *kwnames[] = { | |
1829 | (char *) "self",(char *) "sz", NULL | |
1830 | }; | |
1831 | ||
1832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
1833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1834 | { | |
1835 | arg2 = &temp2; | |
1836 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1837 | } | |
1838 | { | |
1839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1840 | result = (arg1)->operator -((wxSize const &)*arg2); | |
1841 | ||
1842 | wxPyEndAllowThreads(__tstate); | |
1843 | if (PyErr_Occurred()) SWIG_fail; | |
1844 | } | |
1845 | { | |
1846 | wxSize * resultptr; | |
1847 | resultptr = new wxSize((wxSize &) result); | |
1848 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1849 | } | |
1850 | return resultobj; | |
1851 | fail: | |
1852 | return NULL; | |
1853 | } | |
1854 | ||
1855 | ||
1856 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1857 | PyObject *resultobj; | |
1858 | wxSize *arg1 = (wxSize *) 0 ; | |
1859 | wxSize *arg2 = 0 ; | |
1860 | wxSize temp2 ; | |
1861 | PyObject * obj0 = 0 ; | |
1862 | PyObject * obj1 = 0 ; | |
1863 | char *kwnames[] = { | |
1864 | (char *) "self",(char *) "sz", NULL | |
1865 | }; | |
1866 | ||
1867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
1868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1869 | { | |
1870 | arg2 = &temp2; | |
1871 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1872 | } | |
1873 | { | |
1874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1875 | (arg1)->IncTo((wxSize const &)*arg2); | |
1876 | ||
1877 | wxPyEndAllowThreads(__tstate); | |
1878 | if (PyErr_Occurred()) SWIG_fail; | |
1879 | } | |
1880 | Py_INCREF(Py_None); resultobj = Py_None; | |
1881 | return resultobj; | |
1882 | fail: | |
1883 | return NULL; | |
1884 | } | |
1885 | ||
1886 | ||
1887 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1888 | PyObject *resultobj; | |
1889 | wxSize *arg1 = (wxSize *) 0 ; | |
1890 | wxSize *arg2 = 0 ; | |
1891 | wxSize temp2 ; | |
1892 | PyObject * obj0 = 0 ; | |
1893 | PyObject * obj1 = 0 ; | |
1894 | char *kwnames[] = { | |
1895 | (char *) "self",(char *) "sz", NULL | |
1896 | }; | |
1897 | ||
1898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
1899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1900 | { | |
1901 | arg2 = &temp2; | |
1902 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1903 | } | |
1904 | { | |
1905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1906 | (arg1)->DecTo((wxSize const &)*arg2); | |
1907 | ||
1908 | wxPyEndAllowThreads(__tstate); | |
1909 | if (PyErr_Occurred()) SWIG_fail; | |
1910 | } | |
1911 | Py_INCREF(Py_None); resultobj = Py_None; | |
1912 | return resultobj; | |
1913 | fail: | |
1914 | return NULL; | |
1915 | } | |
1916 | ||
1917 | ||
1918 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1919 | PyObject *resultobj; | |
1920 | wxSize *arg1 = (wxSize *) 0 ; | |
1921 | int arg2 ; | |
1922 | int arg3 ; | |
1923 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1924 | PyObject * obj1 = 0 ; |
1925 | PyObject * obj2 = 0 ; | |
d14a1e28 | 1926 | char *kwnames[] = { |
e811c8ce | 1927 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
1928 | }; |
1929 | ||
994141e6 | 1930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1932 | { |
1933 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1934 | if (PyErr_Occurred()) SWIG_fail; | |
1935 | } | |
1936 | { | |
1937 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1938 | if (PyErr_Occurred()) SWIG_fail; | |
1939 | } | |
d14a1e28 RD |
1940 | { |
1941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1942 | (arg1)->Set(arg2,arg3); | |
1943 | ||
1944 | wxPyEndAllowThreads(__tstate); | |
1945 | if (PyErr_Occurred()) SWIG_fail; | |
1946 | } | |
1947 | Py_INCREF(Py_None); resultobj = Py_None; | |
1948 | return resultobj; | |
1949 | fail: | |
1950 | return NULL; | |
1951 | } | |
1952 | ||
1953 | ||
1954 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1955 | PyObject *resultobj; | |
1956 | wxSize *arg1 = (wxSize *) 0 ; | |
1957 | int arg2 ; | |
1958 | PyObject * obj0 = 0 ; | |
994141e6 | 1959 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1960 | char *kwnames[] = { |
1961 | (char *) "self",(char *) "w", NULL | |
1962 | }; | |
1963 | ||
994141e6 | 1964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1966 | { |
1967 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1968 | if (PyErr_Occurred()) SWIG_fail; | |
1969 | } | |
d14a1e28 RD |
1970 | { |
1971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1972 | (arg1)->SetWidth(arg2); | |
1973 | ||
1974 | wxPyEndAllowThreads(__tstate); | |
1975 | if (PyErr_Occurred()) SWIG_fail; | |
1976 | } | |
1977 | Py_INCREF(Py_None); resultobj = Py_None; | |
1978 | return resultobj; | |
1979 | fail: | |
1980 | return NULL; | |
1981 | } | |
1982 | ||
1983 | ||
1984 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1985 | PyObject *resultobj; | |
1986 | wxSize *arg1 = (wxSize *) 0 ; | |
1987 | int arg2 ; | |
1988 | PyObject * obj0 = 0 ; | |
994141e6 | 1989 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1990 | char *kwnames[] = { |
1991 | (char *) "self",(char *) "h", NULL | |
1992 | }; | |
1993 | ||
994141e6 | 1994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1996 | { |
1997 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1998 | if (PyErr_Occurred()) SWIG_fail; | |
1999 | } | |
d14a1e28 RD |
2000 | { |
2001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2002 | (arg1)->SetHeight(arg2); | |
2003 | ||
2004 | wxPyEndAllowThreads(__tstate); | |
2005 | if (PyErr_Occurred()) SWIG_fail; | |
2006 | } | |
2007 | Py_INCREF(Py_None); resultobj = Py_None; | |
2008 | return resultobj; | |
2009 | fail: | |
2010 | return NULL; | |
2011 | } | |
2012 | ||
2013 | ||
2014 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2015 | PyObject *resultobj; | |
2016 | wxSize *arg1 = (wxSize *) 0 ; | |
2017 | int result; | |
2018 | PyObject * obj0 = 0 ; | |
2019 | char *kwnames[] = { | |
2020 | (char *) "self", NULL | |
2021 | }; | |
2022 | ||
2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2025 | { | |
2026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2027 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2028 | ||
2029 | wxPyEndAllowThreads(__tstate); | |
2030 | if (PyErr_Occurred()) SWIG_fail; | |
2031 | } | |
994141e6 | 2032 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2033 | return resultobj; |
2034 | fail: | |
2035 | return NULL; | |
2036 | } | |
2037 | ||
2038 | ||
2039 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2040 | PyObject *resultobj; | |
2041 | wxSize *arg1 = (wxSize *) 0 ; | |
2042 | int result; | |
2043 | PyObject * obj0 = 0 ; | |
2044 | char *kwnames[] = { | |
2045 | (char *) "self", NULL | |
2046 | }; | |
2047 | ||
2048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2050 | { | |
2051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2052 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2053 | ||
2054 | wxPyEndAllowThreads(__tstate); | |
2055 | if (PyErr_Occurred()) SWIG_fail; | |
2056 | } | |
994141e6 | 2057 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2058 | return resultobj; |
2059 | fail: | |
2060 | return NULL; | |
2061 | } | |
2062 | ||
2063 | ||
e811c8ce | 2064 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2065 | PyObject *resultobj; |
2066 | wxSize *arg1 = (wxSize *) 0 ; | |
2067 | PyObject *result; | |
2068 | PyObject * obj0 = 0 ; | |
2069 | char *kwnames[] = { | |
2070 | (char *) "self", NULL | |
2071 | }; | |
2072 | ||
e811c8ce | 2073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2075 | { | |
2076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2077 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
2078 | |
2079 | wxPyEndAllowThreads(__tstate); | |
2080 | if (PyErr_Occurred()) SWIG_fail; | |
2081 | } | |
2082 | resultobj = result; | |
2083 | return resultobj; | |
2084 | fail: | |
2085 | return NULL; | |
2086 | } | |
2087 | ||
2088 | ||
2089 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2090 | PyObject *obj; | |
2091 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2092 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2093 | Py_INCREF(obj); | |
2094 | return Py_BuildValue((char *)""); | |
2095 | } | |
2096 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2097 | PyObject *resultobj; | |
2098 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2099 | double arg2 ; | |
2100 | PyObject * obj0 = 0 ; | |
994141e6 | 2101 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2102 | char *kwnames[] = { |
2103 | (char *) "self",(char *) "x", NULL | |
2104 | }; | |
2105 | ||
994141e6 | 2106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2108 | { |
2109 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
2110 | if (PyErr_Occurred()) SWIG_fail; | |
2111 | } | |
d14a1e28 RD |
2112 | if (arg1) (arg1)->x = arg2; |
2113 | ||
2114 | Py_INCREF(Py_None); resultobj = Py_None; | |
2115 | return resultobj; | |
2116 | fail: | |
2117 | return NULL; | |
2118 | } | |
2119 | ||
2120 | ||
2121 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2122 | PyObject *resultobj; | |
2123 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2124 | double result; | |
2125 | PyObject * obj0 = 0 ; | |
2126 | char *kwnames[] = { | |
2127 | (char *) "self", NULL | |
2128 | }; | |
2129 | ||
2130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2132 | result = (double) ((arg1)->x); | |
2133 | ||
994141e6 | 2134 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
2135 | return resultobj; |
2136 | fail: | |
2137 | return NULL; | |
2138 | } | |
2139 | ||
2140 | ||
2141 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2142 | PyObject *resultobj; | |
2143 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2144 | double arg2 ; | |
2145 | PyObject * obj0 = 0 ; | |
994141e6 | 2146 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2147 | char *kwnames[] = { |
2148 | (char *) "self",(char *) "y", NULL | |
2149 | }; | |
2150 | ||
994141e6 | 2151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2153 | { |
2154 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
2155 | if (PyErr_Occurred()) SWIG_fail; | |
2156 | } | |
d14a1e28 RD |
2157 | if (arg1) (arg1)->y = arg2; |
2158 | ||
2159 | Py_INCREF(Py_None); resultobj = Py_None; | |
2160 | return resultobj; | |
2161 | fail: | |
2162 | return NULL; | |
2163 | } | |
2164 | ||
2165 | ||
2166 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2167 | PyObject *resultobj; | |
2168 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2169 | double result; | |
2170 | PyObject * obj0 = 0 ; | |
2171 | char *kwnames[] = { | |
2172 | (char *) "self", NULL | |
2173 | }; | |
2174 | ||
2175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2177 | result = (double) ((arg1)->y); | |
2178 | ||
994141e6 | 2179 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
2180 | return resultobj; |
2181 | fail: | |
2182 | return NULL; | |
2183 | } | |
2184 | ||
2185 | ||
2186 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2187 | PyObject *resultobj; | |
2188 | double arg1 = (double) 0.0 ; | |
2189 | double arg2 = (double) 0.0 ; | |
2190 | wxRealPoint *result; | |
994141e6 RD |
2191 | PyObject * obj0 = 0 ; |
2192 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2193 | char *kwnames[] = { |
2194 | (char *) "x",(char *) "y", NULL | |
2195 | }; | |
2196 | ||
994141e6 RD |
2197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; |
2198 | if (obj0) { | |
2199 | { | |
2200 | arg1 = (double) SWIG_PyObj_AsDouble(obj0); | |
2201 | if (PyErr_Occurred()) SWIG_fail; | |
2202 | } | |
2203 | } | |
2204 | if (obj1) { | |
2205 | { | |
2206 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
2207 | if (PyErr_Occurred()) SWIG_fail; | |
2208 | } | |
2209 | } | |
d14a1e28 RD |
2210 | { |
2211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2212 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2213 | ||
2214 | wxPyEndAllowThreads(__tstate); | |
2215 | if (PyErr_Occurred()) SWIG_fail; | |
2216 | } | |
2217 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRealPoint, 1); | |
2218 | return resultobj; | |
2219 | fail: | |
2220 | return NULL; | |
2221 | } | |
2222 | ||
2223 | ||
2224 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2225 | PyObject *resultobj; | |
2226 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2227 | PyObject * obj0 = 0 ; | |
2228 | char *kwnames[] = { | |
2229 | (char *) "self", NULL | |
2230 | }; | |
2231 | ||
2232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2234 | { | |
2235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2236 | delete arg1; | |
2237 | ||
2238 | wxPyEndAllowThreads(__tstate); | |
2239 | if (PyErr_Occurred()) SWIG_fail; | |
2240 | } | |
2241 | Py_INCREF(Py_None); resultobj = Py_None; | |
2242 | return resultobj; | |
2243 | fail: | |
2244 | return NULL; | |
2245 | } | |
2246 | ||
2247 | ||
e811c8ce | 2248 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2249 | PyObject *resultobj; |
2250 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2251 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2252 | bool result; |
d14a1e28 RD |
2253 | wxRealPoint temp2 ; |
2254 | PyObject * obj0 = 0 ; | |
2255 | PyObject * obj1 = 0 ; | |
2256 | char *kwnames[] = { | |
2257 | (char *) "self",(char *) "pt", NULL | |
2258 | }; | |
2259 | ||
e811c8ce | 2260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2262 | { | |
2263 | arg2 = &temp2; | |
2264 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2265 | } | |
2266 | { | |
2267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2268 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2269 | |
2270 | wxPyEndAllowThreads(__tstate); | |
2271 | if (PyErr_Occurred()) SWIG_fail; | |
2272 | } | |
4d5c3d91 | 2273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2274 | return resultobj; |
2275 | fail: | |
2276 | return NULL; | |
2277 | } | |
2278 | ||
2279 | ||
e811c8ce | 2280 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2281 | PyObject *resultobj; |
2282 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2283 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2284 | bool result; |
d14a1e28 RD |
2285 | wxRealPoint temp2 ; |
2286 | PyObject * obj0 = 0 ; | |
2287 | PyObject * obj1 = 0 ; | |
2288 | char *kwnames[] = { | |
2289 | (char *) "self",(char *) "pt", NULL | |
2290 | }; | |
2291 | ||
e811c8ce | 2292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2294 | { | |
2295 | arg2 = &temp2; | |
2296 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2297 | } | |
2298 | { | |
2299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2300 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2301 | |
2302 | wxPyEndAllowThreads(__tstate); | |
2303 | if (PyErr_Occurred()) SWIG_fail; | |
2304 | } | |
4d5c3d91 | 2305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2306 | return resultobj; |
2307 | fail: | |
2308 | return NULL; | |
2309 | } | |
2310 | ||
2311 | ||
e811c8ce | 2312 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2313 | PyObject *resultobj; |
2314 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2315 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2316 | wxRealPoint result; |
d14a1e28 RD |
2317 | wxRealPoint temp2 ; |
2318 | PyObject * obj0 = 0 ; | |
2319 | PyObject * obj1 = 0 ; | |
2320 | char *kwnames[] = { | |
2321 | (char *) "self",(char *) "pt", NULL | |
2322 | }; | |
2323 | ||
e811c8ce | 2324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2326 | { | |
2327 | arg2 = &temp2; | |
2328 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2329 | } | |
2330 | { | |
2331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2332 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2333 | |
2334 | wxPyEndAllowThreads(__tstate); | |
2335 | if (PyErr_Occurred()) SWIG_fail; | |
2336 | } | |
e811c8ce RD |
2337 | { |
2338 | wxRealPoint * resultptr; | |
2339 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2340 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2341 | } | |
d14a1e28 RD |
2342 | return resultobj; |
2343 | fail: | |
2344 | return NULL; | |
2345 | } | |
2346 | ||
2347 | ||
e811c8ce | 2348 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2349 | PyObject *resultobj; |
2350 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2351 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2352 | wxRealPoint result; |
d14a1e28 RD |
2353 | wxRealPoint temp2 ; |
2354 | PyObject * obj0 = 0 ; | |
2355 | PyObject * obj1 = 0 ; | |
2356 | char *kwnames[] = { | |
2357 | (char *) "self",(char *) "pt", NULL | |
2358 | }; | |
2359 | ||
e811c8ce | 2360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2362 | { | |
2363 | arg2 = &temp2; | |
2364 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2365 | } | |
2366 | { | |
2367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2368 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2369 | |
2370 | wxPyEndAllowThreads(__tstate); | |
2371 | if (PyErr_Occurred()) SWIG_fail; | |
2372 | } | |
e811c8ce RD |
2373 | { |
2374 | wxRealPoint * resultptr; | |
2375 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2376 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2377 | } | |
d14a1e28 RD |
2378 | return resultobj; |
2379 | fail: | |
2380 | return NULL; | |
2381 | } | |
2382 | ||
2383 | ||
2384 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2385 | PyObject *resultobj; | |
2386 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2387 | double arg2 ; | |
2388 | double arg3 ; | |
2389 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2390 | PyObject * obj1 = 0 ; |
2391 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2392 | char *kwnames[] = { |
2393 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2394 | }; | |
2395 | ||
994141e6 | 2396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2398 | { |
2399 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
2400 | if (PyErr_Occurred()) SWIG_fail; | |
2401 | } | |
2402 | { | |
2403 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
2404 | if (PyErr_Occurred()) SWIG_fail; | |
2405 | } | |
d14a1e28 RD |
2406 | { |
2407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2408 | wxRealPoint_Set(arg1,arg2,arg3); | |
2409 | ||
2410 | wxPyEndAllowThreads(__tstate); | |
2411 | if (PyErr_Occurred()) SWIG_fail; | |
2412 | } | |
2413 | Py_INCREF(Py_None); resultobj = Py_None; | |
2414 | return resultobj; | |
2415 | fail: | |
2416 | return NULL; | |
2417 | } | |
2418 | ||
2419 | ||
e811c8ce | 2420 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2421 | PyObject *resultobj; |
2422 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2423 | PyObject *result; | |
2424 | PyObject * obj0 = 0 ; | |
2425 | char *kwnames[] = { | |
2426 | (char *) "self", NULL | |
2427 | }; | |
2428 | ||
e811c8ce | 2429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2431 | { | |
2432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2433 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2434 | |
2435 | wxPyEndAllowThreads(__tstate); | |
2436 | if (PyErr_Occurred()) SWIG_fail; | |
2437 | } | |
2438 | resultobj = result; | |
2439 | return resultobj; | |
2440 | fail: | |
2441 | return NULL; | |
2442 | } | |
2443 | ||
2444 | ||
2445 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2446 | PyObject *obj; | |
2447 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2448 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2449 | Py_INCREF(obj); | |
2450 | return Py_BuildValue((char *)""); | |
2451 | } | |
2452 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2453 | PyObject *resultobj; | |
2454 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2455 | int arg2 ; | |
2456 | PyObject * obj0 = 0 ; | |
994141e6 | 2457 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2458 | char *kwnames[] = { |
2459 | (char *) "self",(char *) "x", NULL | |
2460 | }; | |
2461 | ||
994141e6 | 2462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2464 | { |
2465 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2466 | if (PyErr_Occurred()) SWIG_fail; | |
2467 | } | |
d14a1e28 RD |
2468 | if (arg1) (arg1)->x = arg2; |
2469 | ||
2470 | Py_INCREF(Py_None); resultobj = Py_None; | |
2471 | return resultobj; | |
2472 | fail: | |
2473 | return NULL; | |
2474 | } | |
2475 | ||
2476 | ||
2477 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2478 | PyObject *resultobj; | |
2479 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2480 | int result; | |
2481 | PyObject * obj0 = 0 ; | |
2482 | char *kwnames[] = { | |
2483 | (char *) "self", NULL | |
2484 | }; | |
2485 | ||
2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2488 | result = (int) ((arg1)->x); | |
2489 | ||
994141e6 | 2490 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2491 | return resultobj; |
2492 | fail: | |
2493 | return NULL; | |
2494 | } | |
2495 | ||
2496 | ||
2497 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2498 | PyObject *resultobj; | |
2499 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2500 | int arg2 ; | |
2501 | PyObject * obj0 = 0 ; | |
994141e6 | 2502 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2503 | char *kwnames[] = { |
2504 | (char *) "self",(char *) "y", NULL | |
2505 | }; | |
2506 | ||
994141e6 | 2507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2509 | { |
2510 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2511 | if (PyErr_Occurred()) SWIG_fail; | |
2512 | } | |
d14a1e28 RD |
2513 | if (arg1) (arg1)->y = arg2; |
2514 | ||
2515 | Py_INCREF(Py_None); resultobj = Py_None; | |
2516 | return resultobj; | |
2517 | fail: | |
2518 | return NULL; | |
2519 | } | |
2520 | ||
2521 | ||
2522 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2523 | PyObject *resultobj; | |
2524 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2525 | int result; | |
2526 | PyObject * obj0 = 0 ; | |
2527 | char *kwnames[] = { | |
2528 | (char *) "self", NULL | |
2529 | }; | |
2530 | ||
2531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2533 | result = (int) ((arg1)->y); | |
2534 | ||
994141e6 | 2535 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2536 | return resultobj; |
2537 | fail: | |
2538 | return NULL; | |
2539 | } | |
2540 | ||
2541 | ||
2542 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2543 | PyObject *resultobj; | |
2544 | int arg1 = (int) 0 ; | |
2545 | int arg2 = (int) 0 ; | |
2546 | wxPoint *result; | |
994141e6 RD |
2547 | PyObject * obj0 = 0 ; |
2548 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2549 | char *kwnames[] = { |
2550 | (char *) "x",(char *) "y", NULL | |
2551 | }; | |
2552 | ||
994141e6 RD |
2553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; |
2554 | if (obj0) { | |
2555 | { | |
2556 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2557 | if (PyErr_Occurred()) SWIG_fail; | |
2558 | } | |
2559 | } | |
2560 | if (obj1) { | |
2561 | { | |
2562 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2563 | if (PyErr_Occurred()) SWIG_fail; | |
2564 | } | |
2565 | } | |
d14a1e28 RD |
2566 | { |
2567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2568 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2569 | ||
2570 | wxPyEndAllowThreads(__tstate); | |
2571 | if (PyErr_Occurred()) SWIG_fail; | |
2572 | } | |
2573 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 1); | |
2574 | return resultobj; | |
2575 | fail: | |
2576 | return NULL; | |
2577 | } | |
2578 | ||
2579 | ||
2580 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2581 | PyObject *resultobj; | |
2582 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2583 | PyObject * obj0 = 0 ; | |
2584 | char *kwnames[] = { | |
2585 | (char *) "self", NULL | |
2586 | }; | |
2587 | ||
2588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2590 | { | |
2591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2592 | delete arg1; | |
2593 | ||
2594 | wxPyEndAllowThreads(__tstate); | |
2595 | if (PyErr_Occurred()) SWIG_fail; | |
2596 | } | |
2597 | Py_INCREF(Py_None); resultobj = Py_None; | |
2598 | return resultobj; | |
2599 | fail: | |
2600 | return NULL; | |
2601 | } | |
2602 | ||
2603 | ||
2604 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2605 | PyObject *resultobj; | |
2606 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2607 | wxPoint *arg2 = 0 ; | |
2608 | bool result; | |
2609 | wxPoint temp2 ; | |
2610 | PyObject * obj0 = 0 ; | |
2611 | PyObject * obj1 = 0 ; | |
2612 | char *kwnames[] = { | |
e811c8ce | 2613 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2614 | }; |
2615 | ||
2616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2618 | { | |
2619 | arg2 = &temp2; | |
2620 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2621 | } | |
2622 | { | |
2623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2624 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
2625 | |
2626 | wxPyEndAllowThreads(__tstate); | |
2627 | if (PyErr_Occurred()) SWIG_fail; | |
2628 | } | |
4d5c3d91 | 2629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2630 | return resultobj; |
2631 | fail: | |
2632 | return NULL; | |
2633 | } | |
2634 | ||
2635 | ||
2636 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2637 | PyObject *resultobj; | |
2638 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2639 | wxPoint *arg2 = 0 ; | |
2640 | bool result; | |
2641 | wxPoint temp2 ; | |
2642 | PyObject * obj0 = 0 ; | |
2643 | PyObject * obj1 = 0 ; | |
2644 | char *kwnames[] = { | |
e811c8ce | 2645 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2646 | }; |
2647 | ||
2648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2650 | { | |
2651 | arg2 = &temp2; | |
2652 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2653 | } | |
2654 | { | |
2655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2656 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
2657 | |
2658 | wxPyEndAllowThreads(__tstate); | |
2659 | if (PyErr_Occurred()) SWIG_fail; | |
2660 | } | |
4d5c3d91 | 2661 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2662 | return resultobj; |
2663 | fail: | |
2664 | return NULL; | |
2665 | } | |
2666 | ||
2667 | ||
2668 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2669 | PyObject *resultobj; | |
2670 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2671 | wxPoint *arg2 = 0 ; | |
2672 | wxPoint result; | |
2673 | wxPoint temp2 ; | |
2674 | PyObject * obj0 = 0 ; | |
2675 | PyObject * obj1 = 0 ; | |
2676 | char *kwnames[] = { | |
e811c8ce | 2677 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2678 | }; |
2679 | ||
2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
2681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2682 | { | |
2683 | arg2 = &temp2; | |
2684 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2685 | } | |
2686 | { | |
2687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2688 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
2689 | |
2690 | wxPyEndAllowThreads(__tstate); | |
2691 | if (PyErr_Occurred()) SWIG_fail; | |
2692 | } | |
2693 | { | |
2694 | wxPoint * resultptr; | |
2695 | resultptr = new wxPoint((wxPoint &) result); | |
2696 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2697 | } | |
2698 | return resultobj; | |
2699 | fail: | |
2700 | return NULL; | |
2701 | } | |
2702 | ||
2703 | ||
2704 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2705 | PyObject *resultobj; | |
2706 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2707 | wxPoint *arg2 = 0 ; | |
2708 | wxPoint result; | |
2709 | wxPoint temp2 ; | |
2710 | PyObject * obj0 = 0 ; | |
2711 | PyObject * obj1 = 0 ; | |
2712 | char *kwnames[] = { | |
e811c8ce | 2713 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2714 | }; |
2715 | ||
2716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2718 | { | |
2719 | arg2 = &temp2; | |
2720 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2721 | } | |
2722 | { | |
2723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2724 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
2725 | |
2726 | wxPyEndAllowThreads(__tstate); | |
2727 | if (PyErr_Occurred()) SWIG_fail; | |
2728 | } | |
2729 | { | |
2730 | wxPoint * resultptr; | |
2731 | resultptr = new wxPoint((wxPoint &) result); | |
2732 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2733 | } | |
2734 | return resultobj; | |
2735 | fail: | |
2736 | return NULL; | |
2737 | } | |
2738 | ||
2739 | ||
2740 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2741 | PyObject *resultobj; | |
2742 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2743 | wxPoint *arg2 = 0 ; | |
2744 | wxPoint *result; | |
2745 | wxPoint temp2 ; | |
2746 | PyObject * obj0 = 0 ; | |
2747 | PyObject * obj1 = 0 ; | |
2748 | char *kwnames[] = { | |
e811c8ce | 2749 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2750 | }; |
2751 | ||
2752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2754 | { | |
2755 | arg2 = &temp2; | |
2756 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2757 | } | |
2758 | { | |
2759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2760 | { | |
2761 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
2762 | result = (wxPoint *) &_result_ref; | |
2763 | } | |
2764 | ||
2765 | wxPyEndAllowThreads(__tstate); | |
2766 | if (PyErr_Occurred()) SWIG_fail; | |
2767 | } | |
2768 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2769 | return resultobj; | |
2770 | fail: | |
2771 | return NULL; | |
2772 | } | |
2773 | ||
2774 | ||
2775 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2776 | PyObject *resultobj; | |
2777 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2778 | wxPoint *arg2 = 0 ; | |
2779 | wxPoint *result; | |
2780 | wxPoint temp2 ; | |
2781 | PyObject * obj0 = 0 ; | |
2782 | PyObject * obj1 = 0 ; | |
2783 | char *kwnames[] = { | |
e811c8ce | 2784 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2785 | }; |
2786 | ||
2787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2789 | { | |
2790 | arg2 = &temp2; | |
2791 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2792 | } | |
2793 | { | |
2794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2795 | { | |
2796 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
2797 | result = (wxPoint *) &_result_ref; | |
2798 | } | |
2799 | ||
2800 | wxPyEndAllowThreads(__tstate); | |
2801 | if (PyErr_Occurred()) SWIG_fail; | |
2802 | } | |
2803 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2804 | return resultobj; | |
2805 | fail: | |
2806 | return NULL; | |
2807 | } | |
2808 | ||
2809 | ||
2810 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2811 | PyObject *resultobj; | |
2812 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2813 | long arg2 ; | |
2814 | long arg3 ; | |
2815 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2816 | PyObject * obj1 = 0 ; |
2817 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2818 | char *kwnames[] = { |
2819 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2820 | }; | |
2821 | ||
994141e6 | 2822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2824 | { |
2825 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
2826 | if (PyErr_Occurred()) SWIG_fail; | |
2827 | } | |
2828 | { | |
2829 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
2830 | if (PyErr_Occurred()) SWIG_fail; | |
2831 | } | |
d14a1e28 RD |
2832 | { |
2833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2834 | wxPoint_Set(arg1,arg2,arg3); | |
2835 | ||
2836 | wxPyEndAllowThreads(__tstate); | |
2837 | if (PyErr_Occurred()) SWIG_fail; | |
2838 | } | |
2839 | Py_INCREF(Py_None); resultobj = Py_None; | |
2840 | return resultobj; | |
2841 | fail: | |
2842 | return NULL; | |
2843 | } | |
2844 | ||
2845 | ||
e811c8ce | 2846 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2847 | PyObject *resultobj; |
2848 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2849 | PyObject *result; | |
2850 | PyObject * obj0 = 0 ; | |
2851 | char *kwnames[] = { | |
2852 | (char *) "self", NULL | |
2853 | }; | |
2854 | ||
e811c8ce | 2855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2857 | { | |
2858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2859 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
2860 | |
2861 | wxPyEndAllowThreads(__tstate); | |
2862 | if (PyErr_Occurred()) SWIG_fail; | |
2863 | } | |
2864 | resultobj = result; | |
2865 | return resultobj; | |
2866 | fail: | |
2867 | return NULL; | |
2868 | } | |
2869 | ||
2870 | ||
2871 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
2872 | PyObject *obj; | |
2873 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2874 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
2875 | Py_INCREF(obj); | |
2876 | return Py_BuildValue((char *)""); | |
2877 | } | |
2878 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2879 | PyObject *resultobj; | |
2880 | int arg1 = (int) 0 ; | |
2881 | int arg2 = (int) 0 ; | |
2882 | int arg3 = (int) 0 ; | |
2883 | int arg4 = (int) 0 ; | |
2884 | wxRect *result; | |
994141e6 RD |
2885 | PyObject * obj0 = 0 ; |
2886 | PyObject * obj1 = 0 ; | |
2887 | PyObject * obj2 = 0 ; | |
2888 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2889 | char *kwnames[] = { |
2890 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
2891 | }; | |
2892 | ||
994141e6 RD |
2893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2894 | if (obj0) { | |
2895 | { | |
2896 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2897 | if (PyErr_Occurred()) SWIG_fail; | |
2898 | } | |
2899 | } | |
2900 | if (obj1) { | |
2901 | { | |
2902 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2903 | if (PyErr_Occurred()) SWIG_fail; | |
2904 | } | |
2905 | } | |
2906 | if (obj2) { | |
2907 | { | |
2908 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2909 | if (PyErr_Occurred()) SWIG_fail; | |
2910 | } | |
2911 | } | |
2912 | if (obj3) { | |
2913 | { | |
2914 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
2915 | if (PyErr_Occurred()) SWIG_fail; | |
2916 | } | |
2917 | } | |
d14a1e28 RD |
2918 | { |
2919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2920 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
2921 | ||
2922 | wxPyEndAllowThreads(__tstate); | |
2923 | if (PyErr_Occurred()) SWIG_fail; | |
2924 | } | |
2925 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2926 | return resultobj; | |
2927 | fail: | |
2928 | return NULL; | |
2929 | } | |
2930 | ||
2931 | ||
2932 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2933 | PyObject *resultobj; | |
2934 | wxPoint *arg1 = 0 ; | |
2935 | wxPoint *arg2 = 0 ; | |
2936 | wxRect *result; | |
2937 | wxPoint temp1 ; | |
2938 | wxPoint temp2 ; | |
2939 | PyObject * obj0 = 0 ; | |
2940 | PyObject * obj1 = 0 ; | |
2941 | char *kwnames[] = { | |
2942 | (char *) "topLeft",(char *) "bottomRight", NULL | |
2943 | }; | |
2944 | ||
2945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
2946 | { | |
2947 | arg1 = &temp1; | |
2948 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2949 | } | |
2950 | { | |
2951 | arg2 = &temp2; | |
2952 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2953 | } | |
2954 | { | |
2955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2956 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
2957 | ||
2958 | wxPyEndAllowThreads(__tstate); | |
2959 | if (PyErr_Occurred()) SWIG_fail; | |
2960 | } | |
2961 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2962 | return resultobj; | |
2963 | fail: | |
2964 | return NULL; | |
2965 | } | |
2966 | ||
2967 | ||
2968 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2969 | PyObject *resultobj; | |
2970 | wxPoint *arg1 = 0 ; | |
2971 | wxSize *arg2 = 0 ; | |
2972 | wxRect *result; | |
2973 | wxPoint temp1 ; | |
2974 | wxSize temp2 ; | |
2975 | PyObject * obj0 = 0 ; | |
2976 | PyObject * obj1 = 0 ; | |
2977 | char *kwnames[] = { | |
2978 | (char *) "pos",(char *) "size", NULL | |
2979 | }; | |
2980 | ||
2981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
2982 | { | |
2983 | arg1 = &temp1; | |
2984 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2985 | } | |
2986 | { | |
2987 | arg2 = &temp2; | |
2988 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2989 | } | |
2990 | { | |
2991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2992 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
2993 | ||
2994 | wxPyEndAllowThreads(__tstate); | |
2995 | if (PyErr_Occurred()) SWIG_fail; | |
2996 | } | |
2997 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2998 | return resultobj; | |
2999 | fail: | |
3000 | return NULL; | |
3001 | } | |
3002 | ||
3003 | ||
3004 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3005 | PyObject *resultobj; | |
3006 | wxRect *arg1 = (wxRect *) 0 ; | |
3007 | PyObject * obj0 = 0 ; | |
3008 | char *kwnames[] = { | |
3009 | (char *) "self", NULL | |
3010 | }; | |
3011 | ||
3012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
3013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3014 | { | |
3015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3016 | delete arg1; | |
3017 | ||
3018 | wxPyEndAllowThreads(__tstate); | |
3019 | if (PyErr_Occurred()) SWIG_fail; | |
3020 | } | |
3021 | Py_INCREF(Py_None); resultobj = Py_None; | |
3022 | return resultobj; | |
3023 | fail: | |
3024 | return NULL; | |
3025 | } | |
3026 | ||
3027 | ||
3028 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3029 | PyObject *resultobj; | |
3030 | wxRect *arg1 = (wxRect *) 0 ; | |
3031 | int result; | |
3032 | PyObject * obj0 = 0 ; | |
3033 | char *kwnames[] = { | |
3034 | (char *) "self", NULL | |
3035 | }; | |
3036 | ||
3037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
3038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3039 | { | |
3040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3041 | result = (int)((wxRect const *)arg1)->GetX(); | |
3042 | ||
3043 | wxPyEndAllowThreads(__tstate); | |
3044 | if (PyErr_Occurred()) SWIG_fail; | |
3045 | } | |
994141e6 | 3046 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3047 | return resultobj; |
3048 | fail: | |
3049 | return NULL; | |
3050 | } | |
3051 | ||
3052 | ||
3053 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3054 | PyObject *resultobj; | |
3055 | wxRect *arg1 = (wxRect *) 0 ; | |
3056 | int arg2 ; | |
3057 | PyObject * obj0 = 0 ; | |
994141e6 | 3058 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3059 | char *kwnames[] = { |
3060 | (char *) "self",(char *) "x", NULL | |
3061 | }; | |
3062 | ||
994141e6 | 3063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3065 | { |
3066 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3067 | if (PyErr_Occurred()) SWIG_fail; | |
3068 | } | |
d14a1e28 RD |
3069 | { |
3070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3071 | (arg1)->SetX(arg2); | |
3072 | ||
3073 | wxPyEndAllowThreads(__tstate); | |
3074 | if (PyErr_Occurred()) SWIG_fail; | |
3075 | } | |
3076 | Py_INCREF(Py_None); resultobj = Py_None; | |
3077 | return resultobj; | |
3078 | fail: | |
3079 | return NULL; | |
3080 | } | |
3081 | ||
3082 | ||
3083 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3084 | PyObject *resultobj; | |
3085 | wxRect *arg1 = (wxRect *) 0 ; | |
3086 | int result; | |
3087 | PyObject * obj0 = 0 ; | |
3088 | char *kwnames[] = { | |
3089 | (char *) "self", NULL | |
3090 | }; | |
3091 | ||
3092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
3093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3094 | { | |
3095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3096 | result = (int)(arg1)->GetY(); | |
3097 | ||
3098 | wxPyEndAllowThreads(__tstate); | |
3099 | if (PyErr_Occurred()) SWIG_fail; | |
3100 | } | |
994141e6 | 3101 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3102 | return resultobj; |
3103 | fail: | |
3104 | return NULL; | |
3105 | } | |
3106 | ||
3107 | ||
3108 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3109 | PyObject *resultobj; | |
3110 | wxRect *arg1 = (wxRect *) 0 ; | |
3111 | int arg2 ; | |
3112 | PyObject * obj0 = 0 ; | |
994141e6 | 3113 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3114 | char *kwnames[] = { |
3115 | (char *) "self",(char *) "y", NULL | |
3116 | }; | |
3117 | ||
994141e6 | 3118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3120 | { |
3121 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3122 | if (PyErr_Occurred()) SWIG_fail; | |
3123 | } | |
d14a1e28 RD |
3124 | { |
3125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3126 | (arg1)->SetY(arg2); | |
3127 | ||
3128 | wxPyEndAllowThreads(__tstate); | |
3129 | if (PyErr_Occurred()) SWIG_fail; | |
3130 | } | |
3131 | Py_INCREF(Py_None); resultobj = Py_None; | |
3132 | return resultobj; | |
3133 | fail: | |
3134 | return NULL; | |
3135 | } | |
3136 | ||
3137 | ||
3138 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3139 | PyObject *resultobj; | |
3140 | wxRect *arg1 = (wxRect *) 0 ; | |
3141 | int result; | |
3142 | PyObject * obj0 = 0 ; | |
3143 | char *kwnames[] = { | |
3144 | (char *) "self", NULL | |
3145 | }; | |
3146 | ||
3147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
3148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3149 | { | |
3150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3151 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3152 | ||
3153 | wxPyEndAllowThreads(__tstate); | |
3154 | if (PyErr_Occurred()) SWIG_fail; | |
3155 | } | |
994141e6 | 3156 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3157 | return resultobj; |
3158 | fail: | |
3159 | return NULL; | |
3160 | } | |
3161 | ||
3162 | ||
3163 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3164 | PyObject *resultobj; | |
3165 | wxRect *arg1 = (wxRect *) 0 ; | |
3166 | int arg2 ; | |
3167 | PyObject * obj0 = 0 ; | |
994141e6 | 3168 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3169 | char *kwnames[] = { |
3170 | (char *) "self",(char *) "w", NULL | |
3171 | }; | |
3172 | ||
994141e6 | 3173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3175 | { |
3176 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3177 | if (PyErr_Occurred()) SWIG_fail; | |
3178 | } | |
d14a1e28 RD |
3179 | { |
3180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3181 | (arg1)->SetWidth(arg2); | |
3182 | ||
3183 | wxPyEndAllowThreads(__tstate); | |
3184 | if (PyErr_Occurred()) SWIG_fail; | |
3185 | } | |
3186 | Py_INCREF(Py_None); resultobj = Py_None; | |
3187 | return resultobj; | |
3188 | fail: | |
3189 | return NULL; | |
3190 | } | |
3191 | ||
3192 | ||
3193 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3194 | PyObject *resultobj; | |
3195 | wxRect *arg1 = (wxRect *) 0 ; | |
3196 | int result; | |
3197 | PyObject * obj0 = 0 ; | |
3198 | char *kwnames[] = { | |
3199 | (char *) "self", NULL | |
3200 | }; | |
3201 | ||
3202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3204 | { | |
3205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3206 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3207 | ||
3208 | wxPyEndAllowThreads(__tstate); | |
3209 | if (PyErr_Occurred()) SWIG_fail; | |
3210 | } | |
994141e6 | 3211 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3212 | return resultobj; |
3213 | fail: | |
3214 | return NULL; | |
3215 | } | |
3216 | ||
3217 | ||
3218 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3219 | PyObject *resultobj; | |
3220 | wxRect *arg1 = (wxRect *) 0 ; | |
3221 | int arg2 ; | |
3222 | PyObject * obj0 = 0 ; | |
994141e6 | 3223 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3224 | char *kwnames[] = { |
3225 | (char *) "self",(char *) "h", NULL | |
3226 | }; | |
3227 | ||
994141e6 | 3228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3230 | { |
3231 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3232 | if (PyErr_Occurred()) SWIG_fail; | |
3233 | } | |
d14a1e28 RD |
3234 | { |
3235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3236 | (arg1)->SetHeight(arg2); | |
3237 | ||
3238 | wxPyEndAllowThreads(__tstate); | |
3239 | if (PyErr_Occurred()) SWIG_fail; | |
3240 | } | |
3241 | Py_INCREF(Py_None); resultobj = Py_None; | |
3242 | return resultobj; | |
3243 | fail: | |
3244 | return NULL; | |
3245 | } | |
3246 | ||
3247 | ||
3248 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3249 | PyObject *resultobj; | |
3250 | wxRect *arg1 = (wxRect *) 0 ; | |
3251 | wxPoint result; | |
3252 | PyObject * obj0 = 0 ; | |
3253 | char *kwnames[] = { | |
3254 | (char *) "self", NULL | |
3255 | }; | |
3256 | ||
3257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
3258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3259 | { | |
3260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3261 | result = ((wxRect const *)arg1)->GetPosition(); | |
3262 | ||
3263 | wxPyEndAllowThreads(__tstate); | |
3264 | if (PyErr_Occurred()) SWIG_fail; | |
3265 | } | |
3266 | { | |
3267 | wxPoint * resultptr; | |
3268 | resultptr = new wxPoint((wxPoint &) result); | |
3269 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3270 | } | |
3271 | return resultobj; | |
3272 | fail: | |
3273 | return NULL; | |
3274 | } | |
3275 | ||
3276 | ||
3277 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3278 | PyObject *resultobj; | |
3279 | wxRect *arg1 = (wxRect *) 0 ; | |
3280 | wxPoint *arg2 = 0 ; | |
3281 | wxPoint temp2 ; | |
3282 | PyObject * obj0 = 0 ; | |
3283 | PyObject * obj1 = 0 ; | |
3284 | char *kwnames[] = { | |
3285 | (char *) "self",(char *) "p", NULL | |
3286 | }; | |
3287 | ||
3288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
3289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3290 | { | |
3291 | arg2 = &temp2; | |
3292 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3293 | } | |
3294 | { | |
3295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3296 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3297 | ||
3298 | wxPyEndAllowThreads(__tstate); | |
3299 | if (PyErr_Occurred()) SWIG_fail; | |
3300 | } | |
3301 | Py_INCREF(Py_None); resultobj = Py_None; | |
3302 | return resultobj; | |
3303 | fail: | |
3304 | return NULL; | |
3305 | } | |
3306 | ||
3307 | ||
3308 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3309 | PyObject *resultobj; | |
3310 | wxRect *arg1 = (wxRect *) 0 ; | |
3311 | wxSize result; | |
3312 | PyObject * obj0 = 0 ; | |
3313 | char *kwnames[] = { | |
3314 | (char *) "self", NULL | |
3315 | }; | |
3316 | ||
3317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
3318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3319 | { | |
3320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3321 | result = ((wxRect const *)arg1)->GetSize(); | |
3322 | ||
3323 | wxPyEndAllowThreads(__tstate); | |
3324 | if (PyErr_Occurred()) SWIG_fail; | |
3325 | } | |
3326 | { | |
3327 | wxSize * resultptr; | |
3328 | resultptr = new wxSize((wxSize &) result); | |
3329 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3330 | } | |
3331 | return resultobj; | |
3332 | fail: | |
3333 | return NULL; | |
3334 | } | |
3335 | ||
3336 | ||
3337 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3338 | PyObject *resultobj; | |
3339 | wxRect *arg1 = (wxRect *) 0 ; | |
3340 | wxSize *arg2 = 0 ; | |
3341 | wxSize temp2 ; | |
3342 | PyObject * obj0 = 0 ; | |
3343 | PyObject * obj1 = 0 ; | |
3344 | char *kwnames[] = { | |
3345 | (char *) "self",(char *) "s", NULL | |
3346 | }; | |
3347 | ||
3348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3350 | { | |
3351 | arg2 = &temp2; | |
3352 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3353 | } | |
3354 | { | |
3355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3356 | (arg1)->SetSize((wxSize const &)*arg2); | |
3357 | ||
3358 | wxPyEndAllowThreads(__tstate); | |
3359 | if (PyErr_Occurred()) SWIG_fail; | |
3360 | } | |
3361 | Py_INCREF(Py_None); resultobj = Py_None; | |
3362 | return resultobj; | |
3363 | fail: | |
3364 | return NULL; | |
3365 | } | |
3366 | ||
3367 | ||
c9c7117a RD |
3368 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3369 | PyObject *resultobj; | |
3370 | wxRect *arg1 = (wxRect *) 0 ; | |
3371 | wxPoint result; | |
3372 | PyObject * obj0 = 0 ; | |
3373 | char *kwnames[] = { | |
3374 | (char *) "self", NULL | |
3375 | }; | |
3376 | ||
3377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
3378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3379 | { | |
3380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3381 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3382 | ||
3383 | wxPyEndAllowThreads(__tstate); | |
3384 | if (PyErr_Occurred()) SWIG_fail; | |
3385 | } | |
3386 | { | |
3387 | wxPoint * resultptr; | |
3388 | resultptr = new wxPoint((wxPoint &) result); | |
3389 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3390 | } | |
3391 | return resultobj; | |
3392 | fail: | |
3393 | return NULL; | |
3394 | } | |
3395 | ||
3396 | ||
3397 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3398 | PyObject *resultobj; | |
3399 | wxRect *arg1 = (wxRect *) 0 ; | |
3400 | wxPoint *arg2 = 0 ; | |
3401 | wxPoint temp2 ; | |
3402 | PyObject * obj0 = 0 ; | |
3403 | PyObject * obj1 = 0 ; | |
3404 | char *kwnames[] = { | |
3405 | (char *) "self",(char *) "p", NULL | |
3406 | }; | |
3407 | ||
3408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
3409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3410 | { | |
3411 | arg2 = &temp2; | |
3412 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3413 | } | |
3414 | { | |
3415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3416 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3417 | ||
3418 | wxPyEndAllowThreads(__tstate); | |
3419 | if (PyErr_Occurred()) SWIG_fail; | |
3420 | } | |
3421 | Py_INCREF(Py_None); resultobj = Py_None; | |
3422 | return resultobj; | |
3423 | fail: | |
3424 | return NULL; | |
3425 | } | |
3426 | ||
3427 | ||
3428 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3429 | PyObject *resultobj; | |
3430 | wxRect *arg1 = (wxRect *) 0 ; | |
3431 | wxPoint result; | |
3432 | PyObject * obj0 = 0 ; | |
3433 | char *kwnames[] = { | |
3434 | (char *) "self", NULL | |
3435 | }; | |
3436 | ||
3437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
3438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3439 | { | |
3440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3441 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3442 | ||
3443 | wxPyEndAllowThreads(__tstate); | |
3444 | if (PyErr_Occurred()) SWIG_fail; | |
3445 | } | |
3446 | { | |
3447 | wxPoint * resultptr; | |
3448 | resultptr = new wxPoint((wxPoint &) result); | |
3449 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3450 | } | |
3451 | return resultobj; | |
3452 | fail: | |
3453 | return NULL; | |
3454 | } | |
3455 | ||
3456 | ||
3457 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3458 | PyObject *resultobj; | |
3459 | wxRect *arg1 = (wxRect *) 0 ; | |
3460 | wxPoint *arg2 = 0 ; | |
3461 | wxPoint temp2 ; | |
3462 | PyObject * obj0 = 0 ; | |
3463 | PyObject * obj1 = 0 ; | |
3464 | char *kwnames[] = { | |
3465 | (char *) "self",(char *) "p", NULL | |
3466 | }; | |
3467 | ||
3468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
3469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3470 | { | |
3471 | arg2 = &temp2; | |
3472 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3473 | } | |
3474 | { | |
3475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3476 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3477 | ||
3478 | wxPyEndAllowThreads(__tstate); | |
3479 | if (PyErr_Occurred()) SWIG_fail; | |
3480 | } | |
3481 | Py_INCREF(Py_None); resultobj = Py_None; | |
3482 | return resultobj; | |
3483 | fail: | |
3484 | return NULL; | |
3485 | } | |
3486 | ||
3487 | ||
d14a1e28 RD |
3488 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3489 | PyObject *resultobj; | |
3490 | wxRect *arg1 = (wxRect *) 0 ; | |
3491 | int result; | |
3492 | PyObject * obj0 = 0 ; | |
3493 | char *kwnames[] = { | |
3494 | (char *) "self", NULL | |
3495 | }; | |
3496 | ||
3497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
3498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3499 | { | |
3500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3501 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3502 | ||
3503 | wxPyEndAllowThreads(__tstate); | |
3504 | if (PyErr_Occurred()) SWIG_fail; | |
3505 | } | |
994141e6 | 3506 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3507 | return resultobj; |
3508 | fail: | |
3509 | return NULL; | |
3510 | } | |
3511 | ||
3512 | ||
3513 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3514 | PyObject *resultobj; | |
3515 | wxRect *arg1 = (wxRect *) 0 ; | |
3516 | int result; | |
3517 | PyObject * obj0 = 0 ; | |
3518 | char *kwnames[] = { | |
3519 | (char *) "self", NULL | |
3520 | }; | |
3521 | ||
3522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
3523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3524 | { | |
3525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3526 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3527 | ||
3528 | wxPyEndAllowThreads(__tstate); | |
3529 | if (PyErr_Occurred()) SWIG_fail; | |
3530 | } | |
994141e6 | 3531 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3532 | return resultobj; |
3533 | fail: | |
3534 | return NULL; | |
3535 | } | |
3536 | ||
3537 | ||
3538 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3539 | PyObject *resultobj; | |
3540 | wxRect *arg1 = (wxRect *) 0 ; | |
3541 | int result; | |
3542 | PyObject * obj0 = 0 ; | |
3543 | char *kwnames[] = { | |
3544 | (char *) "self", NULL | |
3545 | }; | |
3546 | ||
3547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
3548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3549 | { | |
3550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3551 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3552 | ||
3553 | wxPyEndAllowThreads(__tstate); | |
3554 | if (PyErr_Occurred()) SWIG_fail; | |
3555 | } | |
994141e6 | 3556 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3557 | return resultobj; |
3558 | fail: | |
3559 | return NULL; | |
3560 | } | |
3561 | ||
3562 | ||
3563 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3564 | PyObject *resultobj; | |
3565 | wxRect *arg1 = (wxRect *) 0 ; | |
3566 | int result; | |
3567 | PyObject * obj0 = 0 ; | |
3568 | char *kwnames[] = { | |
3569 | (char *) "self", NULL | |
3570 | }; | |
3571 | ||
3572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
3573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3574 | { | |
3575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3576 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3577 | ||
3578 | wxPyEndAllowThreads(__tstate); | |
3579 | if (PyErr_Occurred()) SWIG_fail; | |
3580 | } | |
994141e6 | 3581 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3582 | return resultobj; |
3583 | fail: | |
3584 | return NULL; | |
3585 | } | |
3586 | ||
3587 | ||
3588 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3589 | PyObject *resultobj; | |
3590 | wxRect *arg1 = (wxRect *) 0 ; | |
3591 | int arg2 ; | |
3592 | PyObject * obj0 = 0 ; | |
994141e6 | 3593 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3594 | char *kwnames[] = { |
3595 | (char *) "self",(char *) "left", NULL | |
3596 | }; | |
3597 | ||
994141e6 | 3598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3600 | { |
3601 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3602 | if (PyErr_Occurred()) SWIG_fail; | |
3603 | } | |
d14a1e28 RD |
3604 | { |
3605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3606 | (arg1)->SetLeft(arg2); | |
3607 | ||
3608 | wxPyEndAllowThreads(__tstate); | |
3609 | if (PyErr_Occurred()) SWIG_fail; | |
3610 | } | |
3611 | Py_INCREF(Py_None); resultobj = Py_None; | |
3612 | return resultobj; | |
3613 | fail: | |
3614 | return NULL; | |
3615 | } | |
3616 | ||
3617 | ||
3618 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3619 | PyObject *resultobj; | |
3620 | wxRect *arg1 = (wxRect *) 0 ; | |
3621 | int arg2 ; | |
3622 | PyObject * obj0 = 0 ; | |
994141e6 | 3623 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3624 | char *kwnames[] = { |
3625 | (char *) "self",(char *) "right", NULL | |
3626 | }; | |
3627 | ||
994141e6 | 3628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3630 | { |
3631 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3632 | if (PyErr_Occurred()) SWIG_fail; | |
3633 | } | |
d14a1e28 RD |
3634 | { |
3635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3636 | (arg1)->SetRight(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 | ||
3648 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3649 | PyObject *resultobj; | |
3650 | wxRect *arg1 = (wxRect *) 0 ; | |
3651 | int arg2 ; | |
3652 | PyObject * obj0 = 0 ; | |
994141e6 | 3653 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3654 | char *kwnames[] = { |
3655 | (char *) "self",(char *) "top", NULL | |
3656 | }; | |
3657 | ||
994141e6 | 3658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3660 | { |
3661 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3662 | if (PyErr_Occurred()) SWIG_fail; | |
3663 | } | |
d14a1e28 RD |
3664 | { |
3665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3666 | (arg1)->SetTop(arg2); | |
3667 | ||
3668 | wxPyEndAllowThreads(__tstate); | |
3669 | if (PyErr_Occurred()) SWIG_fail; | |
3670 | } | |
3671 | Py_INCREF(Py_None); resultobj = Py_None; | |
3672 | return resultobj; | |
3673 | fail: | |
3674 | return NULL; | |
3675 | } | |
3676 | ||
3677 | ||
3678 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3679 | PyObject *resultobj; | |
3680 | wxRect *arg1 = (wxRect *) 0 ; | |
3681 | int arg2 ; | |
3682 | PyObject * obj0 = 0 ; | |
994141e6 | 3683 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3684 | char *kwnames[] = { |
3685 | (char *) "self",(char *) "bottom", NULL | |
3686 | }; | |
3687 | ||
994141e6 | 3688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3690 | { |
3691 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
3693 | } | |
d14a1e28 RD |
3694 | { |
3695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3696 | (arg1)->SetBottom(arg2); | |
3697 | ||
3698 | wxPyEndAllowThreads(__tstate); | |
3699 | if (PyErr_Occurred()) SWIG_fail; | |
3700 | } | |
3701 | Py_INCREF(Py_None); resultobj = Py_None; | |
3702 | return resultobj; | |
3703 | fail: | |
3704 | return NULL; | |
3705 | } | |
3706 | ||
3707 | ||
3708 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3709 | PyObject *resultobj; | |
3710 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
3711 | int arg2 ; |
3712 | int arg3 ; | |
d14a1e28 RD |
3713 | wxRect *result; |
3714 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3715 | PyObject * obj1 = 0 ; |
3716 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3717 | char *kwnames[] = { |
3718 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3719 | }; | |
3720 | ||
994141e6 | 3721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3723 | { |
3724 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3725 | if (PyErr_Occurred()) SWIG_fail; | |
3726 | } | |
3727 | { | |
3728 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3729 | if (PyErr_Occurred()) SWIG_fail; | |
3730 | } | |
d14a1e28 RD |
3731 | { |
3732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3733 | { | |
3734 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
3735 | result = (wxRect *) &_result_ref; | |
3736 | } | |
3737 | ||
3738 | wxPyEndAllowThreads(__tstate); | |
3739 | if (PyErr_Occurred()) SWIG_fail; | |
3740 | } | |
3741 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3742 | return resultobj; | |
3743 | fail: | |
3744 | return NULL; | |
3745 | } | |
3746 | ||
3747 | ||
3748 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3749 | PyObject *resultobj; | |
3750 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
3751 | int arg2 ; |
3752 | int arg3 ; | |
d14a1e28 RD |
3753 | wxRect *result; |
3754 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3755 | PyObject * obj1 = 0 ; |
3756 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3757 | char *kwnames[] = { |
3758 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3759 | }; | |
3760 | ||
994141e6 | 3761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3763 | { |
3764 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3765 | if (PyErr_Occurred()) SWIG_fail; | |
3766 | } | |
3767 | { | |
3768 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3769 | if (PyErr_Occurred()) SWIG_fail; | |
3770 | } | |
d14a1e28 RD |
3771 | { |
3772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3773 | { | |
3774 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
3775 | result = (wxRect *) &_result_ref; | |
3776 | } | |
3777 | ||
3778 | wxPyEndAllowThreads(__tstate); | |
3779 | if (PyErr_Occurred()) SWIG_fail; | |
3780 | } | |
3781 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3782 | return resultobj; | |
3783 | fail: | |
3784 | return NULL; | |
3785 | } | |
3786 | ||
3787 | ||
3788 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3789 | PyObject *resultobj; | |
3790 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
3791 | int arg2 ; |
3792 | int arg3 ; | |
d14a1e28 | 3793 | PyObject * obj0 = 0 ; |
994141e6 RD |
3794 | PyObject * obj1 = 0 ; |
3795 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3796 | char *kwnames[] = { |
3797 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3798 | }; | |
3799 | ||
994141e6 | 3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3802 | { |
3803 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3804 | if (PyErr_Occurred()) SWIG_fail; | |
3805 | } | |
3806 | { | |
3807 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3808 | if (PyErr_Occurred()) SWIG_fail; | |
3809 | } | |
d14a1e28 RD |
3810 | { |
3811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3812 | (arg1)->Offset(arg2,arg3); | |
3813 | ||
3814 | wxPyEndAllowThreads(__tstate); | |
3815 | if (PyErr_Occurred()) SWIG_fail; | |
3816 | } | |
3817 | Py_INCREF(Py_None); resultobj = Py_None; | |
3818 | return resultobj; | |
3819 | fail: | |
3820 | return NULL; | |
3821 | } | |
3822 | ||
3823 | ||
3824 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3825 | PyObject *resultobj; | |
3826 | wxRect *arg1 = (wxRect *) 0 ; | |
3827 | wxPoint *arg2 = 0 ; | |
3828 | wxPoint temp2 ; | |
3829 | PyObject * obj0 = 0 ; | |
3830 | PyObject * obj1 = 0 ; | |
3831 | char *kwnames[] = { | |
3832 | (char *) "self",(char *) "pt", NULL | |
3833 | }; | |
3834 | ||
3835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
3836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3837 | { | |
3838 | arg2 = &temp2; | |
3839 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3840 | } | |
3841 | { | |
3842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3843 | (arg1)->Offset((wxPoint const &)*arg2); | |
3844 | ||
3845 | wxPyEndAllowThreads(__tstate); | |
3846 | if (PyErr_Occurred()) SWIG_fail; | |
3847 | } | |
3848 | Py_INCREF(Py_None); resultobj = Py_None; | |
3849 | return resultobj; | |
3850 | fail: | |
3851 | return NULL; | |
3852 | } | |
3853 | ||
3854 | ||
3855 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3856 | PyObject *resultobj; | |
3857 | wxRect *arg1 = (wxRect *) 0 ; | |
3858 | wxRect *arg2 = 0 ; | |
3859 | wxRect *result; | |
3860 | wxRect temp2 ; | |
3861 | PyObject * obj0 = 0 ; | |
3862 | PyObject * obj1 = 0 ; | |
3863 | char *kwnames[] = { | |
3864 | (char *) "self",(char *) "rect", NULL | |
3865 | }; | |
3866 | ||
3867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
3868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3869 | { | |
3870 | arg2 = &temp2; | |
3871 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3872 | } | |
3873 | { | |
3874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3875 | { | |
3876 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
3877 | result = (wxRect *) &_result_ref; | |
3878 | } | |
3879 | ||
3880 | wxPyEndAllowThreads(__tstate); | |
3881 | if (PyErr_Occurred()) SWIG_fail; | |
3882 | } | |
3883 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3884 | return resultobj; | |
3885 | fail: | |
3886 | return NULL; | |
3887 | } | |
3888 | ||
3889 | ||
3890 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3891 | PyObject *resultobj; | |
3892 | wxRect *arg1 = (wxRect *) 0 ; | |
3893 | wxRect *arg2 = 0 ; | |
3894 | wxRect result; | |
3895 | wxRect temp2 ; | |
3896 | PyObject * obj0 = 0 ; | |
3897 | PyObject * obj1 = 0 ; | |
3898 | char *kwnames[] = { | |
3899 | (char *) "self",(char *) "rect", NULL | |
3900 | }; | |
3901 | ||
3902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
3903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3904 | { | |
3905 | arg2 = &temp2; | |
3906 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3907 | } | |
3908 | { | |
3909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3910 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
3911 | ||
3912 | wxPyEndAllowThreads(__tstate); | |
3913 | if (PyErr_Occurred()) SWIG_fail; | |
3914 | } | |
3915 | { | |
3916 | wxRect * resultptr; | |
3917 | resultptr = new wxRect((wxRect &) result); | |
3918 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3919 | } | |
3920 | return resultobj; | |
3921 | fail: | |
3922 | return NULL; | |
3923 | } | |
3924 | ||
3925 | ||
3926 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3927 | PyObject *resultobj; | |
3928 | wxRect *arg1 = (wxRect *) 0 ; | |
3929 | wxRect *arg2 = 0 ; | |
3930 | wxRect *result; | |
3931 | wxRect temp2 ; | |
3932 | PyObject * obj0 = 0 ; | |
3933 | PyObject * obj1 = 0 ; | |
3934 | char *kwnames[] = { | |
3935 | (char *) "self",(char *) "rect", NULL | |
3936 | }; | |
3937 | ||
3938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3940 | { | |
3941 | arg2 = &temp2; | |
3942 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3943 | } | |
3944 | { | |
3945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3946 | { | |
3947 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
3948 | result = (wxRect *) &_result_ref; | |
3949 | } | |
3950 | ||
3951 | wxPyEndAllowThreads(__tstate); | |
3952 | if (PyErr_Occurred()) SWIG_fail; | |
3953 | } | |
3954 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3955 | return resultobj; | |
3956 | fail: | |
3957 | return NULL; | |
3958 | } | |
3959 | ||
3960 | ||
3961 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3962 | PyObject *resultobj; | |
3963 | wxRect *arg1 = (wxRect *) 0 ; | |
3964 | wxRect *arg2 = 0 ; | |
3965 | bool result; | |
3966 | wxRect temp2 ; | |
3967 | PyObject * obj0 = 0 ; | |
3968 | PyObject * obj1 = 0 ; | |
3969 | char *kwnames[] = { | |
3970 | (char *) "self",(char *) "rect", NULL | |
3971 | }; | |
3972 | ||
3973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3975 | { | |
3976 | arg2 = &temp2; | |
3977 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3978 | } | |
3979 | { | |
3980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3981 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
3982 | ||
3983 | wxPyEndAllowThreads(__tstate); | |
3984 | if (PyErr_Occurred()) SWIG_fail; | |
3985 | } | |
4d5c3d91 | 3986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3987 | return resultobj; |
3988 | fail: | |
3989 | return NULL; | |
3990 | } | |
3991 | ||
3992 | ||
3993 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3994 | PyObject *resultobj; | |
3995 | wxRect *arg1 = (wxRect *) 0 ; | |
3996 | wxRect *arg2 = 0 ; | |
3997 | bool result; | |
3998 | wxRect temp2 ; | |
3999 | PyObject * obj0 = 0 ; | |
4000 | PyObject * obj1 = 0 ; | |
4001 | char *kwnames[] = { | |
4002 | (char *) "self",(char *) "rect", NULL | |
4003 | }; | |
4004 | ||
4005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4007 | { | |
4008 | arg2 = &temp2; | |
4009 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4010 | } | |
4011 | { | |
4012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4013 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4014 | ||
4015 | wxPyEndAllowThreads(__tstate); | |
4016 | if (PyErr_Occurred()) SWIG_fail; | |
4017 | } | |
4d5c3d91 | 4018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4019 | return resultobj; |
4020 | fail: | |
4021 | return NULL; | |
4022 | } | |
4023 | ||
4024 | ||
4025 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4026 | PyObject *resultobj; | |
4027 | wxRect *arg1 = (wxRect *) 0 ; | |
4028 | int arg2 ; | |
4029 | int arg3 ; | |
4030 | bool result; | |
4031 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4032 | PyObject * obj1 = 0 ; |
4033 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4034 | char *kwnames[] = { |
4035 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4036 | }; | |
4037 | ||
994141e6 | 4038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4040 | { |
4041 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4042 | if (PyErr_Occurred()) SWIG_fail; | |
4043 | } | |
4044 | { | |
4045 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4046 | if (PyErr_Occurred()) SWIG_fail; | |
4047 | } | |
d14a1e28 RD |
4048 | { |
4049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4050 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4051 | ||
4052 | wxPyEndAllowThreads(__tstate); | |
4053 | if (PyErr_Occurred()) SWIG_fail; | |
4054 | } | |
4d5c3d91 | 4055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4056 | return resultobj; |
4057 | fail: | |
4058 | return NULL; | |
4059 | } | |
4060 | ||
4061 | ||
4062 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4063 | PyObject *resultobj; | |
4064 | wxRect *arg1 = (wxRect *) 0 ; | |
4065 | wxPoint *arg2 = 0 ; | |
4066 | bool result; | |
4067 | wxPoint temp2 ; | |
4068 | PyObject * obj0 = 0 ; | |
4069 | PyObject * obj1 = 0 ; | |
4070 | char *kwnames[] = { | |
4071 | (char *) "self",(char *) "pt", NULL | |
4072 | }; | |
4073 | ||
4074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
4075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4076 | { | |
4077 | arg2 = &temp2; | |
4078 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4079 | } | |
4080 | { | |
4081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4082 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4083 | ||
4084 | wxPyEndAllowThreads(__tstate); | |
4085 | if (PyErr_Occurred()) SWIG_fail; | |
4086 | } | |
4d5c3d91 | 4087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4088 | return resultobj; |
4089 | fail: | |
4090 | return NULL; | |
4091 | } | |
4092 | ||
4093 | ||
4094 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4095 | PyObject *resultobj; | |
4096 | wxRect *arg1 = (wxRect *) 0 ; | |
4097 | wxRect *arg2 = 0 ; | |
4098 | bool result; | |
4099 | wxRect temp2 ; | |
4100 | PyObject * obj0 = 0 ; | |
4101 | PyObject * obj1 = 0 ; | |
4102 | char *kwnames[] = { | |
4103 | (char *) "self",(char *) "rect", NULL | |
4104 | }; | |
4105 | ||
4106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
4107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4108 | { | |
4109 | arg2 = &temp2; | |
4110 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4111 | } | |
4112 | { | |
4113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4114 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4115 | ||
4116 | wxPyEndAllowThreads(__tstate); | |
4117 | if (PyErr_Occurred()) SWIG_fail; | |
4118 | } | |
4d5c3d91 | 4119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4120 | return resultobj; |
4121 | fail: | |
4122 | return NULL; | |
4123 | } | |
4124 | ||
4125 | ||
4126 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4127 | PyObject *resultobj; | |
4128 | wxRect *arg1 = (wxRect *) 0 ; | |
4129 | int arg2 ; | |
4130 | PyObject * obj0 = 0 ; | |
994141e6 | 4131 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4132 | char *kwnames[] = { |
4133 | (char *) "self",(char *) "x", NULL | |
4134 | }; | |
4135 | ||
994141e6 | 4136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4138 | { |
4139 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4140 | if (PyErr_Occurred()) SWIG_fail; | |
4141 | } | |
d14a1e28 RD |
4142 | if (arg1) (arg1)->x = arg2; |
4143 | ||
4144 | Py_INCREF(Py_None); resultobj = Py_None; | |
4145 | return resultobj; | |
4146 | fail: | |
4147 | return NULL; | |
4148 | } | |
4149 | ||
4150 | ||
4151 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4152 | PyObject *resultobj; | |
4153 | wxRect *arg1 = (wxRect *) 0 ; | |
4154 | int result; | |
4155 | PyObject * obj0 = 0 ; | |
4156 | char *kwnames[] = { | |
4157 | (char *) "self", NULL | |
4158 | }; | |
4159 | ||
4160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
4161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4162 | result = (int) ((arg1)->x); | |
4163 | ||
994141e6 | 4164 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4165 | return resultobj; |
4166 | fail: | |
4167 | return NULL; | |
4168 | } | |
4169 | ||
4170 | ||
4171 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4172 | PyObject *resultobj; | |
4173 | wxRect *arg1 = (wxRect *) 0 ; | |
4174 | int arg2 ; | |
4175 | PyObject * obj0 = 0 ; | |
994141e6 | 4176 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4177 | char *kwnames[] = { |
4178 | (char *) "self",(char *) "y", NULL | |
4179 | }; | |
4180 | ||
994141e6 | 4181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4183 | { |
4184 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4185 | if (PyErr_Occurred()) SWIG_fail; | |
4186 | } | |
d14a1e28 RD |
4187 | if (arg1) (arg1)->y = arg2; |
4188 | ||
4189 | Py_INCREF(Py_None); resultobj = Py_None; | |
4190 | return resultobj; | |
4191 | fail: | |
4192 | return NULL; | |
4193 | } | |
4194 | ||
4195 | ||
4196 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4197 | PyObject *resultobj; | |
4198 | wxRect *arg1 = (wxRect *) 0 ; | |
4199 | int result; | |
4200 | PyObject * obj0 = 0 ; | |
4201 | char *kwnames[] = { | |
4202 | (char *) "self", NULL | |
4203 | }; | |
4204 | ||
4205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
4206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4207 | result = (int) ((arg1)->y); | |
4208 | ||
994141e6 | 4209 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4210 | return resultobj; |
4211 | fail: | |
4212 | return NULL; | |
4213 | } | |
4214 | ||
4215 | ||
4216 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4217 | PyObject *resultobj; | |
4218 | wxRect *arg1 = (wxRect *) 0 ; | |
4219 | int arg2 ; | |
4220 | PyObject * obj0 = 0 ; | |
994141e6 | 4221 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4222 | char *kwnames[] = { |
4223 | (char *) "self",(char *) "width", NULL | |
4224 | }; | |
4225 | ||
994141e6 | 4226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4228 | { |
4229 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4230 | if (PyErr_Occurred()) SWIG_fail; | |
4231 | } | |
d14a1e28 RD |
4232 | if (arg1) (arg1)->width = arg2; |
4233 | ||
4234 | Py_INCREF(Py_None); resultobj = Py_None; | |
4235 | return resultobj; | |
4236 | fail: | |
4237 | return NULL; | |
4238 | } | |
4239 | ||
4240 | ||
4241 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4242 | PyObject *resultobj; | |
4243 | wxRect *arg1 = (wxRect *) 0 ; | |
4244 | int result; | |
4245 | PyObject * obj0 = 0 ; | |
4246 | char *kwnames[] = { | |
4247 | (char *) "self", NULL | |
4248 | }; | |
4249 | ||
4250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
4251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4252 | result = (int) ((arg1)->width); | |
4253 | ||
994141e6 | 4254 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4255 | return resultobj; |
4256 | fail: | |
4257 | return NULL; | |
4258 | } | |
4259 | ||
4260 | ||
4261 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4262 | PyObject *resultobj; | |
4263 | wxRect *arg1 = (wxRect *) 0 ; | |
4264 | int arg2 ; | |
4265 | PyObject * obj0 = 0 ; | |
994141e6 | 4266 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4267 | char *kwnames[] = { |
4268 | (char *) "self",(char *) "height", NULL | |
4269 | }; | |
4270 | ||
994141e6 | 4271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4273 | { |
4274 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4275 | if (PyErr_Occurred()) SWIG_fail; | |
4276 | } | |
d14a1e28 RD |
4277 | if (arg1) (arg1)->height = arg2; |
4278 | ||
4279 | Py_INCREF(Py_None); resultobj = Py_None; | |
4280 | return resultobj; | |
4281 | fail: | |
4282 | return NULL; | |
4283 | } | |
4284 | ||
4285 | ||
4286 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4287 | PyObject *resultobj; | |
4288 | wxRect *arg1 = (wxRect *) 0 ; | |
4289 | int result; | |
4290 | PyObject * obj0 = 0 ; | |
4291 | char *kwnames[] = { | |
4292 | (char *) "self", NULL | |
4293 | }; | |
4294 | ||
4295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
4296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4297 | result = (int) ((arg1)->height); | |
4298 | ||
994141e6 | 4299 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4300 | return resultobj; |
4301 | fail: | |
4302 | return NULL; | |
4303 | } | |
4304 | ||
4305 | ||
4306 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4307 | PyObject *resultobj; | |
4308 | wxRect *arg1 = (wxRect *) 0 ; | |
4309 | int arg2 = (int) 0 ; | |
4310 | int arg3 = (int) 0 ; | |
4311 | int arg4 = (int) 0 ; | |
4312 | int arg5 = (int) 0 ; | |
4313 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4314 | PyObject * obj1 = 0 ; |
4315 | PyObject * obj2 = 0 ; | |
4316 | PyObject * obj3 = 0 ; | |
4317 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4318 | char *kwnames[] = { |
4319 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4320 | }; | |
4321 | ||
994141e6 | 4322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4324 | if (obj1) { |
4325 | { | |
4326 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4327 | if (PyErr_Occurred()) SWIG_fail; | |
4328 | } | |
4329 | } | |
4330 | if (obj2) { | |
4331 | { | |
4332 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4333 | if (PyErr_Occurred()) SWIG_fail; | |
4334 | } | |
4335 | } | |
4336 | if (obj3) { | |
4337 | { | |
4338 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4339 | if (PyErr_Occurred()) SWIG_fail; | |
4340 | } | |
4341 | } | |
4342 | if (obj4) { | |
4343 | { | |
4344 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4345 | if (PyErr_Occurred()) SWIG_fail; | |
4346 | } | |
4347 | } | |
d14a1e28 RD |
4348 | { |
4349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4350 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4351 | ||
4352 | wxPyEndAllowThreads(__tstate); | |
4353 | if (PyErr_Occurred()) SWIG_fail; | |
4354 | } | |
4355 | Py_INCREF(Py_None); resultobj = Py_None; | |
4356 | return resultobj; | |
4357 | fail: | |
4358 | return NULL; | |
4359 | } | |
4360 | ||
4361 | ||
e811c8ce | 4362 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4363 | PyObject *resultobj; |
4364 | wxRect *arg1 = (wxRect *) 0 ; | |
4365 | PyObject *result; | |
4366 | PyObject * obj0 = 0 ; | |
4367 | char *kwnames[] = { | |
4368 | (char *) "self", NULL | |
4369 | }; | |
4370 | ||
e811c8ce | 4371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4373 | { | |
4374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4375 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
4376 | |
4377 | wxPyEndAllowThreads(__tstate); | |
4378 | if (PyErr_Occurred()) SWIG_fail; | |
4379 | } | |
4380 | resultobj = result; | |
4381 | return resultobj; | |
4382 | fail: | |
4383 | return NULL; | |
4384 | } | |
4385 | ||
4386 | ||
4387 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4388 | PyObject *obj; | |
4389 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4390 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4391 | Py_INCREF(obj); | |
4392 | return Py_BuildValue((char *)""); | |
4393 | } | |
4394 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4395 | PyObject *resultobj; | |
4396 | wxRect *arg1 = (wxRect *) 0 ; | |
4397 | wxRect *arg2 = (wxRect *) 0 ; | |
4398 | PyObject *result; | |
4399 | PyObject * obj0 = 0 ; | |
4400 | PyObject * obj1 = 0 ; | |
4401 | char *kwnames[] = { | |
4402 | (char *) "r1",(char *) "r2", NULL | |
4403 | }; | |
4404 | ||
4405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4407 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4408 | { | |
4409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4410 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4411 | ||
4412 | wxPyEndAllowThreads(__tstate); | |
4413 | if (PyErr_Occurred()) SWIG_fail; | |
4414 | } | |
4415 | resultobj = result; | |
4416 | return resultobj; | |
4417 | fail: | |
4418 | return NULL; | |
4419 | } | |
4420 | ||
4421 | ||
4422 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4423 | PyObject *resultobj; | |
4424 | double arg1 = (double) 0.0 ; | |
4425 | double arg2 = (double) 0.0 ; | |
4426 | wxPoint2D *result; | |
994141e6 RD |
4427 | PyObject * obj0 = 0 ; |
4428 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
4429 | char *kwnames[] = { |
4430 | (char *) "x",(char *) "y", NULL | |
4431 | }; | |
4432 | ||
994141e6 RD |
4433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; |
4434 | if (obj0) { | |
4435 | { | |
4436 | arg1 = (double) SWIG_PyObj_AsDouble(obj0); | |
4437 | if (PyErr_Occurred()) SWIG_fail; | |
4438 | } | |
4439 | } | |
4440 | if (obj1) { | |
4441 | { | |
4442 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
4443 | if (PyErr_Occurred()) SWIG_fail; | |
4444 | } | |
4445 | } | |
d14a1e28 RD |
4446 | { |
4447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4448 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4449 | ||
4450 | wxPyEndAllowThreads(__tstate); | |
4451 | if (PyErr_Occurred()) SWIG_fail; | |
4452 | } | |
4453 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4454 | return resultobj; | |
4455 | fail: | |
4456 | return NULL; | |
4457 | } | |
4458 | ||
4459 | ||
4460 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4461 | PyObject *resultobj; | |
4462 | wxPoint2D *arg1 = 0 ; | |
4463 | wxPoint2D *result; | |
4464 | wxPoint2D temp1 ; | |
4465 | PyObject * obj0 = 0 ; | |
4466 | char *kwnames[] = { | |
4467 | (char *) "pt", NULL | |
4468 | }; | |
4469 | ||
4470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4471 | { | |
4472 | arg1 = &temp1; | |
4473 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4474 | } | |
4475 | { | |
4476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4477 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4478 | ||
4479 | wxPyEndAllowThreads(__tstate); | |
4480 | if (PyErr_Occurred()) SWIG_fail; | |
4481 | } | |
4482 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4483 | return resultobj; | |
4484 | fail: | |
4485 | return NULL; | |
4486 | } | |
4487 | ||
4488 | ||
4489 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4490 | PyObject *resultobj; | |
4491 | wxPoint *arg1 = 0 ; | |
4492 | wxPoint2D *result; | |
4493 | wxPoint temp1 ; | |
4494 | PyObject * obj0 = 0 ; | |
4495 | char *kwnames[] = { | |
4496 | (char *) "pt", NULL | |
4497 | }; | |
4498 | ||
4499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4500 | { | |
4501 | arg1 = &temp1; | |
4502 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4503 | } | |
4504 | { | |
4505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4506 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4507 | ||
4508 | wxPyEndAllowThreads(__tstate); | |
4509 | if (PyErr_Occurred()) SWIG_fail; | |
4510 | } | |
4511 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4512 | return resultobj; | |
4513 | fail: | |
4514 | return NULL; | |
4515 | } | |
4516 | ||
4517 | ||
4518 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4519 | PyObject *resultobj; | |
4520 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4521 | int *arg2 = (int *) 0 ; | |
4522 | int *arg3 = (int *) 0 ; | |
4523 | int temp2 ; | |
4524 | int temp3 ; | |
4525 | PyObject * obj0 = 0 ; | |
4526 | char *kwnames[] = { | |
4527 | (char *) "self", NULL | |
4528 | }; | |
4529 | ||
4530 | arg2 = &temp2; | |
4531 | arg3 = &temp3; | |
4532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
4533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4534 | { | |
4535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4536 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4537 | ||
4538 | wxPyEndAllowThreads(__tstate); | |
4539 | if (PyErr_Occurred()) SWIG_fail; | |
4540 | } | |
4541 | Py_INCREF(Py_None); resultobj = Py_None; | |
4542 | { | |
4543 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4544 | resultobj = t_output_helper(resultobj,o); | |
4545 | } | |
4546 | { | |
4547 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4548 | resultobj = t_output_helper(resultobj,o); | |
4549 | } | |
4550 | return resultobj; | |
4551 | fail: | |
4552 | return NULL; | |
4553 | } | |
4554 | ||
4555 | ||
4556 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4557 | PyObject *resultobj; | |
4558 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4559 | int *arg2 = (int *) 0 ; | |
4560 | int *arg3 = (int *) 0 ; | |
4561 | int temp2 ; | |
4562 | int temp3 ; | |
4563 | PyObject * obj0 = 0 ; | |
4564 | char *kwnames[] = { | |
4565 | (char *) "self", NULL | |
4566 | }; | |
4567 | ||
4568 | arg2 = &temp2; | |
4569 | arg3 = &temp3; | |
4570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
4571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4572 | { | |
4573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4574 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4575 | ||
4576 | wxPyEndAllowThreads(__tstate); | |
4577 | if (PyErr_Occurred()) SWIG_fail; | |
4578 | } | |
4579 | Py_INCREF(Py_None); resultobj = Py_None; | |
4580 | { | |
4581 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4582 | resultobj = t_output_helper(resultobj,o); | |
4583 | } | |
4584 | { | |
4585 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4586 | resultobj = t_output_helper(resultobj,o); | |
4587 | } | |
4588 | return resultobj; | |
4589 | fail: | |
4590 | return NULL; | |
4591 | } | |
4592 | ||
4593 | ||
4594 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4595 | PyObject *resultobj; | |
4596 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4597 | double result; | |
4598 | PyObject * obj0 = 0 ; | |
4599 | char *kwnames[] = { | |
4600 | (char *) "self", NULL | |
4601 | }; | |
4602 | ||
4603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
4604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4605 | { | |
4606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4607 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4608 | ||
4609 | wxPyEndAllowThreads(__tstate); | |
4610 | if (PyErr_Occurred()) SWIG_fail; | |
4611 | } | |
994141e6 | 4612 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4613 | return resultobj; |
4614 | fail: | |
4615 | return NULL; | |
4616 | } | |
4617 | ||
4618 | ||
4619 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4620 | PyObject *resultobj; | |
4621 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4622 | double result; | |
4623 | PyObject * obj0 = 0 ; | |
4624 | char *kwnames[] = { | |
4625 | (char *) "self", NULL | |
4626 | }; | |
4627 | ||
4628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
4629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4630 | { | |
4631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4632 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4633 | ||
4634 | wxPyEndAllowThreads(__tstate); | |
4635 | if (PyErr_Occurred()) SWIG_fail; | |
4636 | } | |
994141e6 | 4637 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4638 | return resultobj; |
4639 | fail: | |
4640 | return NULL; | |
4641 | } | |
4642 | ||
4643 | ||
4644 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4645 | PyObject *resultobj; | |
4646 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4647 | double arg2 ; | |
4648 | PyObject * obj0 = 0 ; | |
994141e6 | 4649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4650 | char *kwnames[] = { |
4651 | (char *) "self",(char *) "length", NULL | |
4652 | }; | |
4653 | ||
994141e6 | 4654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4656 | { |
4657 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
4658 | if (PyErr_Occurred()) SWIG_fail; | |
4659 | } | |
d14a1e28 RD |
4660 | { |
4661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4662 | (arg1)->SetVectorLength(arg2); | |
4663 | ||
4664 | wxPyEndAllowThreads(__tstate); | |
4665 | if (PyErr_Occurred()) SWIG_fail; | |
4666 | } | |
4667 | Py_INCREF(Py_None); resultobj = Py_None; | |
4668 | return resultobj; | |
4669 | fail: | |
4670 | return NULL; | |
4671 | } | |
4672 | ||
4673 | ||
4674 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4675 | PyObject *resultobj; | |
4676 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4677 | double arg2 ; | |
4678 | PyObject * obj0 = 0 ; | |
994141e6 | 4679 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4680 | char *kwnames[] = { |
4681 | (char *) "self",(char *) "degrees", NULL | |
4682 | }; | |
4683 | ||
994141e6 | 4684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4686 | { |
4687 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
4688 | if (PyErr_Occurred()) SWIG_fail; | |
4689 | } | |
d14a1e28 RD |
4690 | { |
4691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4692 | (arg1)->SetVectorAngle(arg2); | |
4693 | ||
4694 | wxPyEndAllowThreads(__tstate); | |
4695 | if (PyErr_Occurred()) SWIG_fail; | |
4696 | } | |
4697 | Py_INCREF(Py_None); resultobj = Py_None; | |
4698 | return resultobj; | |
4699 | fail: | |
4700 | return NULL; | |
4701 | } | |
4702 | ||
4703 | ||
4704 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4705 | PyObject *resultobj; | |
4706 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4707 | wxPoint2D *arg2 = 0 ; | |
4708 | double result; | |
4709 | wxPoint2D temp2 ; | |
4710 | PyObject * obj0 = 0 ; | |
4711 | PyObject * obj1 = 0 ; | |
4712 | char *kwnames[] = { | |
4713 | (char *) "self",(char *) "pt", NULL | |
4714 | }; | |
4715 | ||
4716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
4717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4718 | { | |
4719 | arg2 = &temp2; | |
4720 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4721 | } | |
4722 | { | |
4723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4724 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
4725 | ||
4726 | wxPyEndAllowThreads(__tstate); | |
4727 | if (PyErr_Occurred()) SWIG_fail; | |
4728 | } | |
994141e6 | 4729 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4730 | return resultobj; |
4731 | fail: | |
4732 | return NULL; | |
4733 | } | |
4734 | ||
4735 | ||
4736 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4737 | PyObject *resultobj; | |
4738 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4739 | wxPoint2D *arg2 = 0 ; | |
4740 | double result; | |
4741 | wxPoint2D temp2 ; | |
4742 | PyObject * obj0 = 0 ; | |
4743 | PyObject * obj1 = 0 ; | |
4744 | char *kwnames[] = { | |
4745 | (char *) "self",(char *) "pt", NULL | |
4746 | }; | |
4747 | ||
4748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
4749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4750 | { | |
4751 | arg2 = &temp2; | |
4752 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4753 | } | |
4754 | { | |
4755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4756 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
4757 | ||
4758 | wxPyEndAllowThreads(__tstate); | |
4759 | if (PyErr_Occurred()) SWIG_fail; | |
4760 | } | |
994141e6 | 4761 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4762 | return resultobj; |
4763 | fail: | |
4764 | return NULL; | |
4765 | } | |
4766 | ||
4767 | ||
4768 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4769 | PyObject *resultobj; | |
4770 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4771 | wxPoint2D *arg2 = 0 ; | |
4772 | double result; | |
4773 | wxPoint2D temp2 ; | |
4774 | PyObject * obj0 = 0 ; | |
4775 | PyObject * obj1 = 0 ; | |
4776 | char *kwnames[] = { | |
4777 | (char *) "self",(char *) "vec", NULL | |
4778 | }; | |
4779 | ||
4780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
4781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4782 | { | |
4783 | arg2 = &temp2; | |
4784 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4785 | } | |
4786 | { | |
4787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4788 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
4789 | ||
4790 | wxPyEndAllowThreads(__tstate); | |
4791 | if (PyErr_Occurred()) SWIG_fail; | |
4792 | } | |
994141e6 | 4793 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4794 | return resultobj; |
4795 | fail: | |
4796 | return NULL; | |
4797 | } | |
4798 | ||
4799 | ||
4800 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4801 | PyObject *resultobj; | |
4802 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4803 | wxPoint2D *arg2 = 0 ; | |
4804 | double result; | |
4805 | wxPoint2D temp2 ; | |
4806 | PyObject * obj0 = 0 ; | |
4807 | PyObject * obj1 = 0 ; | |
4808 | char *kwnames[] = { | |
4809 | (char *) "self",(char *) "vec", NULL | |
4810 | }; | |
4811 | ||
4812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
4813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4814 | { | |
4815 | arg2 = &temp2; | |
4816 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4817 | } | |
4818 | { | |
4819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4820 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
4821 | ||
4822 | wxPyEndAllowThreads(__tstate); | |
4823 | if (PyErr_Occurred()) SWIG_fail; | |
4824 | } | |
994141e6 | 4825 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4826 | return resultobj; |
4827 | fail: | |
4828 | return NULL; | |
4829 | } | |
4830 | ||
4831 | ||
4832 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4833 | PyObject *resultobj; | |
4834 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4835 | wxPoint2D result; | |
4836 | PyObject * obj0 = 0 ; | |
4837 | char *kwnames[] = { | |
4838 | (char *) "self", NULL | |
4839 | }; | |
4840 | ||
4841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
4842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4843 | { | |
4844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4845 | result = (arg1)->operator -(); | |
4846 | ||
4847 | wxPyEndAllowThreads(__tstate); | |
4848 | if (PyErr_Occurred()) SWIG_fail; | |
4849 | } | |
4850 | { | |
4851 | wxPoint2D * resultptr; | |
4852 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
4853 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint2D, 1); | |
4854 | } | |
4855 | return resultobj; | |
4856 | fail: | |
4857 | return NULL; | |
4858 | } | |
4859 | ||
4860 | ||
4861 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4862 | PyObject *resultobj; | |
4863 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4864 | wxPoint2D *arg2 = 0 ; | |
4865 | wxPoint2D *result; | |
4866 | wxPoint2D temp2 ; | |
4867 | PyObject * obj0 = 0 ; | |
4868 | PyObject * obj1 = 0 ; | |
4869 | char *kwnames[] = { | |
4870 | (char *) "self",(char *) "pt", NULL | |
4871 | }; | |
4872 | ||
4873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4875 | { | |
4876 | arg2 = &temp2; | |
4877 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4878 | } | |
4879 | { | |
4880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4881 | { | |
4882 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
4883 | result = (wxPoint2D *) &_result_ref; | |
4884 | } | |
4885 | ||
4886 | wxPyEndAllowThreads(__tstate); | |
4887 | if (PyErr_Occurred()) SWIG_fail; | |
4888 | } | |
4889 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4890 | return resultobj; | |
4891 | fail: | |
4892 | return NULL; | |
4893 | } | |
4894 | ||
4895 | ||
4896 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4897 | PyObject *resultobj; | |
4898 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4899 | wxPoint2D *arg2 = 0 ; | |
4900 | wxPoint2D *result; | |
4901 | wxPoint2D temp2 ; | |
4902 | PyObject * obj0 = 0 ; | |
4903 | PyObject * obj1 = 0 ; | |
4904 | char *kwnames[] = { | |
4905 | (char *) "self",(char *) "pt", NULL | |
4906 | }; | |
4907 | ||
4908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
4909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4910 | { | |
4911 | arg2 = &temp2; | |
4912 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4913 | } | |
4914 | { | |
4915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4916 | { | |
4917 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
4918 | result = (wxPoint2D *) &_result_ref; | |
4919 | } | |
4920 | ||
4921 | wxPyEndAllowThreads(__tstate); | |
4922 | if (PyErr_Occurred()) SWIG_fail; | |
4923 | } | |
4924 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4925 | return resultobj; | |
4926 | fail: | |
4927 | return NULL; | |
4928 | } | |
4929 | ||
4930 | ||
4931 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4932 | PyObject *resultobj; | |
4933 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4934 | wxPoint2D *arg2 = 0 ; | |
4935 | wxPoint2D *result; | |
4936 | wxPoint2D temp2 ; | |
4937 | PyObject * obj0 = 0 ; | |
4938 | PyObject * obj1 = 0 ; | |
4939 | char *kwnames[] = { | |
4940 | (char *) "self",(char *) "pt", NULL | |
4941 | }; | |
4942 | ||
4943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
4944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4945 | { | |
4946 | arg2 = &temp2; | |
4947 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4948 | } | |
4949 | { | |
4950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4951 | { | |
4952 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
4953 | result = (wxPoint2D *) &_result_ref; | |
4954 | } | |
4955 | ||
4956 | wxPyEndAllowThreads(__tstate); | |
4957 | if (PyErr_Occurred()) SWIG_fail; | |
4958 | } | |
4959 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4960 | return resultobj; | |
4961 | fail: | |
4962 | return NULL; | |
4963 | } | |
4964 | ||
4965 | ||
4966 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4967 | PyObject *resultobj; | |
4968 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4969 | wxPoint2D *arg2 = 0 ; | |
4970 | wxPoint2D *result; | |
4971 | wxPoint2D temp2 ; | |
4972 | PyObject * obj0 = 0 ; | |
4973 | PyObject * obj1 = 0 ; | |
4974 | char *kwnames[] = { | |
4975 | (char *) "self",(char *) "pt", NULL | |
4976 | }; | |
4977 | ||
4978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
4979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4980 | { | |
4981 | arg2 = &temp2; | |
4982 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4983 | } | |
4984 | { | |
4985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4986 | { | |
4987 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
4988 | result = (wxPoint2D *) &_result_ref; | |
4989 | } | |
4990 | ||
4991 | wxPyEndAllowThreads(__tstate); | |
4992 | if (PyErr_Occurred()) SWIG_fail; | |
4993 | } | |
4994 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4995 | return resultobj; | |
4996 | fail: | |
4997 | return NULL; | |
4998 | } | |
4999 | ||
5000 | ||
5001 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5002 | PyObject *resultobj; | |
5003 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5004 | wxPoint2D *arg2 = 0 ; | |
5005 | bool result; | |
5006 | wxPoint2D temp2 ; | |
5007 | PyObject * obj0 = 0 ; | |
5008 | PyObject * obj1 = 0 ; | |
5009 | char *kwnames[] = { | |
5010 | (char *) "self",(char *) "pt", NULL | |
5011 | }; | |
5012 | ||
5013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
5014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5015 | { | |
5016 | arg2 = &temp2; | |
5017 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5018 | } | |
5019 | { | |
5020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5021 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5022 | ||
5023 | wxPyEndAllowThreads(__tstate); | |
5024 | if (PyErr_Occurred()) SWIG_fail; | |
5025 | } | |
4d5c3d91 | 5026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5027 | return resultobj; |
5028 | fail: | |
5029 | return NULL; | |
5030 | } | |
5031 | ||
5032 | ||
5033 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5034 | PyObject *resultobj; | |
5035 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5036 | wxPoint2D *arg2 = 0 ; | |
5037 | bool result; | |
5038 | wxPoint2D temp2 ; | |
5039 | PyObject * obj0 = 0 ; | |
5040 | PyObject * obj1 = 0 ; | |
5041 | char *kwnames[] = { | |
5042 | (char *) "self",(char *) "pt", NULL | |
5043 | }; | |
5044 | ||
5045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
5046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5047 | { | |
5048 | arg2 = &temp2; | |
5049 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5050 | } | |
5051 | { | |
5052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5053 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5054 | ||
5055 | wxPyEndAllowThreads(__tstate); | |
5056 | if (PyErr_Occurred()) SWIG_fail; | |
5057 | } | |
4d5c3d91 | 5058 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5059 | return resultobj; |
5060 | fail: | |
5061 | return NULL; | |
5062 | } | |
5063 | ||
5064 | ||
d14a1e28 RD |
5065 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
5066 | PyObject *resultobj; | |
5067 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5068 | double arg2 ; | |
5069 | PyObject * obj0 = 0 ; | |
994141e6 | 5070 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5071 | char *kwnames[] = { |
5072 | (char *) "self",(char *) "m_x", NULL | |
5073 | }; | |
5074 | ||
994141e6 | 5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5077 | { |
5078 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
5079 | if (PyErr_Occurred()) SWIG_fail; | |
5080 | } | |
d14a1e28 RD |
5081 | if (arg1) (arg1)->m_x = arg2; |
5082 | ||
5083 | Py_INCREF(Py_None); resultobj = Py_None; | |
5084 | return resultobj; | |
5085 | fail: | |
5086 | return NULL; | |
5087 | } | |
5088 | ||
5089 | ||
5090 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5091 | PyObject *resultobj; | |
5092 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5093 | double result; | |
5094 | PyObject * obj0 = 0 ; | |
5095 | char *kwnames[] = { | |
5096 | (char *) "self", NULL | |
5097 | }; | |
5098 | ||
5099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
5100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5101 | result = (double) ((arg1)->m_x); | |
5102 | ||
994141e6 | 5103 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
5104 | return resultobj; |
5105 | fail: | |
5106 | return NULL; | |
5107 | } | |
5108 | ||
5109 | ||
5110 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5111 | PyObject *resultobj; | |
5112 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5113 | double arg2 ; | |
5114 | PyObject * obj0 = 0 ; | |
994141e6 | 5115 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5116 | char *kwnames[] = { |
5117 | (char *) "self",(char *) "m_y", NULL | |
5118 | }; | |
5119 | ||
994141e6 | 5120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5122 | { |
5123 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
5124 | if (PyErr_Occurred()) SWIG_fail; | |
5125 | } | |
d14a1e28 RD |
5126 | if (arg1) (arg1)->m_y = arg2; |
5127 | ||
5128 | Py_INCREF(Py_None); resultobj = Py_None; | |
5129 | return resultobj; | |
5130 | fail: | |
5131 | return NULL; | |
5132 | } | |
5133 | ||
5134 | ||
5135 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5136 | PyObject *resultobj; | |
5137 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5138 | double result; | |
5139 | PyObject * obj0 = 0 ; | |
5140 | char *kwnames[] = { | |
5141 | (char *) "self", NULL | |
5142 | }; | |
5143 | ||
5144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
5145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5146 | result = (double) ((arg1)->m_y); | |
5147 | ||
994141e6 | 5148 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
5149 | return resultobj; |
5150 | fail: | |
5151 | return NULL; | |
5152 | } | |
5153 | ||
5154 | ||
5155 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5156 | PyObject *resultobj; | |
5157 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5158 | double arg2 = (double) 0 ; | |
5159 | double arg3 = (double) 0 ; | |
5160 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5161 | PyObject * obj1 = 0 ; |
5162 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5163 | char *kwnames[] = { |
5164 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5165 | }; | |
5166 | ||
994141e6 | 5167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5169 | if (obj1) { |
5170 | { | |
5171 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
5172 | if (PyErr_Occurred()) SWIG_fail; | |
5173 | } | |
5174 | } | |
5175 | if (obj2) { | |
5176 | { | |
5177 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
5178 | if (PyErr_Occurred()) SWIG_fail; | |
5179 | } | |
5180 | } | |
d14a1e28 RD |
5181 | { |
5182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5183 | wxPoint2D_Set(arg1,arg2,arg3); | |
5184 | ||
5185 | wxPyEndAllowThreads(__tstate); | |
5186 | if (PyErr_Occurred()) SWIG_fail; | |
5187 | } | |
5188 | Py_INCREF(Py_None); resultobj = Py_None; | |
5189 | return resultobj; | |
5190 | fail: | |
5191 | return NULL; | |
5192 | } | |
5193 | ||
5194 | ||
e811c8ce | 5195 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5196 | PyObject *resultobj; |
5197 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5198 | PyObject *result; | |
5199 | PyObject * obj0 = 0 ; | |
5200 | char *kwnames[] = { | |
5201 | (char *) "self", NULL | |
5202 | }; | |
5203 | ||
e811c8ce | 5204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
5205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5206 | { | |
5207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5208 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
5209 | |
5210 | wxPyEndAllowThreads(__tstate); | |
5211 | if (PyErr_Occurred()) SWIG_fail; | |
5212 | } | |
5213 | resultobj = result; | |
5214 | return resultobj; | |
5215 | fail: | |
5216 | return NULL; | |
5217 | } | |
5218 | ||
5219 | ||
5220 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5221 | PyObject *obj; | |
5222 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5223 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5224 | Py_INCREF(obj); | |
5225 | return Py_BuildValue((char *)""); | |
5226 | } | |
5227 | static int _wrap_DefaultPosition_set(PyObject *_val) { | |
5228 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); | |
5229 | return 1; | |
5230 | } | |
5231 | ||
5232 | ||
5233 | static PyObject *_wrap_DefaultPosition_get() { | |
5234 | PyObject *pyobj; | |
5235 | ||
5236 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultPosition, SWIGTYPE_p_wxPoint, 0); | |
5237 | return pyobj; | |
5238 | } | |
5239 | ||
5240 | ||
5241 | static int _wrap_DefaultSize_set(PyObject *_val) { | |
5242 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); | |
5243 | return 1; | |
5244 | } | |
5245 | ||
5246 | ||
5247 | static PyObject *_wrap_DefaultSize_get() { | |
5248 | PyObject *pyobj; | |
5249 | ||
5250 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSize, SWIGTYPE_p_wxSize, 0); | |
5251 | return pyobj; | |
5252 | } | |
5253 | ||
5254 | ||
5255 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5256 | PyObject *resultobj; | |
5257 | PyObject *arg1 = (PyObject *) 0 ; | |
5258 | wxPyInputStream *result; | |
5259 | PyObject * obj0 = 0 ; | |
5260 | char *kwnames[] = { | |
5261 | (char *) "p", NULL | |
5262 | }; | |
5263 | ||
5264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5265 | arg1 = obj0; | |
5266 | { | |
5267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5268 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5269 | ||
5270 | wxPyEndAllowThreads(__tstate); | |
5271 | if (PyErr_Occurred()) SWIG_fail; | |
5272 | } | |
5273 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyInputStream, 1); | |
5274 | return resultobj; | |
5275 | fail: | |
5276 | return NULL; | |
5277 | } | |
5278 | ||
5279 | ||
5280 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5281 | PyObject *resultobj; | |
5282 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5283 | PyObject * obj0 = 0 ; | |
5284 | char *kwnames[] = { | |
5285 | (char *) "self", NULL | |
5286 | }; | |
5287 | ||
5288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
5289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5290 | { | |
5291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5292 | (arg1)->close(); | |
5293 | ||
5294 | wxPyEndAllowThreads(__tstate); | |
5295 | if (PyErr_Occurred()) SWIG_fail; | |
5296 | } | |
5297 | Py_INCREF(Py_None); resultobj = Py_None; | |
5298 | return resultobj; | |
5299 | fail: | |
5300 | return NULL; | |
5301 | } | |
5302 | ||
5303 | ||
5304 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5305 | PyObject *resultobj; | |
5306 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5307 | PyObject * obj0 = 0 ; | |
5308 | char *kwnames[] = { | |
5309 | (char *) "self", NULL | |
5310 | }; | |
5311 | ||
5312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
5313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5314 | { | |
5315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5316 | (arg1)->flush(); | |
5317 | ||
5318 | wxPyEndAllowThreads(__tstate); | |
5319 | if (PyErr_Occurred()) SWIG_fail; | |
5320 | } | |
5321 | Py_INCREF(Py_None); resultobj = Py_None; | |
5322 | return resultobj; | |
5323 | fail: | |
5324 | return NULL; | |
5325 | } | |
5326 | ||
5327 | ||
5328 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5329 | PyObject *resultobj; | |
5330 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5331 | bool result; | |
5332 | PyObject * obj0 = 0 ; | |
5333 | char *kwnames[] = { | |
5334 | (char *) "self", NULL | |
5335 | }; | |
5336 | ||
5337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
5338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5339 | { | |
5340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5341 | result = (bool)(arg1)->eof(); | |
5342 | ||
5343 | wxPyEndAllowThreads(__tstate); | |
5344 | if (PyErr_Occurred()) SWIG_fail; | |
5345 | } | |
4d5c3d91 | 5346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5347 | return resultobj; |
5348 | fail: | |
5349 | return NULL; | |
5350 | } | |
5351 | ||
5352 | ||
5353 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5354 | PyObject *resultobj; | |
5355 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5356 | int arg2 = (int) -1 ; | |
5357 | PyObject *result; | |
5358 | PyObject * obj0 = 0 ; | |
994141e6 | 5359 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5360 | char *kwnames[] = { |
5361 | (char *) "self",(char *) "size", NULL | |
5362 | }; | |
5363 | ||
994141e6 | 5364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5366 | if (obj1) { |
5367 | { | |
5368 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5369 | if (PyErr_Occurred()) SWIG_fail; | |
5370 | } | |
5371 | } | |
d14a1e28 RD |
5372 | { |
5373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5374 | result = (PyObject *)(arg1)->read(arg2); | |
5375 | ||
5376 | wxPyEndAllowThreads(__tstate); | |
5377 | if (PyErr_Occurred()) SWIG_fail; | |
5378 | } | |
5379 | resultobj = result; | |
5380 | return resultobj; | |
5381 | fail: | |
5382 | return NULL; | |
5383 | } | |
5384 | ||
5385 | ||
5386 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5387 | PyObject *resultobj; | |
5388 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5389 | int arg2 = (int) -1 ; | |
5390 | PyObject *result; | |
5391 | PyObject * obj0 = 0 ; | |
994141e6 | 5392 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5393 | char *kwnames[] = { |
5394 | (char *) "self",(char *) "size", NULL | |
5395 | }; | |
5396 | ||
994141e6 | 5397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5399 | if (obj1) { |
5400 | { | |
5401 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5402 | if (PyErr_Occurred()) SWIG_fail; | |
5403 | } | |
5404 | } | |
d14a1e28 RD |
5405 | { |
5406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5407 | result = (PyObject *)(arg1)->readline(arg2); | |
5408 | ||
5409 | wxPyEndAllowThreads(__tstate); | |
5410 | if (PyErr_Occurred()) SWIG_fail; | |
5411 | } | |
5412 | resultobj = result; | |
5413 | return resultobj; | |
5414 | fail: | |
5415 | return NULL; | |
5416 | } | |
5417 | ||
5418 | ||
5419 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5420 | PyObject *resultobj; | |
5421 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5422 | int arg2 = (int) -1 ; | |
5423 | PyObject *result; | |
5424 | PyObject * obj0 = 0 ; | |
994141e6 | 5425 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5426 | char *kwnames[] = { |
5427 | (char *) "self",(char *) "sizehint", NULL | |
5428 | }; | |
5429 | ||
994141e6 | 5430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5432 | if (obj1) { |
5433 | { | |
5434 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5435 | if (PyErr_Occurred()) SWIG_fail; | |
5436 | } | |
5437 | } | |
d14a1e28 RD |
5438 | { |
5439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5440 | result = (PyObject *)(arg1)->readlines(arg2); | |
5441 | ||
5442 | wxPyEndAllowThreads(__tstate); | |
5443 | if (PyErr_Occurred()) SWIG_fail; | |
5444 | } | |
5445 | resultobj = result; | |
5446 | return resultobj; | |
5447 | fail: | |
5448 | return NULL; | |
5449 | } | |
5450 | ||
5451 | ||
5452 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5453 | PyObject *resultobj; | |
5454 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5455 | int arg2 ; | |
5456 | int arg3 = (int) 0 ; | |
5457 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5458 | PyObject * obj1 = 0 ; |
5459 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5460 | char *kwnames[] = { |
5461 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5462 | }; | |
5463 | ||
994141e6 | 5464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5466 | { |
5467 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5468 | if (PyErr_Occurred()) SWIG_fail; | |
5469 | } | |
5470 | if (obj2) { | |
5471 | { | |
5472 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5473 | if (PyErr_Occurred()) SWIG_fail; | |
5474 | } | |
5475 | } | |
d14a1e28 RD |
5476 | { |
5477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5478 | (arg1)->seek(arg2,arg3); | |
5479 | ||
5480 | wxPyEndAllowThreads(__tstate); | |
5481 | if (PyErr_Occurred()) SWIG_fail; | |
5482 | } | |
5483 | Py_INCREF(Py_None); resultobj = Py_None; | |
5484 | return resultobj; | |
5485 | fail: | |
5486 | return NULL; | |
5487 | } | |
5488 | ||
5489 | ||
5490 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5491 | PyObject *resultobj; | |
5492 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5493 | int result; | |
5494 | PyObject * obj0 = 0 ; | |
5495 | char *kwnames[] = { | |
5496 | (char *) "self", NULL | |
5497 | }; | |
5498 | ||
5499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
5500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5501 | { | |
5502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5503 | result = (int)(arg1)->tell(); | |
5504 | ||
5505 | wxPyEndAllowThreads(__tstate); | |
5506 | if (PyErr_Occurred()) SWIG_fail; | |
5507 | } | |
994141e6 | 5508 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5509 | return resultobj; |
5510 | fail: | |
5511 | return NULL; | |
5512 | } | |
5513 | ||
5514 | ||
5515 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5516 | PyObject *resultobj; | |
5517 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5518 | char result; | |
5519 | PyObject * obj0 = 0 ; | |
5520 | char *kwnames[] = { | |
5521 | (char *) "self", NULL | |
5522 | }; | |
5523 | ||
5524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
5525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5526 | { | |
5527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5528 | result = (char)(arg1)->Peek(); | |
5529 | ||
5530 | wxPyEndAllowThreads(__tstate); | |
5531 | if (PyErr_Occurred()) SWIG_fail; | |
5532 | } | |
994141e6 | 5533 | resultobj = SWIG_PyObj_FromChar((char)result); |
d14a1e28 RD |
5534 | return resultobj; |
5535 | fail: | |
5536 | return NULL; | |
5537 | } | |
5538 | ||
5539 | ||
5540 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5541 | PyObject *resultobj; | |
5542 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5543 | char result; | |
5544 | PyObject * obj0 = 0 ; | |
5545 | char *kwnames[] = { | |
5546 | (char *) "self", NULL | |
5547 | }; | |
5548 | ||
5549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
5550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5551 | { | |
5552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5553 | result = (char)(arg1)->GetC(); | |
5554 | ||
5555 | wxPyEndAllowThreads(__tstate); | |
5556 | if (PyErr_Occurred()) SWIG_fail; | |
5557 | } | |
994141e6 | 5558 | resultobj = SWIG_PyObj_FromChar((char)result); |
d14a1e28 RD |
5559 | return resultobj; |
5560 | fail: | |
5561 | return NULL; | |
5562 | } | |
5563 | ||
5564 | ||
5565 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5566 | PyObject *resultobj; | |
5567 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5568 | size_t result; | |
5569 | PyObject * obj0 = 0 ; | |
5570 | char *kwnames[] = { | |
5571 | (char *) "self", NULL | |
5572 | }; | |
5573 | ||
5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
5575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5576 | { | |
5577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5578 | result = (size_t)(arg1)->LastRead(); | |
5579 | ||
5580 | wxPyEndAllowThreads(__tstate); | |
5581 | if (PyErr_Occurred()) SWIG_fail; | |
5582 | } | |
994141e6 | 5583 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
5584 | return resultobj; |
5585 | fail: | |
5586 | return NULL; | |
5587 | } | |
5588 | ||
5589 | ||
5590 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5591 | PyObject *resultobj; | |
5592 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5593 | bool result; | |
5594 | PyObject * obj0 = 0 ; | |
5595 | char *kwnames[] = { | |
5596 | (char *) "self", NULL | |
5597 | }; | |
5598 | ||
5599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
5600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5601 | { | |
5602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5603 | result = (bool)(arg1)->CanRead(); | |
5604 | ||
5605 | wxPyEndAllowThreads(__tstate); | |
5606 | if (PyErr_Occurred()) SWIG_fail; | |
5607 | } | |
4d5c3d91 | 5608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5609 | return resultobj; |
5610 | fail: | |
5611 | return NULL; | |
5612 | } | |
5613 | ||
5614 | ||
5615 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5616 | PyObject *resultobj; | |
5617 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5618 | bool result; | |
5619 | PyObject * obj0 = 0 ; | |
5620 | char *kwnames[] = { | |
5621 | (char *) "self", NULL | |
5622 | }; | |
5623 | ||
5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
5625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5626 | { | |
5627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5628 | result = (bool)(arg1)->Eof(); | |
5629 | ||
5630 | wxPyEndAllowThreads(__tstate); | |
5631 | if (PyErr_Occurred()) SWIG_fail; | |
5632 | } | |
4d5c3d91 | 5633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5634 | return resultobj; |
5635 | fail: | |
5636 | return NULL; | |
5637 | } | |
5638 | ||
5639 | ||
5640 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5641 | PyObject *resultobj; | |
5642 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5643 | char arg2 ; | |
5644 | bool result; | |
5645 | PyObject * obj0 = 0 ; | |
994141e6 | 5646 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5647 | char *kwnames[] = { |
5648 | (char *) "self",(char *) "c", NULL | |
5649 | }; | |
5650 | ||
994141e6 | 5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5653 | { |
5654 | arg2 = (char) SWIG_PyObj_AsChar(obj1); | |
5655 | if (PyErr_Occurred()) SWIG_fail; | |
5656 | } | |
d14a1e28 RD |
5657 | { |
5658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5659 | result = (bool)(arg1)->Ungetch(arg2); | |
5660 | ||
5661 | wxPyEndAllowThreads(__tstate); | |
5662 | if (PyErr_Occurred()) SWIG_fail; | |
5663 | } | |
4d5c3d91 | 5664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5665 | return resultobj; |
5666 | fail: | |
5667 | return NULL; | |
5668 | } | |
5669 | ||
5670 | ||
5671 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5672 | PyObject *resultobj; | |
5673 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5674 | long arg2 ; | |
5675 | int arg3 = (int) wxFromStart ; | |
5676 | long result; | |
5677 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5678 | PyObject * obj1 = 0 ; |
5679 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5680 | char *kwnames[] = { |
5681 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
5682 | }; | |
5683 | ||
994141e6 | 5684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5686 | { |
5687 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
5688 | if (PyErr_Occurred()) SWIG_fail; | |
5689 | } | |
5690 | if (obj2) { | |
5691 | { | |
5692 | arg3 = (wxSeekMode) SWIG_PyObj_AsInt(obj2); | |
5693 | if (PyErr_Occurred()) SWIG_fail; | |
5694 | } | |
5695 | } | |
d14a1e28 RD |
5696 | { |
5697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5698 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
5699 | ||
5700 | wxPyEndAllowThreads(__tstate); | |
5701 | if (PyErr_Occurred()) SWIG_fail; | |
5702 | } | |
994141e6 | 5703 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
5704 | return resultobj; |
5705 | fail: | |
5706 | return NULL; | |
5707 | } | |
5708 | ||
5709 | ||
5710 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5711 | PyObject *resultobj; | |
5712 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5713 | long result; | |
5714 | PyObject * obj0 = 0 ; | |
5715 | char *kwnames[] = { | |
5716 | (char *) "self", NULL | |
5717 | }; | |
5718 | ||
5719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
5720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5721 | { | |
5722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5723 | result = (long)(arg1)->TellI(); | |
5724 | ||
5725 | wxPyEndAllowThreads(__tstate); | |
5726 | if (PyErr_Occurred()) SWIG_fail; | |
5727 | } | |
994141e6 | 5728 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
5729 | return resultobj; |
5730 | fail: | |
5731 | return NULL; | |
5732 | } | |
5733 | ||
5734 | ||
5735 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
5736 | PyObject *obj; | |
5737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5738 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
5739 | Py_INCREF(obj); | |
5740 | return Py_BuildValue((char *)""); | |
5741 | } | |
5742 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5743 | PyObject *resultobj; | |
5744 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
5745 | PyObject *arg2 = (PyObject *) 0 ; | |
5746 | PyObject * obj0 = 0 ; | |
5747 | PyObject * obj1 = 0 ; | |
5748 | char *kwnames[] = { | |
5749 | (char *) "self",(char *) "obj", NULL | |
5750 | }; | |
5751 | ||
5752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
5753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxOutputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5754 | arg2 = obj1; | |
5755 | { | |
5756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5757 | wxOutputStream_write(arg1,arg2); | |
5758 | ||
5759 | wxPyEndAllowThreads(__tstate); | |
5760 | if (PyErr_Occurred()) SWIG_fail; | |
5761 | } | |
5762 | Py_INCREF(Py_None); resultobj = Py_None; | |
5763 | return resultobj; | |
5764 | fail: | |
5765 | return NULL; | |
5766 | } | |
5767 | ||
5768 | ||
5769 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
5770 | PyObject *obj; | |
5771 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5772 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
5773 | Py_INCREF(obj); | |
5774 | return Py_BuildValue((char *)""); | |
5775 | } | |
5776 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5777 | PyObject *resultobj; | |
5778 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
5779 | wxString *arg2 = 0 ; | |
5780 | wxString *arg3 = 0 ; | |
5781 | wxString *arg4 = 0 ; | |
5782 | wxDateTime arg5 ; | |
5783 | wxFSFile *result; | |
5784 | wxPyInputStream *temp1 ; | |
5785 | bool created1 ; | |
e811c8ce RD |
5786 | bool temp2 = False ; |
5787 | bool temp3 = False ; | |
5788 | bool temp4 = False ; | |
d14a1e28 RD |
5789 | wxDateTime *argp5 ; |
5790 | PyObject * obj0 = 0 ; | |
5791 | PyObject * obj1 = 0 ; | |
5792 | PyObject * obj2 = 0 ; | |
5793 | PyObject * obj3 = 0 ; | |
5794 | PyObject * obj4 = 0 ; | |
5795 | char *kwnames[] = { | |
5796 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
5797 | }; | |
5798 | ||
5799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5800 | { | |
5801 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
5802 | arg1 = temp1->m_wxis; | |
e811c8ce | 5803 | created1 = False; |
d14a1e28 RD |
5804 | } else { |
5805 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 5806 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
5807 | if (arg1 == NULL) { |
5808 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
5809 | SWIG_fail; | |
5810 | } | |
e811c8ce | 5811 | created1 = True; |
d14a1e28 RD |
5812 | } |
5813 | } | |
5814 | { | |
5815 | arg2 = wxString_in_helper(obj1); | |
5816 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5817 | temp2 = True; |
d14a1e28 RD |
5818 | } |
5819 | { | |
5820 | arg3 = wxString_in_helper(obj2); | |
5821 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 5822 | temp3 = True; |
d14a1e28 RD |
5823 | } |
5824 | { | |
5825 | arg4 = wxString_in_helper(obj3); | |
5826 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 5827 | temp4 = True; |
d14a1e28 RD |
5828 | } |
5829 | if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
5830 | arg5 = *argp5; | |
5831 | { | |
5832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5833 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
5834 | ||
5835 | wxPyEndAllowThreads(__tstate); | |
5836 | if (PyErr_Occurred()) SWIG_fail; | |
5837 | } | |
5838 | { | |
5839 | resultobj = wxPyMake_wxObject(result); | |
5840 | } | |
5841 | { | |
5842 | if (created1) | |
5843 | delete arg1; | |
5844 | } | |
5845 | { | |
5846 | if (temp2) | |
5847 | delete arg2; | |
5848 | } | |
5849 | { | |
5850 | if (temp3) | |
5851 | delete arg3; | |
5852 | } | |
5853 | { | |
5854 | if (temp4) | |
5855 | delete arg4; | |
5856 | } | |
5857 | return resultobj; | |
5858 | fail: | |
5859 | { | |
5860 | if (created1) | |
5861 | delete arg1; | |
5862 | } | |
5863 | { | |
5864 | if (temp2) | |
5865 | delete arg2; | |
5866 | } | |
5867 | { | |
5868 | if (temp3) | |
5869 | delete arg3; | |
5870 | } | |
5871 | { | |
5872 | if (temp4) | |
5873 | delete arg4; | |
5874 | } | |
5875 | return NULL; | |
5876 | } | |
5877 | ||
5878 | ||
5879 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5880 | PyObject *resultobj; | |
5881 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5882 | PyObject * obj0 = 0 ; | |
5883 | char *kwnames[] = { | |
5884 | (char *) "self", NULL | |
5885 | }; | |
5886 | ||
5887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
5888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5889 | { | |
5890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5891 | delete arg1; | |
5892 | ||
5893 | wxPyEndAllowThreads(__tstate); | |
5894 | if (PyErr_Occurred()) SWIG_fail; | |
5895 | } | |
5896 | Py_INCREF(Py_None); resultobj = Py_None; | |
5897 | return resultobj; | |
5898 | fail: | |
5899 | return NULL; | |
5900 | } | |
5901 | ||
5902 | ||
5903 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5904 | PyObject *resultobj; | |
5905 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5906 | wxInputStream *result; | |
5907 | PyObject * obj0 = 0 ; | |
5908 | char *kwnames[] = { | |
5909 | (char *) "self", NULL | |
5910 | }; | |
5911 | ||
5912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
5913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5914 | { | |
5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5916 | result = (wxInputStream *)(arg1)->GetStream(); | |
5917 | ||
5918 | wxPyEndAllowThreads(__tstate); | |
5919 | if (PyErr_Occurred()) SWIG_fail; | |
5920 | } | |
5921 | { | |
5922 | wxPyInputStream * _ptr = NULL; | |
5923 | ||
5924 | if (result) { | |
5925 | _ptr = new wxPyInputStream(result); | |
5926 | } | |
e811c8ce | 5927 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
5928 | } |
5929 | return resultobj; | |
5930 | fail: | |
5931 | return NULL; | |
5932 | } | |
5933 | ||
5934 | ||
5935 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5936 | PyObject *resultobj; | |
5937 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5938 | wxString *result; | |
5939 | PyObject * obj0 = 0 ; | |
5940 | char *kwnames[] = { | |
5941 | (char *) "self", NULL | |
5942 | }; | |
5943 | ||
5944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
5945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5946 | { | |
5947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5948 | { | |
5949 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
5950 | result = (wxString *) &_result_ref; | |
5951 | } | |
5952 | ||
5953 | wxPyEndAllowThreads(__tstate); | |
5954 | if (PyErr_Occurred()) SWIG_fail; | |
5955 | } | |
cc6dd355 RD |
5956 | { |
5957 | #if wxUSE_UNICODE | |
5958 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5959 | #else | |
5960 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5961 | #endif | |
5962 | } | |
d14a1e28 RD |
5963 | return resultobj; |
5964 | fail: | |
5965 | return NULL; | |
5966 | } | |
5967 | ||
5968 | ||
5969 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5970 | PyObject *resultobj; | |
5971 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5972 | wxString *result; | |
5973 | PyObject * obj0 = 0 ; | |
5974 | char *kwnames[] = { | |
5975 | (char *) "self", NULL | |
5976 | }; | |
5977 | ||
5978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
5979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5980 | { | |
5981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5982 | { | |
5983 | wxString const &_result_ref = (arg1)->GetLocation(); | |
5984 | result = (wxString *) &_result_ref; | |
5985 | } | |
5986 | ||
5987 | wxPyEndAllowThreads(__tstate); | |
5988 | if (PyErr_Occurred()) SWIG_fail; | |
5989 | } | |
cc6dd355 RD |
5990 | { |
5991 | #if wxUSE_UNICODE | |
5992 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5993 | #else | |
5994 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5995 | #endif | |
5996 | } | |
d14a1e28 RD |
5997 | return resultobj; |
5998 | fail: | |
5999 | return NULL; | |
6000 | } | |
6001 | ||
6002 | ||
6003 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6004 | PyObject *resultobj; | |
6005 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6006 | wxString *result; | |
6007 | PyObject * obj0 = 0 ; | |
6008 | char *kwnames[] = { | |
6009 | (char *) "self", NULL | |
6010 | }; | |
6011 | ||
6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
6013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6014 | { | |
6015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6016 | { | |
6017 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6018 | result = (wxString *) &_result_ref; | |
6019 | } | |
6020 | ||
6021 | wxPyEndAllowThreads(__tstate); | |
6022 | if (PyErr_Occurred()) SWIG_fail; | |
6023 | } | |
cc6dd355 RD |
6024 | { |
6025 | #if wxUSE_UNICODE | |
6026 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6027 | #else | |
6028 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6029 | #endif | |
6030 | } | |
d14a1e28 RD |
6031 | return resultobj; |
6032 | fail: | |
6033 | return NULL; | |
6034 | } | |
6035 | ||
6036 | ||
6037 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6038 | PyObject *resultobj; | |
6039 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6040 | wxDateTime result; | |
6041 | PyObject * obj0 = 0 ; | |
6042 | char *kwnames[] = { | |
6043 | (char *) "self", NULL | |
6044 | }; | |
6045 | ||
6046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
6047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6048 | { | |
6049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6050 | result = (arg1)->GetModificationTime(); | |
6051 | ||
6052 | wxPyEndAllowThreads(__tstate); | |
6053 | if (PyErr_Occurred()) SWIG_fail; | |
6054 | } | |
6055 | { | |
6056 | wxDateTime * resultptr; | |
6057 | resultptr = new wxDateTime((wxDateTime &) result); | |
6058 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
6059 | } | |
6060 | return resultobj; | |
6061 | fail: | |
6062 | return NULL; | |
6063 | } | |
6064 | ||
6065 | ||
6066 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6067 | PyObject *obj; | |
6068 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6069 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6070 | Py_INCREF(obj); | |
6071 | return Py_BuildValue((char *)""); | |
6072 | } | |
6073 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6074 | PyObject *obj; | |
6075 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6076 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6077 | Py_INCREF(obj); | |
6078 | return Py_BuildValue((char *)""); | |
6079 | } | |
6080 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6081 | PyObject *resultobj; | |
6082 | wxPyFileSystemHandler *result; | |
6083 | char *kwnames[] = { | |
6084 | NULL | |
6085 | }; | |
6086 | ||
6087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6088 | { | |
6089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6090 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6091 | ||
6092 | wxPyEndAllowThreads(__tstate); | |
6093 | if (PyErr_Occurred()) SWIG_fail; | |
6094 | } | |
6095 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
6096 | return resultobj; | |
6097 | fail: | |
6098 | return NULL; | |
6099 | } | |
6100 | ||
6101 | ||
6102 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6103 | PyObject *resultobj; | |
6104 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6105 | PyObject *arg2 = (PyObject *) 0 ; | |
6106 | PyObject *arg3 = (PyObject *) 0 ; | |
6107 | PyObject * obj0 = 0 ; | |
6108 | PyObject * obj1 = 0 ; | |
6109 | PyObject * obj2 = 0 ; | |
6110 | char *kwnames[] = { | |
6111 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6112 | }; | |
6113 | ||
6114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6116 | arg2 = obj1; | |
6117 | arg3 = obj2; | |
6118 | { | |
6119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6120 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6121 | ||
6122 | wxPyEndAllowThreads(__tstate); | |
6123 | if (PyErr_Occurred()) SWIG_fail; | |
6124 | } | |
6125 | Py_INCREF(Py_None); resultobj = Py_None; | |
6126 | return resultobj; | |
6127 | fail: | |
6128 | return NULL; | |
6129 | } | |
6130 | ||
6131 | ||
6132 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6133 | PyObject *resultobj; | |
6134 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6135 | wxString *arg2 = 0 ; | |
6136 | bool result; | |
e811c8ce | 6137 | bool temp2 = False ; |
d14a1e28 RD |
6138 | PyObject * obj0 = 0 ; |
6139 | PyObject * obj1 = 0 ; | |
6140 | char *kwnames[] = { | |
6141 | (char *) "self",(char *) "location", NULL | |
6142 | }; | |
6143 | ||
6144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6146 | { | |
6147 | arg2 = wxString_in_helper(obj1); | |
6148 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6149 | temp2 = True; |
d14a1e28 RD |
6150 | } |
6151 | { | |
6152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6153 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6154 | ||
6155 | wxPyEndAllowThreads(__tstate); | |
6156 | if (PyErr_Occurred()) SWIG_fail; | |
6157 | } | |
4d5c3d91 | 6158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6159 | { |
6160 | if (temp2) | |
6161 | delete arg2; | |
6162 | } | |
6163 | return resultobj; | |
6164 | fail: | |
6165 | { | |
6166 | if (temp2) | |
6167 | delete arg2; | |
6168 | } | |
6169 | return NULL; | |
6170 | } | |
6171 | ||
6172 | ||
6173 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6174 | PyObject *resultobj; | |
6175 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6176 | wxFileSystem *arg2 = 0 ; | |
6177 | wxString *arg3 = 0 ; | |
6178 | wxFSFile *result; | |
e811c8ce | 6179 | bool temp3 = False ; |
d14a1e28 RD |
6180 | PyObject * obj0 = 0 ; |
6181 | PyObject * obj1 = 0 ; | |
6182 | PyObject * obj2 = 0 ; | |
6183 | char *kwnames[] = { | |
6184 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6185 | }; | |
6186 | ||
6187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6189 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6190 | if (arg2 == NULL) { | |
6191 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6192 | } | |
6193 | { | |
6194 | arg3 = wxString_in_helper(obj2); | |
6195 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6196 | temp3 = True; |
d14a1e28 RD |
6197 | } |
6198 | { | |
6199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6200 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6201 | ||
6202 | wxPyEndAllowThreads(__tstate); | |
6203 | if (PyErr_Occurred()) SWIG_fail; | |
6204 | } | |
6205 | { | |
6206 | resultobj = wxPyMake_wxObject(result); | |
6207 | } | |
6208 | { | |
6209 | if (temp3) | |
6210 | delete arg3; | |
6211 | } | |
6212 | return resultobj; | |
6213 | fail: | |
6214 | { | |
6215 | if (temp3) | |
6216 | delete arg3; | |
6217 | } | |
6218 | return NULL; | |
6219 | } | |
6220 | ||
6221 | ||
6222 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6223 | PyObject *resultobj; | |
6224 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6225 | wxString *arg2 = 0 ; | |
6226 | int arg3 = (int) 0 ; | |
6227 | wxString result; | |
e811c8ce | 6228 | bool temp2 = False ; |
d14a1e28 RD |
6229 | PyObject * obj0 = 0 ; |
6230 | PyObject * obj1 = 0 ; | |
994141e6 | 6231 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6232 | char *kwnames[] = { |
6233 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6234 | }; | |
6235 | ||
994141e6 | 6236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6238 | { | |
6239 | arg2 = wxString_in_helper(obj1); | |
6240 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6241 | temp2 = True; |
d14a1e28 | 6242 | } |
994141e6 RD |
6243 | if (obj2) { |
6244 | { | |
6245 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6246 | if (PyErr_Occurred()) SWIG_fail; | |
6247 | } | |
6248 | } | |
d14a1e28 RD |
6249 | { |
6250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6251 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6252 | ||
6253 | wxPyEndAllowThreads(__tstate); | |
6254 | if (PyErr_Occurred()) SWIG_fail; | |
6255 | } | |
6256 | { | |
6257 | #if wxUSE_UNICODE | |
6258 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6259 | #else | |
6260 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6261 | #endif | |
6262 | } | |
6263 | { | |
6264 | if (temp2) | |
6265 | delete arg2; | |
6266 | } | |
6267 | return resultobj; | |
6268 | fail: | |
6269 | { | |
6270 | if (temp2) | |
6271 | delete arg2; | |
6272 | } | |
6273 | return NULL; | |
6274 | } | |
6275 | ||
6276 | ||
6277 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6278 | PyObject *resultobj; | |
6279 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6280 | wxString result; | |
6281 | PyObject * obj0 = 0 ; | |
6282 | char *kwnames[] = { | |
6283 | (char *) "self", NULL | |
6284 | }; | |
6285 | ||
6286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
6287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6288 | { | |
6289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6290 | result = (arg1)->FindNext(); | |
6291 | ||
6292 | wxPyEndAllowThreads(__tstate); | |
6293 | if (PyErr_Occurred()) SWIG_fail; | |
6294 | } | |
6295 | { | |
6296 | #if wxUSE_UNICODE | |
6297 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6298 | #else | |
6299 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6300 | #endif | |
6301 | } | |
6302 | return resultobj; | |
6303 | fail: | |
6304 | return NULL; | |
6305 | } | |
6306 | ||
6307 | ||
6308 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6309 | PyObject *resultobj; | |
6310 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6311 | wxString *arg2 = 0 ; | |
6312 | wxString result; | |
e811c8ce | 6313 | bool temp2 = False ; |
d14a1e28 RD |
6314 | PyObject * obj0 = 0 ; |
6315 | PyObject * obj1 = 0 ; | |
6316 | char *kwnames[] = { | |
6317 | (char *) "self",(char *) "location", NULL | |
6318 | }; | |
6319 | ||
6320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
6321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6322 | { | |
6323 | arg2 = wxString_in_helper(obj1); | |
6324 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6325 | temp2 = True; |
d14a1e28 RD |
6326 | } |
6327 | { | |
6328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6329 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6330 | ||
6331 | wxPyEndAllowThreads(__tstate); | |
6332 | if (PyErr_Occurred()) SWIG_fail; | |
6333 | } | |
6334 | { | |
6335 | #if wxUSE_UNICODE | |
6336 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6337 | #else | |
6338 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6339 | #endif | |
6340 | } | |
6341 | { | |
6342 | if (temp2) | |
6343 | delete arg2; | |
6344 | } | |
6345 | return resultobj; | |
6346 | fail: | |
6347 | { | |
6348 | if (temp2) | |
6349 | delete arg2; | |
6350 | } | |
6351 | return NULL; | |
6352 | } | |
6353 | ||
6354 | ||
6355 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6356 | PyObject *resultobj; | |
6357 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6358 | wxString *arg2 = 0 ; | |
6359 | wxString result; | |
e811c8ce | 6360 | bool temp2 = False ; |
d14a1e28 RD |
6361 | PyObject * obj0 = 0 ; |
6362 | PyObject * obj1 = 0 ; | |
6363 | char *kwnames[] = { | |
6364 | (char *) "self",(char *) "location", NULL | |
6365 | }; | |
6366 | ||
6367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
6368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6369 | { | |
6370 | arg2 = wxString_in_helper(obj1); | |
6371 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6372 | temp2 = True; |
d14a1e28 RD |
6373 | } |
6374 | { | |
6375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6376 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6377 | ||
6378 | wxPyEndAllowThreads(__tstate); | |
6379 | if (PyErr_Occurred()) SWIG_fail; | |
6380 | } | |
6381 | { | |
6382 | #if wxUSE_UNICODE | |
6383 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6384 | #else | |
6385 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6386 | #endif | |
6387 | } | |
6388 | { | |
6389 | if (temp2) | |
6390 | delete arg2; | |
6391 | } | |
6392 | return resultobj; | |
6393 | fail: | |
6394 | { | |
6395 | if (temp2) | |
6396 | delete arg2; | |
6397 | } | |
6398 | return NULL; | |
6399 | } | |
6400 | ||
6401 | ||
6402 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6403 | PyObject *resultobj; | |
6404 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6405 | wxString *arg2 = 0 ; | |
6406 | wxString result; | |
e811c8ce | 6407 | bool temp2 = False ; |
d14a1e28 RD |
6408 | PyObject * obj0 = 0 ; |
6409 | PyObject * obj1 = 0 ; | |
6410 | char *kwnames[] = { | |
6411 | (char *) "self",(char *) "location", NULL | |
6412 | }; | |
6413 | ||
6414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
6415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6416 | { | |
6417 | arg2 = wxString_in_helper(obj1); | |
6418 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6419 | temp2 = True; |
d14a1e28 RD |
6420 | } |
6421 | { | |
6422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6423 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6424 | ||
6425 | wxPyEndAllowThreads(__tstate); | |
6426 | if (PyErr_Occurred()) SWIG_fail; | |
6427 | } | |
6428 | { | |
6429 | #if wxUSE_UNICODE | |
6430 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6431 | #else | |
6432 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6433 | #endif | |
6434 | } | |
6435 | { | |
6436 | if (temp2) | |
6437 | delete arg2; | |
6438 | } | |
6439 | return resultobj; | |
6440 | fail: | |
6441 | { | |
6442 | if (temp2) | |
6443 | delete arg2; | |
6444 | } | |
6445 | return NULL; | |
6446 | } | |
6447 | ||
6448 | ||
6449 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6450 | PyObject *resultobj; | |
6451 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6452 | wxString *arg2 = 0 ; | |
6453 | wxString result; | |
e811c8ce | 6454 | bool temp2 = False ; |
d14a1e28 RD |
6455 | PyObject * obj0 = 0 ; |
6456 | PyObject * obj1 = 0 ; | |
6457 | char *kwnames[] = { | |
6458 | (char *) "self",(char *) "location", NULL | |
6459 | }; | |
6460 | ||
6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
6462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6463 | { | |
6464 | arg2 = wxString_in_helper(obj1); | |
6465 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6466 | temp2 = True; |
d14a1e28 RD |
6467 | } |
6468 | { | |
6469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6470 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6471 | ||
6472 | wxPyEndAllowThreads(__tstate); | |
6473 | if (PyErr_Occurred()) SWIG_fail; | |
6474 | } | |
6475 | { | |
6476 | #if wxUSE_UNICODE | |
6477 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6478 | #else | |
6479 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6480 | #endif | |
6481 | } | |
6482 | { | |
6483 | if (temp2) | |
6484 | delete arg2; | |
6485 | } | |
6486 | return resultobj; | |
6487 | fail: | |
6488 | { | |
6489 | if (temp2) | |
6490 | delete arg2; | |
6491 | } | |
6492 | return NULL; | |
6493 | } | |
6494 | ||
6495 | ||
6496 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6497 | PyObject *resultobj; | |
6498 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6499 | wxString *arg2 = 0 ; | |
6500 | wxString result; | |
e811c8ce | 6501 | bool temp2 = False ; |
d14a1e28 RD |
6502 | PyObject * obj0 = 0 ; |
6503 | PyObject * obj1 = 0 ; | |
6504 | char *kwnames[] = { | |
6505 | (char *) "self",(char *) "location", NULL | |
6506 | }; | |
6507 | ||
6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
6509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6510 | { | |
6511 | arg2 = wxString_in_helper(obj1); | |
6512 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6513 | temp2 = True; |
d14a1e28 RD |
6514 | } |
6515 | { | |
6516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6517 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6518 | ||
6519 | wxPyEndAllowThreads(__tstate); | |
6520 | if (PyErr_Occurred()) SWIG_fail; | |
6521 | } | |
6522 | { | |
6523 | #if wxUSE_UNICODE | |
6524 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6525 | #else | |
6526 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6527 | #endif | |
6528 | } | |
6529 | { | |
6530 | if (temp2) | |
6531 | delete arg2; | |
6532 | } | |
6533 | return resultobj; | |
6534 | fail: | |
6535 | { | |
6536 | if (temp2) | |
6537 | delete arg2; | |
6538 | } | |
6539 | return NULL; | |
6540 | } | |
6541 | ||
6542 | ||
6543 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6544 | PyObject *obj; | |
6545 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6546 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
6547 | Py_INCREF(obj); | |
6548 | return Py_BuildValue((char *)""); | |
6549 | } | |
6550 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6551 | PyObject *resultobj; | |
6552 | wxFileSystem *result; | |
6553 | char *kwnames[] = { | |
6554 | NULL | |
6555 | }; | |
6556 | ||
6557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6558 | { | |
6559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6560 | result = (wxFileSystem *)new wxFileSystem(); | |
6561 | ||
6562 | wxPyEndAllowThreads(__tstate); | |
6563 | if (PyErr_Occurred()) SWIG_fail; | |
6564 | } | |
6565 | { | |
6566 | resultobj = wxPyMake_wxObject(result); | |
6567 | } | |
6568 | return resultobj; | |
6569 | fail: | |
6570 | return NULL; | |
6571 | } | |
6572 | ||
6573 | ||
6574 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6575 | PyObject *resultobj; | |
6576 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6577 | PyObject * obj0 = 0 ; | |
6578 | char *kwnames[] = { | |
6579 | (char *) "self", NULL | |
6580 | }; | |
6581 | ||
6582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
6583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6584 | { | |
6585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6586 | delete arg1; | |
6587 | ||
6588 | wxPyEndAllowThreads(__tstate); | |
6589 | if (PyErr_Occurred()) SWIG_fail; | |
6590 | } | |
6591 | Py_INCREF(Py_None); resultobj = Py_None; | |
6592 | return resultobj; | |
6593 | fail: | |
6594 | return NULL; | |
6595 | } | |
6596 | ||
6597 | ||
6598 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6599 | PyObject *resultobj; | |
6600 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6601 | wxString *arg2 = 0 ; | |
e811c8ce RD |
6602 | bool arg3 = (bool) False ; |
6603 | bool temp2 = False ; | |
d14a1e28 RD |
6604 | PyObject * obj0 = 0 ; |
6605 | PyObject * obj1 = 0 ; | |
6606 | PyObject * obj2 = 0 ; | |
6607 | char *kwnames[] = { | |
6608 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
6609 | }; | |
6610 | ||
6611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6613 | { | |
6614 | arg2 = wxString_in_helper(obj1); | |
6615 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6616 | temp2 = True; |
d14a1e28 RD |
6617 | } |
6618 | if (obj2) { | |
a41e16b6 | 6619 | { |
994141e6 | 6620 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
6621 | if (PyErr_Occurred()) SWIG_fail; |
6622 | } | |
d14a1e28 RD |
6623 | } |
6624 | { | |
6625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6626 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
6627 | ||
6628 | wxPyEndAllowThreads(__tstate); | |
6629 | if (PyErr_Occurred()) SWIG_fail; | |
6630 | } | |
6631 | Py_INCREF(Py_None); resultobj = Py_None; | |
6632 | { | |
6633 | if (temp2) | |
6634 | delete arg2; | |
6635 | } | |
6636 | return resultobj; | |
6637 | fail: | |
6638 | { | |
6639 | if (temp2) | |
6640 | delete arg2; | |
6641 | } | |
6642 | return NULL; | |
6643 | } | |
6644 | ||
6645 | ||
6646 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6647 | PyObject *resultobj; | |
6648 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6649 | wxString result; | |
6650 | PyObject * obj0 = 0 ; | |
6651 | char *kwnames[] = { | |
6652 | (char *) "self", NULL | |
6653 | }; | |
6654 | ||
6655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
6656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6657 | { | |
6658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6659 | result = (arg1)->GetPath(); | |
6660 | ||
6661 | wxPyEndAllowThreads(__tstate); | |
6662 | if (PyErr_Occurred()) SWIG_fail; | |
6663 | } | |
6664 | { | |
6665 | #if wxUSE_UNICODE | |
6666 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6667 | #else | |
6668 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6669 | #endif | |
6670 | } | |
6671 | return resultobj; | |
6672 | fail: | |
6673 | return NULL; | |
6674 | } | |
6675 | ||
6676 | ||
6677 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6678 | PyObject *resultobj; | |
6679 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6680 | wxString *arg2 = 0 ; | |
6681 | wxFSFile *result; | |
e811c8ce | 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:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
6690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6691 | { | |
6692 | arg2 = wxString_in_helper(obj1); | |
6693 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6694 | temp2 = True; |
d14a1e28 RD |
6695 | } |
6696 | { | |
6697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6698 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
6699 | ||
6700 | wxPyEndAllowThreads(__tstate); | |
6701 | if (PyErr_Occurred()) SWIG_fail; | |
6702 | } | |
6703 | { | |
6704 | resultobj = wxPyMake_wxObject(result); | |
6705 | } | |
6706 | { | |
6707 | if (temp2) | |
6708 | delete arg2; | |
6709 | } | |
6710 | return resultobj; | |
6711 | fail: | |
6712 | { | |
6713 | if (temp2) | |
6714 | delete arg2; | |
6715 | } | |
6716 | return NULL; | |
6717 | } | |
6718 | ||
6719 | ||
6720 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6721 | PyObject *resultobj; | |
6722 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6723 | wxString *arg2 = 0 ; | |
6724 | int arg3 = (int) 0 ; | |
6725 | wxString result; | |
e811c8ce | 6726 | bool temp2 = False ; |
d14a1e28 RD |
6727 | PyObject * obj0 = 0 ; |
6728 | PyObject * obj1 = 0 ; | |
994141e6 | 6729 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6730 | char *kwnames[] = { |
6731 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6732 | }; | |
6733 | ||
994141e6 | 6734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6736 | { | |
6737 | arg2 = wxString_in_helper(obj1); | |
6738 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6739 | temp2 = True; |
d14a1e28 | 6740 | } |
994141e6 RD |
6741 | if (obj2) { |
6742 | { | |
6743 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6744 | if (PyErr_Occurred()) SWIG_fail; | |
6745 | } | |
6746 | } | |
d14a1e28 RD |
6747 | { |
6748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6749 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6750 | ||
6751 | wxPyEndAllowThreads(__tstate); | |
6752 | if (PyErr_Occurred()) SWIG_fail; | |
6753 | } | |
6754 | { | |
6755 | #if wxUSE_UNICODE | |
6756 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6757 | #else | |
6758 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6759 | #endif | |
6760 | } | |
6761 | { | |
6762 | if (temp2) | |
6763 | delete arg2; | |
6764 | } | |
6765 | return resultobj; | |
6766 | fail: | |
6767 | { | |
6768 | if (temp2) | |
6769 | delete arg2; | |
6770 | } | |
6771 | return NULL; | |
6772 | } | |
6773 | ||
6774 | ||
6775 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6776 | PyObject *resultobj; | |
6777 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6778 | wxString result; | |
6779 | PyObject * obj0 = 0 ; | |
6780 | char *kwnames[] = { | |
6781 | (char *) "self", NULL | |
6782 | }; | |
6783 | ||
6784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
6785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6786 | { | |
6787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6788 | result = (arg1)->FindNext(); | |
6789 | ||
6790 | wxPyEndAllowThreads(__tstate); | |
6791 | if (PyErr_Occurred()) SWIG_fail; | |
6792 | } | |
6793 | { | |
6794 | #if wxUSE_UNICODE | |
6795 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6796 | #else | |
6797 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6798 | #endif | |
6799 | } | |
6800 | return resultobj; | |
6801 | fail: | |
6802 | return NULL; | |
6803 | } | |
6804 | ||
6805 | ||
6806 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6807 | PyObject *resultobj; | |
6808 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
6809 | PyObject * obj0 = 0 ; | |
6810 | char *kwnames[] = { | |
6811 | (char *) "handler", NULL | |
6812 | }; | |
6813 | ||
6814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
6815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6816 | { | |
6817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6818 | wxFileSystem::AddHandler(arg1); | |
6819 | ||
6820 | wxPyEndAllowThreads(__tstate); | |
6821 | if (PyErr_Occurred()) SWIG_fail; | |
6822 | } | |
6823 | Py_INCREF(Py_None); resultobj = Py_None; | |
6824 | return resultobj; | |
6825 | fail: | |
6826 | return NULL; | |
6827 | } | |
6828 | ||
6829 | ||
6830 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6831 | PyObject *resultobj; | |
6832 | char *kwnames[] = { | |
6833 | NULL | |
6834 | }; | |
6835 | ||
6836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
6837 | { | |
6838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6839 | wxFileSystem::CleanUpHandlers(); | |
6840 | ||
6841 | wxPyEndAllowThreads(__tstate); | |
6842 | if (PyErr_Occurred()) SWIG_fail; | |
6843 | } | |
6844 | Py_INCREF(Py_None); resultobj = Py_None; | |
6845 | return resultobj; | |
6846 | fail: | |
6847 | return NULL; | |
6848 | } | |
6849 | ||
6850 | ||
6851 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6852 | PyObject *resultobj; | |
6853 | wxString *arg1 = 0 ; | |
6854 | wxString result; | |
e811c8ce | 6855 | bool temp1 = False ; |
d14a1e28 RD |
6856 | PyObject * obj0 = 0 ; |
6857 | char *kwnames[] = { | |
6858 | (char *) "filename", NULL | |
6859 | }; | |
6860 | ||
6861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
6862 | { | |
6863 | arg1 = wxString_in_helper(obj0); | |
6864 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6865 | temp1 = True; |
d14a1e28 RD |
6866 | } |
6867 | { | |
6868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6869 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
6870 | ||
6871 | wxPyEndAllowThreads(__tstate); | |
6872 | if (PyErr_Occurred()) SWIG_fail; | |
6873 | } | |
6874 | { | |
6875 | #if wxUSE_UNICODE | |
6876 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6877 | #else | |
6878 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6879 | #endif | |
6880 | } | |
6881 | { | |
6882 | if (temp1) | |
6883 | delete arg1; | |
6884 | } | |
6885 | return resultobj; | |
6886 | fail: | |
6887 | { | |
6888 | if (temp1) | |
6889 | delete arg1; | |
6890 | } | |
6891 | return NULL; | |
6892 | } | |
6893 | ||
6894 | ||
6895 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
6896 | PyObject *obj; | |
6897 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6898 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
6899 | Py_INCREF(obj); | |
6900 | return Py_BuildValue((char *)""); | |
6901 | } | |
6902 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6903 | PyObject *resultobj; | |
6904 | wxString *arg1 = 0 ; | |
6905 | wxString result; | |
e811c8ce | 6906 | bool temp1 = False ; |
d14a1e28 RD |
6907 | PyObject * obj0 = 0 ; |
6908 | char *kwnames[] = { | |
6909 | (char *) "url", NULL | |
6910 | }; | |
6911 | ||
6912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
6913 | { | |
6914 | arg1 = wxString_in_helper(obj0); | |
6915 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 6916 | temp1 = True; |
d14a1e28 RD |
6917 | } |
6918 | { | |
6919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6920 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
6921 | ||
6922 | wxPyEndAllowThreads(__tstate); | |
6923 | if (PyErr_Occurred()) SWIG_fail; | |
6924 | } | |
6925 | { | |
6926 | #if wxUSE_UNICODE | |
6927 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6928 | #else | |
6929 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6930 | #endif | |
6931 | } | |
6932 | { | |
6933 | if (temp1) | |
6934 | delete arg1; | |
6935 | } | |
6936 | return resultobj; | |
6937 | fail: | |
6938 | { | |
6939 | if (temp1) | |
6940 | delete arg1; | |
6941 | } | |
6942 | return NULL; | |
6943 | } | |
6944 | ||
6945 | ||
6946 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6947 | PyObject *resultobj; | |
6948 | wxInternetFSHandler *result; | |
6949 | char *kwnames[] = { | |
6950 | NULL | |
6951 | }; | |
6952 | ||
6953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
6954 | { | |
6955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6956 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
6957 | ||
6958 | wxPyEndAllowThreads(__tstate); | |
6959 | if (PyErr_Occurred()) SWIG_fail; | |
6960 | } | |
6961 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInternetFSHandler, 1); | |
6962 | return resultobj; | |
6963 | fail: | |
6964 | return NULL; | |
6965 | } | |
6966 | ||
6967 | ||
6968 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6969 | PyObject *resultobj; | |
6970 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
6971 | wxString *arg2 = 0 ; | |
6972 | bool result; | |
e811c8ce | 6973 | bool temp2 = False ; |
d14a1e28 RD |
6974 | PyObject * obj0 = 0 ; |
6975 | PyObject * obj1 = 0 ; | |
6976 | char *kwnames[] = { | |
6977 | (char *) "self",(char *) "location", NULL | |
6978 | }; | |
6979 | ||
6980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6982 | { | |
6983 | arg2 = wxString_in_helper(obj1); | |
6984 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6985 | temp2 = True; |
d14a1e28 RD |
6986 | } |
6987 | { | |
6988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6989 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6990 | ||
6991 | wxPyEndAllowThreads(__tstate); | |
6992 | if (PyErr_Occurred()) SWIG_fail; | |
6993 | } | |
4d5c3d91 | 6994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6995 | { |
6996 | if (temp2) | |
6997 | delete arg2; | |
6998 | } | |
6999 | return resultobj; | |
7000 | fail: | |
7001 | { | |
7002 | if (temp2) | |
7003 | delete arg2; | |
7004 | } | |
7005 | return NULL; | |
7006 | } | |
7007 | ||
7008 | ||
7009 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7010 | PyObject *resultobj; | |
7011 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7012 | wxFileSystem *arg2 = 0 ; | |
7013 | wxString *arg3 = 0 ; | |
7014 | wxFSFile *result; | |
e811c8ce | 7015 | bool temp3 = False ; |
d14a1e28 RD |
7016 | PyObject * obj0 = 0 ; |
7017 | PyObject * obj1 = 0 ; | |
7018 | PyObject * obj2 = 0 ; | |
7019 | char *kwnames[] = { | |
7020 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7021 | }; | |
7022 | ||
7023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7025 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7026 | if (arg2 == NULL) { | |
7027 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7028 | } | |
7029 | { | |
7030 | arg3 = wxString_in_helper(obj2); | |
7031 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7032 | temp3 = True; |
d14a1e28 RD |
7033 | } |
7034 | { | |
7035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7036 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7037 | ||
7038 | wxPyEndAllowThreads(__tstate); | |
7039 | if (PyErr_Occurred()) SWIG_fail; | |
7040 | } | |
7041 | { | |
7042 | resultobj = wxPyMake_wxObject(result); | |
7043 | } | |
7044 | { | |
7045 | if (temp3) | |
7046 | delete arg3; | |
7047 | } | |
7048 | return resultobj; | |
7049 | fail: | |
7050 | { | |
7051 | if (temp3) | |
7052 | delete arg3; | |
7053 | } | |
7054 | return NULL; | |
7055 | } | |
7056 | ||
7057 | ||
7058 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7059 | PyObject *obj; | |
7060 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7061 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7062 | Py_INCREF(obj); | |
7063 | return Py_BuildValue((char *)""); | |
7064 | } | |
7065 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7066 | PyObject *resultobj; | |
7067 | wxZipFSHandler *result; | |
7068 | char *kwnames[] = { | |
7069 | NULL | |
7070 | }; | |
7071 | ||
7072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7073 | { | |
7074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7075 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7076 | ||
7077 | wxPyEndAllowThreads(__tstate); | |
7078 | if (PyErr_Occurred()) SWIG_fail; | |
7079 | } | |
7080 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxZipFSHandler, 1); | |
7081 | return resultobj; | |
7082 | fail: | |
7083 | return NULL; | |
7084 | } | |
7085 | ||
7086 | ||
7087 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7088 | PyObject *resultobj; | |
7089 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7090 | wxString *arg2 = 0 ; | |
7091 | bool result; | |
e811c8ce | 7092 | bool temp2 = False ; |
d14a1e28 RD |
7093 | PyObject * obj0 = 0 ; |
7094 | PyObject * obj1 = 0 ; | |
7095 | char *kwnames[] = { | |
7096 | (char *) "self",(char *) "location", NULL | |
7097 | }; | |
7098 | ||
7099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7101 | { | |
7102 | arg2 = wxString_in_helper(obj1); | |
7103 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7104 | temp2 = True; |
d14a1e28 RD |
7105 | } |
7106 | { | |
7107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7108 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7109 | ||
7110 | wxPyEndAllowThreads(__tstate); | |
7111 | if (PyErr_Occurred()) SWIG_fail; | |
7112 | } | |
4d5c3d91 | 7113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7114 | { |
7115 | if (temp2) | |
7116 | delete arg2; | |
7117 | } | |
7118 | return resultobj; | |
7119 | fail: | |
7120 | { | |
7121 | if (temp2) | |
7122 | delete arg2; | |
7123 | } | |
7124 | return NULL; | |
7125 | } | |
7126 | ||
7127 | ||
7128 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7129 | PyObject *resultobj; | |
7130 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7131 | wxFileSystem *arg2 = 0 ; | |
7132 | wxString *arg3 = 0 ; | |
7133 | wxFSFile *result; | |
e811c8ce | 7134 | bool temp3 = False ; |
d14a1e28 RD |
7135 | PyObject * obj0 = 0 ; |
7136 | PyObject * obj1 = 0 ; | |
7137 | PyObject * obj2 = 0 ; | |
7138 | char *kwnames[] = { | |
7139 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7140 | }; | |
7141 | ||
7142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7144 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7145 | if (arg2 == NULL) { | |
7146 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7147 | } | |
7148 | { | |
7149 | arg3 = wxString_in_helper(obj2); | |
7150 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7151 | temp3 = True; |
d14a1e28 RD |
7152 | } |
7153 | { | |
7154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7155 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7156 | ||
7157 | wxPyEndAllowThreads(__tstate); | |
7158 | if (PyErr_Occurred()) SWIG_fail; | |
7159 | } | |
7160 | { | |
7161 | resultobj = wxPyMake_wxObject(result); | |
7162 | } | |
7163 | { | |
7164 | if (temp3) | |
7165 | delete arg3; | |
7166 | } | |
7167 | return resultobj; | |
7168 | fail: | |
7169 | { | |
7170 | if (temp3) | |
7171 | delete arg3; | |
7172 | } | |
7173 | return NULL; | |
7174 | } | |
7175 | ||
7176 | ||
7177 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7178 | PyObject *resultobj; | |
7179 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7180 | wxString *arg2 = 0 ; | |
7181 | int arg3 = (int) 0 ; | |
7182 | wxString result; | |
e811c8ce | 7183 | bool temp2 = False ; |
d14a1e28 RD |
7184 | PyObject * obj0 = 0 ; |
7185 | PyObject * obj1 = 0 ; | |
994141e6 | 7186 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7187 | char *kwnames[] = { |
7188 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7189 | }; | |
7190 | ||
994141e6 | 7191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7193 | { | |
7194 | arg2 = wxString_in_helper(obj1); | |
7195 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7196 | temp2 = True; |
d14a1e28 | 7197 | } |
994141e6 RD |
7198 | if (obj2) { |
7199 | { | |
7200 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7201 | if (PyErr_Occurred()) SWIG_fail; | |
7202 | } | |
7203 | } | |
d14a1e28 RD |
7204 | { |
7205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7206 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7207 | ||
7208 | wxPyEndAllowThreads(__tstate); | |
7209 | if (PyErr_Occurred()) SWIG_fail; | |
7210 | } | |
7211 | { | |
7212 | #if wxUSE_UNICODE | |
7213 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7214 | #else | |
7215 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7216 | #endif | |
7217 | } | |
7218 | { | |
7219 | if (temp2) | |
7220 | delete arg2; | |
7221 | } | |
7222 | return resultobj; | |
7223 | fail: | |
7224 | { | |
7225 | if (temp2) | |
7226 | delete arg2; | |
7227 | } | |
7228 | return NULL; | |
7229 | } | |
7230 | ||
7231 | ||
7232 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7233 | PyObject *resultobj; | |
7234 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7235 | wxString result; | |
7236 | PyObject * obj0 = 0 ; | |
7237 | char *kwnames[] = { | |
7238 | (char *) "self", NULL | |
7239 | }; | |
7240 | ||
7241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7243 | { | |
7244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7245 | result = (arg1)->FindNext(); | |
7246 | ||
7247 | wxPyEndAllowThreads(__tstate); | |
7248 | if (PyErr_Occurred()) SWIG_fail; | |
7249 | } | |
7250 | { | |
7251 | #if wxUSE_UNICODE | |
7252 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7253 | #else | |
7254 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7255 | #endif | |
7256 | } | |
7257 | return resultobj; | |
7258 | fail: | |
7259 | return NULL; | |
7260 | } | |
7261 | ||
7262 | ||
7263 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7264 | PyObject *obj; | |
7265 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7266 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7267 | Py_INCREF(obj); | |
7268 | return Py_BuildValue((char *)""); | |
7269 | } | |
7270 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7271 | PyObject *resultobj; | |
7272 | wxString *arg1 = 0 ; | |
7273 | wxImage *arg2 = 0 ; | |
7274 | long arg3 ; | |
e811c8ce | 7275 | bool temp1 = False ; |
d14a1e28 RD |
7276 | PyObject * obj0 = 0 ; |
7277 | PyObject * obj1 = 0 ; | |
994141e6 | 7278 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7279 | char *kwnames[] = { |
7280 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7281 | }; | |
7282 | ||
994141e6 | 7283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7284 | { |
7285 | arg1 = wxString_in_helper(obj0); | |
7286 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7287 | temp1 = True; |
d14a1e28 RD |
7288 | } |
7289 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7290 | if (arg2 == NULL) { | |
7291 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7292 | } | |
994141e6 RD |
7293 | { |
7294 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7295 | if (PyErr_Occurred()) SWIG_fail; | |
7296 | } | |
d14a1e28 RD |
7297 | { |
7298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7299 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7300 | ||
7301 | wxPyEndAllowThreads(__tstate); | |
7302 | if (PyErr_Occurred()) SWIG_fail; | |
7303 | } | |
7304 | Py_INCREF(Py_None); resultobj = Py_None; | |
7305 | { | |
7306 | if (temp1) | |
7307 | delete arg1; | |
7308 | } | |
7309 | return resultobj; | |
7310 | fail: | |
7311 | { | |
7312 | if (temp1) | |
7313 | delete arg1; | |
7314 | } | |
7315 | return NULL; | |
7316 | } | |
7317 | ||
7318 | ||
7319 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7320 | PyObject *resultobj; | |
7321 | wxString *arg1 = 0 ; | |
7322 | wxBitmap *arg2 = 0 ; | |
7323 | long arg3 ; | |
e811c8ce | 7324 | bool temp1 = False ; |
d14a1e28 RD |
7325 | PyObject * obj0 = 0 ; |
7326 | PyObject * obj1 = 0 ; | |
994141e6 | 7327 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7328 | char *kwnames[] = { |
7329 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7330 | }; | |
7331 | ||
994141e6 | 7332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7333 | { |
7334 | arg1 = wxString_in_helper(obj0); | |
7335 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7336 | temp1 = True; |
d14a1e28 RD |
7337 | } |
7338 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7339 | if (arg2 == NULL) { | |
7340 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7341 | } | |
994141e6 RD |
7342 | { |
7343 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7344 | if (PyErr_Occurred()) SWIG_fail; | |
7345 | } | |
d14a1e28 RD |
7346 | { |
7347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7348 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7349 | ||
7350 | wxPyEndAllowThreads(__tstate); | |
7351 | if (PyErr_Occurred()) SWIG_fail; | |
7352 | } | |
7353 | Py_INCREF(Py_None); resultobj = Py_None; | |
7354 | { | |
7355 | if (temp1) | |
7356 | delete arg1; | |
7357 | } | |
7358 | return resultobj; | |
7359 | fail: | |
7360 | { | |
7361 | if (temp1) | |
7362 | delete arg1; | |
7363 | } | |
7364 | return NULL; | |
7365 | } | |
7366 | ||
7367 | ||
7368 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7369 | PyObject *resultobj; | |
7370 | wxString *arg1 = 0 ; | |
7371 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce | 7372 | bool temp1 = False ; |
d14a1e28 RD |
7373 | PyObject * obj0 = 0 ; |
7374 | PyObject * obj1 = 0 ; | |
7375 | char *kwnames[] = { | |
7376 | (char *) "filename",(char *) "data", NULL | |
7377 | }; | |
7378 | ||
7379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7380 | { | |
7381 | arg1 = wxString_in_helper(obj0); | |
7382 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7383 | temp1 = True; |
d14a1e28 RD |
7384 | } |
7385 | arg2 = obj1; | |
7386 | { | |
7387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7388 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7389 | ||
7390 | wxPyEndAllowThreads(__tstate); | |
7391 | if (PyErr_Occurred()) SWIG_fail; | |
7392 | } | |
7393 | Py_INCREF(Py_None); resultobj = Py_None; | |
7394 | { | |
7395 | if (temp1) | |
7396 | delete arg1; | |
7397 | } | |
7398 | return resultobj; | |
7399 | fail: | |
7400 | { | |
7401 | if (temp1) | |
7402 | delete arg1; | |
7403 | } | |
7404 | return NULL; | |
7405 | } | |
7406 | ||
7407 | ||
7408 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7409 | PyObject *resultobj; | |
7410 | wxMemoryFSHandler *result; | |
7411 | char *kwnames[] = { | |
7412 | NULL | |
7413 | }; | |
7414 | ||
7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7416 | { | |
7417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7418 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7419 | ||
7420 | wxPyEndAllowThreads(__tstate); | |
7421 | if (PyErr_Occurred()) SWIG_fail; | |
7422 | } | |
7423 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryFSHandler, 1); | |
7424 | return resultobj; | |
7425 | fail: | |
7426 | return NULL; | |
7427 | } | |
7428 | ||
7429 | ||
7430 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7431 | PyObject *resultobj; | |
7432 | wxString *arg1 = 0 ; | |
e811c8ce | 7433 | bool temp1 = False ; |
d14a1e28 RD |
7434 | PyObject * obj0 = 0 ; |
7435 | char *kwnames[] = { | |
7436 | (char *) "filename", NULL | |
7437 | }; | |
7438 | ||
7439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7440 | { | |
7441 | arg1 = wxString_in_helper(obj0); | |
7442 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7443 | temp1 = True; |
d14a1e28 RD |
7444 | } |
7445 | { | |
7446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7447 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7448 | ||
7449 | wxPyEndAllowThreads(__tstate); | |
7450 | if (PyErr_Occurred()) SWIG_fail; | |
7451 | } | |
7452 | Py_INCREF(Py_None); resultobj = Py_None; | |
7453 | { | |
7454 | if (temp1) | |
7455 | delete arg1; | |
7456 | } | |
7457 | return resultobj; | |
7458 | fail: | |
7459 | { | |
7460 | if (temp1) | |
7461 | delete arg1; | |
7462 | } | |
7463 | return NULL; | |
7464 | } | |
7465 | ||
7466 | ||
7467 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7468 | PyObject *resultobj; | |
7469 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7470 | wxString *arg2 = 0 ; | |
7471 | bool result; | |
e811c8ce | 7472 | bool temp2 = False ; |
d14a1e28 RD |
7473 | PyObject * obj0 = 0 ; |
7474 | PyObject * obj1 = 0 ; | |
7475 | char *kwnames[] = { | |
7476 | (char *) "self",(char *) "location", NULL | |
7477 | }; | |
7478 | ||
7479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7481 | { | |
7482 | arg2 = wxString_in_helper(obj1); | |
7483 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7484 | temp2 = True; |
d14a1e28 RD |
7485 | } |
7486 | { | |
7487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7488 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7489 | ||
7490 | wxPyEndAllowThreads(__tstate); | |
7491 | if (PyErr_Occurred()) SWIG_fail; | |
7492 | } | |
4d5c3d91 | 7493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7494 | { |
7495 | if (temp2) | |
7496 | delete arg2; | |
7497 | } | |
7498 | return resultobj; | |
7499 | fail: | |
7500 | { | |
7501 | if (temp2) | |
7502 | delete arg2; | |
7503 | } | |
7504 | return NULL; | |
7505 | } | |
7506 | ||
7507 | ||
7508 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7509 | PyObject *resultobj; | |
7510 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7511 | wxFileSystem *arg2 = 0 ; | |
7512 | wxString *arg3 = 0 ; | |
7513 | wxFSFile *result; | |
e811c8ce | 7514 | bool temp3 = False ; |
d14a1e28 RD |
7515 | PyObject * obj0 = 0 ; |
7516 | PyObject * obj1 = 0 ; | |
7517 | PyObject * obj2 = 0 ; | |
7518 | char *kwnames[] = { | |
7519 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7520 | }; | |
7521 | ||
7522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7524 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7525 | if (arg2 == NULL) { | |
7526 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7527 | } | |
7528 | { | |
7529 | arg3 = wxString_in_helper(obj2); | |
7530 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7531 | temp3 = True; |
d14a1e28 RD |
7532 | } |
7533 | { | |
7534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7535 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7536 | ||
7537 | wxPyEndAllowThreads(__tstate); | |
7538 | if (PyErr_Occurred()) SWIG_fail; | |
7539 | } | |
7540 | { | |
7541 | resultobj = wxPyMake_wxObject(result); | |
7542 | } | |
7543 | { | |
7544 | if (temp3) | |
7545 | delete arg3; | |
7546 | } | |
7547 | return resultobj; | |
7548 | fail: | |
7549 | { | |
7550 | if (temp3) | |
7551 | delete arg3; | |
7552 | } | |
7553 | return NULL; | |
7554 | } | |
7555 | ||
7556 | ||
7557 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7558 | PyObject *resultobj; | |
7559 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7560 | wxString *arg2 = 0 ; | |
7561 | int arg3 = (int) 0 ; | |
7562 | wxString result; | |
e811c8ce | 7563 | bool temp2 = False ; |
d14a1e28 RD |
7564 | PyObject * obj0 = 0 ; |
7565 | PyObject * obj1 = 0 ; | |
994141e6 | 7566 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7567 | char *kwnames[] = { |
7568 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7569 | }; | |
7570 | ||
994141e6 | 7571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7573 | { | |
7574 | arg2 = wxString_in_helper(obj1); | |
7575 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7576 | temp2 = True; |
d14a1e28 | 7577 | } |
994141e6 RD |
7578 | if (obj2) { |
7579 | { | |
7580 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7581 | if (PyErr_Occurred()) SWIG_fail; | |
7582 | } | |
7583 | } | |
d14a1e28 RD |
7584 | { |
7585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7586 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7587 | ||
7588 | wxPyEndAllowThreads(__tstate); | |
7589 | if (PyErr_Occurred()) SWIG_fail; | |
7590 | } | |
7591 | { | |
7592 | #if wxUSE_UNICODE | |
7593 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7594 | #else | |
7595 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7596 | #endif | |
7597 | } | |
7598 | { | |
7599 | if (temp2) | |
7600 | delete arg2; | |
7601 | } | |
7602 | return resultobj; | |
7603 | fail: | |
7604 | { | |
7605 | if (temp2) | |
7606 | delete arg2; | |
7607 | } | |
7608 | return NULL; | |
7609 | } | |
7610 | ||
7611 | ||
7612 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7613 | PyObject *resultobj; | |
7614 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7615 | wxString result; | |
7616 | PyObject * obj0 = 0 ; | |
7617 | char *kwnames[] = { | |
7618 | (char *) "self", NULL | |
7619 | }; | |
7620 | ||
7621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7623 | { | |
7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7625 | result = (arg1)->FindNext(); | |
7626 | ||
7627 | wxPyEndAllowThreads(__tstate); | |
7628 | if (PyErr_Occurred()) SWIG_fail; | |
7629 | } | |
7630 | { | |
7631 | #if wxUSE_UNICODE | |
7632 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7633 | #else | |
7634 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7635 | #endif | |
7636 | } | |
7637 | return resultobj; | |
7638 | fail: | |
7639 | return NULL; | |
7640 | } | |
7641 | ||
7642 | ||
7643 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7644 | PyObject *obj; | |
7645 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7646 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
7647 | Py_INCREF(obj); | |
7648 | return Py_BuildValue((char *)""); | |
7649 | } | |
7650 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7651 | PyObject *resultobj; | |
7652 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7653 | wxString result; | |
7654 | PyObject * obj0 = 0 ; | |
7655 | char *kwnames[] = { | |
7656 | (char *) "self", NULL | |
7657 | }; | |
7658 | ||
7659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
7660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7661 | { | |
7662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7663 | result = (arg1)->GetName(); | |
7664 | ||
7665 | wxPyEndAllowThreads(__tstate); | |
7666 | if (PyErr_Occurred()) SWIG_fail; | |
7667 | } | |
7668 | { | |
7669 | #if wxUSE_UNICODE | |
7670 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7671 | #else | |
7672 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7673 | #endif | |
7674 | } | |
7675 | return resultobj; | |
7676 | fail: | |
7677 | return NULL; | |
7678 | } | |
7679 | ||
7680 | ||
7681 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7682 | PyObject *resultobj; | |
7683 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7684 | wxString result; | |
7685 | PyObject * obj0 = 0 ; | |
7686 | char *kwnames[] = { | |
7687 | (char *) "self", NULL | |
7688 | }; | |
7689 | ||
7690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
7691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7692 | { | |
7693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7694 | result = (arg1)->GetExtension(); | |
7695 | ||
7696 | wxPyEndAllowThreads(__tstate); | |
7697 | if (PyErr_Occurred()) SWIG_fail; | |
7698 | } | |
7699 | { | |
7700 | #if wxUSE_UNICODE | |
7701 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7702 | #else | |
7703 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7704 | #endif | |
7705 | } | |
7706 | return resultobj; | |
7707 | fail: | |
7708 | return NULL; | |
7709 | } | |
7710 | ||
7711 | ||
7712 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7713 | PyObject *resultobj; | |
7714 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7715 | long result; | |
7716 | PyObject * obj0 = 0 ; | |
7717 | char *kwnames[] = { | |
7718 | (char *) "self", NULL | |
7719 | }; | |
7720 | ||
7721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
7722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7723 | { | |
7724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7725 | result = (long)(arg1)->GetType(); | |
7726 | ||
7727 | wxPyEndAllowThreads(__tstate); | |
7728 | if (PyErr_Occurred()) SWIG_fail; | |
7729 | } | |
994141e6 | 7730 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7731 | return resultobj; |
7732 | fail: | |
7733 | return NULL; | |
7734 | } | |
7735 | ||
7736 | ||
7737 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7738 | PyObject *resultobj; | |
7739 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7740 | wxString result; | |
7741 | PyObject * obj0 = 0 ; | |
7742 | char *kwnames[] = { | |
7743 | (char *) "self", NULL | |
7744 | }; | |
7745 | ||
7746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
7747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7748 | { | |
7749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7750 | result = (arg1)->GetMimeType(); | |
7751 | ||
7752 | wxPyEndAllowThreads(__tstate); | |
7753 | if (PyErr_Occurred()) SWIG_fail; | |
7754 | } | |
7755 | { | |
7756 | #if wxUSE_UNICODE | |
7757 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7758 | #else | |
7759 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7760 | #endif | |
7761 | } | |
7762 | return resultobj; | |
7763 | fail: | |
7764 | return NULL; | |
7765 | } | |
7766 | ||
7767 | ||
7768 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7769 | PyObject *resultobj; | |
7770 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7771 | wxString *arg2 = 0 ; | |
7772 | bool result; | |
e811c8ce | 7773 | bool temp2 = False ; |
d14a1e28 RD |
7774 | PyObject * obj0 = 0 ; |
7775 | PyObject * obj1 = 0 ; | |
7776 | char *kwnames[] = { | |
7777 | (char *) "self",(char *) "name", NULL | |
7778 | }; | |
7779 | ||
7780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
7781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7782 | { | |
7783 | arg2 = wxString_in_helper(obj1); | |
7784 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7785 | temp2 = True; |
d14a1e28 RD |
7786 | } |
7787 | { | |
7788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7789 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
7790 | ||
7791 | wxPyEndAllowThreads(__tstate); | |
7792 | if (PyErr_Occurred()) SWIG_fail; | |
7793 | } | |
4d5c3d91 | 7794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7795 | { |
7796 | if (temp2) | |
7797 | delete arg2; | |
7798 | } | |
7799 | return resultobj; | |
7800 | fail: | |
7801 | { | |
7802 | if (temp2) | |
7803 | delete arg2; | |
7804 | } | |
7805 | return NULL; | |
7806 | } | |
7807 | ||
7808 | ||
7809 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7810 | PyObject *resultobj; | |
7811 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7812 | wxString *arg2 = 0 ; | |
e811c8ce | 7813 | bool temp2 = False ; |
d14a1e28 RD |
7814 | PyObject * obj0 = 0 ; |
7815 | PyObject * obj1 = 0 ; | |
7816 | char *kwnames[] = { | |
7817 | (char *) "self",(char *) "name", NULL | |
7818 | }; | |
7819 | ||
7820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
7821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7822 | { | |
7823 | arg2 = wxString_in_helper(obj1); | |
7824 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7825 | temp2 = True; |
d14a1e28 RD |
7826 | } |
7827 | { | |
7828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7829 | (arg1)->SetName((wxString const &)*arg2); | |
7830 | ||
7831 | wxPyEndAllowThreads(__tstate); | |
7832 | if (PyErr_Occurred()) SWIG_fail; | |
7833 | } | |
7834 | Py_INCREF(Py_None); resultobj = Py_None; | |
7835 | { | |
7836 | if (temp2) | |
7837 | delete arg2; | |
7838 | } | |
7839 | return resultobj; | |
7840 | fail: | |
7841 | { | |
7842 | if (temp2) | |
7843 | delete arg2; | |
7844 | } | |
7845 | return NULL; | |
7846 | } | |
7847 | ||
7848 | ||
7849 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7850 | PyObject *resultobj; | |
7851 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7852 | wxString *arg2 = 0 ; | |
e811c8ce | 7853 | bool temp2 = False ; |
d14a1e28 RD |
7854 | PyObject * obj0 = 0 ; |
7855 | PyObject * obj1 = 0 ; | |
7856 | char *kwnames[] = { | |
7857 | (char *) "self",(char *) "extension", NULL | |
7858 | }; | |
7859 | ||
7860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
7861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7862 | { | |
7863 | arg2 = wxString_in_helper(obj1); | |
7864 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7865 | temp2 = True; |
d14a1e28 RD |
7866 | } |
7867 | { | |
7868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7869 | (arg1)->SetExtension((wxString const &)*arg2); | |
7870 | ||
7871 | wxPyEndAllowThreads(__tstate); | |
7872 | if (PyErr_Occurred()) SWIG_fail; | |
7873 | } | |
7874 | Py_INCREF(Py_None); resultobj = Py_None; | |
7875 | { | |
7876 | if (temp2) | |
7877 | delete arg2; | |
7878 | } | |
7879 | return resultobj; | |
7880 | fail: | |
7881 | { | |
7882 | if (temp2) | |
7883 | delete arg2; | |
7884 | } | |
7885 | return NULL; | |
7886 | } | |
7887 | ||
7888 | ||
7889 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7890 | PyObject *resultobj; | |
7891 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7892 | long arg2 ; | |
7893 | PyObject * obj0 = 0 ; | |
994141e6 | 7894 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7895 | char *kwnames[] = { |
7896 | (char *) "self",(char *) "type", NULL | |
7897 | }; | |
7898 | ||
994141e6 | 7899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7901 | { |
7902 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7903 | if (PyErr_Occurred()) SWIG_fail; | |
7904 | } | |
d14a1e28 RD |
7905 | { |
7906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7907 | (arg1)->SetType(arg2); | |
7908 | ||
7909 | wxPyEndAllowThreads(__tstate); | |
7910 | if (PyErr_Occurred()) SWIG_fail; | |
7911 | } | |
7912 | Py_INCREF(Py_None); resultobj = Py_None; | |
7913 | return resultobj; | |
7914 | fail: | |
7915 | return NULL; | |
7916 | } | |
7917 | ||
7918 | ||
7919 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7920 | PyObject *resultobj; | |
7921 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7922 | wxString *arg2 = 0 ; | |
e811c8ce | 7923 | bool temp2 = False ; |
d14a1e28 RD |
7924 | PyObject * obj0 = 0 ; |
7925 | PyObject * obj1 = 0 ; | |
7926 | char *kwnames[] = { | |
7927 | (char *) "self",(char *) "mimetype", NULL | |
7928 | }; | |
7929 | ||
7930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
7931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7932 | { | |
7933 | arg2 = wxString_in_helper(obj1); | |
7934 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7935 | temp2 = True; |
d14a1e28 RD |
7936 | } |
7937 | { | |
7938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7939 | (arg1)->SetMimeType((wxString const &)*arg2); | |
7940 | ||
7941 | wxPyEndAllowThreads(__tstate); | |
7942 | if (PyErr_Occurred()) SWIG_fail; | |
7943 | } | |
7944 | Py_INCREF(Py_None); resultobj = Py_None; | |
7945 | { | |
7946 | if (temp2) | |
7947 | delete arg2; | |
7948 | } | |
7949 | return resultobj; | |
7950 | fail: | |
7951 | { | |
7952 | if (temp2) | |
7953 | delete arg2; | |
7954 | } | |
7955 | return NULL; | |
7956 | } | |
7957 | ||
7958 | ||
7959 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
7960 | PyObject *obj; | |
7961 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7962 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
7963 | Py_INCREF(obj); | |
7964 | return Py_BuildValue((char *)""); | |
7965 | } | |
7966 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7967 | PyObject *resultobj; | |
7968 | wxImageHistogram *result; | |
7969 | char *kwnames[] = { | |
7970 | NULL | |
7971 | }; | |
7972 | ||
7973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
7974 | { | |
7975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7976 | result = (wxImageHistogram *)new wxImageHistogram(); | |
7977 | ||
7978 | wxPyEndAllowThreads(__tstate); | |
7979 | if (PyErr_Occurred()) SWIG_fail; | |
7980 | } | |
7981 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImageHistogram, 1); | |
7982 | return resultobj; | |
7983 | fail: | |
7984 | return NULL; | |
7985 | } | |
7986 | ||
7987 | ||
7988 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7989 | PyObject *resultobj; | |
7990 | unsigned char arg1 ; | |
7991 | unsigned char arg2 ; | |
7992 | unsigned char arg3 ; | |
7993 | unsigned long result; | |
7994 | PyObject * obj0 = 0 ; | |
7995 | PyObject * obj1 = 0 ; | |
7996 | PyObject * obj2 = 0 ; | |
7997 | char *kwnames[] = { | |
7998 | (char *) "r",(char *) "g",(char *) "b", NULL | |
7999 | }; | |
8000 | ||
8001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
a41e16b6 | 8002 | { |
994141e6 | 8003 | arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0); |
a41e16b6 RD |
8004 | if (PyErr_Occurred()) SWIG_fail; |
8005 | } | |
8006 | { | |
994141e6 | 8007 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
8008 | if (PyErr_Occurred()) SWIG_fail; |
8009 | } | |
8010 | { | |
994141e6 | 8011 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
8012 | if (PyErr_Occurred()) SWIG_fail; |
8013 | } | |
d14a1e28 RD |
8014 | { |
8015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8016 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8017 | ||
8018 | wxPyEndAllowThreads(__tstate); | |
8019 | if (PyErr_Occurred()) SWIG_fail; | |
8020 | } | |
994141e6 | 8021 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8022 | return resultobj; |
8023 | fail: | |
8024 | return NULL; | |
8025 | } | |
8026 | ||
8027 | ||
8028 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8029 | PyObject *resultobj; | |
8030 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8031 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8032 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8033 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8034 | unsigned char arg5 = (unsigned char) 1 ; | |
8035 | unsigned char arg6 = (unsigned char) 0 ; | |
8036 | unsigned char arg7 = (unsigned char) 0 ; | |
8037 | bool result; | |
8038 | unsigned char temp2 ; | |
8039 | unsigned char temp3 ; | |
8040 | unsigned char temp4 ; | |
8041 | PyObject * obj0 = 0 ; | |
8042 | PyObject * obj1 = 0 ; | |
8043 | PyObject * obj2 = 0 ; | |
8044 | PyObject * obj3 = 0 ; | |
8045 | char *kwnames[] = { | |
8046 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8047 | }; | |
8048 | ||
8049 | arg2 = &temp2; | |
8050 | arg3 = &temp3; | |
8051 | arg4 = &temp4; | |
8052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8054 | if (obj1) { | |
a41e16b6 | 8055 | { |
994141e6 | 8056 | arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
8057 | if (PyErr_Occurred()) SWIG_fail; |
8058 | } | |
d14a1e28 RD |
8059 | } |
8060 | if (obj2) { | |
a41e16b6 | 8061 | { |
994141e6 | 8062 | arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
8063 | if (PyErr_Occurred()) SWIG_fail; |
8064 | } | |
d14a1e28 RD |
8065 | } |
8066 | if (obj3) { | |
a41e16b6 | 8067 | { |
994141e6 | 8068 | arg7 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
8069 | if (PyErr_Occurred()) SWIG_fail; |
8070 | } | |
d14a1e28 RD |
8071 | } |
8072 | { | |
8073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8074 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8075 | ||
8076 | wxPyEndAllowThreads(__tstate); | |
8077 | if (PyErr_Occurred()) SWIG_fail; | |
8078 | } | |
4d5c3d91 | 8079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8080 | { |
8081 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8082 | resultobj = t_output_helper(resultobj,o); | |
8083 | } | |
8084 | { | |
8085 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8086 | resultobj = t_output_helper(resultobj,o); | |
8087 | } | |
8088 | { | |
8089 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8090 | resultobj = t_output_helper(resultobj,o); | |
8091 | } | |
8092 | return resultobj; | |
8093 | fail: | |
8094 | return NULL; | |
8095 | } | |
8096 | ||
8097 | ||
8098 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8099 | PyObject *obj; | |
8100 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8101 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8102 | Py_INCREF(obj); | |
8103 | return Py_BuildValue((char *)""); | |
8104 | } | |
8105 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8106 | PyObject *resultobj; | |
8107 | wxString *arg1 = 0 ; | |
8108 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8109 | int arg3 = (int) -1 ; | |
8110 | wxImage *result; | |
e811c8ce | 8111 | bool temp1 = False ; |
d14a1e28 | 8112 | PyObject * obj0 = 0 ; |
994141e6 RD |
8113 | PyObject * obj1 = 0 ; |
8114 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8115 | char *kwnames[] = { |
8116 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8117 | }; | |
8118 | ||
994141e6 | 8119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8120 | { |
8121 | arg1 = wxString_in_helper(obj0); | |
8122 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8123 | temp1 = True; |
d14a1e28 | 8124 | } |
994141e6 RD |
8125 | if (obj1) { |
8126 | { | |
8127 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8128 | if (PyErr_Occurred()) SWIG_fail; | |
8129 | } | |
8130 | } | |
8131 | if (obj2) { | |
8132 | { | |
8133 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8134 | if (PyErr_Occurred()) SWIG_fail; | |
8135 | } | |
8136 | } | |
d14a1e28 RD |
8137 | { |
8138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8139 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8140 | ||
8141 | wxPyEndAllowThreads(__tstate); | |
8142 | if (PyErr_Occurred()) SWIG_fail; | |
8143 | } | |
8144 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8145 | { | |
8146 | if (temp1) | |
8147 | delete arg1; | |
8148 | } | |
8149 | return resultobj; | |
8150 | fail: | |
8151 | { | |
8152 | if (temp1) | |
8153 | delete arg1; | |
8154 | } | |
8155 | return NULL; | |
8156 | } | |
8157 | ||
8158 | ||
8159 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8160 | PyObject *resultobj; | |
8161 | wxImage *arg1 = (wxImage *) 0 ; | |
8162 | PyObject * obj0 = 0 ; | |
8163 | char *kwnames[] = { | |
8164 | (char *) "self", NULL | |
8165 | }; | |
8166 | ||
8167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
8168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8169 | { | |
8170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8171 | delete arg1; | |
8172 | ||
8173 | wxPyEndAllowThreads(__tstate); | |
8174 | if (PyErr_Occurred()) SWIG_fail; | |
8175 | } | |
8176 | Py_INCREF(Py_None); resultobj = Py_None; | |
8177 | return resultobj; | |
8178 | fail: | |
8179 | return NULL; | |
8180 | } | |
8181 | ||
8182 | ||
8183 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8184 | PyObject *resultobj; | |
8185 | wxString *arg1 = 0 ; | |
8186 | wxString *arg2 = 0 ; | |
8187 | int arg3 = (int) -1 ; | |
8188 | wxImage *result; | |
e811c8ce RD |
8189 | bool temp1 = False ; |
8190 | bool temp2 = False ; | |
d14a1e28 RD |
8191 | PyObject * obj0 = 0 ; |
8192 | PyObject * obj1 = 0 ; | |
994141e6 | 8193 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8194 | char *kwnames[] = { |
8195 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8196 | }; | |
8197 | ||
994141e6 | 8198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8199 | { |
8200 | arg1 = wxString_in_helper(obj0); | |
8201 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8202 | temp1 = True; |
d14a1e28 RD |
8203 | } |
8204 | { | |
8205 | arg2 = wxString_in_helper(obj1); | |
8206 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8207 | temp2 = True; |
d14a1e28 | 8208 | } |
994141e6 RD |
8209 | if (obj2) { |
8210 | { | |
8211 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8212 | if (PyErr_Occurred()) SWIG_fail; | |
8213 | } | |
8214 | } | |
d14a1e28 RD |
8215 | { |
8216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8217 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8218 | ||
8219 | wxPyEndAllowThreads(__tstate); | |
8220 | if (PyErr_Occurred()) SWIG_fail; | |
8221 | } | |
8222 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8223 | { | |
8224 | if (temp1) | |
8225 | delete arg1; | |
8226 | } | |
8227 | { | |
8228 | if (temp2) | |
8229 | delete arg2; | |
8230 | } | |
8231 | return resultobj; | |
8232 | fail: | |
8233 | { | |
8234 | if (temp1) | |
8235 | delete arg1; | |
8236 | } | |
8237 | { | |
8238 | if (temp2) | |
8239 | delete arg2; | |
8240 | } | |
8241 | return NULL; | |
8242 | } | |
8243 | ||
8244 | ||
8245 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8246 | PyObject *resultobj; | |
8247 | wxInputStream *arg1 = 0 ; | |
8248 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8249 | int arg3 = (int) -1 ; | |
8250 | wxImage *result; | |
8251 | wxPyInputStream *temp1 ; | |
8252 | bool created1 ; | |
8253 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8254 | PyObject * obj1 = 0 ; |
8255 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8256 | char *kwnames[] = { |
8257 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8258 | }; | |
8259 | ||
994141e6 | 8260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8261 | { |
8262 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8263 | arg1 = temp1->m_wxis; | |
e811c8ce | 8264 | created1 = False; |
d14a1e28 RD |
8265 | } else { |
8266 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 8267 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8268 | if (arg1 == NULL) { |
8269 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8270 | SWIG_fail; | |
8271 | } | |
e811c8ce | 8272 | created1 = True; |
d14a1e28 RD |
8273 | } |
8274 | } | |
994141e6 RD |
8275 | if (obj1) { |
8276 | { | |
8277 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8278 | if (PyErr_Occurred()) SWIG_fail; | |
8279 | } | |
8280 | } | |
8281 | if (obj2) { | |
8282 | { | |
8283 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8284 | if (PyErr_Occurred()) SWIG_fail; | |
8285 | } | |
8286 | } | |
d14a1e28 RD |
8287 | { |
8288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8289 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8290 | ||
8291 | wxPyEndAllowThreads(__tstate); | |
8292 | if (PyErr_Occurred()) SWIG_fail; | |
8293 | } | |
8294 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8295 | { | |
8296 | if (created1) | |
8297 | delete arg1; | |
8298 | } | |
8299 | return resultobj; | |
8300 | fail: | |
8301 | { | |
8302 | if (created1) | |
8303 | delete arg1; | |
8304 | } | |
8305 | return NULL; | |
8306 | } | |
8307 | ||
8308 | ||
8309 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8310 | PyObject *resultobj; | |
8311 | wxInputStream *arg1 = 0 ; | |
8312 | wxString *arg2 = 0 ; | |
8313 | int arg3 = (int) -1 ; | |
8314 | wxImage *result; | |
8315 | wxPyInputStream *temp1 ; | |
8316 | bool created1 ; | |
e811c8ce | 8317 | bool temp2 = False ; |
d14a1e28 RD |
8318 | PyObject * obj0 = 0 ; |
8319 | PyObject * obj1 = 0 ; | |
994141e6 | 8320 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8321 | char *kwnames[] = { |
8322 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8323 | }; | |
8324 | ||
994141e6 | 8325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8326 | { |
8327 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8328 | arg1 = temp1->m_wxis; | |
e811c8ce | 8329 | created1 = False; |
d14a1e28 RD |
8330 | } else { |
8331 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 8332 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8333 | if (arg1 == NULL) { |
8334 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8335 | SWIG_fail; | |
8336 | } | |
e811c8ce | 8337 | created1 = True; |
d14a1e28 RD |
8338 | } |
8339 | } | |
8340 | { | |
8341 | arg2 = wxString_in_helper(obj1); | |
8342 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8343 | temp2 = True; |
d14a1e28 | 8344 | } |
994141e6 RD |
8345 | if (obj2) { |
8346 | { | |
8347 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8348 | if (PyErr_Occurred()) SWIG_fail; | |
8349 | } | |
8350 | } | |
d14a1e28 RD |
8351 | { |
8352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8353 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8354 | ||
8355 | wxPyEndAllowThreads(__tstate); | |
8356 | if (PyErr_Occurred()) SWIG_fail; | |
8357 | } | |
8358 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8359 | { | |
8360 | if (created1) | |
8361 | delete arg1; | |
8362 | } | |
8363 | { | |
8364 | if (temp2) | |
8365 | delete arg2; | |
8366 | } | |
8367 | return resultobj; | |
8368 | fail: | |
8369 | { | |
8370 | if (created1) | |
8371 | delete arg1; | |
8372 | } | |
8373 | { | |
8374 | if (temp2) | |
8375 | delete arg2; | |
8376 | } | |
8377 | return NULL; | |
8378 | } | |
8379 | ||
8380 | ||
8381 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8382 | PyObject *resultobj; | |
8383 | int arg1 = (int) 0 ; | |
8384 | int arg2 = (int) 0 ; | |
e811c8ce | 8385 | bool arg3 = (bool) True ; |
d14a1e28 | 8386 | wxImage *result; |
994141e6 RD |
8387 | PyObject * obj0 = 0 ; |
8388 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8389 | PyObject * obj2 = 0 ; |
8390 | char *kwnames[] = { | |
8391 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8392 | }; | |
8393 | ||
994141e6 RD |
8394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8395 | if (obj0) { | |
8396 | { | |
8397 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8398 | if (PyErr_Occurred()) SWIG_fail; | |
8399 | } | |
8400 | } | |
8401 | if (obj1) { | |
8402 | { | |
8403 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8404 | if (PyErr_Occurred()) SWIG_fail; | |
8405 | } | |
8406 | } | |
d14a1e28 | 8407 | if (obj2) { |
a41e16b6 | 8408 | { |
994141e6 | 8409 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
8410 | if (PyErr_Occurred()) SWIG_fail; |
8411 | } | |
d14a1e28 RD |
8412 | } |
8413 | { | |
8414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8415 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8416 | ||
8417 | wxPyEndAllowThreads(__tstate); | |
8418 | if (PyErr_Occurred()) SWIG_fail; | |
8419 | } | |
8420 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8421 | return resultobj; | |
8422 | fail: | |
8423 | return NULL; | |
8424 | } | |
8425 | ||
8426 | ||
8427 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8428 | PyObject *resultobj; | |
8429 | wxBitmap *arg1 = 0 ; | |
8430 | wxImage *result; | |
8431 | PyObject * obj0 = 0 ; | |
8432 | char *kwnames[] = { | |
8433 | (char *) "bitmap", NULL | |
8434 | }; | |
8435 | ||
8436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
8437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8438 | if (arg1 == NULL) { | |
8439 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8440 | } | |
8441 | { | |
8442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8443 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8444 | ||
8445 | wxPyEndAllowThreads(__tstate); | |
8446 | if (PyErr_Occurred()) SWIG_fail; | |
8447 | } | |
8448 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8449 | return resultobj; | |
8450 | fail: | |
8451 | return NULL; | |
8452 | } | |
8453 | ||
8454 | ||
8455 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8456 | PyObject *resultobj; | |
8457 | int arg1 ; | |
8458 | int arg2 ; | |
8459 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8460 | wxImage *result; | |
994141e6 RD |
8461 | PyObject * obj0 = 0 ; |
8462 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8463 | PyObject * obj2 = 0 ; |
8464 | char *kwnames[] = { | |
8465 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8466 | }; | |
8467 | ||
994141e6 RD |
8468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8469 | { | |
8470 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8471 | if (PyErr_Occurred()) SWIG_fail; | |
8472 | } | |
8473 | { | |
8474 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8475 | if (PyErr_Occurred()) SWIG_fail; | |
8476 | } | |
d14a1e28 RD |
8477 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8478 | { | |
8479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8480 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8481 | ||
8482 | wxPyEndAllowThreads(__tstate); | |
8483 | if (PyErr_Occurred()) SWIG_fail; | |
8484 | } | |
8485 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8486 | return resultobj; | |
8487 | fail: | |
8488 | return NULL; | |
8489 | } | |
8490 | ||
8491 | ||
8492 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8493 | PyObject *resultobj; | |
8494 | wxImage *arg1 = (wxImage *) 0 ; | |
8495 | int arg2 ; | |
8496 | int arg3 ; | |
8497 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8498 | PyObject * obj1 = 0 ; |
8499 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8500 | char *kwnames[] = { |
8501 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8502 | }; | |
8503 | ||
994141e6 | 8504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8506 | { |
8507 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8508 | if (PyErr_Occurred()) SWIG_fail; | |
8509 | } | |
8510 | { | |
8511 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8512 | if (PyErr_Occurred()) SWIG_fail; | |
8513 | } | |
d14a1e28 RD |
8514 | { |
8515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8516 | (arg1)->Create(arg2,arg3); | |
8517 | ||
8518 | wxPyEndAllowThreads(__tstate); | |
8519 | if (PyErr_Occurred()) SWIG_fail; | |
8520 | } | |
8521 | Py_INCREF(Py_None); resultobj = Py_None; | |
8522 | return resultobj; | |
8523 | fail: | |
8524 | return NULL; | |
8525 | } | |
8526 | ||
8527 | ||
8528 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8529 | PyObject *resultobj; | |
8530 | wxImage *arg1 = (wxImage *) 0 ; | |
8531 | PyObject * obj0 = 0 ; | |
8532 | char *kwnames[] = { | |
8533 | (char *) "self", NULL | |
8534 | }; | |
8535 | ||
8536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
8537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8538 | { | |
8539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8540 | (arg1)->Destroy(); | |
8541 | ||
8542 | wxPyEndAllowThreads(__tstate); | |
8543 | if (PyErr_Occurred()) SWIG_fail; | |
8544 | } | |
8545 | Py_INCREF(Py_None); resultobj = Py_None; | |
8546 | return resultobj; | |
8547 | fail: | |
8548 | return NULL; | |
8549 | } | |
8550 | ||
8551 | ||
8552 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8553 | PyObject *resultobj; | |
8554 | wxImage *arg1 = (wxImage *) 0 ; | |
8555 | int arg2 ; | |
8556 | int arg3 ; | |
8557 | SwigValueWrapper< wxImage > result; | |
8558 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8559 | PyObject * obj1 = 0 ; |
8560 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8561 | char *kwnames[] = { |
8562 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8563 | }; | |
8564 | ||
994141e6 | 8565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8567 | { |
8568 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8569 | if (PyErr_Occurred()) SWIG_fail; | |
8570 | } | |
8571 | { | |
8572 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8573 | if (PyErr_Occurred()) SWIG_fail; | |
8574 | } | |
d14a1e28 RD |
8575 | { |
8576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8577 | result = (arg1)->Scale(arg2,arg3); | |
8578 | ||
8579 | wxPyEndAllowThreads(__tstate); | |
8580 | if (PyErr_Occurred()) SWIG_fail; | |
8581 | } | |
8582 | { | |
8583 | wxImage * resultptr; | |
8584 | resultptr = new wxImage((wxImage &) result); | |
8585 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8586 | } | |
8587 | return resultobj; | |
8588 | fail: | |
8589 | return NULL; | |
8590 | } | |
8591 | ||
8592 | ||
8593 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8594 | PyObject *resultobj; | |
8595 | wxImage *arg1 = (wxImage *) 0 ; | |
8596 | int arg2 ; | |
8597 | int arg3 ; | |
8598 | SwigValueWrapper< wxImage > result; | |
8599 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8600 | PyObject * obj1 = 0 ; |
8601 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8602 | char *kwnames[] = { |
8603 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
8604 | }; | |
8605 | ||
994141e6 | 8606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8608 | { |
8609 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8610 | if (PyErr_Occurred()) SWIG_fail; | |
8611 | } | |
8612 | { | |
8613 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8614 | if (PyErr_Occurred()) SWIG_fail; | |
8615 | } | |
d14a1e28 RD |
8616 | { |
8617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8618 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
8619 | ||
8620 | wxPyEndAllowThreads(__tstate); | |
8621 | if (PyErr_Occurred()) SWIG_fail; | |
8622 | } | |
8623 | { | |
8624 | wxImage * resultptr; | |
8625 | resultptr = new wxImage((wxImage &) result); | |
8626 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8627 | } | |
8628 | return resultobj; | |
8629 | fail: | |
8630 | return NULL; | |
8631 | } | |
8632 | ||
8633 | ||
8634 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8635 | PyObject *resultobj; | |
8636 | wxImage *arg1 = (wxImage *) 0 ; | |
8637 | int arg2 ; | |
8638 | int arg3 ; | |
8639 | wxImage *result; | |
8640 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8641 | PyObject * obj1 = 0 ; |
8642 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8643 | char *kwnames[] = { |
8644 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8645 | }; | |
8646 | ||
994141e6 | 8647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8649 | { |
8650 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8651 | if (PyErr_Occurred()) SWIG_fail; | |
8652 | } | |
8653 | { | |
8654 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8655 | if (PyErr_Occurred()) SWIG_fail; | |
8656 | } | |
d14a1e28 RD |
8657 | { |
8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8659 | { | |
8660 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
8661 | result = (wxImage *) &_result_ref; | |
8662 | } | |
8663 | ||
8664 | wxPyEndAllowThreads(__tstate); | |
8665 | if (PyErr_Occurred()) SWIG_fail; | |
8666 | } | |
8667 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 0); | |
8668 | return resultobj; | |
8669 | fail: | |
8670 | return NULL; | |
8671 | } | |
8672 | ||
8673 | ||
8674 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8675 | PyObject *resultobj; | |
8676 | wxImage *arg1 = (wxImage *) 0 ; | |
8677 | int arg2 ; | |
8678 | int arg3 ; | |
8679 | unsigned char arg4 ; | |
8680 | unsigned char arg5 ; | |
8681 | unsigned char arg6 ; | |
8682 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8683 | PyObject * obj1 = 0 ; |
8684 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8685 | PyObject * obj3 = 0 ; |
8686 | PyObject * obj4 = 0 ; | |
8687 | PyObject * obj5 = 0 ; | |
8688 | char *kwnames[] = { | |
8689 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
8690 | }; | |
8691 | ||
994141e6 | 8692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 8693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 8694 | { |
994141e6 RD |
8695 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
8696 | if (PyErr_Occurred()) SWIG_fail; | |
8697 | } | |
8698 | { | |
8699 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8700 | if (PyErr_Occurred()) SWIG_fail; | |
8701 | } | |
8702 | { | |
8703 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); | |
a41e16b6 RD |
8704 | if (PyErr_Occurred()) SWIG_fail; |
8705 | } | |
8706 | { | |
994141e6 | 8707 | arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj4); |
a41e16b6 RD |
8708 | if (PyErr_Occurred()) SWIG_fail; |
8709 | } | |
8710 | { | |
994141e6 | 8711 | arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj5); |
a41e16b6 RD |
8712 | if (PyErr_Occurred()) SWIG_fail; |
8713 | } | |
d14a1e28 RD |
8714 | { |
8715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8716 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
8717 | ||
8718 | wxPyEndAllowThreads(__tstate); | |
8719 | if (PyErr_Occurred()) SWIG_fail; | |
8720 | } | |
8721 | Py_INCREF(Py_None); resultobj = Py_None; | |
8722 | return resultobj; | |
8723 | fail: | |
8724 | return NULL; | |
8725 | } | |
8726 | ||
8727 | ||
8728 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8729 | PyObject *resultobj; | |
8730 | wxImage *arg1 = (wxImage *) 0 ; | |
8731 | int arg2 ; | |
8732 | int arg3 ; | |
8733 | unsigned char result; | |
8734 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8735 | PyObject * obj1 = 0 ; |
8736 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8737 | char *kwnames[] = { |
8738 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8739 | }; | |
8740 | ||
994141e6 | 8741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8743 | { |
8744 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8745 | if (PyErr_Occurred()) SWIG_fail; | |
8746 | } | |
8747 | { | |
8748 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8749 | if (PyErr_Occurred()) SWIG_fail; | |
8750 | } | |
d14a1e28 RD |
8751 | { |
8752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8753 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
8754 | ||
8755 | wxPyEndAllowThreads(__tstate); | |
8756 | if (PyErr_Occurred()) SWIG_fail; | |
8757 | } | |
994141e6 | 8758 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
8759 | return resultobj; |
8760 | fail: | |
8761 | return NULL; | |
8762 | } | |
8763 | ||
8764 | ||
8765 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8766 | PyObject *resultobj; | |
8767 | wxImage *arg1 = (wxImage *) 0 ; | |
8768 | int arg2 ; | |
8769 | int arg3 ; | |
8770 | unsigned char result; | |
8771 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8772 | PyObject * obj1 = 0 ; |
8773 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8774 | char *kwnames[] = { |
8775 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8776 | }; | |
8777 | ||
994141e6 | 8778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8780 | { |
8781 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8782 | if (PyErr_Occurred()) SWIG_fail; | |
8783 | } | |
8784 | { | |
8785 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8786 | if (PyErr_Occurred()) SWIG_fail; | |
8787 | } | |
d14a1e28 RD |
8788 | { |
8789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8790 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
8791 | ||
8792 | wxPyEndAllowThreads(__tstate); | |
8793 | if (PyErr_Occurred()) SWIG_fail; | |
8794 | } | |
994141e6 | 8795 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
8796 | return resultobj; |
8797 | fail: | |
8798 | return NULL; | |
8799 | } | |
8800 | ||
8801 | ||
8802 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8803 | PyObject *resultobj; | |
8804 | wxImage *arg1 = (wxImage *) 0 ; | |
8805 | int arg2 ; | |
8806 | int arg3 ; | |
8807 | unsigned char result; | |
8808 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8809 | PyObject * obj1 = 0 ; |
8810 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8811 | char *kwnames[] = { |
8812 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8813 | }; | |
8814 | ||
994141e6 | 8815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8817 | { |
8818 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8819 | if (PyErr_Occurred()) SWIG_fail; | |
8820 | } | |
8821 | { | |
8822 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8823 | if (PyErr_Occurred()) SWIG_fail; | |
8824 | } | |
d14a1e28 RD |
8825 | { |
8826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8827 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
8828 | ||
8829 | wxPyEndAllowThreads(__tstate); | |
8830 | if (PyErr_Occurred()) SWIG_fail; | |
8831 | } | |
994141e6 | 8832 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
8833 | return resultobj; |
8834 | fail: | |
8835 | return NULL; | |
8836 | } | |
8837 | ||
8838 | ||
8839 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8840 | PyObject *resultobj; | |
8841 | wxImage *arg1 = (wxImage *) 0 ; | |
8842 | int arg2 ; | |
8843 | int arg3 ; | |
8844 | unsigned char arg4 ; | |
8845 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8846 | PyObject * obj1 = 0 ; |
8847 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8848 | PyObject * obj3 = 0 ; |
8849 | char *kwnames[] = { | |
8850 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
8851 | }; | |
8852 | ||
994141e6 | 8853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 8855 | { |
994141e6 RD |
8856 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
8857 | if (PyErr_Occurred()) SWIG_fail; | |
8858 | } | |
8859 | { | |
8860 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8861 | if (PyErr_Occurred()) SWIG_fail; | |
8862 | } | |
8863 | { | |
8864 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); | |
a41e16b6 RD |
8865 | if (PyErr_Occurred()) SWIG_fail; |
8866 | } | |
d14a1e28 RD |
8867 | { |
8868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8869 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
8870 | ||
8871 | wxPyEndAllowThreads(__tstate); | |
8872 | if (PyErr_Occurred()) SWIG_fail; | |
8873 | } | |
8874 | Py_INCREF(Py_None); resultobj = Py_None; | |
8875 | return resultobj; | |
8876 | fail: | |
8877 | return NULL; | |
8878 | } | |
8879 | ||
8880 | ||
8881 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8882 | PyObject *resultobj; | |
8883 | wxImage *arg1 = (wxImage *) 0 ; | |
8884 | int arg2 ; | |
8885 | int arg3 ; | |
8886 | unsigned char result; | |
8887 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8888 | PyObject * obj1 = 0 ; |
8889 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8890 | char *kwnames[] = { |
8891 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8892 | }; | |
8893 | ||
994141e6 | 8894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8896 | { |
8897 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8898 | if (PyErr_Occurred()) SWIG_fail; | |
8899 | } | |
8900 | { | |
8901 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8902 | if (PyErr_Occurred()) SWIG_fail; | |
8903 | } | |
d14a1e28 RD |
8904 | { |
8905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8906 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
8907 | ||
8908 | wxPyEndAllowThreads(__tstate); | |
8909 | if (PyErr_Occurred()) SWIG_fail; | |
8910 | } | |
994141e6 | 8911 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
8912 | return resultobj; |
8913 | fail: | |
8914 | return NULL; | |
8915 | } | |
8916 | ||
8917 | ||
8918 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8919 | PyObject *resultobj; | |
8920 | wxImage *arg1 = (wxImage *) 0 ; | |
8921 | bool result; | |
8922 | PyObject * obj0 = 0 ; | |
8923 | char *kwnames[] = { | |
8924 | (char *) "self", NULL | |
8925 | }; | |
8926 | ||
8927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
8928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8929 | { | |
8930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8931 | result = (bool)(arg1)->HasAlpha(); | |
8932 | ||
8933 | wxPyEndAllowThreads(__tstate); | |
8934 | if (PyErr_Occurred()) SWIG_fail; | |
8935 | } | |
4d5c3d91 | 8936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8937 | return resultobj; |
8938 | fail: | |
8939 | return NULL; | |
8940 | } | |
8941 | ||
8942 | ||
8943 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8944 | PyObject *resultobj; | |
8945 | wxImage *arg1 = (wxImage *) 0 ; | |
8946 | byte *arg2 = (byte *) 0 ; | |
8947 | byte *arg3 = (byte *) 0 ; | |
8948 | byte *arg4 = (byte *) 0 ; | |
8949 | byte arg5 = (byte) 0 ; | |
8950 | byte arg6 = (byte) 0 ; | |
8951 | byte arg7 = (byte) 0 ; | |
8952 | bool result; | |
8953 | byte temp2 ; | |
8954 | byte temp3 ; | |
8955 | byte temp4 ; | |
8956 | PyObject * obj0 = 0 ; | |
8957 | PyObject * obj1 = 0 ; | |
8958 | PyObject * obj2 = 0 ; | |
8959 | PyObject * obj3 = 0 ; | |
8960 | char *kwnames[] = { | |
8961 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8962 | }; | |
8963 | ||
8964 | arg2 = &temp2; | |
8965 | arg3 = &temp3; | |
8966 | arg4 = &temp4; | |
8967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8969 | if (obj1) { | |
a41e16b6 | 8970 | { |
994141e6 | 8971 | arg5 = (byte) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
8972 | if (PyErr_Occurred()) SWIG_fail; |
8973 | } | |
d14a1e28 RD |
8974 | } |
8975 | if (obj2) { | |
a41e16b6 | 8976 | { |
994141e6 | 8977 | arg6 = (byte) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
8978 | if (PyErr_Occurred()) SWIG_fail; |
8979 | } | |
d14a1e28 RD |
8980 | } |
8981 | if (obj3) { | |
a41e16b6 | 8982 | { |
994141e6 | 8983 | arg7 = (byte) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
8984 | if (PyErr_Occurred()) SWIG_fail; |
8985 | } | |
d14a1e28 RD |
8986 | } |
8987 | { | |
8988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8989 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8990 | ||
8991 | wxPyEndAllowThreads(__tstate); | |
8992 | if (PyErr_Occurred()) SWIG_fail; | |
8993 | } | |
4d5c3d91 | 8994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8995 | { |
8996 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8997 | resultobj = t_output_helper(resultobj,o); | |
8998 | } | |
8999 | { | |
9000 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9001 | resultobj = t_output_helper(resultobj,o); | |
9002 | } | |
9003 | { | |
9004 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9005 | resultobj = t_output_helper(resultobj,o); | |
9006 | } | |
9007 | return resultobj; | |
9008 | fail: | |
9009 | return NULL; | |
9010 | } | |
9011 | ||
9012 | ||
9013 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9014 | PyObject *resultobj; | |
9015 | wxImage *arg1 = (wxImage *) 0 ; | |
9016 | wxImage *arg2 = 0 ; | |
9017 | byte arg3 ; | |
9018 | byte arg4 ; | |
9019 | byte arg5 ; | |
9020 | bool result; | |
9021 | PyObject * obj0 = 0 ; | |
9022 | PyObject * obj1 = 0 ; | |
9023 | PyObject * obj2 = 0 ; | |
9024 | PyObject * obj3 = 0 ; | |
9025 | PyObject * obj4 = 0 ; | |
9026 | char *kwnames[] = { | |
9027 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9028 | }; | |
9029 | ||
9030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9032 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9033 | if (arg2 == NULL) { | |
9034 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9035 | } | |
a41e16b6 | 9036 | { |
994141e6 | 9037 | arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
9038 | if (PyErr_Occurred()) SWIG_fail; |
9039 | } | |
9040 | { | |
994141e6 | 9041 | arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
9042 | if (PyErr_Occurred()) SWIG_fail; |
9043 | } | |
9044 | { | |
994141e6 | 9045 | arg5 = (byte) SWIG_PyObj_AsUnsignedChar(obj4); |
a41e16b6 RD |
9046 | if (PyErr_Occurred()) SWIG_fail; |
9047 | } | |
d14a1e28 RD |
9048 | { |
9049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9050 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9051 | ||
9052 | wxPyEndAllowThreads(__tstate); | |
9053 | if (PyErr_Occurred()) SWIG_fail; | |
9054 | } | |
4d5c3d91 | 9055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9056 | return resultobj; |
9057 | fail: | |
9058 | return NULL; | |
9059 | } | |
9060 | ||
9061 | ||
9062 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9063 | PyObject *resultobj; | |
9064 | wxString *arg1 = 0 ; | |
9065 | bool result; | |
e811c8ce | 9066 | bool temp1 = False ; |
d14a1e28 RD |
9067 | PyObject * obj0 = 0 ; |
9068 | char *kwnames[] = { | |
9069 | (char *) "name", NULL | |
9070 | }; | |
9071 | ||
9072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9073 | { | |
9074 | arg1 = wxString_in_helper(obj0); | |
9075 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9076 | temp1 = True; |
d14a1e28 RD |
9077 | } |
9078 | { | |
9079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9080 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9081 | ||
9082 | wxPyEndAllowThreads(__tstate); | |
9083 | if (PyErr_Occurred()) SWIG_fail; | |
9084 | } | |
4d5c3d91 | 9085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9086 | { |
9087 | if (temp1) | |
9088 | delete arg1; | |
9089 | } | |
9090 | return resultobj; | |
9091 | fail: | |
9092 | { | |
9093 | if (temp1) | |
9094 | delete arg1; | |
9095 | } | |
9096 | return NULL; | |
9097 | } | |
9098 | ||
9099 | ||
9100 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9101 | PyObject *resultobj; | |
9102 | wxString *arg1 = 0 ; | |
9103 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9104 | int result; | |
e811c8ce | 9105 | bool temp1 = False ; |
d14a1e28 | 9106 | PyObject * obj0 = 0 ; |
994141e6 | 9107 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9108 | char *kwnames[] = { |
9109 | (char *) "name",(char *) "type", NULL | |
9110 | }; | |
9111 | ||
994141e6 | 9112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9113 | { |
9114 | arg1 = wxString_in_helper(obj0); | |
9115 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9116 | temp1 = True; |
d14a1e28 | 9117 | } |
994141e6 RD |
9118 | if (obj1) { |
9119 | { | |
9120 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
9121 | if (PyErr_Occurred()) SWIG_fail; | |
9122 | } | |
9123 | } | |
d14a1e28 RD |
9124 | { |
9125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9126 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9127 | ||
9128 | wxPyEndAllowThreads(__tstate); | |
9129 | if (PyErr_Occurred()) SWIG_fail; | |
9130 | } | |
994141e6 | 9131 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9132 | { |
9133 | if (temp1) | |
9134 | delete arg1; | |
9135 | } | |
9136 | return resultobj; | |
9137 | fail: | |
9138 | { | |
9139 | if (temp1) | |
9140 | delete arg1; | |
9141 | } | |
9142 | return NULL; | |
9143 | } | |
9144 | ||
9145 | ||
9146 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9147 | PyObject *resultobj; | |
9148 | wxImage *arg1 = (wxImage *) 0 ; | |
9149 | wxString *arg2 = 0 ; | |
9150 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9151 | int arg4 = (int) -1 ; | |
9152 | bool result; | |
e811c8ce | 9153 | bool temp2 = False ; |
d14a1e28 RD |
9154 | PyObject * obj0 = 0 ; |
9155 | PyObject * obj1 = 0 ; | |
994141e6 RD |
9156 | PyObject * obj2 = 0 ; |
9157 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9158 | char *kwnames[] = { |
9159 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9160 | }; | |
9161 | ||
994141e6 | 9162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9164 | { | |
9165 | arg2 = wxString_in_helper(obj1); | |
9166 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9167 | temp2 = True; |
d14a1e28 | 9168 | } |
994141e6 RD |
9169 | if (obj2) { |
9170 | { | |
9171 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9172 | if (PyErr_Occurred()) SWIG_fail; | |
9173 | } | |
9174 | } | |
9175 | if (obj3) { | |
9176 | { | |
9177 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9178 | if (PyErr_Occurred()) SWIG_fail; | |
9179 | } | |
9180 | } | |
d14a1e28 RD |
9181 | { |
9182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9183 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9184 | ||
9185 | wxPyEndAllowThreads(__tstate); | |
9186 | if (PyErr_Occurred()) SWIG_fail; | |
9187 | } | |
4d5c3d91 | 9188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9189 | { |
9190 | if (temp2) | |
9191 | delete arg2; | |
9192 | } | |
9193 | return resultobj; | |
9194 | fail: | |
9195 | { | |
9196 | if (temp2) | |
9197 | delete arg2; | |
9198 | } | |
9199 | return NULL; | |
9200 | } | |
9201 | ||
9202 | ||
9203 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9204 | PyObject *resultobj; | |
9205 | wxImage *arg1 = (wxImage *) 0 ; | |
9206 | wxString *arg2 = 0 ; | |
9207 | wxString *arg3 = 0 ; | |
9208 | int arg4 = (int) -1 ; | |
9209 | bool result; | |
e811c8ce RD |
9210 | bool temp2 = False ; |
9211 | bool temp3 = False ; | |
d14a1e28 RD |
9212 | PyObject * obj0 = 0 ; |
9213 | PyObject * obj1 = 0 ; | |
9214 | PyObject * obj2 = 0 ; | |
994141e6 | 9215 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9216 | char *kwnames[] = { |
9217 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9218 | }; | |
9219 | ||
994141e6 | 9220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9222 | { | |
9223 | arg2 = wxString_in_helper(obj1); | |
9224 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9225 | temp2 = True; |
d14a1e28 RD |
9226 | } |
9227 | { | |
9228 | arg3 = wxString_in_helper(obj2); | |
9229 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9230 | temp3 = True; |
d14a1e28 | 9231 | } |
994141e6 RD |
9232 | if (obj3) { |
9233 | { | |
9234 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9235 | if (PyErr_Occurred()) SWIG_fail; | |
9236 | } | |
9237 | } | |
d14a1e28 RD |
9238 | { |
9239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9240 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9241 | ||
9242 | wxPyEndAllowThreads(__tstate); | |
9243 | if (PyErr_Occurred()) SWIG_fail; | |
9244 | } | |
4d5c3d91 | 9245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9246 | { |
9247 | if (temp2) | |
9248 | delete arg2; | |
9249 | } | |
9250 | { | |
9251 | if (temp3) | |
9252 | delete arg3; | |
9253 | } | |
9254 | return resultobj; | |
9255 | fail: | |
9256 | { | |
9257 | if (temp2) | |
9258 | delete arg2; | |
9259 | } | |
9260 | { | |
9261 | if (temp3) | |
9262 | delete arg3; | |
9263 | } | |
9264 | return NULL; | |
9265 | } | |
9266 | ||
9267 | ||
9268 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9269 | PyObject *resultobj; | |
9270 | wxImage *arg1 = (wxImage *) 0 ; | |
9271 | wxString *arg2 = 0 ; | |
9272 | int arg3 ; | |
9273 | bool result; | |
e811c8ce | 9274 | bool temp2 = False ; |
d14a1e28 RD |
9275 | PyObject * obj0 = 0 ; |
9276 | PyObject * obj1 = 0 ; | |
994141e6 | 9277 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9278 | char *kwnames[] = { |
9279 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9280 | }; | |
9281 | ||
994141e6 | 9282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9284 | { | |
9285 | arg2 = wxString_in_helper(obj1); | |
9286 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9287 | temp2 = True; |
d14a1e28 | 9288 | } |
994141e6 RD |
9289 | { |
9290 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9291 | if (PyErr_Occurred()) SWIG_fail; | |
9292 | } | |
d14a1e28 RD |
9293 | { |
9294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9295 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9296 | ||
9297 | wxPyEndAllowThreads(__tstate); | |
9298 | if (PyErr_Occurred()) SWIG_fail; | |
9299 | } | |
4d5c3d91 | 9300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9301 | { |
9302 | if (temp2) | |
9303 | delete arg2; | |
9304 | } | |
9305 | return resultobj; | |
9306 | fail: | |
9307 | { | |
9308 | if (temp2) | |
9309 | delete arg2; | |
9310 | } | |
9311 | return NULL; | |
9312 | } | |
9313 | ||
9314 | ||
9315 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9316 | PyObject *resultobj; | |
9317 | wxImage *arg1 = (wxImage *) 0 ; | |
9318 | wxString *arg2 = 0 ; | |
9319 | wxString *arg3 = 0 ; | |
9320 | bool result; | |
e811c8ce RD |
9321 | bool temp2 = False ; |
9322 | bool temp3 = False ; | |
d14a1e28 RD |
9323 | PyObject * obj0 = 0 ; |
9324 | PyObject * obj1 = 0 ; | |
9325 | PyObject * obj2 = 0 ; | |
9326 | char *kwnames[] = { | |
9327 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9328 | }; | |
9329 | ||
9330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9332 | { | |
9333 | arg2 = wxString_in_helper(obj1); | |
9334 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9335 | temp2 = True; |
d14a1e28 RD |
9336 | } |
9337 | { | |
9338 | arg3 = wxString_in_helper(obj2); | |
9339 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9340 | temp3 = True; |
d14a1e28 RD |
9341 | } |
9342 | { | |
9343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9344 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9345 | ||
9346 | wxPyEndAllowThreads(__tstate); | |
9347 | if (PyErr_Occurred()) SWIG_fail; | |
9348 | } | |
4d5c3d91 | 9349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9350 | { |
9351 | if (temp2) | |
9352 | delete arg2; | |
9353 | } | |
9354 | { | |
9355 | if (temp3) | |
9356 | delete arg3; | |
9357 | } | |
9358 | return resultobj; | |
9359 | fail: | |
9360 | { | |
9361 | if (temp2) | |
9362 | delete arg2; | |
9363 | } | |
9364 | { | |
9365 | if (temp3) | |
9366 | delete arg3; | |
9367 | } | |
9368 | return NULL; | |
9369 | } | |
9370 | ||
9371 | ||
9372 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9373 | PyObject *resultobj; | |
9374 | wxInputStream *arg1 = 0 ; | |
9375 | bool result; | |
9376 | wxPyInputStream *temp1 ; | |
9377 | bool created1 ; | |
9378 | PyObject * obj0 = 0 ; | |
9379 | char *kwnames[] = { | |
9380 | (char *) "stream", NULL | |
9381 | }; | |
9382 | ||
9383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9384 | { | |
9385 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9386 | arg1 = temp1->m_wxis; | |
e811c8ce | 9387 | created1 = False; |
d14a1e28 RD |
9388 | } else { |
9389 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9390 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
9391 | if (arg1 == NULL) { |
9392 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9393 | SWIG_fail; | |
9394 | } | |
e811c8ce | 9395 | created1 = True; |
d14a1e28 RD |
9396 | } |
9397 | } | |
9398 | { | |
9399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9400 | result = (bool)wxImage::CanRead(*arg1); | |
9401 | ||
9402 | wxPyEndAllowThreads(__tstate); | |
9403 | if (PyErr_Occurred()) SWIG_fail; | |
9404 | } | |
4d5c3d91 | 9405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9406 | { |
9407 | if (created1) | |
9408 | delete arg1; | |
9409 | } | |
9410 | return resultobj; | |
9411 | fail: | |
9412 | { | |
9413 | if (created1) | |
9414 | delete arg1; | |
9415 | } | |
9416 | return NULL; | |
9417 | } | |
9418 | ||
9419 | ||
9420 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9421 | PyObject *resultobj; | |
9422 | wxImage *arg1 = (wxImage *) 0 ; | |
9423 | wxInputStream *arg2 = 0 ; | |
9424 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9425 | int arg4 = (int) -1 ; | |
9426 | bool result; | |
9427 | wxPyInputStream *temp2 ; | |
9428 | bool created2 ; | |
9429 | PyObject * obj0 = 0 ; | |
9430 | PyObject * obj1 = 0 ; | |
994141e6 RD |
9431 | PyObject * obj2 = 0 ; |
9432 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9433 | char *kwnames[] = { |
9434 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9435 | }; | |
9436 | ||
994141e6 | 9437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9439 | { | |
9440 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9441 | arg2 = temp2->m_wxis; | |
e811c8ce | 9442 | created2 = False; |
d14a1e28 RD |
9443 | } else { |
9444 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9445 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9446 | if (arg2 == NULL) { |
9447 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9448 | SWIG_fail; | |
9449 | } | |
e811c8ce | 9450 | created2 = True; |
d14a1e28 RD |
9451 | } |
9452 | } | |
994141e6 RD |
9453 | if (obj2) { |
9454 | { | |
9455 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9456 | if (PyErr_Occurred()) SWIG_fail; | |
9457 | } | |
9458 | } | |
9459 | if (obj3) { | |
9460 | { | |
9461 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9462 | if (PyErr_Occurred()) SWIG_fail; | |
9463 | } | |
9464 | } | |
d14a1e28 RD |
9465 | { |
9466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9467 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9468 | ||
9469 | wxPyEndAllowThreads(__tstate); | |
9470 | if (PyErr_Occurred()) SWIG_fail; | |
9471 | } | |
4d5c3d91 | 9472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9473 | { |
9474 | if (created2) | |
9475 | delete arg2; | |
9476 | } | |
9477 | return resultobj; | |
9478 | fail: | |
9479 | { | |
9480 | if (created2) | |
9481 | delete arg2; | |
9482 | } | |
9483 | return NULL; | |
9484 | } | |
9485 | ||
9486 | ||
9487 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9488 | PyObject *resultobj; | |
9489 | wxImage *arg1 = (wxImage *) 0 ; | |
9490 | wxInputStream *arg2 = 0 ; | |
9491 | wxString *arg3 = 0 ; | |
9492 | int arg4 = (int) -1 ; | |
9493 | bool result; | |
9494 | wxPyInputStream *temp2 ; | |
9495 | bool created2 ; | |
e811c8ce | 9496 | bool temp3 = False ; |
d14a1e28 RD |
9497 | PyObject * obj0 = 0 ; |
9498 | PyObject * obj1 = 0 ; | |
9499 | PyObject * obj2 = 0 ; | |
994141e6 | 9500 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9501 | char *kwnames[] = { |
9502 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9503 | }; | |
9504 | ||
994141e6 | 9505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9507 | { | |
9508 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9509 | arg2 = temp2->m_wxis; | |
e811c8ce | 9510 | created2 = False; |
d14a1e28 RD |
9511 | } else { |
9512 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9513 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9514 | if (arg2 == NULL) { |
9515 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9516 | SWIG_fail; | |
9517 | } | |
e811c8ce | 9518 | created2 = True; |
d14a1e28 RD |
9519 | } |
9520 | } | |
9521 | { | |
9522 | arg3 = wxString_in_helper(obj2); | |
9523 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9524 | temp3 = True; |
d14a1e28 | 9525 | } |
994141e6 RD |
9526 | if (obj3) { |
9527 | { | |
9528 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9529 | if (PyErr_Occurred()) SWIG_fail; | |
9530 | } | |
9531 | } | |
d14a1e28 RD |
9532 | { |
9533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9534 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9535 | ||
9536 | wxPyEndAllowThreads(__tstate); | |
9537 | if (PyErr_Occurred()) SWIG_fail; | |
9538 | } | |
4d5c3d91 | 9539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9540 | { |
9541 | if (created2) | |
9542 | delete arg2; | |
9543 | } | |
9544 | { | |
9545 | if (temp3) | |
9546 | delete arg3; | |
9547 | } | |
9548 | return resultobj; | |
9549 | fail: | |
9550 | { | |
9551 | if (created2) | |
9552 | delete arg2; | |
9553 | } | |
9554 | { | |
9555 | if (temp3) | |
9556 | delete arg3; | |
9557 | } | |
9558 | return NULL; | |
9559 | } | |
9560 | ||
9561 | ||
9562 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9563 | PyObject *resultobj; | |
9564 | wxImage *arg1 = (wxImage *) 0 ; | |
9565 | bool result; | |
9566 | PyObject * obj0 = 0 ; | |
9567 | char *kwnames[] = { | |
9568 | (char *) "self", NULL | |
9569 | }; | |
9570 | ||
9571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
9572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9573 | { | |
9574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9575 | result = (bool)(arg1)->Ok(); | |
9576 | ||
9577 | wxPyEndAllowThreads(__tstate); | |
9578 | if (PyErr_Occurred()) SWIG_fail; | |
9579 | } | |
4d5c3d91 | 9580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9581 | return resultobj; |
9582 | fail: | |
9583 | return NULL; | |
9584 | } | |
9585 | ||
9586 | ||
9587 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9588 | PyObject *resultobj; | |
9589 | wxImage *arg1 = (wxImage *) 0 ; | |
9590 | int result; | |
9591 | PyObject * obj0 = 0 ; | |
9592 | char *kwnames[] = { | |
9593 | (char *) "self", NULL | |
9594 | }; | |
9595 | ||
9596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
9597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9598 | { | |
9599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9600 | result = (int)(arg1)->GetWidth(); | |
9601 | ||
9602 | wxPyEndAllowThreads(__tstate); | |
9603 | if (PyErr_Occurred()) SWIG_fail; | |
9604 | } | |
994141e6 | 9605 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9606 | return resultobj; |
9607 | fail: | |
9608 | return NULL; | |
9609 | } | |
9610 | ||
9611 | ||
9612 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9613 | PyObject *resultobj; | |
9614 | wxImage *arg1 = (wxImage *) 0 ; | |
9615 | int result; | |
9616 | PyObject * obj0 = 0 ; | |
9617 | char *kwnames[] = { | |
9618 | (char *) "self", NULL | |
9619 | }; | |
9620 | ||
9621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
9622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9623 | { | |
9624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9625 | result = (int)(arg1)->GetHeight(); | |
9626 | ||
9627 | wxPyEndAllowThreads(__tstate); | |
9628 | if (PyErr_Occurred()) SWIG_fail; | |
9629 | } | |
994141e6 | 9630 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9631 | return resultobj; |
9632 | fail: | |
9633 | return NULL; | |
9634 | } | |
9635 | ||
9636 | ||
9637 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9638 | PyObject *resultobj; | |
9639 | wxImage *arg1 = (wxImage *) 0 ; | |
9640 | wxRect *arg2 = 0 ; | |
9641 | SwigValueWrapper< wxImage > result; | |
9642 | wxRect temp2 ; | |
9643 | PyObject * obj0 = 0 ; | |
9644 | PyObject * obj1 = 0 ; | |
9645 | char *kwnames[] = { | |
9646 | (char *) "self",(char *) "rect", NULL | |
9647 | }; | |
9648 | ||
9649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
9650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9651 | { | |
9652 | arg2 = &temp2; | |
9653 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9654 | } | |
9655 | { | |
9656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9657 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
9658 | ||
9659 | wxPyEndAllowThreads(__tstate); | |
9660 | if (PyErr_Occurred()) SWIG_fail; | |
9661 | } | |
9662 | { | |
9663 | wxImage * resultptr; | |
9664 | resultptr = new wxImage((wxImage &) result); | |
9665 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9666 | } | |
9667 | return resultobj; | |
9668 | fail: | |
9669 | return NULL; | |
9670 | } | |
9671 | ||
9672 | ||
9673 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9674 | PyObject *resultobj; | |
9675 | wxImage *arg1 = (wxImage *) 0 ; | |
9676 | SwigValueWrapper< wxImage > result; | |
9677 | PyObject * obj0 = 0 ; | |
9678 | char *kwnames[] = { | |
9679 | (char *) "self", NULL | |
9680 | }; | |
9681 | ||
9682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
9683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9684 | { | |
9685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9686 | result = (arg1)->Copy(); | |
9687 | ||
9688 | wxPyEndAllowThreads(__tstate); | |
9689 | if (PyErr_Occurred()) SWIG_fail; | |
9690 | } | |
9691 | { | |
9692 | wxImage * resultptr; | |
9693 | resultptr = new wxImage((wxImage &) result); | |
9694 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9695 | } | |
9696 | return resultobj; | |
9697 | fail: | |
9698 | return NULL; | |
9699 | } | |
9700 | ||
9701 | ||
9702 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9703 | PyObject *resultobj; | |
9704 | wxImage *arg1 = (wxImage *) 0 ; | |
9705 | wxImage *arg2 = 0 ; | |
9706 | int arg3 ; | |
9707 | int arg4 ; | |
9708 | PyObject * obj0 = 0 ; | |
9709 | PyObject * obj1 = 0 ; | |
994141e6 RD |
9710 | PyObject * obj2 = 0 ; |
9711 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9712 | char *kwnames[] = { |
9713 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
9714 | }; | |
9715 | ||
994141e6 | 9716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9718 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9719 | if (arg2 == NULL) { | |
9720 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9721 | } | |
994141e6 RD |
9722 | { |
9723 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9724 | if (PyErr_Occurred()) SWIG_fail; | |
9725 | } | |
9726 | { | |
9727 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9728 | if (PyErr_Occurred()) SWIG_fail; | |
9729 | } | |
d14a1e28 RD |
9730 | { |
9731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9732 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
9733 | ||
9734 | wxPyEndAllowThreads(__tstate); | |
9735 | if (PyErr_Occurred()) SWIG_fail; | |
9736 | } | |
9737 | Py_INCREF(Py_None); resultobj = Py_None; | |
9738 | return resultobj; | |
9739 | fail: | |
9740 | return NULL; | |
9741 | } | |
9742 | ||
9743 | ||
9744 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9745 | PyObject *resultobj; | |
9746 | wxImage *arg1 = (wxImage *) 0 ; | |
9747 | PyObject *result; | |
9748 | PyObject * obj0 = 0 ; | |
9749 | char *kwnames[] = { | |
9750 | (char *) "self", NULL | |
9751 | }; | |
9752 | ||
9753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
9754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9755 | { | |
9756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9757 | result = (PyObject *)wxImage_GetData(arg1); | |
9758 | ||
9759 | wxPyEndAllowThreads(__tstate); | |
9760 | if (PyErr_Occurred()) SWIG_fail; | |
9761 | } | |
9762 | resultobj = result; | |
9763 | return resultobj; | |
9764 | fail: | |
9765 | return NULL; | |
9766 | } | |
9767 | ||
9768 | ||
9769 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9770 | PyObject *resultobj; | |
9771 | wxImage *arg1 = (wxImage *) 0 ; | |
9772 | PyObject *arg2 = (PyObject *) 0 ; | |
9773 | PyObject * obj0 = 0 ; | |
9774 | PyObject * obj1 = 0 ; | |
9775 | char *kwnames[] = { | |
9776 | (char *) "self",(char *) "data", NULL | |
9777 | }; | |
9778 | ||
9779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
9780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9781 | arg2 = obj1; | |
9782 | { | |
9783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9784 | wxImage_SetData(arg1,arg2); | |
9785 | ||
9786 | wxPyEndAllowThreads(__tstate); | |
9787 | if (PyErr_Occurred()) SWIG_fail; | |
9788 | } | |
9789 | Py_INCREF(Py_None); resultobj = Py_None; | |
9790 | return resultobj; | |
9791 | fail: | |
9792 | return NULL; | |
9793 | } | |
9794 | ||
9795 | ||
9796 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9797 | PyObject *resultobj; | |
9798 | wxImage *arg1 = (wxImage *) 0 ; | |
9799 | PyObject *result; | |
9800 | PyObject * obj0 = 0 ; | |
9801 | char *kwnames[] = { | |
9802 | (char *) "self", NULL | |
9803 | }; | |
9804 | ||
9805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
9806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9807 | { | |
9808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9809 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
9810 | ||
9811 | wxPyEndAllowThreads(__tstate); | |
9812 | if (PyErr_Occurred()) SWIG_fail; | |
9813 | } | |
9814 | resultobj = result; | |
9815 | return resultobj; | |
9816 | fail: | |
9817 | return NULL; | |
9818 | } | |
9819 | ||
9820 | ||
9821 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9822 | PyObject *resultobj; | |
9823 | wxImage *arg1 = (wxImage *) 0 ; | |
9824 | PyObject *arg2 = (PyObject *) 0 ; | |
9825 | PyObject * obj0 = 0 ; | |
9826 | PyObject * obj1 = 0 ; | |
9827 | char *kwnames[] = { | |
9828 | (char *) "self",(char *) "data", NULL | |
9829 | }; | |
9830 | ||
9831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
9832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9833 | arg2 = obj1; | |
9834 | { | |
9835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9836 | wxImage_SetDataBuffer(arg1,arg2); | |
9837 | ||
9838 | wxPyEndAllowThreads(__tstate); | |
9839 | if (PyErr_Occurred()) SWIG_fail; | |
9840 | } | |
9841 | Py_INCREF(Py_None); resultobj = Py_None; | |
9842 | return resultobj; | |
9843 | fail: | |
9844 | return NULL; | |
9845 | } | |
9846 | ||
9847 | ||
9848 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9849 | PyObject *resultobj; | |
9850 | wxImage *arg1 = (wxImage *) 0 ; | |
9851 | PyObject *result; | |
9852 | PyObject * obj0 = 0 ; | |
9853 | char *kwnames[] = { | |
9854 | (char *) "self", NULL | |
9855 | }; | |
9856 | ||
9857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
9858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9859 | { | |
9860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9861 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
9862 | ||
9863 | wxPyEndAllowThreads(__tstate); | |
9864 | if (PyErr_Occurred()) SWIG_fail; | |
9865 | } | |
9866 | resultobj = result; | |
9867 | return resultobj; | |
9868 | fail: | |
9869 | return NULL; | |
9870 | } | |
9871 | ||
9872 | ||
9873 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9874 | PyObject *resultobj; | |
9875 | wxImage *arg1 = (wxImage *) 0 ; | |
9876 | PyObject *arg2 = (PyObject *) 0 ; | |
9877 | PyObject * obj0 = 0 ; | |
9878 | PyObject * obj1 = 0 ; | |
9879 | char *kwnames[] = { | |
9880 | (char *) "self",(char *) "data", NULL | |
9881 | }; | |
9882 | ||
9883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
9884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9885 | arg2 = obj1; | |
9886 | { | |
9887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9888 | wxImage_SetAlphaData(arg1,arg2); | |
9889 | ||
9890 | wxPyEndAllowThreads(__tstate); | |
9891 | if (PyErr_Occurred()) SWIG_fail; | |
9892 | } | |
9893 | Py_INCREF(Py_None); resultobj = Py_None; | |
9894 | return resultobj; | |
9895 | fail: | |
9896 | return NULL; | |
9897 | } | |
9898 | ||
9899 | ||
9900 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9901 | PyObject *resultobj; | |
9902 | wxImage *arg1 = (wxImage *) 0 ; | |
9903 | PyObject *result; | |
9904 | PyObject * obj0 = 0 ; | |
9905 | char *kwnames[] = { | |
9906 | (char *) "self", NULL | |
9907 | }; | |
9908 | ||
9909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
9910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9911 | { | |
9912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9913 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
9914 | ||
9915 | wxPyEndAllowThreads(__tstate); | |
9916 | if (PyErr_Occurred()) SWIG_fail; | |
9917 | } | |
9918 | resultobj = result; | |
9919 | return resultobj; | |
9920 | fail: | |
9921 | return NULL; | |
9922 | } | |
9923 | ||
9924 | ||
9925 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9926 | PyObject *resultobj; | |
9927 | wxImage *arg1 = (wxImage *) 0 ; | |
9928 | PyObject *arg2 = (PyObject *) 0 ; | |
9929 | PyObject * obj0 = 0 ; | |
9930 | PyObject * obj1 = 0 ; | |
9931 | char *kwnames[] = { | |
9932 | (char *) "self",(char *) "data", NULL | |
9933 | }; | |
9934 | ||
9935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
9936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9937 | arg2 = obj1; | |
9938 | { | |
9939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9940 | wxImage_SetAlphaBuffer(arg1,arg2); | |
9941 | ||
9942 | wxPyEndAllowThreads(__tstate); | |
9943 | if (PyErr_Occurred()) SWIG_fail; | |
9944 | } | |
9945 | Py_INCREF(Py_None); resultobj = Py_None; | |
9946 | return resultobj; | |
9947 | fail: | |
9948 | return NULL; | |
9949 | } | |
9950 | ||
9951 | ||
9952 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9953 | PyObject *resultobj; | |
9954 | wxImage *arg1 = (wxImage *) 0 ; | |
9955 | unsigned char arg2 ; | |
9956 | unsigned char arg3 ; | |
9957 | unsigned char arg4 ; | |
9958 | PyObject * obj0 = 0 ; | |
9959 | PyObject * obj1 = 0 ; | |
9960 | PyObject * obj2 = 0 ; | |
9961 | PyObject * obj3 = 0 ; | |
9962 | char *kwnames[] = { | |
9963 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9964 | }; | |
9965 | ||
9966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 9968 | { |
994141e6 | 9969 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
9970 | if (PyErr_Occurred()) SWIG_fail; |
9971 | } | |
9972 | { | |
994141e6 | 9973 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
9974 | if (PyErr_Occurred()) SWIG_fail; |
9975 | } | |
9976 | { | |
994141e6 | 9977 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
9978 | if (PyErr_Occurred()) SWIG_fail; |
9979 | } | |
d14a1e28 RD |
9980 | { |
9981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9982 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
9983 | ||
9984 | wxPyEndAllowThreads(__tstate); | |
9985 | if (PyErr_Occurred()) SWIG_fail; | |
9986 | } | |
9987 | Py_INCREF(Py_None); resultobj = Py_None; | |
9988 | return resultobj; | |
9989 | fail: | |
9990 | return NULL; | |
9991 | } | |
9992 | ||
9993 | ||
9994 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9995 | PyObject *resultobj; | |
9996 | wxImage *arg1 = (wxImage *) 0 ; | |
9997 | unsigned char result; | |
9998 | PyObject * obj0 = 0 ; | |
9999 | char *kwnames[] = { | |
10000 | (char *) "self", NULL | |
10001 | }; | |
10002 | ||
10003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
10004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10005 | { | |
10006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10007 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10008 | ||
10009 | wxPyEndAllowThreads(__tstate); | |
10010 | if (PyErr_Occurred()) SWIG_fail; | |
10011 | } | |
994141e6 | 10012 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10013 | return resultobj; |
10014 | fail: | |
10015 | return NULL; | |
10016 | } | |
10017 | ||
10018 | ||
10019 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10020 | PyObject *resultobj; | |
10021 | wxImage *arg1 = (wxImage *) 0 ; | |
10022 | unsigned char result; | |
10023 | PyObject * obj0 = 0 ; | |
10024 | char *kwnames[] = { | |
10025 | (char *) "self", NULL | |
10026 | }; | |
10027 | ||
10028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
10029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10030 | { | |
10031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10032 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10033 | ||
10034 | wxPyEndAllowThreads(__tstate); | |
10035 | if (PyErr_Occurred()) SWIG_fail; | |
10036 | } | |
994141e6 | 10037 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10038 | return resultobj; |
10039 | fail: | |
10040 | return NULL; | |
10041 | } | |
10042 | ||
10043 | ||
10044 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10045 | PyObject *resultobj; | |
10046 | wxImage *arg1 = (wxImage *) 0 ; | |
10047 | unsigned char result; | |
10048 | PyObject * obj0 = 0 ; | |
10049 | char *kwnames[] = { | |
10050 | (char *) "self", NULL | |
10051 | }; | |
10052 | ||
10053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
10054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10055 | { | |
10056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10057 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10058 | ||
10059 | wxPyEndAllowThreads(__tstate); | |
10060 | if (PyErr_Occurred()) SWIG_fail; | |
10061 | } | |
994141e6 | 10062 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10063 | return resultobj; |
10064 | fail: | |
10065 | return NULL; | |
10066 | } | |
10067 | ||
10068 | ||
10069 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10070 | PyObject *resultobj; | |
10071 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10072 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10073 | PyObject * obj0 = 0 ; |
10074 | PyObject * obj1 = 0 ; | |
10075 | char *kwnames[] = { | |
10076 | (char *) "self",(char *) "mask", NULL | |
10077 | }; | |
10078 | ||
10079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
10080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10081 | if (obj1) { | |
a41e16b6 | 10082 | { |
994141e6 | 10083 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
10084 | if (PyErr_Occurred()) SWIG_fail; |
10085 | } | |
d14a1e28 RD |
10086 | } |
10087 | { | |
10088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10089 | (arg1)->SetMask(arg2); | |
10090 | ||
10091 | wxPyEndAllowThreads(__tstate); | |
10092 | if (PyErr_Occurred()) SWIG_fail; | |
10093 | } | |
10094 | Py_INCREF(Py_None); resultobj = Py_None; | |
10095 | return resultobj; | |
10096 | fail: | |
10097 | return NULL; | |
10098 | } | |
10099 | ||
10100 | ||
10101 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10102 | PyObject *resultobj; | |
10103 | wxImage *arg1 = (wxImage *) 0 ; | |
10104 | bool result; | |
10105 | PyObject * obj0 = 0 ; | |
10106 | char *kwnames[] = { | |
10107 | (char *) "self", NULL | |
10108 | }; | |
10109 | ||
10110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
10111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10112 | { | |
10113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10114 | result = (bool)(arg1)->HasMask(); | |
10115 | ||
10116 | wxPyEndAllowThreads(__tstate); | |
10117 | if (PyErr_Occurred()) SWIG_fail; | |
10118 | } | |
4d5c3d91 | 10119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10120 | return resultobj; |
10121 | fail: | |
10122 | return NULL; | |
10123 | } | |
10124 | ||
10125 | ||
10126 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10127 | PyObject *resultobj; | |
10128 | wxImage *arg1 = (wxImage *) 0 ; | |
10129 | double arg2 ; | |
10130 | wxPoint *arg3 = 0 ; | |
e811c8ce | 10131 | bool arg4 = (bool) True ; |
d14a1e28 RD |
10132 | wxPoint *arg5 = (wxPoint *) NULL ; |
10133 | SwigValueWrapper< wxImage > result; | |
10134 | wxPoint temp3 ; | |
10135 | PyObject * obj0 = 0 ; | |
994141e6 | 10136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10137 | PyObject * obj2 = 0 ; |
10138 | PyObject * obj3 = 0 ; | |
10139 | PyObject * obj4 = 0 ; | |
10140 | char *kwnames[] = { | |
10141 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10142 | }; | |
10143 | ||
994141e6 | 10144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10146 | { |
10147 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
10148 | if (PyErr_Occurred()) SWIG_fail; | |
10149 | } | |
d14a1e28 RD |
10150 | { |
10151 | arg3 = &temp3; | |
10152 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10153 | } | |
10154 | if (obj3) { | |
a41e16b6 | 10155 | { |
994141e6 | 10156 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
10157 | if (PyErr_Occurred()) SWIG_fail; |
10158 | } | |
d14a1e28 RD |
10159 | } |
10160 | if (obj4) { | |
10161 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10162 | } | |
10163 | { | |
10164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10165 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10166 | ||
10167 | wxPyEndAllowThreads(__tstate); | |
10168 | if (PyErr_Occurred()) SWIG_fail; | |
10169 | } | |
10170 | { | |
10171 | wxImage * resultptr; | |
10172 | resultptr = new wxImage((wxImage &) result); | |
10173 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
10174 | } | |
10175 | return resultobj; | |
10176 | fail: | |
10177 | return NULL; | |
10178 | } | |
10179 | ||
10180 | ||
10181 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10182 | PyObject *resultobj; | |
10183 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10184 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10185 | SwigValueWrapper< wxImage > result; |
10186 | PyObject * obj0 = 0 ; | |
10187 | PyObject * obj1 = 0 ; | |
10188 | char *kwnames[] = { | |
10189 | (char *) "self",(char *) "clockwise", NULL | |
10190 | }; | |
10191 | ||
10192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
10193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10194 | if (obj1) { | |
a41e16b6 | 10195 | { |
994141e6 | 10196 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
10197 | if (PyErr_Occurred()) SWIG_fail; |
10198 | } | |
d14a1e28 RD |
10199 | } |
10200 | { | |
10201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10202 | result = (arg1)->Rotate90(arg2); | |
10203 | ||
10204 | wxPyEndAllowThreads(__tstate); | |
10205 | if (PyErr_Occurred()) SWIG_fail; | |
10206 | } | |
10207 | { | |
10208 | wxImage * resultptr; | |
10209 | resultptr = new wxImage((wxImage &) result); | |
10210 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
10211 | } | |
10212 | return resultobj; | |
10213 | fail: | |
10214 | return NULL; | |
10215 | } | |
10216 | ||
10217 | ||
10218 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10219 | PyObject *resultobj; | |
10220 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10221 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10222 | SwigValueWrapper< wxImage > result; |
10223 | PyObject * obj0 = 0 ; | |
10224 | PyObject * obj1 = 0 ; | |
10225 | char *kwnames[] = { | |
10226 | (char *) "self",(char *) "horizontally", NULL | |
10227 | }; | |
10228 | ||
10229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
10230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10231 | if (obj1) { | |
a41e16b6 | 10232 | { |
994141e6 | 10233 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
10234 | if (PyErr_Occurred()) SWIG_fail; |
10235 | } | |
d14a1e28 RD |
10236 | } |
10237 | { | |
10238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10239 | result = (arg1)->Mirror(arg2); | |
10240 | ||
10241 | wxPyEndAllowThreads(__tstate); | |
10242 | if (PyErr_Occurred()) SWIG_fail; | |
10243 | } | |
10244 | { | |
10245 | wxImage * resultptr; | |
10246 | resultptr = new wxImage((wxImage &) result); | |
10247 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
10248 | } | |
10249 | return resultobj; | |
10250 | fail: | |
10251 | return NULL; | |
10252 | } | |
10253 | ||
10254 | ||
10255 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10256 | PyObject *resultobj; | |
10257 | wxImage *arg1 = (wxImage *) 0 ; | |
10258 | unsigned char arg2 ; | |
10259 | unsigned char arg3 ; | |
10260 | unsigned char arg4 ; | |
10261 | unsigned char arg5 ; | |
10262 | unsigned char arg6 ; | |
10263 | unsigned char arg7 ; | |
10264 | PyObject * obj0 = 0 ; | |
10265 | PyObject * obj1 = 0 ; | |
10266 | PyObject * obj2 = 0 ; | |
10267 | PyObject * obj3 = 0 ; | |
10268 | PyObject * obj4 = 0 ; | |
10269 | PyObject * obj5 = 0 ; | |
10270 | PyObject * obj6 = 0 ; | |
10271 | char *kwnames[] = { | |
10272 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10273 | }; | |
10274 | ||
10275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 10277 | { |
994141e6 | 10278 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
10279 | if (PyErr_Occurred()) SWIG_fail; |
10280 | } | |
10281 | { | |
994141e6 | 10282 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
10283 | if (PyErr_Occurred()) SWIG_fail; |
10284 | } | |
10285 | { | |
994141e6 | 10286 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
10287 | if (PyErr_Occurred()) SWIG_fail; |
10288 | } | |
10289 | { | |
994141e6 | 10290 | arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj4); |
a41e16b6 RD |
10291 | if (PyErr_Occurred()) SWIG_fail; |
10292 | } | |
10293 | { | |
994141e6 | 10294 | arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj5); |
a41e16b6 RD |
10295 | if (PyErr_Occurred()) SWIG_fail; |
10296 | } | |
10297 | { | |
994141e6 | 10298 | arg7 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj6); |
a41e16b6 RD |
10299 | if (PyErr_Occurred()) SWIG_fail; |
10300 | } | |
d14a1e28 RD |
10301 | { |
10302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10303 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10304 | ||
10305 | wxPyEndAllowThreads(__tstate); | |
10306 | if (PyErr_Occurred()) SWIG_fail; | |
10307 | } | |
10308 | Py_INCREF(Py_None); resultobj = Py_None; | |
10309 | return resultobj; | |
10310 | fail: | |
10311 | return NULL; | |
10312 | } | |
10313 | ||
10314 | ||
10315 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10316 | PyObject *resultobj; | |
10317 | wxImage *arg1 = (wxImage *) 0 ; | |
10318 | unsigned char arg2 ; | |
10319 | unsigned char arg3 ; | |
10320 | unsigned char arg4 ; | |
10321 | SwigValueWrapper< wxImage > result; | |
10322 | PyObject * obj0 = 0 ; | |
10323 | PyObject * obj1 = 0 ; | |
10324 | PyObject * obj2 = 0 ; | |
10325 | PyObject * obj3 = 0 ; | |
10326 | char *kwnames[] = { | |
10327 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10328 | }; | |
10329 | ||
10330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 10332 | { |
994141e6 | 10333 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
10334 | if (PyErr_Occurred()) SWIG_fail; |
10335 | } | |
10336 | { | |
994141e6 | 10337 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
10338 | if (PyErr_Occurred()) SWIG_fail; |
10339 | } | |
10340 | { | |
994141e6 | 10341 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
10342 | if (PyErr_Occurred()) SWIG_fail; |
10343 | } | |
d14a1e28 RD |
10344 | { |
10345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10346 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10347 | ||
10348 | wxPyEndAllowThreads(__tstate); | |
10349 | if (PyErr_Occurred()) SWIG_fail; | |
10350 | } | |
10351 | { | |
10352 | wxImage * resultptr; | |
10353 | resultptr = new wxImage((wxImage &) result); | |
10354 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
10355 | } | |
10356 | return resultobj; | |
10357 | fail: | |
10358 | return NULL; | |
10359 | } | |
10360 | ||
10361 | ||
10362 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10363 | PyObject *resultobj; | |
10364 | wxImage *arg1 = (wxImage *) 0 ; | |
10365 | wxString *arg2 = 0 ; | |
10366 | wxString *arg3 = 0 ; | |
e811c8ce RD |
10367 | bool temp2 = False ; |
10368 | bool temp3 = False ; | |
d14a1e28 RD |
10369 | PyObject * obj0 = 0 ; |
10370 | PyObject * obj1 = 0 ; | |
10371 | PyObject * obj2 = 0 ; | |
10372 | char *kwnames[] = { | |
10373 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10374 | }; | |
10375 | ||
10376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10378 | { | |
10379 | arg2 = wxString_in_helper(obj1); | |
10380 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10381 | temp2 = True; |
d14a1e28 RD |
10382 | } |
10383 | { | |
10384 | arg3 = wxString_in_helper(obj2); | |
10385 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10386 | temp3 = True; |
d14a1e28 RD |
10387 | } |
10388 | { | |
10389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10390 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10391 | ||
10392 | wxPyEndAllowThreads(__tstate); | |
10393 | if (PyErr_Occurred()) SWIG_fail; | |
10394 | } | |
10395 | Py_INCREF(Py_None); resultobj = Py_None; | |
10396 | { | |
10397 | if (temp2) | |
10398 | delete arg2; | |
10399 | } | |
10400 | { | |
10401 | if (temp3) | |
10402 | delete arg3; | |
10403 | } | |
10404 | return resultobj; | |
10405 | fail: | |
10406 | { | |
10407 | if (temp2) | |
10408 | delete arg2; | |
10409 | } | |
10410 | { | |
10411 | if (temp3) | |
10412 | delete arg3; | |
10413 | } | |
10414 | return NULL; | |
10415 | } | |
10416 | ||
10417 | ||
10418 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10419 | PyObject *resultobj; | |
10420 | wxImage *arg1 = (wxImage *) 0 ; | |
10421 | wxString *arg2 = 0 ; | |
10422 | int arg3 ; | |
e811c8ce | 10423 | bool temp2 = False ; |
d14a1e28 RD |
10424 | PyObject * obj0 = 0 ; |
10425 | PyObject * obj1 = 0 ; | |
994141e6 | 10426 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10427 | char *kwnames[] = { |
10428 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10429 | }; | |
10430 | ||
994141e6 | 10431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10433 | { | |
10434 | arg2 = wxString_in_helper(obj1); | |
10435 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10436 | temp2 = True; |
d14a1e28 | 10437 | } |
994141e6 RD |
10438 | { |
10439 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10440 | if (PyErr_Occurred()) SWIG_fail; | |
10441 | } | |
d14a1e28 RD |
10442 | { |
10443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10444 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10445 | ||
10446 | wxPyEndAllowThreads(__tstate); | |
10447 | if (PyErr_Occurred()) SWIG_fail; | |
10448 | } | |
10449 | Py_INCREF(Py_None); resultobj = Py_None; | |
10450 | { | |
10451 | if (temp2) | |
10452 | delete arg2; | |
10453 | } | |
10454 | return resultobj; | |
10455 | fail: | |
10456 | { | |
10457 | if (temp2) | |
10458 | delete arg2; | |
10459 | } | |
10460 | return NULL; | |
10461 | } | |
10462 | ||
10463 | ||
10464 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10465 | PyObject *resultobj; | |
10466 | wxImage *arg1 = (wxImage *) 0 ; | |
10467 | wxString *arg2 = 0 ; | |
10468 | wxString result; | |
e811c8ce | 10469 | bool temp2 = False ; |
d14a1e28 RD |
10470 | PyObject * obj0 = 0 ; |
10471 | PyObject * obj1 = 0 ; | |
10472 | char *kwnames[] = { | |
10473 | (char *) "self",(char *) "name", NULL | |
10474 | }; | |
10475 | ||
10476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
10477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10478 | { | |
10479 | arg2 = wxString_in_helper(obj1); | |
10480 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10481 | temp2 = True; |
d14a1e28 RD |
10482 | } |
10483 | { | |
10484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10485 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10486 | ||
10487 | wxPyEndAllowThreads(__tstate); | |
10488 | if (PyErr_Occurred()) SWIG_fail; | |
10489 | } | |
10490 | { | |
10491 | #if wxUSE_UNICODE | |
10492 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10493 | #else | |
10494 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10495 | #endif | |
10496 | } | |
10497 | { | |
10498 | if (temp2) | |
10499 | delete arg2; | |
10500 | } | |
10501 | return resultobj; | |
10502 | fail: | |
10503 | { | |
10504 | if (temp2) | |
10505 | delete arg2; | |
10506 | } | |
10507 | return NULL; | |
10508 | } | |
10509 | ||
10510 | ||
10511 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10512 | PyObject *resultobj; | |
10513 | wxImage *arg1 = (wxImage *) 0 ; | |
10514 | wxString *arg2 = 0 ; | |
10515 | int result; | |
e811c8ce | 10516 | bool temp2 = False ; |
d14a1e28 RD |
10517 | PyObject * obj0 = 0 ; |
10518 | PyObject * obj1 = 0 ; | |
10519 | char *kwnames[] = { | |
10520 | (char *) "self",(char *) "name", NULL | |
10521 | }; | |
10522 | ||
10523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
10524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10525 | { | |
10526 | arg2 = wxString_in_helper(obj1); | |
10527 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10528 | temp2 = True; |
d14a1e28 RD |
10529 | } |
10530 | { | |
10531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10532 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
10533 | ||
10534 | wxPyEndAllowThreads(__tstate); | |
10535 | if (PyErr_Occurred()) SWIG_fail; | |
10536 | } | |
994141e6 | 10537 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10538 | { |
10539 | if (temp2) | |
10540 | delete arg2; | |
10541 | } | |
10542 | return resultobj; | |
10543 | fail: | |
10544 | { | |
10545 | if (temp2) | |
10546 | delete arg2; | |
10547 | } | |
10548 | return NULL; | |
10549 | } | |
10550 | ||
10551 | ||
10552 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10553 | PyObject *resultobj; | |
10554 | wxImage *arg1 = (wxImage *) 0 ; | |
10555 | wxString *arg2 = 0 ; | |
10556 | bool result; | |
e811c8ce | 10557 | bool temp2 = False ; |
d14a1e28 RD |
10558 | PyObject * obj0 = 0 ; |
10559 | PyObject * obj1 = 0 ; | |
10560 | char *kwnames[] = { | |
10561 | (char *) "self",(char *) "name", NULL | |
10562 | }; | |
10563 | ||
10564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
10565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10566 | { | |
10567 | arg2 = wxString_in_helper(obj1); | |
10568 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10569 | temp2 = True; |
d14a1e28 RD |
10570 | } |
10571 | { | |
10572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10573 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
10574 | ||
10575 | wxPyEndAllowThreads(__tstate); | |
10576 | if (PyErr_Occurred()) SWIG_fail; | |
10577 | } | |
4d5c3d91 | 10578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10579 | { |
10580 | if (temp2) | |
10581 | delete arg2; | |
10582 | } | |
10583 | return resultobj; | |
10584 | fail: | |
10585 | { | |
10586 | if (temp2) | |
10587 | delete arg2; | |
10588 | } | |
10589 | return NULL; | |
10590 | } | |
10591 | ||
10592 | ||
10593 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10594 | PyObject *resultobj; | |
10595 | wxImage *arg1 = (wxImage *) 0 ; | |
10596 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
10597 | unsigned long result; | |
10598 | PyObject * obj0 = 0 ; | |
10599 | PyObject * obj1 = 0 ; | |
10600 | char *kwnames[] = { | |
10601 | (char *) "self",(char *) "stopafter", NULL | |
10602 | }; | |
10603 | ||
10604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
10605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10606 | if (obj1) { | |
a41e16b6 | 10607 | { |
994141e6 | 10608 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
10609 | if (PyErr_Occurred()) SWIG_fail; |
10610 | } | |
d14a1e28 RD |
10611 | } |
10612 | { | |
10613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10614 | result = (unsigned long)(arg1)->CountColours(arg2); | |
10615 | ||
10616 | wxPyEndAllowThreads(__tstate); | |
10617 | if (PyErr_Occurred()) SWIG_fail; | |
10618 | } | |
994141e6 | 10619 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10620 | return resultobj; |
10621 | fail: | |
10622 | return NULL; | |
10623 | } | |
10624 | ||
10625 | ||
10626 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10627 | PyObject *resultobj; | |
10628 | wxImage *arg1 = (wxImage *) 0 ; | |
10629 | wxImageHistogram *arg2 = 0 ; | |
10630 | unsigned long result; | |
10631 | PyObject * obj0 = 0 ; | |
10632 | PyObject * obj1 = 0 ; | |
10633 | char *kwnames[] = { | |
10634 | (char *) "self",(char *) "h", NULL | |
10635 | }; | |
10636 | ||
10637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
10638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10639 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10640 | if (arg2 == NULL) { | |
10641 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10642 | } | |
10643 | { | |
10644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10645 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
10646 | ||
10647 | wxPyEndAllowThreads(__tstate); | |
10648 | if (PyErr_Occurred()) SWIG_fail; | |
10649 | } | |
994141e6 | 10650 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10651 | return resultobj; |
10652 | fail: | |
10653 | return NULL; | |
10654 | } | |
10655 | ||
10656 | ||
10657 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10658 | PyObject *resultobj; | |
10659 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10660 | PyObject * obj0 = 0 ; | |
10661 | char *kwnames[] = { | |
10662 | (char *) "handler", NULL | |
10663 | }; | |
10664 | ||
10665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
10666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10667 | { | |
10668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10669 | wxImage::AddHandler(arg1); | |
10670 | ||
10671 | wxPyEndAllowThreads(__tstate); | |
10672 | if (PyErr_Occurred()) SWIG_fail; | |
10673 | } | |
10674 | Py_INCREF(Py_None); resultobj = Py_None; | |
10675 | return resultobj; | |
10676 | fail: | |
10677 | return NULL; | |
10678 | } | |
10679 | ||
10680 | ||
10681 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10682 | PyObject *resultobj; | |
10683 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10684 | PyObject * obj0 = 0 ; | |
10685 | char *kwnames[] = { | |
10686 | (char *) "handler", NULL | |
10687 | }; | |
10688 | ||
10689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
10690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10691 | { | |
10692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10693 | wxImage::InsertHandler(arg1); | |
10694 | ||
10695 | wxPyEndAllowThreads(__tstate); | |
10696 | if (PyErr_Occurred()) SWIG_fail; | |
10697 | } | |
10698 | Py_INCREF(Py_None); resultobj = Py_None; | |
10699 | return resultobj; | |
10700 | fail: | |
10701 | return NULL; | |
10702 | } | |
10703 | ||
10704 | ||
10705 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10706 | PyObject *resultobj; | |
10707 | wxString *arg1 = 0 ; | |
10708 | bool result; | |
e811c8ce | 10709 | bool temp1 = False ; |
d14a1e28 RD |
10710 | PyObject * obj0 = 0 ; |
10711 | char *kwnames[] = { | |
10712 | (char *) "name", NULL | |
10713 | }; | |
10714 | ||
10715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
10716 | { | |
10717 | arg1 = wxString_in_helper(obj0); | |
10718 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 10719 | temp1 = True; |
d14a1e28 RD |
10720 | } |
10721 | { | |
10722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10723 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
10724 | ||
10725 | wxPyEndAllowThreads(__tstate); | |
10726 | if (PyErr_Occurred()) SWIG_fail; | |
10727 | } | |
4d5c3d91 | 10728 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10729 | { |
10730 | if (temp1) | |
10731 | delete arg1; | |
10732 | } | |
10733 | return resultobj; | |
10734 | fail: | |
10735 | { | |
10736 | if (temp1) | |
10737 | delete arg1; | |
10738 | } | |
10739 | return NULL; | |
10740 | } | |
10741 | ||
10742 | ||
10743 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10744 | PyObject *resultobj; | |
10745 | wxString result; | |
10746 | char *kwnames[] = { | |
10747 | NULL | |
10748 | }; | |
10749 | ||
10750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
10751 | { | |
10752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10753 | result = wxImage::GetImageExtWildcard(); | |
10754 | ||
10755 | wxPyEndAllowThreads(__tstate); | |
10756 | if (PyErr_Occurred()) SWIG_fail; | |
10757 | } | |
10758 | { | |
10759 | #if wxUSE_UNICODE | |
10760 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10761 | #else | |
10762 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10763 | #endif | |
10764 | } | |
10765 | return resultobj; | |
10766 | fail: | |
10767 | return NULL; | |
10768 | } | |
10769 | ||
10770 | ||
10771 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10772 | PyObject *resultobj; | |
10773 | wxImage *arg1 = (wxImage *) 0 ; | |
10774 | wxBitmap result; | |
10775 | PyObject * obj0 = 0 ; | |
10776 | char *kwnames[] = { | |
10777 | (char *) "self", NULL | |
10778 | }; | |
10779 | ||
10780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
10781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10782 | { | |
10783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10784 | result = wxImage_ConvertToBitmap(arg1); | |
10785 | ||
10786 | wxPyEndAllowThreads(__tstate); | |
10787 | if (PyErr_Occurred()) SWIG_fail; | |
10788 | } | |
10789 | { | |
10790 | wxBitmap * resultptr; | |
10791 | resultptr = new wxBitmap((wxBitmap &) result); | |
10792 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
10793 | } | |
10794 | return resultobj; | |
10795 | fail: | |
10796 | return NULL; | |
10797 | } | |
10798 | ||
10799 | ||
10800 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10801 | PyObject *resultobj; | |
10802 | wxImage *arg1 = (wxImage *) 0 ; | |
10803 | unsigned char arg2 ; | |
10804 | unsigned char arg3 ; | |
10805 | unsigned char arg4 ; | |
10806 | wxBitmap result; | |
10807 | PyObject * obj0 = 0 ; | |
10808 | PyObject * obj1 = 0 ; | |
10809 | PyObject * obj2 = 0 ; | |
10810 | PyObject * obj3 = 0 ; | |
10811 | char *kwnames[] = { | |
10812 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
10813 | }; | |
10814 | ||
10815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 10817 | { |
994141e6 | 10818 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
a41e16b6 RD |
10819 | if (PyErr_Occurred()) SWIG_fail; |
10820 | } | |
10821 | { | |
994141e6 | 10822 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
a41e16b6 RD |
10823 | if (PyErr_Occurred()) SWIG_fail; |
10824 | } | |
10825 | { | |
994141e6 | 10826 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
a41e16b6 RD |
10827 | if (PyErr_Occurred()) SWIG_fail; |
10828 | } | |
d14a1e28 RD |
10829 | { |
10830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10831 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
10832 | ||
10833 | wxPyEndAllowThreads(__tstate); | |
10834 | if (PyErr_Occurred()) SWIG_fail; | |
10835 | } | |
10836 | { | |
10837 | wxBitmap * resultptr; | |
10838 | resultptr = new wxBitmap((wxBitmap &) result); | |
10839 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
10840 | } | |
10841 | return resultobj; | |
10842 | fail: | |
10843 | return NULL; | |
10844 | } | |
10845 | ||
10846 | ||
10847 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
10848 | PyObject *obj; | |
10849 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10850 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
10851 | Py_INCREF(obj); | |
10852 | return Py_BuildValue((char *)""); | |
10853 | } | |
10854 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10855 | PyObject *resultobj; | |
10856 | char *kwnames[] = { | |
10857 | NULL | |
10858 | }; | |
10859 | ||
10860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
10861 | { | |
10862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10863 | wxInitAllImageHandlers(); | |
10864 | ||
10865 | wxPyEndAllowThreads(__tstate); | |
10866 | if (PyErr_Occurred()) SWIG_fail; | |
10867 | } | |
10868 | Py_INCREF(Py_None); resultobj = Py_None; | |
10869 | return resultobj; | |
10870 | fail: | |
10871 | return NULL; | |
10872 | } | |
10873 | ||
10874 | ||
10875 | static int _wrap_NullImage_set(PyObject *_val) { | |
10876 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); | |
10877 | return 1; | |
10878 | } | |
10879 | ||
10880 | ||
10881 | static PyObject *_wrap_NullImage_get() { | |
10882 | PyObject *pyobj; | |
10883 | ||
10884 | pyobj = SWIG_NewPointerObj((void *) &wxNullImage, SWIGTYPE_p_wxImage, 0); | |
10885 | return pyobj; | |
10886 | } | |
10887 | ||
10888 | ||
10889 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { | |
10890 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); | |
10891 | return 1; | |
10892 | } | |
10893 | ||
10894 | ||
10895 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
10896 | PyObject *pyobj; | |
10897 | ||
10898 | { | |
10899 | #if wxUSE_UNICODE | |
10900 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
10901 | #else | |
10902 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
10903 | #endif | |
10904 | } | |
10905 | return pyobj; | |
10906 | } | |
10907 | ||
10908 | ||
10909 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { | |
10910 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); | |
10911 | return 1; | |
10912 | } | |
10913 | ||
10914 | ||
10915 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
10916 | PyObject *pyobj; | |
10917 | ||
10918 | { | |
10919 | #if wxUSE_UNICODE | |
10920 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10921 | #else | |
10922 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10923 | #endif | |
10924 | } | |
10925 | return pyobj; | |
10926 | } | |
10927 | ||
10928 | ||
10929 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { | |
10930 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); | |
10931 | return 1; | |
10932 | } | |
10933 | ||
10934 | ||
10935 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
10936 | PyObject *pyobj; | |
10937 | ||
10938 | { | |
10939 | #if wxUSE_UNICODE | |
10940 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10941 | #else | |
10942 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10943 | #endif | |
10944 | } | |
10945 | return pyobj; | |
10946 | } | |
10947 | ||
10948 | ||
10949 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { | |
10950 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); | |
10951 | return 1; | |
10952 | } | |
10953 | ||
10954 | ||
10955 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
10956 | PyObject *pyobj; | |
10957 | ||
10958 | { | |
10959 | #if wxUSE_UNICODE | |
10960 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10961 | #else | |
10962 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10963 | #endif | |
10964 | } | |
10965 | return pyobj; | |
10966 | } | |
10967 | ||
10968 | ||
10969 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { | |
10970 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); | |
10971 | return 1; | |
10972 | } | |
10973 | ||
10974 | ||
10975 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
10976 | PyObject *pyobj; | |
10977 | ||
10978 | { | |
10979 | #if wxUSE_UNICODE | |
10980 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10981 | #else | |
10982 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10983 | #endif | |
10984 | } | |
10985 | return pyobj; | |
10986 | } | |
10987 | ||
10988 | ||
10989 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10990 | PyObject *resultobj; | |
10991 | wxBMPHandler *result; | |
10992 | char *kwnames[] = { | |
10993 | NULL | |
10994 | }; | |
10995 | ||
10996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
10997 | { | |
10998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10999 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11000 | ||
11001 | wxPyEndAllowThreads(__tstate); | |
11002 | if (PyErr_Occurred()) SWIG_fail; | |
11003 | } | |
11004 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBMPHandler, 1); | |
11005 | return resultobj; | |
11006 | fail: | |
11007 | return NULL; | |
11008 | } | |
11009 | ||
11010 | ||
11011 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11012 | PyObject *obj; | |
11013 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11014 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11015 | Py_INCREF(obj); | |
11016 | return Py_BuildValue((char *)""); | |
11017 | } | |
11018 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11019 | PyObject *resultobj; | |
11020 | wxICOHandler *result; | |
11021 | char *kwnames[] = { | |
11022 | NULL | |
11023 | }; | |
11024 | ||
11025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11026 | { | |
11027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11028 | result = (wxICOHandler *)new wxICOHandler(); | |
11029 | ||
11030 | wxPyEndAllowThreads(__tstate); | |
11031 | if (PyErr_Occurred()) SWIG_fail; | |
11032 | } | |
11033 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxICOHandler, 1); | |
11034 | return resultobj; | |
11035 | fail: | |
11036 | return NULL; | |
11037 | } | |
11038 | ||
11039 | ||
11040 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11041 | PyObject *obj; | |
11042 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11043 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11044 | Py_INCREF(obj); | |
11045 | return Py_BuildValue((char *)""); | |
11046 | } | |
11047 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11048 | PyObject *resultobj; | |
11049 | wxCURHandler *result; | |
11050 | char *kwnames[] = { | |
11051 | NULL | |
11052 | }; | |
11053 | ||
11054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11055 | { | |
11056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11057 | result = (wxCURHandler *)new wxCURHandler(); | |
11058 | ||
11059 | wxPyEndAllowThreads(__tstate); | |
11060 | if (PyErr_Occurred()) SWIG_fail; | |
11061 | } | |
11062 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCURHandler, 1); | |
11063 | return resultobj; | |
11064 | fail: | |
11065 | return NULL; | |
11066 | } | |
11067 | ||
11068 | ||
11069 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11070 | PyObject *obj; | |
11071 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11072 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11073 | Py_INCREF(obj); | |
11074 | return Py_BuildValue((char *)""); | |
11075 | } | |
11076 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11077 | PyObject *resultobj; | |
11078 | wxANIHandler *result; | |
11079 | char *kwnames[] = { | |
11080 | NULL | |
11081 | }; | |
11082 | ||
11083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11084 | { | |
11085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11086 | result = (wxANIHandler *)new wxANIHandler(); | |
11087 | ||
11088 | wxPyEndAllowThreads(__tstate); | |
11089 | if (PyErr_Occurred()) SWIG_fail; | |
11090 | } | |
11091 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxANIHandler, 1); | |
11092 | return resultobj; | |
11093 | fail: | |
11094 | return NULL; | |
11095 | } | |
11096 | ||
11097 | ||
11098 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11099 | PyObject *obj; | |
11100 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11101 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11102 | Py_INCREF(obj); | |
11103 | return Py_BuildValue((char *)""); | |
11104 | } | |
11105 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11106 | PyObject *resultobj; | |
11107 | wxPNGHandler *result; | |
11108 | char *kwnames[] = { | |
11109 | NULL | |
11110 | }; | |
11111 | ||
11112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11113 | { | |
11114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11115 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11116 | ||
11117 | wxPyEndAllowThreads(__tstate); | |
11118 | if (PyErr_Occurred()) SWIG_fail; | |
11119 | } | |
11120 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNGHandler, 1); | |
11121 | return resultobj; | |
11122 | fail: | |
11123 | return NULL; | |
11124 | } | |
11125 | ||
11126 | ||
11127 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11128 | PyObject *obj; | |
11129 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11130 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11131 | Py_INCREF(obj); | |
11132 | return Py_BuildValue((char *)""); | |
11133 | } | |
11134 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11135 | PyObject *resultobj; | |
11136 | wxGIFHandler *result; | |
11137 | char *kwnames[] = { | |
11138 | NULL | |
11139 | }; | |
11140 | ||
11141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11142 | { | |
11143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11144 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11145 | ||
11146 | wxPyEndAllowThreads(__tstate); | |
11147 | if (PyErr_Occurred()) SWIG_fail; | |
11148 | } | |
11149 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGIFHandler, 1); | |
11150 | return resultobj; | |
11151 | fail: | |
11152 | return NULL; | |
11153 | } | |
11154 | ||
11155 | ||
11156 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11157 | PyObject *obj; | |
11158 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11159 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11160 | Py_INCREF(obj); | |
11161 | return Py_BuildValue((char *)""); | |
11162 | } | |
11163 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11164 | PyObject *resultobj; | |
11165 | wxPCXHandler *result; | |
11166 | char *kwnames[] = { | |
11167 | NULL | |
11168 | }; | |
11169 | ||
11170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11171 | { | |
11172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11173 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11174 | ||
11175 | wxPyEndAllowThreads(__tstate); | |
11176 | if (PyErr_Occurred()) SWIG_fail; | |
11177 | } | |
11178 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPCXHandler, 1); | |
11179 | return resultobj; | |
11180 | fail: | |
11181 | return NULL; | |
11182 | } | |
11183 | ||
11184 | ||
11185 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11186 | PyObject *obj; | |
11187 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11188 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11189 | Py_INCREF(obj); | |
11190 | return Py_BuildValue((char *)""); | |
11191 | } | |
11192 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11193 | PyObject *resultobj; | |
11194 | wxJPEGHandler *result; | |
11195 | char *kwnames[] = { | |
11196 | NULL | |
11197 | }; | |
11198 | ||
11199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11200 | { | |
11201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11202 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11203 | ||
11204 | wxPyEndAllowThreads(__tstate); | |
11205 | if (PyErr_Occurred()) SWIG_fail; | |
11206 | } | |
11207 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJPEGHandler, 1); | |
11208 | return resultobj; | |
11209 | fail: | |
11210 | return NULL; | |
11211 | } | |
11212 | ||
11213 | ||
11214 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11215 | PyObject *obj; | |
11216 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11217 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11218 | Py_INCREF(obj); | |
11219 | return Py_BuildValue((char *)""); | |
11220 | } | |
11221 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11222 | PyObject *resultobj; | |
11223 | wxPNMHandler *result; | |
11224 | char *kwnames[] = { | |
11225 | NULL | |
11226 | }; | |
11227 | ||
11228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11229 | { | |
11230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11231 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11232 | ||
11233 | wxPyEndAllowThreads(__tstate); | |
11234 | if (PyErr_Occurred()) SWIG_fail; | |
11235 | } | |
11236 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNMHandler, 1); | |
11237 | return resultobj; | |
11238 | fail: | |
11239 | return NULL; | |
11240 | } | |
11241 | ||
11242 | ||
11243 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11244 | PyObject *obj; | |
11245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11246 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11247 | Py_INCREF(obj); | |
11248 | return Py_BuildValue((char *)""); | |
11249 | } | |
11250 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11251 | PyObject *resultobj; | |
11252 | wxXPMHandler *result; | |
11253 | char *kwnames[] = { | |
11254 | NULL | |
11255 | }; | |
11256 | ||
11257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11258 | { | |
11259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11260 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11261 | ||
11262 | wxPyEndAllowThreads(__tstate); | |
11263 | if (PyErr_Occurred()) SWIG_fail; | |
11264 | } | |
11265 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxXPMHandler, 1); | |
11266 | return resultobj; | |
11267 | fail: | |
11268 | return NULL; | |
11269 | } | |
11270 | ||
11271 | ||
11272 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11273 | PyObject *obj; | |
11274 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11275 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11276 | Py_INCREF(obj); | |
11277 | return Py_BuildValue((char *)""); | |
11278 | } | |
11279 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11280 | PyObject *resultobj; | |
11281 | wxTIFFHandler *result; | |
11282 | char *kwnames[] = { | |
11283 | NULL | |
11284 | }; | |
11285 | ||
11286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11287 | { | |
11288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11289 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11290 | ||
11291 | wxPyEndAllowThreads(__tstate); | |
11292 | if (PyErr_Occurred()) SWIG_fail; | |
11293 | } | |
11294 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTIFFHandler, 1); | |
11295 | return resultobj; | |
11296 | fail: | |
11297 | return NULL; | |
11298 | } | |
11299 | ||
11300 | ||
11301 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11302 | PyObject *obj; | |
11303 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11304 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11305 | Py_INCREF(obj); | |
11306 | return Py_BuildValue((char *)""); | |
11307 | } | |
11308 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11309 | PyObject *resultobj; | |
11310 | wxEvtHandler *result; | |
11311 | char *kwnames[] = { | |
11312 | NULL | |
11313 | }; | |
11314 | ||
11315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11316 | { | |
11317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11318 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11319 | ||
11320 | wxPyEndAllowThreads(__tstate); | |
11321 | if (PyErr_Occurred()) SWIG_fail; | |
11322 | } | |
11323 | { | |
11324 | resultobj = wxPyMake_wxObject(result); | |
11325 | } | |
11326 | return resultobj; | |
11327 | fail: | |
11328 | return NULL; | |
11329 | } | |
11330 | ||
11331 | ||
11332 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11333 | PyObject *resultobj; | |
11334 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11335 | wxEvtHandler *result; | |
11336 | PyObject * obj0 = 0 ; | |
11337 | char *kwnames[] = { | |
11338 | (char *) "self", NULL | |
11339 | }; | |
11340 | ||
11341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
11342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11343 | { | |
11344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11345 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11346 | ||
11347 | wxPyEndAllowThreads(__tstate); | |
11348 | if (PyErr_Occurred()) SWIG_fail; | |
11349 | } | |
11350 | { | |
11351 | resultobj = wxPyMake_wxObject(result); | |
11352 | } | |
11353 | return resultobj; | |
11354 | fail: | |
11355 | return NULL; | |
11356 | } | |
11357 | ||
11358 | ||
11359 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11360 | PyObject *resultobj; | |
11361 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11362 | wxEvtHandler *result; | |
11363 | PyObject * obj0 = 0 ; | |
11364 | char *kwnames[] = { | |
11365 | (char *) "self", NULL | |
11366 | }; | |
11367 | ||
11368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
11369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11370 | { | |
11371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11372 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11373 | ||
11374 | wxPyEndAllowThreads(__tstate); | |
11375 | if (PyErr_Occurred()) SWIG_fail; | |
11376 | } | |
11377 | { | |
11378 | resultobj = wxPyMake_wxObject(result); | |
11379 | } | |
11380 | return resultobj; | |
11381 | fail: | |
11382 | return NULL; | |
11383 | } | |
11384 | ||
11385 | ||
11386 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11387 | PyObject *resultobj; | |
11388 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11389 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11390 | PyObject * obj0 = 0 ; | |
11391 | PyObject * obj1 = 0 ; | |
11392 | char *kwnames[] = { | |
11393 | (char *) "self",(char *) "handler", NULL | |
11394 | }; | |
11395 | ||
11396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
11397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11398 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11399 | { | |
11400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11401 | (arg1)->SetNextHandler(arg2); | |
11402 | ||
11403 | wxPyEndAllowThreads(__tstate); | |
11404 | if (PyErr_Occurred()) SWIG_fail; | |
11405 | } | |
11406 | Py_INCREF(Py_None); resultobj = Py_None; | |
11407 | return resultobj; | |
11408 | fail: | |
11409 | return NULL; | |
11410 | } | |
11411 | ||
11412 | ||
11413 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11414 | PyObject *resultobj; | |
11415 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11416 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11417 | PyObject * obj0 = 0 ; | |
11418 | PyObject * obj1 = 0 ; | |
11419 | char *kwnames[] = { | |
11420 | (char *) "self",(char *) "handler", NULL | |
11421 | }; | |
11422 | ||
11423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
11424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11425 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11426 | { | |
11427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11428 | (arg1)->SetPreviousHandler(arg2); | |
11429 | ||
11430 | wxPyEndAllowThreads(__tstate); | |
11431 | if (PyErr_Occurred()) SWIG_fail; | |
11432 | } | |
11433 | Py_INCREF(Py_None); resultobj = Py_None; | |
11434 | return resultobj; | |
11435 | fail: | |
11436 | return NULL; | |
11437 | } | |
11438 | ||
11439 | ||
11440 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11441 | PyObject *resultobj; | |
11442 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11443 | bool result; | |
11444 | PyObject * obj0 = 0 ; | |
11445 | char *kwnames[] = { | |
11446 | (char *) "self", NULL | |
11447 | }; | |
11448 | ||
11449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
11450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11451 | { | |
11452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11453 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11454 | ||
11455 | wxPyEndAllowThreads(__tstate); | |
11456 | if (PyErr_Occurred()) SWIG_fail; | |
11457 | } | |
4d5c3d91 | 11458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11459 | return resultobj; |
11460 | fail: | |
11461 | return NULL; | |
11462 | } | |
11463 | ||
11464 | ||
11465 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11466 | PyObject *resultobj; | |
11467 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11468 | bool arg2 ; | |
11469 | PyObject * obj0 = 0 ; | |
11470 | PyObject * obj1 = 0 ; | |
11471 | char *kwnames[] = { | |
11472 | (char *) "self",(char *) "enabled", NULL | |
11473 | }; | |
11474 | ||
11475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
11476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 11477 | { |
994141e6 | 11478 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
11479 | if (PyErr_Occurred()) SWIG_fail; |
11480 | } | |
d14a1e28 RD |
11481 | { |
11482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11483 | (arg1)->SetEvtHandlerEnabled(arg2); | |
11484 | ||
11485 | wxPyEndAllowThreads(__tstate); | |
11486 | if (PyErr_Occurred()) SWIG_fail; | |
11487 | } | |
11488 | Py_INCREF(Py_None); resultobj = Py_None; | |
11489 | return resultobj; | |
11490 | fail: | |
11491 | return NULL; | |
11492 | } | |
11493 | ||
11494 | ||
11495 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11496 | PyObject *resultobj; | |
11497 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11498 | wxEvent *arg2 = 0 ; | |
11499 | bool result; | |
11500 | PyObject * obj0 = 0 ; | |
11501 | PyObject * obj1 = 0 ; | |
11502 | char *kwnames[] = { | |
11503 | (char *) "self",(char *) "event", NULL | |
11504 | }; | |
11505 | ||
11506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
11507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11508 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11509 | if (arg2 == NULL) { | |
11510 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11511 | } | |
11512 | { | |
11513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11514 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
11515 | ||
11516 | wxPyEndAllowThreads(__tstate); | |
11517 | if (PyErr_Occurred()) SWIG_fail; | |
11518 | } | |
4d5c3d91 | 11519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11520 | return resultobj; |
11521 | fail: | |
11522 | return NULL; | |
11523 | } | |
11524 | ||
11525 | ||
11526 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11527 | PyObject *resultobj; | |
11528 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11529 | wxEvent *arg2 = 0 ; | |
11530 | PyObject * obj0 = 0 ; | |
11531 | PyObject * obj1 = 0 ; | |
11532 | char *kwnames[] = { | |
11533 | (char *) "self",(char *) "event", NULL | |
11534 | }; | |
11535 | ||
11536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
11537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11538 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11539 | if (arg2 == NULL) { | |
11540 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11541 | } | |
11542 | { | |
11543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11544 | (arg1)->AddPendingEvent(*arg2); | |
11545 | ||
11546 | wxPyEndAllowThreads(__tstate); | |
11547 | if (PyErr_Occurred()) SWIG_fail; | |
11548 | } | |
11549 | Py_INCREF(Py_None); resultobj = Py_None; | |
11550 | return resultobj; | |
11551 | fail: | |
11552 | return NULL; | |
11553 | } | |
11554 | ||
11555 | ||
11556 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11557 | PyObject *resultobj; | |
11558 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11559 | PyObject * obj0 = 0 ; | |
11560 | char *kwnames[] = { | |
11561 | (char *) "self", NULL | |
11562 | }; | |
11563 | ||
11564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
11565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11566 | { | |
11567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11568 | (arg1)->ProcessPendingEvents(); | |
11569 | ||
11570 | wxPyEndAllowThreads(__tstate); | |
11571 | if (PyErr_Occurred()) SWIG_fail; | |
11572 | } | |
11573 | Py_INCREF(Py_None); resultobj = Py_None; | |
11574 | return resultobj; | |
11575 | fail: | |
11576 | return NULL; | |
11577 | } | |
11578 | ||
11579 | ||
11580 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11581 | PyObject *resultobj; | |
11582 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11583 | int arg2 ; | |
11584 | int arg3 ; | |
11585 | int arg4 ; | |
11586 | PyObject *arg5 = (PyObject *) 0 ; | |
11587 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11588 | PyObject * obj1 = 0 ; |
11589 | PyObject * obj2 = 0 ; | |
11590 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11591 | PyObject * obj4 = 0 ; |
11592 | char *kwnames[] = { | |
11593 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
11594 | }; | |
11595 | ||
994141e6 | 11596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 11597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11598 | { |
11599 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11600 | if (PyErr_Occurred()) SWIG_fail; | |
11601 | } | |
11602 | { | |
11603 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
11605 | } | |
11606 | { | |
11607 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11608 | if (PyErr_Occurred()) SWIG_fail; | |
11609 | } | |
d14a1e28 RD |
11610 | arg5 = obj4; |
11611 | { | |
11612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11613 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
11614 | ||
11615 | wxPyEndAllowThreads(__tstate); | |
11616 | if (PyErr_Occurred()) SWIG_fail; | |
11617 | } | |
11618 | Py_INCREF(Py_None); resultobj = Py_None; | |
11619 | return resultobj; | |
11620 | fail: | |
11621 | return NULL; | |
11622 | } | |
11623 | ||
11624 | ||
11625 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11626 | PyObject *resultobj; | |
11627 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11628 | int arg2 ; | |
11629 | int arg3 = (int) -1 ; | |
11630 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
11631 | bool result; | |
11632 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11633 | PyObject * obj1 = 0 ; |
11634 | PyObject * obj2 = 0 ; | |
11635 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11636 | char *kwnames[] = { |
11637 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
11638 | }; | |
11639 | ||
994141e6 | 11640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 11641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11642 | { |
11643 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11644 | if (PyErr_Occurred()) SWIG_fail; | |
11645 | } | |
11646 | if (obj2) { | |
11647 | { | |
11648 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11649 | if (PyErr_Occurred()) SWIG_fail; | |
11650 | } | |
11651 | } | |
11652 | if (obj3) { | |
11653 | { | |
11654 | arg4 = (wxEventType) SWIG_PyObj_AsInt(obj3); | |
11655 | if (PyErr_Occurred()) SWIG_fail; | |
11656 | } | |
11657 | } | |
d14a1e28 RD |
11658 | { |
11659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11660 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
11661 | ||
11662 | wxPyEndAllowThreads(__tstate); | |
11663 | if (PyErr_Occurred()) SWIG_fail; | |
11664 | } | |
4d5c3d91 | 11665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11666 | return resultobj; |
11667 | fail: | |
11668 | return NULL; | |
11669 | } | |
11670 | ||
11671 | ||
11672 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11673 | PyObject *resultobj; | |
11674 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11675 | PyObject *arg2 = (PyObject *) 0 ; | |
11676 | PyObject * obj0 = 0 ; | |
11677 | PyObject * obj1 = 0 ; | |
11678 | char *kwnames[] = { | |
11679 | (char *) "self",(char *) "_self", NULL | |
11680 | }; | |
11681 | ||
11682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
11683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11684 | arg2 = obj1; | |
11685 | { | |
11686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11687 | wxEvtHandler__setOORInfo(arg1,arg2); | |
11688 | ||
11689 | wxPyEndAllowThreads(__tstate); | |
11690 | if (PyErr_Occurred()) SWIG_fail; | |
11691 | } | |
11692 | Py_INCREF(Py_None); resultobj = Py_None; | |
11693 | return resultobj; | |
11694 | fail: | |
11695 | return NULL; | |
11696 | } | |
11697 | ||
11698 | ||
11699 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
11700 | PyObject *obj; | |
11701 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11702 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
11703 | Py_INCREF(obj); | |
11704 | return Py_BuildValue((char *)""); | |
11705 | } | |
11706 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11707 | PyObject *resultobj; | |
11708 | wxEventType result; | |
11709 | char *kwnames[] = { | |
11710 | NULL | |
11711 | }; | |
11712 | ||
11713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
11714 | { | |
11715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11716 | result = (wxEventType)wxNewEventType(); | |
11717 | ||
11718 | wxPyEndAllowThreads(__tstate); | |
11719 | if (PyErr_Occurred()) SWIG_fail; | |
11720 | } | |
994141e6 | 11721 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11722 | return resultobj; |
11723 | fail: | |
11724 | return NULL; | |
11725 | } | |
11726 | ||
11727 | ||
11728 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11729 | PyObject *resultobj; | |
11730 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11731 | PyObject * obj0 = 0 ; | |
11732 | char *kwnames[] = { | |
11733 | (char *) "self", NULL | |
11734 | }; | |
11735 | ||
11736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
11737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11738 | { | |
11739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11740 | delete arg1; | |
11741 | ||
11742 | wxPyEndAllowThreads(__tstate); | |
11743 | if (PyErr_Occurred()) SWIG_fail; | |
11744 | } | |
11745 | Py_INCREF(Py_None); resultobj = Py_None; | |
11746 | return resultobj; | |
11747 | fail: | |
11748 | return NULL; | |
11749 | } | |
11750 | ||
11751 | ||
11752 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11753 | PyObject *resultobj; | |
11754 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11755 | wxEventType arg2 ; | |
11756 | PyObject * obj0 = 0 ; | |
994141e6 | 11757 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11758 | char *kwnames[] = { |
11759 | (char *) "self",(char *) "typ", NULL | |
11760 | }; | |
11761 | ||
994141e6 | 11762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11764 | { |
11765 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
11766 | if (PyErr_Occurred()) SWIG_fail; | |
11767 | } | |
d14a1e28 RD |
11768 | { |
11769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11770 | (arg1)->SetEventType(arg2); | |
11771 | ||
11772 | wxPyEndAllowThreads(__tstate); | |
11773 | if (PyErr_Occurred()) SWIG_fail; | |
11774 | } | |
11775 | Py_INCREF(Py_None); resultobj = Py_None; | |
11776 | return resultobj; | |
11777 | fail: | |
11778 | return NULL; | |
11779 | } | |
11780 | ||
11781 | ||
11782 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11783 | PyObject *resultobj; | |
11784 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11785 | wxEventType result; | |
11786 | PyObject * obj0 = 0 ; | |
11787 | char *kwnames[] = { | |
11788 | (char *) "self", NULL | |
11789 | }; | |
11790 | ||
11791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
11792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11793 | { | |
11794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11795 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
11796 | ||
11797 | wxPyEndAllowThreads(__tstate); | |
11798 | if (PyErr_Occurred()) SWIG_fail; | |
11799 | } | |
994141e6 | 11800 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11801 | return resultobj; |
11802 | fail: | |
11803 | return NULL; | |
11804 | } | |
11805 | ||
11806 | ||
11807 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11808 | PyObject *resultobj; | |
11809 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11810 | wxObject *result; | |
11811 | PyObject * obj0 = 0 ; | |
11812 | char *kwnames[] = { | |
11813 | (char *) "self", NULL | |
11814 | }; | |
11815 | ||
11816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
11817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11818 | { | |
11819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11820 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
11821 | ||
11822 | wxPyEndAllowThreads(__tstate); | |
11823 | if (PyErr_Occurred()) SWIG_fail; | |
11824 | } | |
11825 | { | |
11826 | resultobj = wxPyMake_wxObject(result); | |
11827 | } | |
11828 | return resultobj; | |
11829 | fail: | |
11830 | return NULL; | |
11831 | } | |
11832 | ||
11833 | ||
11834 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11835 | PyObject *resultobj; | |
11836 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11837 | wxObject *arg2 = (wxObject *) 0 ; | |
11838 | PyObject * obj0 = 0 ; | |
11839 | PyObject * obj1 = 0 ; | |
11840 | char *kwnames[] = { | |
11841 | (char *) "self",(char *) "obj", NULL | |
11842 | }; | |
11843 | ||
11844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
11845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11846 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11847 | { | |
11848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11849 | (arg1)->SetEventObject(arg2); | |
11850 | ||
11851 | wxPyEndAllowThreads(__tstate); | |
11852 | if (PyErr_Occurred()) SWIG_fail; | |
11853 | } | |
11854 | Py_INCREF(Py_None); resultobj = Py_None; | |
11855 | return resultobj; | |
11856 | fail: | |
11857 | return NULL; | |
11858 | } | |
11859 | ||
11860 | ||
11861 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11862 | PyObject *resultobj; | |
11863 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11864 | long result; | |
11865 | PyObject * obj0 = 0 ; | |
11866 | char *kwnames[] = { | |
11867 | (char *) "self", NULL | |
11868 | }; | |
11869 | ||
11870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
11871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11872 | { | |
11873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11874 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
11875 | ||
11876 | wxPyEndAllowThreads(__tstate); | |
11877 | if (PyErr_Occurred()) SWIG_fail; | |
11878 | } | |
994141e6 | 11879 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
11880 | return resultobj; |
11881 | fail: | |
11882 | return NULL; | |
11883 | } | |
11884 | ||
11885 | ||
11886 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11887 | PyObject *resultobj; | |
11888 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11889 | long arg2 = (long) 0 ; | |
11890 | PyObject * obj0 = 0 ; | |
994141e6 | 11891 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11892 | char *kwnames[] = { |
11893 | (char *) "self",(char *) "ts", NULL | |
11894 | }; | |
11895 | ||
994141e6 | 11896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11898 | if (obj1) { |
11899 | { | |
11900 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
11901 | if (PyErr_Occurred()) SWIG_fail; | |
11902 | } | |
11903 | } | |
d14a1e28 RD |
11904 | { |
11905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11906 | (arg1)->SetTimestamp(arg2); | |
11907 | ||
11908 | wxPyEndAllowThreads(__tstate); | |
11909 | if (PyErr_Occurred()) SWIG_fail; | |
11910 | } | |
11911 | Py_INCREF(Py_None); resultobj = Py_None; | |
11912 | return resultobj; | |
11913 | fail: | |
11914 | return NULL; | |
11915 | } | |
11916 | ||
11917 | ||
11918 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11919 | PyObject *resultobj; | |
11920 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11921 | int result; | |
11922 | PyObject * obj0 = 0 ; | |
11923 | char *kwnames[] = { | |
11924 | (char *) "self", NULL | |
11925 | }; | |
11926 | ||
11927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
11928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11929 | { | |
11930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11931 | result = (int)((wxEvent const *)arg1)->GetId(); | |
11932 | ||
11933 | wxPyEndAllowThreads(__tstate); | |
11934 | if (PyErr_Occurred()) SWIG_fail; | |
11935 | } | |
994141e6 | 11936 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11937 | return resultobj; |
11938 | fail: | |
11939 | return NULL; | |
11940 | } | |
11941 | ||
11942 | ||
11943 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11944 | PyObject *resultobj; | |
11945 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11946 | int arg2 ; | |
11947 | PyObject * obj0 = 0 ; | |
994141e6 | 11948 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11949 | char *kwnames[] = { |
11950 | (char *) "self",(char *) "Id", NULL | |
11951 | }; | |
11952 | ||
994141e6 | 11953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11955 | { |
11956 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11957 | if (PyErr_Occurred()) SWIG_fail; | |
11958 | } | |
d14a1e28 RD |
11959 | { |
11960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11961 | (arg1)->SetId(arg2); | |
11962 | ||
11963 | wxPyEndAllowThreads(__tstate); | |
11964 | if (PyErr_Occurred()) SWIG_fail; | |
11965 | } | |
11966 | Py_INCREF(Py_None); resultobj = Py_None; | |
11967 | return resultobj; | |
11968 | fail: | |
11969 | return NULL; | |
11970 | } | |
11971 | ||
11972 | ||
11973 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11974 | PyObject *resultobj; | |
11975 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11976 | bool result; | |
11977 | PyObject * obj0 = 0 ; | |
11978 | char *kwnames[] = { | |
11979 | (char *) "self", NULL | |
11980 | }; | |
11981 | ||
11982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
11983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11984 | { | |
11985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11986 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
11987 | ||
11988 | wxPyEndAllowThreads(__tstate); | |
11989 | if (PyErr_Occurred()) SWIG_fail; | |
11990 | } | |
4d5c3d91 | 11991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11992 | return resultobj; |
11993 | fail: | |
11994 | return NULL; | |
11995 | } | |
11996 | ||
11997 | ||
11998 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11999 | PyObject *resultobj; | |
12000 | wxEvent *arg1 = (wxEvent *) 0 ; | |
e811c8ce | 12001 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12002 | PyObject * obj0 = 0 ; |
12003 | PyObject * obj1 = 0 ; | |
12004 | char *kwnames[] = { | |
12005 | (char *) "self",(char *) "skip", NULL | |
12006 | }; | |
12007 | ||
12008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
12009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12010 | if (obj1) { | |
a41e16b6 | 12011 | { |
994141e6 | 12012 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
12013 | if (PyErr_Occurred()) SWIG_fail; |
12014 | } | |
d14a1e28 RD |
12015 | } |
12016 | { | |
12017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12018 | (arg1)->Skip(arg2); | |
12019 | ||
12020 | wxPyEndAllowThreads(__tstate); | |
12021 | if (PyErr_Occurred()) SWIG_fail; | |
12022 | } | |
12023 | Py_INCREF(Py_None); resultobj = Py_None; | |
12024 | return resultobj; | |
12025 | fail: | |
12026 | return NULL; | |
12027 | } | |
12028 | ||
12029 | ||
12030 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12031 | PyObject *resultobj; | |
12032 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12033 | bool result; | |
12034 | PyObject * obj0 = 0 ; | |
12035 | char *kwnames[] = { | |
12036 | (char *) "self", NULL | |
12037 | }; | |
12038 | ||
12039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
12040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12041 | { | |
12042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12043 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12044 | ||
12045 | wxPyEndAllowThreads(__tstate); | |
12046 | if (PyErr_Occurred()) SWIG_fail; | |
12047 | } | |
4d5c3d91 | 12048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12049 | return resultobj; |
12050 | fail: | |
12051 | return NULL; | |
12052 | } | |
12053 | ||
12054 | ||
12055 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12056 | PyObject *resultobj; | |
12057 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12058 | bool result; | |
12059 | PyObject * obj0 = 0 ; | |
12060 | char *kwnames[] = { | |
12061 | (char *) "self", NULL | |
12062 | }; | |
12063 | ||
12064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
12065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12066 | { | |
12067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12068 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12069 | ||
12070 | wxPyEndAllowThreads(__tstate); | |
12071 | if (PyErr_Occurred()) SWIG_fail; | |
12072 | } | |
4d5c3d91 | 12073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12074 | return resultobj; |
12075 | fail: | |
12076 | return NULL; | |
12077 | } | |
12078 | ||
12079 | ||
12080 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12081 | PyObject *resultobj; | |
12082 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12083 | int result; | |
12084 | PyObject * obj0 = 0 ; | |
12085 | char *kwnames[] = { | |
12086 | (char *) "self", NULL | |
12087 | }; | |
12088 | ||
12089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
12090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12091 | { | |
12092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12093 | result = (int)(arg1)->StopPropagation(); | |
12094 | ||
12095 | wxPyEndAllowThreads(__tstate); | |
12096 | if (PyErr_Occurred()) SWIG_fail; | |
12097 | } | |
994141e6 | 12098 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12099 | return resultobj; |
12100 | fail: | |
12101 | return NULL; | |
12102 | } | |
12103 | ||
12104 | ||
12105 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12106 | PyObject *resultobj; | |
12107 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12108 | int arg2 ; | |
12109 | PyObject * obj0 = 0 ; | |
994141e6 | 12110 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12111 | char *kwnames[] = { |
12112 | (char *) "self",(char *) "propagationLevel", NULL | |
12113 | }; | |
12114 | ||
994141e6 | 12115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12117 | { |
12118 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12119 | if (PyErr_Occurred()) SWIG_fail; | |
12120 | } | |
d14a1e28 RD |
12121 | { |
12122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12123 | (arg1)->ResumePropagation(arg2); | |
12124 | ||
12125 | wxPyEndAllowThreads(__tstate); | |
12126 | if (PyErr_Occurred()) SWIG_fail; | |
12127 | } | |
12128 | Py_INCREF(Py_None); resultobj = Py_None; | |
12129 | return resultobj; | |
12130 | fail: | |
12131 | return NULL; | |
12132 | } | |
12133 | ||
12134 | ||
12135 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12136 | PyObject *resultobj; | |
12137 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12138 | wxEvent *result; | |
12139 | PyObject * obj0 = 0 ; | |
12140 | char *kwnames[] = { | |
12141 | (char *) "self", NULL | |
12142 | }; | |
12143 | ||
12144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
12145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12146 | { | |
12147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12148 | result = (wxEvent *)(arg1)->Clone(); | |
12149 | ||
12150 | wxPyEndAllowThreads(__tstate); | |
12151 | if (PyErr_Occurred()) SWIG_fail; | |
12152 | } | |
12153 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
12154 | return resultobj; | |
12155 | fail: | |
12156 | return NULL; | |
12157 | } | |
12158 | ||
12159 | ||
12160 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12161 | PyObject *obj; | |
12162 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12163 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12164 | Py_INCREF(obj); | |
12165 | return Py_BuildValue((char *)""); | |
12166 | } | |
12167 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12168 | PyObject *resultobj; | |
12169 | wxEvent *arg1 = 0 ; | |
12170 | wxPropagationDisabler *result; | |
12171 | PyObject * obj0 = 0 ; | |
12172 | char *kwnames[] = { | |
12173 | (char *) "event", NULL | |
12174 | }; | |
12175 | ||
12176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12178 | if (arg1 == NULL) { | |
12179 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12180 | } | |
12181 | { | |
12182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12183 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12184 | ||
12185 | wxPyEndAllowThreads(__tstate); | |
12186 | if (PyErr_Occurred()) SWIG_fail; | |
12187 | } | |
12188 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagationDisabler, 1); | |
12189 | return resultobj; | |
12190 | fail: | |
12191 | return NULL; | |
12192 | } | |
12193 | ||
12194 | ||
12195 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12196 | PyObject *resultobj; | |
12197 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12198 | PyObject * obj0 = 0 ; | |
12199 | char *kwnames[] = { | |
12200 | (char *) "self", NULL | |
12201 | }; | |
12202 | ||
12203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagationDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12205 | { | |
12206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12207 | delete arg1; | |
12208 | ||
12209 | wxPyEndAllowThreads(__tstate); | |
12210 | if (PyErr_Occurred()) SWIG_fail; | |
12211 | } | |
12212 | Py_INCREF(Py_None); resultobj = Py_None; | |
12213 | return resultobj; | |
12214 | fail: | |
12215 | return NULL; | |
12216 | } | |
12217 | ||
12218 | ||
12219 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12220 | PyObject *obj; | |
12221 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12222 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12223 | Py_INCREF(obj); | |
12224 | return Py_BuildValue((char *)""); | |
12225 | } | |
12226 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12227 | PyObject *resultobj; | |
12228 | wxEvent *arg1 = 0 ; | |
12229 | wxPropagateOnce *result; | |
12230 | PyObject * obj0 = 0 ; | |
12231 | char *kwnames[] = { | |
12232 | (char *) "event", NULL | |
12233 | }; | |
12234 | ||
12235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
12236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12237 | if (arg1 == NULL) { | |
12238 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12239 | } | |
12240 | { | |
12241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12242 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12243 | ||
12244 | wxPyEndAllowThreads(__tstate); | |
12245 | if (PyErr_Occurred()) SWIG_fail; | |
12246 | } | |
12247 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagateOnce, 1); | |
12248 | return resultobj; | |
12249 | fail: | |
12250 | return NULL; | |
12251 | } | |
12252 | ||
12253 | ||
12254 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12255 | PyObject *resultobj; | |
12256 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12257 | PyObject * obj0 = 0 ; | |
12258 | char *kwnames[] = { | |
12259 | (char *) "self", NULL | |
12260 | }; | |
12261 | ||
12262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
12263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagateOnce,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12264 | { | |
12265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12266 | delete arg1; | |
12267 | ||
12268 | wxPyEndAllowThreads(__tstate); | |
12269 | if (PyErr_Occurred()) SWIG_fail; | |
12270 | } | |
12271 | Py_INCREF(Py_None); resultobj = Py_None; | |
12272 | return resultobj; | |
12273 | fail: | |
12274 | return NULL; | |
12275 | } | |
12276 | ||
12277 | ||
12278 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12279 | PyObject *obj; | |
12280 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12281 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12282 | Py_INCREF(obj); | |
12283 | return Py_BuildValue((char *)""); | |
12284 | } | |
12285 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12286 | PyObject *resultobj; | |
12287 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12288 | int arg2 = (int) 0 ; | |
12289 | wxCommandEvent *result; | |
994141e6 RD |
12290 | PyObject * obj0 = 0 ; |
12291 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12292 | char *kwnames[] = { |
12293 | (char *) "commandType",(char *) "winid", NULL | |
12294 | }; | |
12295 | ||
994141e6 RD |
12296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; |
12297 | if (obj0) { | |
12298 | { | |
12299 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
12300 | if (PyErr_Occurred()) SWIG_fail; | |
12301 | } | |
12302 | } | |
12303 | if (obj1) { | |
12304 | { | |
12305 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12306 | if (PyErr_Occurred()) SWIG_fail; | |
12307 | } | |
12308 | } | |
d14a1e28 RD |
12309 | { |
12310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12311 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12312 | ||
12313 | wxPyEndAllowThreads(__tstate); | |
12314 | if (PyErr_Occurred()) SWIG_fail; | |
12315 | } | |
12316 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCommandEvent, 1); | |
12317 | return resultobj; | |
12318 | fail: | |
12319 | return NULL; | |
12320 | } | |
12321 | ||
12322 | ||
12323 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12324 | PyObject *resultobj; | |
12325 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12326 | int result; | |
12327 | PyObject * obj0 = 0 ; | |
12328 | char *kwnames[] = { | |
12329 | (char *) "self", NULL | |
12330 | }; | |
12331 | ||
12332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
12333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12334 | { | |
12335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12336 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12337 | ||
12338 | wxPyEndAllowThreads(__tstate); | |
12339 | if (PyErr_Occurred()) SWIG_fail; | |
12340 | } | |
994141e6 | 12341 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12342 | return resultobj; |
12343 | fail: | |
12344 | return NULL; | |
12345 | } | |
12346 | ||
12347 | ||
12348 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12349 | PyObject *resultobj; | |
12350 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12351 | wxString *arg2 = 0 ; | |
e811c8ce | 12352 | bool temp2 = False ; |
d14a1e28 RD |
12353 | PyObject * obj0 = 0 ; |
12354 | PyObject * obj1 = 0 ; | |
12355 | char *kwnames[] = { | |
12356 | (char *) "self",(char *) "s", NULL | |
12357 | }; | |
12358 | ||
12359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
12360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12361 | { | |
12362 | arg2 = wxString_in_helper(obj1); | |
12363 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12364 | temp2 = True; |
d14a1e28 RD |
12365 | } |
12366 | { | |
12367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12368 | (arg1)->SetString((wxString const &)*arg2); | |
12369 | ||
12370 | wxPyEndAllowThreads(__tstate); | |
12371 | if (PyErr_Occurred()) SWIG_fail; | |
12372 | } | |
12373 | Py_INCREF(Py_None); resultobj = Py_None; | |
12374 | { | |
12375 | if (temp2) | |
12376 | delete arg2; | |
12377 | } | |
12378 | return resultobj; | |
12379 | fail: | |
12380 | { | |
12381 | if (temp2) | |
12382 | delete arg2; | |
12383 | } | |
12384 | return NULL; | |
12385 | } | |
12386 | ||
12387 | ||
12388 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12389 | PyObject *resultobj; | |
12390 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12391 | wxString result; | |
12392 | PyObject * obj0 = 0 ; | |
12393 | char *kwnames[] = { | |
12394 | (char *) "self", NULL | |
12395 | }; | |
12396 | ||
12397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
12398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12399 | { | |
12400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12401 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12402 | ||
12403 | wxPyEndAllowThreads(__tstate); | |
12404 | if (PyErr_Occurred()) SWIG_fail; | |
12405 | } | |
12406 | { | |
12407 | #if wxUSE_UNICODE | |
12408 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12409 | #else | |
12410 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12411 | #endif | |
12412 | } | |
12413 | return resultobj; | |
12414 | fail: | |
12415 | return NULL; | |
12416 | } | |
12417 | ||
12418 | ||
12419 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12420 | PyObject *resultobj; | |
12421 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12422 | bool result; | |
12423 | PyObject * obj0 = 0 ; | |
12424 | char *kwnames[] = { | |
12425 | (char *) "self", NULL | |
12426 | }; | |
12427 | ||
12428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
12429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12430 | { | |
12431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12432 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12433 | ||
12434 | wxPyEndAllowThreads(__tstate); | |
12435 | if (PyErr_Occurred()) SWIG_fail; | |
12436 | } | |
4d5c3d91 | 12437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12438 | return resultobj; |
12439 | fail: | |
12440 | return NULL; | |
12441 | } | |
12442 | ||
12443 | ||
12444 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12445 | PyObject *resultobj; | |
12446 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12447 | bool result; | |
12448 | PyObject * obj0 = 0 ; | |
12449 | char *kwnames[] = { | |
12450 | (char *) "self", NULL | |
12451 | }; | |
12452 | ||
12453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
12454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12455 | { | |
12456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12457 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12458 | ||
12459 | wxPyEndAllowThreads(__tstate); | |
12460 | if (PyErr_Occurred()) SWIG_fail; | |
12461 | } | |
4d5c3d91 | 12462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12463 | return resultobj; |
12464 | fail: | |
12465 | return NULL; | |
12466 | } | |
12467 | ||
12468 | ||
12469 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12470 | PyObject *resultobj; | |
12471 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12472 | long arg2 ; | |
12473 | PyObject * obj0 = 0 ; | |
994141e6 | 12474 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12475 | char *kwnames[] = { |
12476 | (char *) "self",(char *) "extraLong", NULL | |
12477 | }; | |
12478 | ||
994141e6 | 12479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12481 | { |
12482 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
12483 | if (PyErr_Occurred()) SWIG_fail; | |
12484 | } | |
d14a1e28 RD |
12485 | { |
12486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12487 | (arg1)->SetExtraLong(arg2); | |
12488 | ||
12489 | wxPyEndAllowThreads(__tstate); | |
12490 | if (PyErr_Occurred()) SWIG_fail; | |
12491 | } | |
12492 | Py_INCREF(Py_None); resultobj = Py_None; | |
12493 | return resultobj; | |
12494 | fail: | |
12495 | return NULL; | |
12496 | } | |
12497 | ||
12498 | ||
12499 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12500 | PyObject *resultobj; | |
12501 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12502 | long result; | |
12503 | PyObject * obj0 = 0 ; | |
12504 | char *kwnames[] = { | |
12505 | (char *) "self", NULL | |
12506 | }; | |
12507 | ||
12508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
12509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12510 | { | |
12511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12512 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
12513 | ||
12514 | wxPyEndAllowThreads(__tstate); | |
12515 | if (PyErr_Occurred()) SWIG_fail; | |
12516 | } | |
994141e6 | 12517 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
12518 | return resultobj; |
12519 | fail: | |
12520 | return NULL; | |
12521 | } | |
12522 | ||
12523 | ||
12524 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12525 | PyObject *resultobj; | |
12526 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12527 | int arg2 ; | |
12528 | PyObject * obj0 = 0 ; | |
994141e6 | 12529 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12530 | char *kwnames[] = { |
12531 | (char *) "self",(char *) "i", NULL | |
12532 | }; | |
12533 | ||
994141e6 | 12534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12536 | { |
12537 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12538 | if (PyErr_Occurred()) SWIG_fail; | |
12539 | } | |
d14a1e28 RD |
12540 | { |
12541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12542 | (arg1)->SetInt(arg2); | |
12543 | ||
12544 | wxPyEndAllowThreads(__tstate); | |
12545 | if (PyErr_Occurred()) SWIG_fail; | |
12546 | } | |
12547 | Py_INCREF(Py_None); resultobj = Py_None; | |
12548 | return resultobj; | |
12549 | fail: | |
12550 | return NULL; | |
12551 | } | |
12552 | ||
12553 | ||
12554 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12555 | PyObject *resultobj; | |
12556 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12557 | long result; | |
12558 | PyObject * obj0 = 0 ; | |
12559 | char *kwnames[] = { | |
12560 | (char *) "self", NULL | |
12561 | }; | |
12562 | ||
12563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
12564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12565 | { | |
12566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12567 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
12568 | ||
12569 | wxPyEndAllowThreads(__tstate); | |
12570 | if (PyErr_Occurred()) SWIG_fail; | |
12571 | } | |
994141e6 | 12572 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
12573 | return resultobj; |
12574 | fail: | |
12575 | return NULL; | |
12576 | } | |
12577 | ||
12578 | ||
12579 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12580 | PyObject *resultobj; | |
12581 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12582 | wxEvent *result; | |
12583 | PyObject * obj0 = 0 ; | |
12584 | char *kwnames[] = { | |
12585 | (char *) "self", NULL | |
12586 | }; | |
12587 | ||
12588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
12589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12590 | { | |
12591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12592 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
12593 | ||
12594 | wxPyEndAllowThreads(__tstate); | |
12595 | if (PyErr_Occurred()) SWIG_fail; | |
12596 | } | |
12597 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
12598 | return resultobj; | |
12599 | fail: | |
12600 | return NULL; | |
12601 | } | |
12602 | ||
12603 | ||
12604 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
12605 | PyObject *obj; | |
12606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12607 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
12608 | Py_INCREF(obj); | |
12609 | return Py_BuildValue((char *)""); | |
12610 | } | |
12611 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12612 | PyObject *resultobj; | |
12613 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12614 | int arg2 = (int) 0 ; | |
12615 | wxNotifyEvent *result; | |
994141e6 RD |
12616 | PyObject * obj0 = 0 ; |
12617 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12618 | char *kwnames[] = { |
12619 | (char *) "commandType",(char *) "winid", NULL | |
12620 | }; | |
12621 | ||
994141e6 RD |
12622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; |
12623 | if (obj0) { | |
12624 | { | |
12625 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
12626 | if (PyErr_Occurred()) SWIG_fail; | |
12627 | } | |
12628 | } | |
12629 | if (obj1) { | |
12630 | { | |
12631 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12632 | if (PyErr_Occurred()) SWIG_fail; | |
12633 | } | |
12634 | } | |
d14a1e28 RD |
12635 | { |
12636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12637 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
12638 | ||
12639 | wxPyEndAllowThreads(__tstate); | |
12640 | if (PyErr_Occurred()) SWIG_fail; | |
12641 | } | |
12642 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotifyEvent, 1); | |
12643 | return resultobj; | |
12644 | fail: | |
12645 | return NULL; | |
12646 | } | |
12647 | ||
12648 | ||
12649 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12650 | PyObject *resultobj; | |
12651 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12652 | PyObject * obj0 = 0 ; | |
12653 | char *kwnames[] = { | |
12654 | (char *) "self", NULL | |
12655 | }; | |
12656 | ||
12657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
12658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12659 | { | |
12660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12661 | (arg1)->Veto(); | |
12662 | ||
12663 | wxPyEndAllowThreads(__tstate); | |
12664 | if (PyErr_Occurred()) SWIG_fail; | |
12665 | } | |
12666 | Py_INCREF(Py_None); resultobj = Py_None; | |
12667 | return resultobj; | |
12668 | fail: | |
12669 | return NULL; | |
12670 | } | |
12671 | ||
12672 | ||
12673 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12674 | PyObject *resultobj; | |
12675 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12676 | PyObject * obj0 = 0 ; | |
12677 | char *kwnames[] = { | |
12678 | (char *) "self", NULL | |
12679 | }; | |
12680 | ||
12681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
12682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12683 | { | |
12684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12685 | (arg1)->Allow(); | |
12686 | ||
12687 | wxPyEndAllowThreads(__tstate); | |
12688 | if (PyErr_Occurred()) SWIG_fail; | |
12689 | } | |
12690 | Py_INCREF(Py_None); resultobj = Py_None; | |
12691 | return resultobj; | |
12692 | fail: | |
12693 | return NULL; | |
12694 | } | |
12695 | ||
12696 | ||
12697 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12698 | PyObject *resultobj; | |
12699 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12700 | bool result; | |
12701 | PyObject * obj0 = 0 ; | |
12702 | char *kwnames[] = { | |
12703 | (char *) "self", NULL | |
12704 | }; | |
12705 | ||
12706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
12707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12708 | { | |
12709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12710 | result = (bool)(arg1)->IsAllowed(); | |
12711 | ||
12712 | wxPyEndAllowThreads(__tstate); | |
12713 | if (PyErr_Occurred()) SWIG_fail; | |
12714 | } | |
4d5c3d91 | 12715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12716 | return resultobj; |
12717 | fail: | |
12718 | return NULL; | |
12719 | } | |
12720 | ||
12721 | ||
12722 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
12723 | PyObject *obj; | |
12724 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12725 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
12726 | Py_INCREF(obj); | |
12727 | return Py_BuildValue((char *)""); | |
12728 | } | |
12729 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12730 | PyObject *resultobj; | |
12731 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12732 | int arg2 = (int) 0 ; | |
12733 | int arg3 = (int) 0 ; | |
12734 | int arg4 = (int) 0 ; | |
12735 | wxScrollEvent *result; | |
994141e6 RD |
12736 | PyObject * obj0 = 0 ; |
12737 | PyObject * obj1 = 0 ; | |
12738 | PyObject * obj2 = 0 ; | |
12739 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12740 | char *kwnames[] = { |
12741 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
12742 | }; | |
12743 | ||
994141e6 RD |
12744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12745 | if (obj0) { | |
12746 | { | |
12747 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
12748 | if (PyErr_Occurred()) SWIG_fail; | |
12749 | } | |
12750 | } | |
12751 | if (obj1) { | |
12752 | { | |
12753 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12754 | if (PyErr_Occurred()) SWIG_fail; | |
12755 | } | |
12756 | } | |
12757 | if (obj2) { | |
12758 | { | |
12759 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12760 | if (PyErr_Occurred()) SWIG_fail; | |
12761 | } | |
12762 | } | |
12763 | if (obj3) { | |
12764 | { | |
12765 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12766 | if (PyErr_Occurred()) SWIG_fail; | |
12767 | } | |
12768 | } | |
d14a1e28 RD |
12769 | { |
12770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12771 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
12772 | ||
12773 | wxPyEndAllowThreads(__tstate); | |
12774 | if (PyErr_Occurred()) SWIG_fail; | |
12775 | } | |
12776 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollEvent, 1); | |
12777 | return resultobj; | |
12778 | fail: | |
12779 | return NULL; | |
12780 | } | |
12781 | ||
12782 | ||
12783 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12784 | PyObject *resultobj; | |
12785 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12786 | int result; | |
12787 | PyObject * obj0 = 0 ; | |
12788 | char *kwnames[] = { | |
12789 | (char *) "self", NULL | |
12790 | }; | |
12791 | ||
12792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
12793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12794 | { | |
12795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12796 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
12797 | ||
12798 | wxPyEndAllowThreads(__tstate); | |
12799 | if (PyErr_Occurred()) SWIG_fail; | |
12800 | } | |
994141e6 | 12801 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12802 | return resultobj; |
12803 | fail: | |
12804 | return NULL; | |
12805 | } | |
12806 | ||
12807 | ||
12808 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12809 | PyObject *resultobj; | |
12810 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12811 | int result; | |
12812 | PyObject * obj0 = 0 ; | |
12813 | char *kwnames[] = { | |
12814 | (char *) "self", NULL | |
12815 | }; | |
12816 | ||
12817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
12818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12819 | { | |
12820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12821 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
12822 | ||
12823 | wxPyEndAllowThreads(__tstate); | |
12824 | if (PyErr_Occurred()) SWIG_fail; | |
12825 | } | |
994141e6 | 12826 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12827 | return resultobj; |
12828 | fail: | |
12829 | return NULL; | |
12830 | } | |
12831 | ||
12832 | ||
12833 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12834 | PyObject *resultobj; | |
12835 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12836 | int arg2 ; | |
12837 | PyObject * obj0 = 0 ; | |
994141e6 | 12838 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12839 | char *kwnames[] = { |
12840 | (char *) "self",(char *) "orient", NULL | |
12841 | }; | |
12842 | ||
994141e6 | 12843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12845 | { |
12846 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12847 | if (PyErr_Occurred()) SWIG_fail; | |
12848 | } | |
d14a1e28 RD |
12849 | { |
12850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12851 | (arg1)->SetOrientation(arg2); | |
12852 | ||
12853 | wxPyEndAllowThreads(__tstate); | |
12854 | if (PyErr_Occurred()) SWIG_fail; | |
12855 | } | |
12856 | Py_INCREF(Py_None); resultobj = Py_None; | |
12857 | return resultobj; | |
12858 | fail: | |
12859 | return NULL; | |
12860 | } | |
12861 | ||
12862 | ||
12863 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12864 | PyObject *resultobj; | |
12865 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12866 | int arg2 ; | |
12867 | PyObject * obj0 = 0 ; | |
994141e6 | 12868 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12869 | char *kwnames[] = { |
12870 | (char *) "self",(char *) "pos", NULL | |
12871 | }; | |
12872 | ||
994141e6 | 12873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12875 | { |
12876 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12877 | if (PyErr_Occurred()) SWIG_fail; | |
12878 | } | |
d14a1e28 RD |
12879 | { |
12880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12881 | (arg1)->SetPosition(arg2); | |
12882 | ||
12883 | wxPyEndAllowThreads(__tstate); | |
12884 | if (PyErr_Occurred()) SWIG_fail; | |
12885 | } | |
12886 | Py_INCREF(Py_None); resultobj = Py_None; | |
12887 | return resultobj; | |
12888 | fail: | |
12889 | return NULL; | |
12890 | } | |
12891 | ||
12892 | ||
12893 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
12894 | PyObject *obj; | |
12895 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12896 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
12897 | Py_INCREF(obj); | |
12898 | return Py_BuildValue((char *)""); | |
12899 | } | |
12900 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12901 | PyObject *resultobj; | |
12902 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12903 | int arg2 = (int) 0 ; | |
12904 | int arg3 = (int) 0 ; | |
12905 | wxScrollWinEvent *result; | |
994141e6 RD |
12906 | PyObject * obj0 = 0 ; |
12907 | PyObject * obj1 = 0 ; | |
12908 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12909 | char *kwnames[] = { |
12910 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
12911 | }; | |
12912 | ||
994141e6 RD |
12913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
12914 | if (obj0) { | |
12915 | { | |
12916 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
12917 | if (PyErr_Occurred()) SWIG_fail; | |
12918 | } | |
12919 | } | |
12920 | if (obj1) { | |
12921 | { | |
12922 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12923 | if (PyErr_Occurred()) SWIG_fail; | |
12924 | } | |
12925 | } | |
12926 | if (obj2) { | |
12927 | { | |
12928 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12929 | if (PyErr_Occurred()) SWIG_fail; | |
12930 | } | |
12931 | } | |
d14a1e28 RD |
12932 | { |
12933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12934 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
12935 | ||
12936 | wxPyEndAllowThreads(__tstate); | |
12937 | if (PyErr_Occurred()) SWIG_fail; | |
12938 | } | |
12939 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollWinEvent, 1); | |
12940 | return resultobj; | |
12941 | fail: | |
12942 | return NULL; | |
12943 | } | |
12944 | ||
12945 | ||
12946 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12947 | PyObject *resultobj; | |
12948 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
12949 | int result; | |
12950 | PyObject * obj0 = 0 ; | |
12951 | char *kwnames[] = { | |
12952 | (char *) "self", NULL | |
12953 | }; | |
12954 | ||
12955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
12956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12957 | { | |
12958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12959 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
12960 | ||
12961 | wxPyEndAllowThreads(__tstate); | |
12962 | if (PyErr_Occurred()) SWIG_fail; | |
12963 | } | |
994141e6 | 12964 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12965 | return resultobj; |
12966 | fail: | |
12967 | return NULL; | |
12968 | } | |
12969 | ||
12970 | ||
12971 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12972 | PyObject *resultobj; | |
12973 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
12974 | int result; | |
12975 | PyObject * obj0 = 0 ; | |
12976 | char *kwnames[] = { | |
12977 | (char *) "self", NULL | |
12978 | }; | |
12979 | ||
12980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
12981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12982 | { | |
12983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12984 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
12985 | ||
12986 | wxPyEndAllowThreads(__tstate); | |
12987 | if (PyErr_Occurred()) SWIG_fail; | |
12988 | } | |
994141e6 | 12989 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12990 | return resultobj; |
12991 | fail: | |
12992 | return NULL; | |
12993 | } | |
12994 | ||
12995 | ||
12996 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12997 | PyObject *resultobj; | |
12998 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
12999 | int arg2 ; | |
13000 | PyObject * obj0 = 0 ; | |
994141e6 | 13001 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13002 | char *kwnames[] = { |
13003 | (char *) "self",(char *) "orient", NULL | |
13004 | }; | |
13005 | ||
994141e6 | 13006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13008 | { |
13009 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13010 | if (PyErr_Occurred()) SWIG_fail; | |
13011 | } | |
d14a1e28 RD |
13012 | { |
13013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13014 | (arg1)->SetOrientation(arg2); | |
13015 | ||
13016 | wxPyEndAllowThreads(__tstate); | |
13017 | if (PyErr_Occurred()) SWIG_fail; | |
13018 | } | |
13019 | Py_INCREF(Py_None); resultobj = Py_None; | |
13020 | return resultobj; | |
13021 | fail: | |
13022 | return NULL; | |
13023 | } | |
13024 | ||
13025 | ||
13026 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13027 | PyObject *resultobj; | |
13028 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13029 | int arg2 ; | |
13030 | PyObject * obj0 = 0 ; | |
994141e6 | 13031 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13032 | char *kwnames[] = { |
13033 | (char *) "self",(char *) "pos", NULL | |
13034 | }; | |
13035 | ||
994141e6 | 13036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13038 | { |
13039 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13040 | if (PyErr_Occurred()) SWIG_fail; | |
13041 | } | |
d14a1e28 RD |
13042 | { |
13043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13044 | (arg1)->SetPosition(arg2); | |
13045 | ||
13046 | wxPyEndAllowThreads(__tstate); | |
13047 | if (PyErr_Occurred()) SWIG_fail; | |
13048 | } | |
13049 | Py_INCREF(Py_None); resultobj = Py_None; | |
13050 | return resultobj; | |
13051 | fail: | |
13052 | return NULL; | |
13053 | } | |
13054 | ||
13055 | ||
13056 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13057 | PyObject *obj; | |
13058 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13059 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13060 | Py_INCREF(obj); | |
13061 | return Py_BuildValue((char *)""); | |
13062 | } | |
13063 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13064 | PyObject *resultobj; | |
13065 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13066 | wxMouseEvent *result; | |
994141e6 | 13067 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
13068 | char *kwnames[] = { |
13069 | (char *) "mouseType", NULL | |
13070 | }; | |
13071 | ||
994141e6 RD |
13072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; |
13073 | if (obj0) { | |
13074 | { | |
13075 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13076 | if (PyErr_Occurred()) SWIG_fail; | |
13077 | } | |
13078 | } | |
d14a1e28 RD |
13079 | { |
13080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13081 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13082 | ||
13083 | wxPyEndAllowThreads(__tstate); | |
13084 | if (PyErr_Occurred()) SWIG_fail; | |
13085 | } | |
13086 | { | |
13087 | resultobj = wxPyMake_wxObject(result); | |
13088 | } | |
13089 | return resultobj; | |
13090 | fail: | |
13091 | return NULL; | |
13092 | } | |
13093 | ||
13094 | ||
13095 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13096 | PyObject *resultobj; | |
13097 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13098 | bool result; | |
13099 | PyObject * obj0 = 0 ; | |
13100 | char *kwnames[] = { | |
13101 | (char *) "self", NULL | |
13102 | }; | |
13103 | ||
13104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
13105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13106 | { | |
13107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13108 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13109 | ||
13110 | wxPyEndAllowThreads(__tstate); | |
13111 | if (PyErr_Occurred()) SWIG_fail; | |
13112 | } | |
4d5c3d91 | 13113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13114 | return resultobj; |
13115 | fail: | |
13116 | return NULL; | |
13117 | } | |
13118 | ||
13119 | ||
13120 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13121 | PyObject *resultobj; | |
13122 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13123 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13124 | bool result; | |
13125 | PyObject * obj0 = 0 ; | |
994141e6 | 13126 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13127 | char *kwnames[] = { |
13128 | (char *) "self",(char *) "but", NULL | |
13129 | }; | |
13130 | ||
994141e6 | 13131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13133 | if (obj1) { |
13134 | { | |
13135 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13136 | if (PyErr_Occurred()) SWIG_fail; | |
13137 | } | |
13138 | } | |
d14a1e28 RD |
13139 | { |
13140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13141 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13142 | ||
13143 | wxPyEndAllowThreads(__tstate); | |
13144 | if (PyErr_Occurred()) SWIG_fail; | |
13145 | } | |
4d5c3d91 | 13146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13147 | return resultobj; |
13148 | fail: | |
13149 | return NULL; | |
13150 | } | |
13151 | ||
13152 | ||
13153 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13154 | PyObject *resultobj; | |
13155 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13156 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13157 | bool result; | |
13158 | PyObject * obj0 = 0 ; | |
994141e6 | 13159 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13160 | char *kwnames[] = { |
13161 | (char *) "self",(char *) "but", NULL | |
13162 | }; | |
13163 | ||
994141e6 | 13164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13166 | if (obj1) { |
13167 | { | |
13168 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13169 | if (PyErr_Occurred()) SWIG_fail; | |
13170 | } | |
13171 | } | |
d14a1e28 RD |
13172 | { |
13173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13174 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13175 | ||
13176 | wxPyEndAllowThreads(__tstate); | |
13177 | if (PyErr_Occurred()) SWIG_fail; | |
13178 | } | |
4d5c3d91 | 13179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13180 | return resultobj; |
13181 | fail: | |
13182 | return NULL; | |
13183 | } | |
13184 | ||
13185 | ||
13186 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13187 | PyObject *resultobj; | |
13188 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13189 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13190 | bool result; | |
13191 | PyObject * obj0 = 0 ; | |
994141e6 | 13192 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13193 | char *kwnames[] = { |
13194 | (char *) "self",(char *) "but", NULL | |
13195 | }; | |
13196 | ||
994141e6 | 13197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13199 | if (obj1) { |
13200 | { | |
13201 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
13203 | } | |
13204 | } | |
d14a1e28 RD |
13205 | { |
13206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13207 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13208 | ||
13209 | wxPyEndAllowThreads(__tstate); | |
13210 | if (PyErr_Occurred()) SWIG_fail; | |
13211 | } | |
4d5c3d91 | 13212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13213 | return resultobj; |
13214 | fail: | |
13215 | return NULL; | |
13216 | } | |
13217 | ||
13218 | ||
13219 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13220 | PyObject *resultobj; | |
13221 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13222 | int arg2 ; | |
13223 | bool result; | |
13224 | PyObject * obj0 = 0 ; | |
994141e6 | 13225 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13226 | char *kwnames[] = { |
13227 | (char *) "self",(char *) "but", NULL | |
13228 | }; | |
13229 | ||
994141e6 | 13230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13232 | { |
13233 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13234 | if (PyErr_Occurred()) SWIG_fail; | |
13235 | } | |
d14a1e28 RD |
13236 | { |
13237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13238 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13239 | ||
13240 | wxPyEndAllowThreads(__tstate); | |
13241 | if (PyErr_Occurred()) SWIG_fail; | |
13242 | } | |
4d5c3d91 | 13243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13244 | return resultobj; |
13245 | fail: | |
13246 | return NULL; | |
13247 | } | |
13248 | ||
13249 | ||
13250 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13251 | PyObject *resultobj; | |
13252 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13253 | int arg2 ; | |
13254 | bool result; | |
13255 | PyObject * obj0 = 0 ; | |
994141e6 | 13256 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13257 | char *kwnames[] = { |
13258 | (char *) "self",(char *) "but", NULL | |
13259 | }; | |
13260 | ||
994141e6 | 13261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13263 | { |
13264 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13265 | if (PyErr_Occurred()) SWIG_fail; | |
13266 | } | |
d14a1e28 RD |
13267 | { |
13268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13269 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13270 | ||
13271 | wxPyEndAllowThreads(__tstate); | |
13272 | if (PyErr_Occurred()) SWIG_fail; | |
13273 | } | |
4d5c3d91 | 13274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13275 | return resultobj; |
13276 | fail: | |
13277 | return NULL; | |
13278 | } | |
13279 | ||
13280 | ||
13281 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13282 | PyObject *resultobj; | |
13283 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13284 | int result; | |
13285 | PyObject * obj0 = 0 ; | |
13286 | char *kwnames[] = { | |
13287 | (char *) "self", NULL | |
13288 | }; | |
13289 | ||
13290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
13291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13292 | { | |
13293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13294 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13295 | ||
13296 | wxPyEndAllowThreads(__tstate); | |
13297 | if (PyErr_Occurred()) SWIG_fail; | |
13298 | } | |
994141e6 | 13299 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13300 | return resultobj; |
13301 | fail: | |
13302 | return NULL; | |
13303 | } | |
13304 | ||
13305 | ||
13306 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13307 | PyObject *resultobj; | |
13308 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13309 | bool result; | |
13310 | PyObject * obj0 = 0 ; | |
13311 | char *kwnames[] = { | |
13312 | (char *) "self", NULL | |
13313 | }; | |
13314 | ||
13315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
13316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13317 | { | |
13318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13319 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13320 | ||
13321 | wxPyEndAllowThreads(__tstate); | |
13322 | if (PyErr_Occurred()) SWIG_fail; | |
13323 | } | |
4d5c3d91 | 13324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13325 | return resultobj; |
13326 | fail: | |
13327 | return NULL; | |
13328 | } | |
13329 | ||
13330 | ||
13331 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13332 | PyObject *resultobj; | |
13333 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13334 | bool result; | |
13335 | PyObject * obj0 = 0 ; | |
13336 | char *kwnames[] = { | |
13337 | (char *) "self", NULL | |
13338 | }; | |
13339 | ||
13340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
13341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13342 | { | |
13343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13344 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13345 | ||
13346 | wxPyEndAllowThreads(__tstate); | |
13347 | if (PyErr_Occurred()) SWIG_fail; | |
13348 | } | |
4d5c3d91 | 13349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13350 | return resultobj; |
13351 | fail: | |
13352 | return NULL; | |
13353 | } | |
13354 | ||
13355 | ||
13356 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13357 | PyObject *resultobj; | |
13358 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13359 | bool result; | |
13360 | PyObject * obj0 = 0 ; | |
13361 | char *kwnames[] = { | |
13362 | (char *) "self", NULL | |
13363 | }; | |
13364 | ||
13365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
13366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13367 | { | |
13368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13369 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13370 | ||
13371 | wxPyEndAllowThreads(__tstate); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | } | |
4d5c3d91 | 13374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13375 | return resultobj; |
13376 | fail: | |
13377 | return NULL; | |
13378 | } | |
13379 | ||
13380 | ||
13381 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13382 | PyObject *resultobj; | |
13383 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13384 | bool result; | |
13385 | PyObject * obj0 = 0 ; | |
13386 | char *kwnames[] = { | |
13387 | (char *) "self", NULL | |
13388 | }; | |
13389 | ||
13390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
13391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13392 | { | |
13393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13394 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13395 | ||
13396 | wxPyEndAllowThreads(__tstate); | |
13397 | if (PyErr_Occurred()) SWIG_fail; | |
13398 | } | |
4d5c3d91 | 13399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13400 | return resultobj; |
13401 | fail: | |
13402 | return NULL; | |
13403 | } | |
13404 | ||
13405 | ||
13406 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13407 | PyObject *resultobj; | |
13408 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13409 | bool result; | |
13410 | PyObject * obj0 = 0 ; | |
13411 | char *kwnames[] = { | |
13412 | (char *) "self", NULL | |
13413 | }; | |
13414 | ||
13415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
13416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13417 | { | |
13418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13419 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
13420 | ||
13421 | wxPyEndAllowThreads(__tstate); | |
13422 | if (PyErr_Occurred()) SWIG_fail; | |
13423 | } | |
4d5c3d91 | 13424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13425 | return resultobj; |
13426 | fail: | |
13427 | return NULL; | |
13428 | } | |
13429 | ||
13430 | ||
13431 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13432 | PyObject *resultobj; | |
13433 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13434 | bool result; | |
13435 | PyObject * obj0 = 0 ; | |
13436 | char *kwnames[] = { | |
13437 | (char *) "self", NULL | |
13438 | }; | |
13439 | ||
13440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
13441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13442 | { | |
13443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13444 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13445 | ||
13446 | wxPyEndAllowThreads(__tstate); | |
13447 | if (PyErr_Occurred()) SWIG_fail; | |
13448 | } | |
4d5c3d91 | 13449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13450 | return resultobj; |
13451 | fail: | |
13452 | return NULL; | |
13453 | } | |
13454 | ||
13455 | ||
13456 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13457 | PyObject *resultobj; | |
13458 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13459 | bool result; | |
13460 | PyObject * obj0 = 0 ; | |
13461 | char *kwnames[] = { | |
13462 | (char *) "self", NULL | |
13463 | }; | |
13464 | ||
13465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
13466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13467 | { | |
13468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13469 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
13470 | ||
13471 | wxPyEndAllowThreads(__tstate); | |
13472 | if (PyErr_Occurred()) SWIG_fail; | |
13473 | } | |
4d5c3d91 | 13474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13475 | return resultobj; |
13476 | fail: | |
13477 | return NULL; | |
13478 | } | |
13479 | ||
13480 | ||
13481 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13482 | PyObject *resultobj; | |
13483 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13484 | bool result; | |
13485 | PyObject * obj0 = 0 ; | |
13486 | char *kwnames[] = { | |
13487 | (char *) "self", NULL | |
13488 | }; | |
13489 | ||
13490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
13491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13492 | { | |
13493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13494 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
13495 | ||
13496 | wxPyEndAllowThreads(__tstate); | |
13497 | if (PyErr_Occurred()) SWIG_fail; | |
13498 | } | |
4d5c3d91 | 13499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13500 | return resultobj; |
13501 | fail: | |
13502 | return NULL; | |
13503 | } | |
13504 | ||
13505 | ||
13506 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13507 | PyObject *resultobj; | |
13508 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13509 | bool result; | |
13510 | PyObject * obj0 = 0 ; | |
13511 | char *kwnames[] = { | |
13512 | (char *) "self", NULL | |
13513 | }; | |
13514 | ||
13515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
13516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13517 | { | |
13518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13519 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
13520 | ||
13521 | wxPyEndAllowThreads(__tstate); | |
13522 | if (PyErr_Occurred()) SWIG_fail; | |
13523 | } | |
4d5c3d91 | 13524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13525 | return resultobj; |
13526 | fail: | |
13527 | return NULL; | |
13528 | } | |
13529 | ||
13530 | ||
13531 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13532 | PyObject *resultobj; | |
13533 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13534 | bool result; | |
13535 | PyObject * obj0 = 0 ; | |
13536 | char *kwnames[] = { | |
13537 | (char *) "self", NULL | |
13538 | }; | |
13539 | ||
13540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
13541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13542 | { | |
13543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13544 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
13545 | ||
13546 | wxPyEndAllowThreads(__tstate); | |
13547 | if (PyErr_Occurred()) SWIG_fail; | |
13548 | } | |
4d5c3d91 | 13549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13550 | return resultobj; |
13551 | fail: | |
13552 | return NULL; | |
13553 | } | |
13554 | ||
13555 | ||
13556 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13557 | PyObject *resultobj; | |
13558 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13559 | bool result; | |
13560 | PyObject * obj0 = 0 ; | |
13561 | char *kwnames[] = { | |
13562 | (char *) "self", NULL | |
13563 | }; | |
13564 | ||
13565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
13566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13567 | { | |
13568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13569 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
13570 | ||
13571 | wxPyEndAllowThreads(__tstate); | |
13572 | if (PyErr_Occurred()) SWIG_fail; | |
13573 | } | |
4d5c3d91 | 13574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13575 | return resultobj; |
13576 | fail: | |
13577 | return NULL; | |
13578 | } | |
13579 | ||
13580 | ||
13581 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13582 | PyObject *resultobj; | |
13583 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13584 | bool result; | |
13585 | PyObject * obj0 = 0 ; | |
13586 | char *kwnames[] = { | |
13587 | (char *) "self", NULL | |
13588 | }; | |
13589 | ||
13590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
13591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13592 | { | |
13593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13594 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
13595 | ||
13596 | wxPyEndAllowThreads(__tstate); | |
13597 | if (PyErr_Occurred()) SWIG_fail; | |
13598 | } | |
4d5c3d91 | 13599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13600 | return resultobj; |
13601 | fail: | |
13602 | return NULL; | |
13603 | } | |
13604 | ||
13605 | ||
13606 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13607 | PyObject *resultobj; | |
13608 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13609 | bool result; | |
13610 | PyObject * obj0 = 0 ; | |
13611 | char *kwnames[] = { | |
13612 | (char *) "self", NULL | |
13613 | }; | |
13614 | ||
13615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
13616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13617 | { | |
13618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13619 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
13620 | ||
13621 | wxPyEndAllowThreads(__tstate); | |
13622 | if (PyErr_Occurred()) SWIG_fail; | |
13623 | } | |
4d5c3d91 | 13624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13625 | return resultobj; |
13626 | fail: | |
13627 | return NULL; | |
13628 | } | |
13629 | ||
13630 | ||
13631 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13632 | PyObject *resultobj; | |
13633 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13634 | bool result; | |
13635 | PyObject * obj0 = 0 ; | |
13636 | char *kwnames[] = { | |
13637 | (char *) "self", NULL | |
13638 | }; | |
13639 | ||
13640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
13641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13642 | { | |
13643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13644 | result = (bool)(arg1)->LeftIsDown(); | |
13645 | ||
13646 | wxPyEndAllowThreads(__tstate); | |
13647 | if (PyErr_Occurred()) SWIG_fail; | |
13648 | } | |
4d5c3d91 | 13649 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13650 | return resultobj; |
13651 | fail: | |
13652 | return NULL; | |
13653 | } | |
13654 | ||
13655 | ||
13656 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13657 | PyObject *resultobj; | |
13658 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13659 | bool result; | |
13660 | PyObject * obj0 = 0 ; | |
13661 | char *kwnames[] = { | |
13662 | (char *) "self", NULL | |
13663 | }; | |
13664 | ||
13665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
13666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13667 | { | |
13668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13669 | result = (bool)(arg1)->MiddleIsDown(); | |
13670 | ||
13671 | wxPyEndAllowThreads(__tstate); | |
13672 | if (PyErr_Occurred()) SWIG_fail; | |
13673 | } | |
4d5c3d91 | 13674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13675 | return resultobj; |
13676 | fail: | |
13677 | return NULL; | |
13678 | } | |
13679 | ||
13680 | ||
13681 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13682 | PyObject *resultobj; | |
13683 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13684 | bool result; | |
13685 | PyObject * obj0 = 0 ; | |
13686 | char *kwnames[] = { | |
13687 | (char *) "self", NULL | |
13688 | }; | |
13689 | ||
13690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
13691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13692 | { | |
13693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13694 | result = (bool)(arg1)->RightIsDown(); | |
13695 | ||
13696 | wxPyEndAllowThreads(__tstate); | |
13697 | if (PyErr_Occurred()) SWIG_fail; | |
13698 | } | |
4d5c3d91 | 13699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13700 | return resultobj; |
13701 | fail: | |
13702 | return NULL; | |
13703 | } | |
13704 | ||
13705 | ||
13706 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13707 | PyObject *resultobj; | |
13708 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13709 | bool result; | |
13710 | PyObject * obj0 = 0 ; | |
13711 | char *kwnames[] = { | |
13712 | (char *) "self", NULL | |
13713 | }; | |
13714 | ||
13715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
13716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13717 | { | |
13718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13719 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
13720 | ||
13721 | wxPyEndAllowThreads(__tstate); | |
13722 | if (PyErr_Occurred()) SWIG_fail; | |
13723 | } | |
4d5c3d91 | 13724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13725 | return resultobj; |
13726 | fail: | |
13727 | return NULL; | |
13728 | } | |
13729 | ||
13730 | ||
13731 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13732 | PyObject *resultobj; | |
13733 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13734 | bool result; | |
13735 | PyObject * obj0 = 0 ; | |
13736 | char *kwnames[] = { | |
13737 | (char *) "self", NULL | |
13738 | }; | |
13739 | ||
13740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
13741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13742 | { | |
13743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13744 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
13745 | ||
13746 | wxPyEndAllowThreads(__tstate); | |
13747 | if (PyErr_Occurred()) SWIG_fail; | |
13748 | } | |
4d5c3d91 | 13749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13750 | return resultobj; |
13751 | fail: | |
13752 | return NULL; | |
13753 | } | |
13754 | ||
13755 | ||
13756 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13757 | PyObject *resultobj; | |
13758 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13759 | bool result; | |
13760 | PyObject * obj0 = 0 ; | |
13761 | char *kwnames[] = { | |
13762 | (char *) "self", NULL | |
13763 | }; | |
13764 | ||
13765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
13766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13767 | { | |
13768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13769 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
13770 | ||
13771 | wxPyEndAllowThreads(__tstate); | |
13772 | if (PyErr_Occurred()) SWIG_fail; | |
13773 | } | |
4d5c3d91 | 13774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13775 | return resultobj; |
13776 | fail: | |
13777 | return NULL; | |
13778 | } | |
13779 | ||
13780 | ||
13781 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13782 | PyObject *resultobj; | |
13783 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13784 | bool result; | |
13785 | PyObject * obj0 = 0 ; | |
13786 | char *kwnames[] = { | |
13787 | (char *) "self", NULL | |
13788 | }; | |
13789 | ||
13790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
13791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13792 | { | |
13793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13794 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
13795 | ||
13796 | wxPyEndAllowThreads(__tstate); | |
13797 | if (PyErr_Occurred()) SWIG_fail; | |
13798 | } | |
4d5c3d91 | 13799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13800 | return resultobj; |
13801 | fail: | |
13802 | return NULL; | |
13803 | } | |
13804 | ||
13805 | ||
13806 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13807 | PyObject *resultobj; | |
13808 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13809 | wxPoint result; | |
13810 | PyObject * obj0 = 0 ; | |
13811 | char *kwnames[] = { | |
13812 | (char *) "self", NULL | |
13813 | }; | |
13814 | ||
13815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13817 | { | |
13818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13819 | result = (arg1)->GetPosition(); | |
13820 | ||
13821 | wxPyEndAllowThreads(__tstate); | |
13822 | if (PyErr_Occurred()) SWIG_fail; | |
13823 | } | |
13824 | { | |
13825 | wxPoint * resultptr; | |
13826 | resultptr = new wxPoint((wxPoint &) result); | |
13827 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
13828 | } | |
13829 | return resultobj; | |
13830 | fail: | |
13831 | return NULL; | |
13832 | } | |
13833 | ||
13834 | ||
13835 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13836 | PyObject *resultobj; | |
13837 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13838 | long *arg2 = (long *) 0 ; | |
13839 | long *arg3 = (long *) 0 ; | |
13840 | long temp2 ; | |
13841 | long temp3 ; | |
13842 | PyObject * obj0 = 0 ; | |
13843 | char *kwnames[] = { | |
13844 | (char *) "self", NULL | |
13845 | }; | |
13846 | ||
13847 | arg2 = &temp2; | |
13848 | arg3 = &temp3; | |
13849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
13850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13851 | { | |
13852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13853 | (arg1)->GetPosition(arg2,arg3); | |
13854 | ||
13855 | wxPyEndAllowThreads(__tstate); | |
13856 | if (PyErr_Occurred()) SWIG_fail; | |
13857 | } | |
13858 | Py_INCREF(Py_None); resultobj = Py_None; | |
13859 | { | |
13860 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13861 | resultobj = t_output_helper(resultobj,o); | |
13862 | } | |
13863 | { | |
13864 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13865 | resultobj = t_output_helper(resultobj,o); | |
13866 | } | |
13867 | return resultobj; | |
13868 | fail: | |
13869 | return NULL; | |
13870 | } | |
13871 | ||
13872 | ||
13873 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13874 | PyObject *resultobj; | |
13875 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13876 | wxDC *arg2 = 0 ; | |
13877 | wxPoint result; | |
13878 | PyObject * obj0 = 0 ; | |
13879 | PyObject * obj1 = 0 ; | |
13880 | char *kwnames[] = { | |
13881 | (char *) "self",(char *) "dc", NULL | |
13882 | }; | |
13883 | ||
13884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
13885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13886 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13887 | if (arg2 == NULL) { | |
13888 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13889 | } | |
13890 | { | |
13891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13892 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
13893 | ||
13894 | wxPyEndAllowThreads(__tstate); | |
13895 | if (PyErr_Occurred()) SWIG_fail; | |
13896 | } | |
13897 | { | |
13898 | wxPoint * resultptr; | |
13899 | resultptr = new wxPoint((wxPoint &) result); | |
13900 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
13901 | } | |
13902 | return resultobj; | |
13903 | fail: | |
13904 | return NULL; | |
13905 | } | |
13906 | ||
13907 | ||
13908 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13909 | PyObject *resultobj; | |
13910 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 13911 | int result; |
d14a1e28 RD |
13912 | PyObject * obj0 = 0 ; |
13913 | char *kwnames[] = { | |
13914 | (char *) "self", NULL | |
13915 | }; | |
13916 | ||
13917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
13918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13919 | { | |
13920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13921 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
13922 | |
13923 | wxPyEndAllowThreads(__tstate); | |
13924 | if (PyErr_Occurred()) SWIG_fail; | |
13925 | } | |
994141e6 | 13926 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13927 | return resultobj; |
13928 | fail: | |
13929 | return NULL; | |
13930 | } | |
13931 | ||
13932 | ||
13933 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13934 | PyObject *resultobj; | |
13935 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 13936 | int result; |
d14a1e28 RD |
13937 | PyObject * obj0 = 0 ; |
13938 | char *kwnames[] = { | |
13939 | (char *) "self", NULL | |
13940 | }; | |
13941 | ||
13942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
13943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13944 | { | |
13945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13946 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
13947 | |
13948 | wxPyEndAllowThreads(__tstate); | |
13949 | if (PyErr_Occurred()) SWIG_fail; | |
13950 | } | |
994141e6 | 13951 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13952 | return resultobj; |
13953 | fail: | |
13954 | return NULL; | |
13955 | } | |
13956 | ||
13957 | ||
13958 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13959 | PyObject *resultobj; | |
13960 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13961 | int result; | |
13962 | PyObject * obj0 = 0 ; | |
13963 | char *kwnames[] = { | |
13964 | (char *) "self", NULL | |
13965 | }; | |
13966 | ||
13967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
13968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13969 | { | |
13970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13971 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
13972 | ||
13973 | wxPyEndAllowThreads(__tstate); | |
13974 | if (PyErr_Occurred()) SWIG_fail; | |
13975 | } | |
994141e6 | 13976 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13977 | return resultobj; |
13978 | fail: | |
13979 | return NULL; | |
13980 | } | |
13981 | ||
13982 | ||
13983 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13984 | PyObject *resultobj; | |
13985 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13986 | int result; | |
13987 | PyObject * obj0 = 0 ; | |
13988 | char *kwnames[] = { | |
13989 | (char *) "self", NULL | |
13990 | }; | |
13991 | ||
13992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
13993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13994 | { | |
13995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13996 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
13997 | ||
13998 | wxPyEndAllowThreads(__tstate); | |
13999 | if (PyErr_Occurred()) SWIG_fail; | |
14000 | } | |
994141e6 | 14001 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14002 | return resultobj; |
14003 | fail: | |
14004 | return NULL; | |
14005 | } | |
14006 | ||
14007 | ||
14008 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14009 | PyObject *resultobj; | |
14010 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14011 | int result; | |
14012 | PyObject * obj0 = 0 ; | |
14013 | char *kwnames[] = { | |
14014 | (char *) "self", NULL | |
14015 | }; | |
14016 | ||
14017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
14018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14019 | { | |
14020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14021 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14022 | ||
14023 | wxPyEndAllowThreads(__tstate); | |
14024 | if (PyErr_Occurred()) SWIG_fail; | |
14025 | } | |
994141e6 | 14026 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14027 | return resultobj; |
14028 | fail: | |
14029 | return NULL; | |
14030 | } | |
14031 | ||
14032 | ||
14033 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14034 | PyObject *resultobj; | |
14035 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14036 | bool result; | |
14037 | PyObject * obj0 = 0 ; | |
14038 | char *kwnames[] = { | |
14039 | (char *) "self", NULL | |
14040 | }; | |
14041 | ||
14042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
14043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14044 | { | |
14045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14046 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14047 | ||
14048 | wxPyEndAllowThreads(__tstate); | |
14049 | if (PyErr_Occurred()) SWIG_fail; | |
14050 | } | |
4d5c3d91 | 14051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14052 | return resultobj; |
14053 | fail: | |
14054 | return NULL; | |
14055 | } | |
14056 | ||
14057 | ||
14058 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14059 | PyObject *resultobj; | |
14060 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14061 | int arg2 ; |
d14a1e28 | 14062 | PyObject * obj0 = 0 ; |
994141e6 | 14063 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14064 | char *kwnames[] = { |
14065 | (char *) "self",(char *) "m_x", NULL | |
14066 | }; | |
14067 | ||
994141e6 | 14068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14070 | { |
14071 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14072 | if (PyErr_Occurred()) SWIG_fail; | |
14073 | } | |
d14a1e28 RD |
14074 | if (arg1) (arg1)->m_x = arg2; |
14075 | ||
14076 | Py_INCREF(Py_None); resultobj = Py_None; | |
14077 | return resultobj; | |
14078 | fail: | |
14079 | return NULL; | |
14080 | } | |
14081 | ||
14082 | ||
14083 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14084 | PyObject *resultobj; | |
14085 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14086 | int result; |
d14a1e28 RD |
14087 | PyObject * obj0 = 0 ; |
14088 | char *kwnames[] = { | |
14089 | (char *) "self", NULL | |
14090 | }; | |
14091 | ||
14092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
14093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce | 14094 | result = (int) ((arg1)->m_x); |
d14a1e28 | 14095 | |
994141e6 | 14096 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14097 | return resultobj; |
14098 | fail: | |
14099 | return NULL; | |
14100 | } | |
14101 | ||
14102 | ||
14103 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14104 | PyObject *resultobj; | |
14105 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14106 | int arg2 ; |
d14a1e28 | 14107 | PyObject * obj0 = 0 ; |
994141e6 | 14108 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14109 | char *kwnames[] = { |
14110 | (char *) "self",(char *) "m_y", NULL | |
14111 | }; | |
14112 | ||
994141e6 | 14113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14115 | { |
14116 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14117 | if (PyErr_Occurred()) SWIG_fail; | |
14118 | } | |
d14a1e28 RD |
14119 | if (arg1) (arg1)->m_y = arg2; |
14120 | ||
14121 | Py_INCREF(Py_None); resultobj = Py_None; | |
14122 | return resultobj; | |
14123 | fail: | |
14124 | return NULL; | |
14125 | } | |
14126 | ||
14127 | ||
14128 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14129 | PyObject *resultobj; | |
14130 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14131 | int result; |
d14a1e28 RD |
14132 | PyObject * obj0 = 0 ; |
14133 | char *kwnames[] = { | |
14134 | (char *) "self", NULL | |
14135 | }; | |
14136 | ||
14137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
14138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce | 14139 | result = (int) ((arg1)->m_y); |
d14a1e28 | 14140 | |
994141e6 | 14141 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14142 | return resultobj; |
14143 | fail: | |
14144 | return NULL; | |
14145 | } | |
14146 | ||
14147 | ||
14148 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14149 | PyObject *resultobj; | |
14150 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14151 | bool arg2 ; | |
14152 | PyObject * obj0 = 0 ; | |
14153 | PyObject * obj1 = 0 ; | |
14154 | char *kwnames[] = { | |
14155 | (char *) "self",(char *) "m_leftDown", NULL | |
14156 | }; | |
14157 | ||
14158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 14160 | { |
994141e6 | 14161 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14162 | if (PyErr_Occurred()) SWIG_fail; |
14163 | } | |
d14a1e28 RD |
14164 | if (arg1) (arg1)->m_leftDown = arg2; |
14165 | ||
14166 | Py_INCREF(Py_None); resultobj = Py_None; | |
14167 | return resultobj; | |
14168 | fail: | |
14169 | return NULL; | |
14170 | } | |
14171 | ||
14172 | ||
14173 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14174 | PyObject *resultobj; | |
14175 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14176 | bool result; | |
14177 | PyObject * obj0 = 0 ; | |
14178 | char *kwnames[] = { | |
14179 | (char *) "self", NULL | |
14180 | }; | |
14181 | ||
14182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
14183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14184 | result = (bool) ((arg1)->m_leftDown); | |
14185 | ||
4d5c3d91 | 14186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14187 | return resultobj; |
14188 | fail: | |
14189 | return NULL; | |
14190 | } | |
14191 | ||
14192 | ||
14193 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14194 | PyObject *resultobj; | |
14195 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14196 | bool arg2 ; | |
14197 | PyObject * obj0 = 0 ; | |
14198 | PyObject * obj1 = 0 ; | |
14199 | char *kwnames[] = { | |
14200 | (char *) "self",(char *) "m_middleDown", NULL | |
14201 | }; | |
14202 | ||
14203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 14205 | { |
994141e6 | 14206 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14207 | if (PyErr_Occurred()) SWIG_fail; |
14208 | } | |
d14a1e28 RD |
14209 | if (arg1) (arg1)->m_middleDown = arg2; |
14210 | ||
14211 | Py_INCREF(Py_None); resultobj = Py_None; | |
14212 | return resultobj; | |
14213 | fail: | |
14214 | return NULL; | |
14215 | } | |
14216 | ||
14217 | ||
14218 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14219 | PyObject *resultobj; | |
14220 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14221 | bool result; | |
14222 | PyObject * obj0 = 0 ; | |
14223 | char *kwnames[] = { | |
14224 | (char *) "self", NULL | |
14225 | }; | |
14226 | ||
14227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
14228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14229 | result = (bool) ((arg1)->m_middleDown); | |
14230 | ||
4d5c3d91 | 14231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14232 | return resultobj; |
14233 | fail: | |
14234 | return NULL; | |
14235 | } | |
14236 | ||
14237 | ||
14238 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14239 | PyObject *resultobj; | |
14240 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14241 | bool arg2 ; | |
14242 | PyObject * obj0 = 0 ; | |
14243 | PyObject * obj1 = 0 ; | |
14244 | char *kwnames[] = { | |
14245 | (char *) "self",(char *) "m_rightDown", NULL | |
14246 | }; | |
14247 | ||
14248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 14250 | { |
994141e6 | 14251 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14252 | if (PyErr_Occurred()) SWIG_fail; |
14253 | } | |
d14a1e28 RD |
14254 | if (arg1) (arg1)->m_rightDown = arg2; |
14255 | ||
14256 | Py_INCREF(Py_None); resultobj = Py_None; | |
14257 | return resultobj; | |
14258 | fail: | |
14259 | return NULL; | |
14260 | } | |
14261 | ||
14262 | ||
14263 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14264 | PyObject *resultobj; | |
14265 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14266 | bool result; | |
14267 | PyObject * obj0 = 0 ; | |
14268 | char *kwnames[] = { | |
14269 | (char *) "self", NULL | |
14270 | }; | |
14271 | ||
14272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
14273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14274 | result = (bool) ((arg1)->m_rightDown); | |
14275 | ||
4d5c3d91 | 14276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14277 | return resultobj; |
14278 | fail: | |
14279 | return NULL; | |
14280 | } | |
14281 | ||
14282 | ||
14283 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14284 | PyObject *resultobj; | |
14285 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14286 | bool arg2 ; | |
14287 | PyObject * obj0 = 0 ; | |
14288 | PyObject * obj1 = 0 ; | |
14289 | char *kwnames[] = { | |
14290 | (char *) "self",(char *) "m_controlDown", NULL | |
14291 | }; | |
14292 | ||
14293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 14295 | { |
994141e6 | 14296 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14297 | if (PyErr_Occurred()) SWIG_fail; |
14298 | } | |
d14a1e28 RD |
14299 | if (arg1) (arg1)->m_controlDown = arg2; |
14300 | ||
14301 | Py_INCREF(Py_None); resultobj = Py_None; | |
14302 | return resultobj; | |
14303 | fail: | |
14304 | return NULL; | |
14305 | } | |
14306 | ||
14307 | ||
14308 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14309 | PyObject *resultobj; | |
14310 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14311 | bool result; | |
14312 | PyObject * obj0 = 0 ; | |
14313 | char *kwnames[] = { | |
14314 | (char *) "self", NULL | |
14315 | }; | |
14316 | ||
14317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
14318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14319 | result = (bool) ((arg1)->m_controlDown); | |
14320 | ||
4d5c3d91 | 14321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14322 | return resultobj; |
14323 | fail: | |
14324 | return NULL; | |
14325 | } | |
14326 | ||
14327 | ||
14328 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14329 | PyObject *resultobj; | |
14330 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14331 | bool arg2 ; | |
14332 | PyObject * obj0 = 0 ; | |
14333 | PyObject * obj1 = 0 ; | |
14334 | char *kwnames[] = { | |
14335 | (char *) "self",(char *) "m_shiftDown", NULL | |
14336 | }; | |
14337 | ||
14338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 14340 | { |
994141e6 | 14341 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14342 | if (PyErr_Occurred()) SWIG_fail; |
14343 | } | |
d14a1e28 RD |
14344 | if (arg1) (arg1)->m_shiftDown = arg2; |
14345 | ||
14346 | Py_INCREF(Py_None); resultobj = Py_None; | |
14347 | return resultobj; | |
14348 | fail: | |
14349 | return NULL; | |
14350 | } | |
14351 | ||
14352 | ||
14353 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14354 | PyObject *resultobj; | |
14355 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14356 | bool result; | |
14357 | PyObject * obj0 = 0 ; | |
14358 | char *kwnames[] = { | |
14359 | (char *) "self", NULL | |
14360 | }; | |
14361 | ||
14362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
14363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14364 | result = (bool) ((arg1)->m_shiftDown); | |
14365 | ||
4d5c3d91 | 14366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14367 | return resultobj; |
14368 | fail: | |
14369 | return NULL; | |
14370 | } | |
14371 | ||
14372 | ||
14373 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14374 | PyObject *resultobj; | |
14375 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14376 | bool arg2 ; | |
14377 | PyObject * obj0 = 0 ; | |
14378 | PyObject * obj1 = 0 ; | |
14379 | char *kwnames[] = { | |
14380 | (char *) "self",(char *) "m_altDown", NULL | |
14381 | }; | |
14382 | ||
14383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 14385 | { |
994141e6 | 14386 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14387 | if (PyErr_Occurred()) SWIG_fail; |
14388 | } | |
d14a1e28 RD |
14389 | if (arg1) (arg1)->m_altDown = arg2; |
14390 | ||
14391 | Py_INCREF(Py_None); resultobj = Py_None; | |
14392 | return resultobj; | |
14393 | fail: | |
14394 | return NULL; | |
14395 | } | |
14396 | ||
14397 | ||
14398 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14399 | PyObject *resultobj; | |
14400 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14401 | bool result; | |
14402 | PyObject * obj0 = 0 ; | |
14403 | char *kwnames[] = { | |
14404 | (char *) "self", NULL | |
14405 | }; | |
14406 | ||
14407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
14408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14409 | result = (bool) ((arg1)->m_altDown); | |
14410 | ||
4d5c3d91 | 14411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14412 | return resultobj; |
14413 | fail: | |
14414 | return NULL; | |
14415 | } | |
14416 | ||
14417 | ||
14418 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14419 | PyObject *resultobj; | |
14420 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14421 | bool arg2 ; | |
14422 | PyObject * obj0 = 0 ; | |
14423 | PyObject * obj1 = 0 ; | |
14424 | char *kwnames[] = { | |
14425 | (char *) "self",(char *) "m_metaDown", NULL | |
14426 | }; | |
14427 | ||
14428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 14430 | { |
994141e6 | 14431 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14432 | if (PyErr_Occurred()) SWIG_fail; |
14433 | } | |
d14a1e28 RD |
14434 | if (arg1) (arg1)->m_metaDown = arg2; |
14435 | ||
14436 | Py_INCREF(Py_None); resultobj = Py_None; | |
14437 | return resultobj; | |
14438 | fail: | |
14439 | return NULL; | |
14440 | } | |
14441 | ||
14442 | ||
14443 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14444 | PyObject *resultobj; | |
14445 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14446 | bool result; | |
14447 | PyObject * obj0 = 0 ; | |
14448 | char *kwnames[] = { | |
14449 | (char *) "self", NULL | |
14450 | }; | |
14451 | ||
14452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
14453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14454 | result = (bool) ((arg1)->m_metaDown); | |
14455 | ||
4d5c3d91 | 14456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14457 | return resultobj; |
14458 | fail: | |
14459 | return NULL; | |
14460 | } | |
14461 | ||
14462 | ||
14463 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14464 | PyObject *resultobj; | |
14465 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14466 | int arg2 ; | |
14467 | PyObject * obj0 = 0 ; | |
994141e6 | 14468 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14469 | char *kwnames[] = { |
14470 | (char *) "self",(char *) "m_wheelRotation", NULL | |
14471 | }; | |
14472 | ||
994141e6 | 14473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14475 | { |
14476 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14477 | if (PyErr_Occurred()) SWIG_fail; | |
14478 | } | |
d14a1e28 RD |
14479 | if (arg1) (arg1)->m_wheelRotation = arg2; |
14480 | ||
14481 | Py_INCREF(Py_None); resultobj = Py_None; | |
14482 | return resultobj; | |
14483 | fail: | |
14484 | return NULL; | |
14485 | } | |
14486 | ||
14487 | ||
14488 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14489 | PyObject *resultobj; | |
14490 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14491 | int result; | |
14492 | PyObject * obj0 = 0 ; | |
14493 | char *kwnames[] = { | |
14494 | (char *) "self", NULL | |
14495 | }; | |
14496 | ||
14497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
14498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14499 | result = (int) ((arg1)->m_wheelRotation); | |
14500 | ||
994141e6 | 14501 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14502 | return resultobj; |
14503 | fail: | |
14504 | return NULL; | |
14505 | } | |
14506 | ||
14507 | ||
14508 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14509 | PyObject *resultobj; | |
14510 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14511 | int arg2 ; | |
14512 | PyObject * obj0 = 0 ; | |
994141e6 | 14513 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14514 | char *kwnames[] = { |
14515 | (char *) "self",(char *) "m_wheelDelta", NULL | |
14516 | }; | |
14517 | ||
994141e6 | 14518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14520 | { |
14521 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14522 | if (PyErr_Occurred()) SWIG_fail; | |
14523 | } | |
d14a1e28 RD |
14524 | if (arg1) (arg1)->m_wheelDelta = arg2; |
14525 | ||
14526 | Py_INCREF(Py_None); resultobj = Py_None; | |
14527 | return resultobj; | |
14528 | fail: | |
14529 | return NULL; | |
14530 | } | |
14531 | ||
14532 | ||
14533 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14534 | PyObject *resultobj; | |
14535 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14536 | int result; | |
14537 | PyObject * obj0 = 0 ; | |
14538 | char *kwnames[] = { | |
14539 | (char *) "self", NULL | |
14540 | }; | |
14541 | ||
14542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
14543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14544 | result = (int) ((arg1)->m_wheelDelta); | |
14545 | ||
994141e6 | 14546 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14547 | return resultobj; |
14548 | fail: | |
14549 | return NULL; | |
14550 | } | |
14551 | ||
14552 | ||
14553 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14554 | PyObject *resultobj; | |
14555 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14556 | int arg2 ; | |
14557 | PyObject * obj0 = 0 ; | |
994141e6 | 14558 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14559 | char *kwnames[] = { |
14560 | (char *) "self",(char *) "m_linesPerAction", NULL | |
14561 | }; | |
14562 | ||
994141e6 | 14563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14565 | { |
14566 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14567 | if (PyErr_Occurred()) SWIG_fail; | |
14568 | } | |
d14a1e28 RD |
14569 | if (arg1) (arg1)->m_linesPerAction = arg2; |
14570 | ||
14571 | Py_INCREF(Py_None); resultobj = Py_None; | |
14572 | return resultobj; | |
14573 | fail: | |
14574 | return NULL; | |
14575 | } | |
14576 | ||
14577 | ||
14578 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14579 | PyObject *resultobj; | |
14580 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14581 | int result; | |
14582 | PyObject * obj0 = 0 ; | |
14583 | char *kwnames[] = { | |
14584 | (char *) "self", NULL | |
14585 | }; | |
14586 | ||
14587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
14588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14589 | result = (int) ((arg1)->m_linesPerAction); | |
14590 | ||
994141e6 | 14591 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14592 | return resultobj; |
14593 | fail: | |
14594 | return NULL; | |
14595 | } | |
14596 | ||
14597 | ||
14598 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
14599 | PyObject *obj; | |
14600 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14601 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
14602 | Py_INCREF(obj); | |
14603 | return Py_BuildValue((char *)""); | |
14604 | } | |
14605 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14606 | PyObject *resultobj; | |
e811c8ce RD |
14607 | int arg1 = (int) 0 ; |
14608 | int arg2 = (int) 0 ; | |
d14a1e28 | 14609 | wxSetCursorEvent *result; |
994141e6 RD |
14610 | PyObject * obj0 = 0 ; |
14611 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
14612 | char *kwnames[] = { |
14613 | (char *) "x",(char *) "y", NULL | |
14614 | }; | |
14615 | ||
994141e6 RD |
14616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; |
14617 | if (obj0) { | |
14618 | { | |
14619 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
14620 | if (PyErr_Occurred()) SWIG_fail; | |
14621 | } | |
14622 | } | |
14623 | if (obj1) { | |
14624 | { | |
14625 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14626 | if (PyErr_Occurred()) SWIG_fail; | |
14627 | } | |
14628 | } | |
d14a1e28 RD |
14629 | { |
14630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14631 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
14632 | ||
14633 | wxPyEndAllowThreads(__tstate); | |
14634 | if (PyErr_Occurred()) SWIG_fail; | |
14635 | } | |
14636 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSetCursorEvent, 1); | |
14637 | return resultobj; | |
14638 | fail: | |
14639 | return NULL; | |
14640 | } | |
14641 | ||
14642 | ||
14643 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14644 | PyObject *resultobj; | |
14645 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 14646 | int result; |
d14a1e28 RD |
14647 | PyObject * obj0 = 0 ; |
14648 | char *kwnames[] = { | |
14649 | (char *) "self", NULL | |
14650 | }; | |
14651 | ||
14652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
14653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14654 | { | |
14655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14656 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14657 | |
14658 | wxPyEndAllowThreads(__tstate); | |
14659 | if (PyErr_Occurred()) SWIG_fail; | |
14660 | } | |
994141e6 | 14661 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14662 | return resultobj; |
14663 | fail: | |
14664 | return NULL; | |
14665 | } | |
14666 | ||
14667 | ||
14668 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14669 | PyObject *resultobj; | |
14670 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 14671 | int result; |
d14a1e28 RD |
14672 | PyObject * obj0 = 0 ; |
14673 | char *kwnames[] = { | |
14674 | (char *) "self", NULL | |
14675 | }; | |
14676 | ||
14677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
14678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14679 | { | |
14680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14681 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14682 | |
14683 | wxPyEndAllowThreads(__tstate); | |
14684 | if (PyErr_Occurred()) SWIG_fail; | |
14685 | } | |
994141e6 | 14686 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14687 | return resultobj; |
14688 | fail: | |
14689 | return NULL; | |
14690 | } | |
14691 | ||
14692 | ||
14693 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14694 | PyObject *resultobj; | |
14695 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
14696 | wxCursor *arg2 = 0 ; | |
14697 | PyObject * obj0 = 0 ; | |
14698 | PyObject * obj1 = 0 ; | |
14699 | char *kwnames[] = { | |
14700 | (char *) "self",(char *) "cursor", NULL | |
14701 | }; | |
14702 | ||
14703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
14704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14705 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14706 | if (arg2 == NULL) { | |
14707 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14708 | } | |
14709 | { | |
14710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14711 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
14712 | ||
14713 | wxPyEndAllowThreads(__tstate); | |
14714 | if (PyErr_Occurred()) SWIG_fail; | |
14715 | } | |
14716 | Py_INCREF(Py_None); resultobj = Py_None; | |
14717 | return resultobj; | |
14718 | fail: | |
14719 | return NULL; | |
14720 | } | |
14721 | ||
14722 | ||
14723 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14724 | PyObject *resultobj; | |
14725 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
14726 | wxCursor *result; | |
14727 | PyObject * obj0 = 0 ; | |
14728 | char *kwnames[] = { | |
14729 | (char *) "self", NULL | |
14730 | }; | |
14731 | ||
14732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
14733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14734 | { | |
14735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14736 | { | |
14737 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
14738 | result = (wxCursor *) &_result_ref; | |
14739 | } | |
14740 | ||
14741 | wxPyEndAllowThreads(__tstate); | |
14742 | if (PyErr_Occurred()) SWIG_fail; | |
14743 | } | |
14744 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
14745 | return resultobj; | |
14746 | fail: | |
14747 | return NULL; | |
14748 | } | |
14749 | ||
14750 | ||
14751 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14752 | PyObject *resultobj; | |
14753 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
14754 | bool result; | |
14755 | PyObject * obj0 = 0 ; | |
14756 | char *kwnames[] = { | |
14757 | (char *) "self", NULL | |
14758 | }; | |
14759 | ||
14760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
14761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14762 | { | |
14763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14764 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
14765 | ||
14766 | wxPyEndAllowThreads(__tstate); | |
14767 | if (PyErr_Occurred()) SWIG_fail; | |
14768 | } | |
4d5c3d91 | 14769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14770 | return resultobj; |
14771 | fail: | |
14772 | return NULL; | |
14773 | } | |
14774 | ||
14775 | ||
14776 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
14777 | PyObject *obj; | |
14778 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14779 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
14780 | Py_INCREF(obj); | |
14781 | return Py_BuildValue((char *)""); | |
14782 | } | |
14783 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14784 | PyObject *resultobj; | |
14785 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14786 | wxKeyEvent *result; | |
994141e6 | 14787 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
14788 | char *kwnames[] = { |
14789 | (char *) "keyType", NULL | |
14790 | }; | |
14791 | ||
994141e6 RD |
14792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; |
14793 | if (obj0) { | |
14794 | { | |
14795 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14796 | if (PyErr_Occurred()) SWIG_fail; | |
14797 | } | |
14798 | } | |
d14a1e28 RD |
14799 | { |
14800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14801 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
14802 | ||
14803 | wxPyEndAllowThreads(__tstate); | |
14804 | if (PyErr_Occurred()) SWIG_fail; | |
14805 | } | |
14806 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 1); | |
14807 | return resultobj; | |
14808 | fail: | |
14809 | return NULL; | |
14810 | } | |
14811 | ||
14812 | ||
14813 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14814 | PyObject *resultobj; | |
14815 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14816 | bool result; | |
14817 | PyObject * obj0 = 0 ; | |
14818 | char *kwnames[] = { | |
14819 | (char *) "self", NULL | |
14820 | }; | |
14821 | ||
14822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14824 | { | |
14825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14826 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
14827 | ||
14828 | wxPyEndAllowThreads(__tstate); | |
14829 | if (PyErr_Occurred()) SWIG_fail; | |
14830 | } | |
4d5c3d91 | 14831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14832 | return resultobj; |
14833 | fail: | |
14834 | return NULL; | |
14835 | } | |
14836 | ||
14837 | ||
14838 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14839 | PyObject *resultobj; | |
14840 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14841 | bool result; | |
14842 | PyObject * obj0 = 0 ; | |
14843 | char *kwnames[] = { | |
14844 | (char *) "self", NULL | |
14845 | }; | |
14846 | ||
14847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14849 | { | |
14850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14851 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
14852 | ||
14853 | wxPyEndAllowThreads(__tstate); | |
14854 | if (PyErr_Occurred()) SWIG_fail; | |
14855 | } | |
4d5c3d91 | 14856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14857 | return resultobj; |
14858 | fail: | |
14859 | return NULL; | |
14860 | } | |
14861 | ||
14862 | ||
14863 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14864 | PyObject *resultobj; | |
14865 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14866 | bool result; | |
14867 | PyObject * obj0 = 0 ; | |
14868 | char *kwnames[] = { | |
14869 | (char *) "self", NULL | |
14870 | }; | |
14871 | ||
14872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
14873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14874 | { | |
14875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14876 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
14877 | ||
14878 | wxPyEndAllowThreads(__tstate); | |
14879 | if (PyErr_Occurred()) SWIG_fail; | |
14880 | } | |
4d5c3d91 | 14881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14882 | return resultobj; |
14883 | fail: | |
14884 | return NULL; | |
14885 | } | |
14886 | ||
14887 | ||
14888 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14889 | PyObject *resultobj; | |
14890 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14891 | bool result; | |
14892 | PyObject * obj0 = 0 ; | |
14893 | char *kwnames[] = { | |
14894 | (char *) "self", NULL | |
14895 | }; | |
14896 | ||
14897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14899 | { | |
14900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14901 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
14902 | ||
14903 | wxPyEndAllowThreads(__tstate); | |
14904 | if (PyErr_Occurred()) SWIG_fail; | |
14905 | } | |
4d5c3d91 | 14906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14907 | return resultobj; |
14908 | fail: | |
14909 | return NULL; | |
14910 | } | |
14911 | ||
14912 | ||
14913 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14914 | PyObject *resultobj; | |
14915 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14916 | bool result; | |
14917 | PyObject * obj0 = 0 ; | |
14918 | char *kwnames[] = { | |
14919 | (char *) "self", NULL | |
14920 | }; | |
14921 | ||
14922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
14923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14924 | { | |
14925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14926 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
14927 | ||
14928 | wxPyEndAllowThreads(__tstate); | |
14929 | if (PyErr_Occurred()) SWIG_fail; | |
14930 | } | |
4d5c3d91 | 14931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14932 | return resultobj; |
14933 | fail: | |
14934 | return NULL; | |
14935 | } | |
14936 | ||
14937 | ||
14938 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14939 | PyObject *resultobj; | |
14940 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14941 | int result; | |
14942 | PyObject * obj0 = 0 ; | |
14943 | char *kwnames[] = { | |
14944 | (char *) "self", NULL | |
14945 | }; | |
14946 | ||
14947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
14948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14949 | { | |
14950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14951 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
14952 | ||
14953 | wxPyEndAllowThreads(__tstate); | |
14954 | if (PyErr_Occurred()) SWIG_fail; | |
14955 | } | |
994141e6 | 14956 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14957 | return resultobj; |
14958 | fail: | |
14959 | return NULL; | |
14960 | } | |
14961 | ||
14962 | ||
14963 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14964 | PyObject *resultobj; | |
14965 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14966 | int result; | |
14967 | PyObject * obj0 = 0 ; | |
14968 | char *kwnames[] = { | |
14969 | (char *) "self", NULL | |
14970 | }; | |
14971 | ||
14972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
14973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14974 | { | |
14975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14976 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
14977 | ||
14978 | wxPyEndAllowThreads(__tstate); | |
14979 | if (PyErr_Occurred()) SWIG_fail; | |
14980 | } | |
994141e6 | 14981 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14982 | return resultobj; |
14983 | fail: | |
14984 | return NULL; | |
14985 | } | |
14986 | ||
14987 | ||
14988 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14989 | PyObject *resultobj; | |
14990 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 14991 | unsigned int result; |
d14a1e28 RD |
14992 | PyObject * obj0 = 0 ; |
14993 | char *kwnames[] = { | |
14994 | (char *) "self", NULL | |
14995 | }; | |
14996 | ||
14997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
14998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14999 | { | |
15000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15001 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
15002 | |
15003 | wxPyEndAllowThreads(__tstate); | |
15004 | if (PyErr_Occurred()) SWIG_fail; | |
15005 | } | |
994141e6 | 15006 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15007 | return resultobj; |
15008 | fail: | |
15009 | return NULL; | |
15010 | } | |
15011 | ||
15012 | ||
15013 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15014 | PyObject *resultobj; | |
15015 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15016 | unsigned int result; |
d14a1e28 RD |
15017 | PyObject * obj0 = 0 ; |
15018 | char *kwnames[] = { | |
15019 | (char *) "self", NULL | |
15020 | }; | |
15021 | ||
15022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
15023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15024 | { | |
15025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15026 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
15027 | |
15028 | wxPyEndAllowThreads(__tstate); | |
15029 | if (PyErr_Occurred()) SWIG_fail; | |
15030 | } | |
994141e6 | 15031 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15032 | return resultobj; |
15033 | fail: | |
15034 | return NULL; | |
15035 | } | |
15036 | ||
15037 | ||
15038 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15039 | PyObject *resultobj; | |
15040 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15041 | wxPoint result; | |
15042 | PyObject * obj0 = 0 ; | |
15043 | char *kwnames[] = { | |
15044 | (char *) "self", NULL | |
15045 | }; | |
15046 | ||
15047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15049 | { | |
15050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15051 | result = (arg1)->GetPosition(); | |
15052 | ||
15053 | wxPyEndAllowThreads(__tstate); | |
15054 | if (PyErr_Occurred()) SWIG_fail; | |
15055 | } | |
15056 | { | |
15057 | wxPoint * resultptr; | |
15058 | resultptr = new wxPoint((wxPoint &) result); | |
15059 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
15060 | } | |
15061 | return resultobj; | |
15062 | fail: | |
15063 | return NULL; | |
15064 | } | |
15065 | ||
15066 | ||
15067 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15068 | PyObject *resultobj; | |
15069 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15070 | long *arg2 = (long *) 0 ; | |
15071 | long *arg3 = (long *) 0 ; | |
15072 | long temp2 ; | |
15073 | long temp3 ; | |
15074 | PyObject * obj0 = 0 ; | |
15075 | char *kwnames[] = { | |
15076 | (char *) "self", NULL | |
15077 | }; | |
15078 | ||
15079 | arg2 = &temp2; | |
15080 | arg3 = &temp3; | |
15081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15083 | { | |
15084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15085 | (arg1)->GetPosition(arg2,arg3); | |
15086 | ||
15087 | wxPyEndAllowThreads(__tstate); | |
15088 | if (PyErr_Occurred()) SWIG_fail; | |
15089 | } | |
15090 | Py_INCREF(Py_None); resultobj = Py_None; | |
15091 | { | |
15092 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15093 | resultobj = t_output_helper(resultobj,o); | |
15094 | } | |
15095 | { | |
15096 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15097 | resultobj = t_output_helper(resultobj,o); | |
15098 | } | |
15099 | return resultobj; | |
15100 | fail: | |
15101 | return NULL; | |
15102 | } | |
15103 | ||
15104 | ||
15105 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15106 | PyObject *resultobj; | |
15107 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15108 | int result; |
d14a1e28 RD |
15109 | PyObject * obj0 = 0 ; |
15110 | char *kwnames[] = { | |
15111 | (char *) "self", NULL | |
15112 | }; | |
15113 | ||
15114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
15115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15116 | { | |
15117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15118 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15119 | |
15120 | wxPyEndAllowThreads(__tstate); | |
15121 | if (PyErr_Occurred()) SWIG_fail; | |
15122 | } | |
994141e6 | 15123 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15124 | return resultobj; |
15125 | fail: | |
15126 | return NULL; | |
15127 | } | |
15128 | ||
15129 | ||
15130 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15131 | PyObject *resultobj; | |
15132 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15133 | int result; |
d14a1e28 RD |
15134 | PyObject * obj0 = 0 ; |
15135 | char *kwnames[] = { | |
15136 | (char *) "self", NULL | |
15137 | }; | |
15138 | ||
15139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
15140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15141 | { | |
15142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15143 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15144 | |
15145 | wxPyEndAllowThreads(__tstate); | |
15146 | if (PyErr_Occurred()) SWIG_fail; | |
15147 | } | |
994141e6 | 15148 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15149 | return resultobj; |
15150 | fail: | |
15151 | return NULL; | |
15152 | } | |
15153 | ||
15154 | ||
15155 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15156 | PyObject *resultobj; | |
15157 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15158 | int arg2 ; |
d14a1e28 | 15159 | PyObject * obj0 = 0 ; |
994141e6 | 15160 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15161 | char *kwnames[] = { |
15162 | (char *) "self",(char *) "m_x", NULL | |
15163 | }; | |
15164 | ||
994141e6 | 15165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15167 | { |
15168 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15169 | if (PyErr_Occurred()) SWIG_fail; | |
15170 | } | |
d14a1e28 RD |
15171 | if (arg1) (arg1)->m_x = arg2; |
15172 | ||
15173 | Py_INCREF(Py_None); resultobj = Py_None; | |
15174 | return resultobj; | |
15175 | fail: | |
15176 | return NULL; | |
15177 | } | |
15178 | ||
15179 | ||
15180 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15181 | PyObject *resultobj; | |
15182 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15183 | int result; |
d14a1e28 RD |
15184 | PyObject * obj0 = 0 ; |
15185 | char *kwnames[] = { | |
15186 | (char *) "self", NULL | |
15187 | }; | |
15188 | ||
15189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce | 15191 | result = (int) ((arg1)->m_x); |
d14a1e28 | 15192 | |
994141e6 | 15193 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15194 | return resultobj; |
15195 | fail: | |
15196 | return NULL; | |
15197 | } | |
15198 | ||
15199 | ||
15200 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15201 | PyObject *resultobj; | |
15202 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15203 | int arg2 ; |
d14a1e28 | 15204 | PyObject * obj0 = 0 ; |
994141e6 | 15205 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15206 | char *kwnames[] = { |
15207 | (char *) "self",(char *) "m_y", NULL | |
15208 | }; | |
15209 | ||
994141e6 | 15210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15212 | { |
15213 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15214 | if (PyErr_Occurred()) SWIG_fail; | |
15215 | } | |
d14a1e28 RD |
15216 | if (arg1) (arg1)->m_y = arg2; |
15217 | ||
15218 | Py_INCREF(Py_None); resultobj = Py_None; | |
15219 | return resultobj; | |
15220 | fail: | |
15221 | return NULL; | |
15222 | } | |
15223 | ||
15224 | ||
15225 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15226 | PyObject *resultobj; | |
15227 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15228 | int result; |
d14a1e28 RD |
15229 | PyObject * obj0 = 0 ; |
15230 | char *kwnames[] = { | |
15231 | (char *) "self", NULL | |
15232 | }; | |
15233 | ||
15234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce | 15236 | result = (int) ((arg1)->m_y); |
d14a1e28 | 15237 | |
994141e6 | 15238 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15239 | return resultobj; |
15240 | fail: | |
15241 | return NULL; | |
15242 | } | |
15243 | ||
15244 | ||
15245 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15246 | PyObject *resultobj; | |
15247 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15248 | long arg2 ; | |
15249 | PyObject * obj0 = 0 ; | |
994141e6 | 15250 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15251 | char *kwnames[] = { |
15252 | (char *) "self",(char *) "m_keyCode", NULL | |
15253 | }; | |
15254 | ||
994141e6 | 15255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15257 | { |
15258 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
15259 | if (PyErr_Occurred()) SWIG_fail; | |
15260 | } | |
d14a1e28 RD |
15261 | if (arg1) (arg1)->m_keyCode = arg2; |
15262 | ||
15263 | Py_INCREF(Py_None); resultobj = Py_None; | |
15264 | return resultobj; | |
15265 | fail: | |
15266 | return NULL; | |
15267 | } | |
15268 | ||
15269 | ||
15270 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15271 | PyObject *resultobj; | |
15272 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15273 | long result; | |
15274 | PyObject * obj0 = 0 ; | |
15275 | char *kwnames[] = { | |
15276 | (char *) "self", NULL | |
15277 | }; | |
15278 | ||
15279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
15280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15281 | result = (long) ((arg1)->m_keyCode); | |
15282 | ||
994141e6 | 15283 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
15284 | return resultobj; |
15285 | fail: | |
15286 | return NULL; | |
15287 | } | |
15288 | ||
15289 | ||
15290 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15291 | PyObject *resultobj; | |
15292 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15293 | bool arg2 ; | |
15294 | PyObject * obj0 = 0 ; | |
15295 | PyObject * obj1 = 0 ; | |
15296 | char *kwnames[] = { | |
15297 | (char *) "self",(char *) "m_controlDown", NULL | |
15298 | }; | |
15299 | ||
15300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 15302 | { |
994141e6 | 15303 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
15304 | if (PyErr_Occurred()) SWIG_fail; |
15305 | } | |
d14a1e28 RD |
15306 | if (arg1) (arg1)->m_controlDown = arg2; |
15307 | ||
15308 | Py_INCREF(Py_None); resultobj = Py_None; | |
15309 | return resultobj; | |
15310 | fail: | |
15311 | return NULL; | |
15312 | } | |
15313 | ||
15314 | ||
15315 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15316 | PyObject *resultobj; | |
15317 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15318 | bool result; | |
15319 | PyObject * obj0 = 0 ; | |
15320 | char *kwnames[] = { | |
15321 | (char *) "self", NULL | |
15322 | }; | |
15323 | ||
15324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15326 | result = (bool) ((arg1)->m_controlDown); | |
15327 | ||
4d5c3d91 | 15328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15329 | return resultobj; |
15330 | fail: | |
15331 | return NULL; | |
15332 | } | |
15333 | ||
15334 | ||
15335 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15336 | PyObject *resultobj; | |
15337 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15338 | bool arg2 ; | |
15339 | PyObject * obj0 = 0 ; | |
15340 | PyObject * obj1 = 0 ; | |
15341 | char *kwnames[] = { | |
15342 | (char *) "self",(char *) "m_shiftDown", NULL | |
15343 | }; | |
15344 | ||
15345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 15347 | { |
994141e6 | 15348 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
15349 | if (PyErr_Occurred()) SWIG_fail; |
15350 | } | |
d14a1e28 RD |
15351 | if (arg1) (arg1)->m_shiftDown = arg2; |
15352 | ||
15353 | Py_INCREF(Py_None); resultobj = Py_None; | |
15354 | return resultobj; | |
15355 | fail: | |
15356 | return NULL; | |
15357 | } | |
15358 | ||
15359 | ||
15360 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(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_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15371 | result = (bool) ((arg1)->m_shiftDown); | |
15372 | ||
4d5c3d91 | 15373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15374 | return resultobj; |
15375 | fail: | |
15376 | return NULL; | |
15377 | } | |
15378 | ||
15379 | ||
15380 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15381 | PyObject *resultobj; | |
15382 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15383 | bool arg2 ; | |
15384 | PyObject * obj0 = 0 ; | |
15385 | PyObject * obj1 = 0 ; | |
15386 | char *kwnames[] = { | |
15387 | (char *) "self",(char *) "m_altDown", NULL | |
15388 | }; | |
15389 | ||
15390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 15392 | { |
994141e6 | 15393 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
15394 | if (PyErr_Occurred()) SWIG_fail; |
15395 | } | |
d14a1e28 RD |
15396 | if (arg1) (arg1)->m_altDown = arg2; |
15397 | ||
15398 | Py_INCREF(Py_None); resultobj = Py_None; | |
15399 | return resultobj; | |
15400 | fail: | |
15401 | return NULL; | |
15402 | } | |
15403 | ||
15404 | ||
15405 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15406 | PyObject *resultobj; | |
15407 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15408 | bool result; | |
15409 | PyObject * obj0 = 0 ; | |
15410 | char *kwnames[] = { | |
15411 | (char *) "self", NULL | |
15412 | }; | |
15413 | ||
15414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15416 | result = (bool) ((arg1)->m_altDown); | |
15417 | ||
4d5c3d91 | 15418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15419 | return resultobj; |
15420 | fail: | |
15421 | return NULL; | |
15422 | } | |
15423 | ||
15424 | ||
15425 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15426 | PyObject *resultobj; | |
15427 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15428 | bool arg2 ; | |
15429 | PyObject * obj0 = 0 ; | |
15430 | PyObject * obj1 = 0 ; | |
15431 | char *kwnames[] = { | |
15432 | (char *) "self",(char *) "m_metaDown", NULL | |
15433 | }; | |
15434 | ||
15435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 15437 | { |
994141e6 | 15438 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
15439 | if (PyErr_Occurred()) SWIG_fail; |
15440 | } | |
d14a1e28 RD |
15441 | if (arg1) (arg1)->m_metaDown = arg2; |
15442 | ||
15443 | Py_INCREF(Py_None); resultobj = Py_None; | |
15444 | return resultobj; | |
15445 | fail: | |
15446 | return NULL; | |
15447 | } | |
15448 | ||
15449 | ||
15450 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15451 | PyObject *resultobj; | |
15452 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15453 | bool result; | |
15454 | PyObject * obj0 = 0 ; | |
15455 | char *kwnames[] = { | |
15456 | (char *) "self", NULL | |
15457 | }; | |
15458 | ||
15459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15461 | result = (bool) ((arg1)->m_metaDown); | |
15462 | ||
4d5c3d91 | 15463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15464 | return resultobj; |
15465 | fail: | |
15466 | return NULL; | |
15467 | } | |
15468 | ||
15469 | ||
15470 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15471 | PyObject *resultobj; | |
15472 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15473 | bool arg2 ; | |
15474 | PyObject * obj0 = 0 ; | |
15475 | PyObject * obj1 = 0 ; | |
15476 | char *kwnames[] = { | |
15477 | (char *) "self",(char *) "m_scanCode", NULL | |
15478 | }; | |
15479 | ||
15480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 15482 | { |
994141e6 | 15483 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
15484 | if (PyErr_Occurred()) SWIG_fail; |
15485 | } | |
d14a1e28 RD |
15486 | if (arg1) (arg1)->m_scanCode = arg2; |
15487 | ||
15488 | Py_INCREF(Py_None); resultobj = Py_None; | |
15489 | return resultobj; | |
15490 | fail: | |
15491 | return NULL; | |
15492 | } | |
15493 | ||
15494 | ||
15495 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15496 | PyObject *resultobj; | |
15497 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15498 | bool result; | |
15499 | PyObject * obj0 = 0 ; | |
15500 | char *kwnames[] = { | |
15501 | (char *) "self", NULL | |
15502 | }; | |
15503 | ||
15504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
15505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15506 | result = (bool) ((arg1)->m_scanCode); | |
15507 | ||
4d5c3d91 | 15508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15509 | return resultobj; |
15510 | fail: | |
15511 | return NULL; | |
15512 | } | |
15513 | ||
15514 | ||
15515 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15516 | PyObject *resultobj; | |
15517 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15518 | unsigned int arg2 ; |
d14a1e28 RD |
15519 | PyObject * obj0 = 0 ; |
15520 | PyObject * obj1 = 0 ; | |
15521 | char *kwnames[] = { | |
15522 | (char *) "self",(char *) "m_rawCode", NULL | |
15523 | }; | |
15524 | ||
15525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 15527 | { |
994141e6 | 15528 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
a41e16b6 RD |
15529 | if (PyErr_Occurred()) SWIG_fail; |
15530 | } | |
d14a1e28 RD |
15531 | if (arg1) (arg1)->m_rawCode = arg2; |
15532 | ||
15533 | Py_INCREF(Py_None); resultobj = Py_None; | |
15534 | return resultobj; | |
15535 | fail: | |
15536 | return NULL; | |
15537 | } | |
15538 | ||
15539 | ||
15540 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15541 | PyObject *resultobj; | |
15542 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15543 | unsigned int result; |
d14a1e28 RD |
15544 | PyObject * obj0 = 0 ; |
15545 | char *kwnames[] = { | |
15546 | (char *) "self", NULL | |
15547 | }; | |
15548 | ||
15549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
15550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce | 15551 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 15552 | |
994141e6 | 15553 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15554 | return resultobj; |
15555 | fail: | |
15556 | return NULL; | |
15557 | } | |
15558 | ||
15559 | ||
15560 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15561 | PyObject *resultobj; | |
15562 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15563 | unsigned int arg2 ; |
d14a1e28 RD |
15564 | PyObject * obj0 = 0 ; |
15565 | PyObject * obj1 = 0 ; | |
15566 | char *kwnames[] = { | |
15567 | (char *) "self",(char *) "m_rawFlags", NULL | |
15568 | }; | |
15569 | ||
15570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
15571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 15572 | { |
994141e6 | 15573 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
a41e16b6 RD |
15574 | if (PyErr_Occurred()) SWIG_fail; |
15575 | } | |
d14a1e28 RD |
15576 | if (arg1) (arg1)->m_rawFlags = arg2; |
15577 | ||
15578 | Py_INCREF(Py_None); resultobj = Py_None; | |
15579 | return resultobj; | |
15580 | fail: | |
15581 | return NULL; | |
15582 | } | |
15583 | ||
15584 | ||
15585 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15586 | PyObject *resultobj; | |
15587 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15588 | unsigned int result; |
d14a1e28 RD |
15589 | PyObject * obj0 = 0 ; |
15590 | char *kwnames[] = { | |
15591 | (char *) "self", NULL | |
15592 | }; | |
15593 | ||
15594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
15595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
e811c8ce | 15596 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 15597 | |
994141e6 | 15598 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15599 | return resultobj; |
15600 | fail: | |
15601 | return NULL; | |
15602 | } | |
15603 | ||
15604 | ||
15605 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
15606 | PyObject *obj; | |
15607 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15608 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
15609 | Py_INCREF(obj); | |
15610 | return Py_BuildValue((char *)""); | |
15611 | } | |
15612 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15613 | PyObject *resultobj; | |
15614 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
15615 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
15616 | int arg2 = (int) 0 ; | |
15617 | wxSizeEvent *result; | |
15618 | wxSize temp1 ; | |
15619 | PyObject * obj0 = 0 ; | |
994141e6 | 15620 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15621 | char *kwnames[] = { |
15622 | (char *) "sz",(char *) "winid", NULL | |
15623 | }; | |
15624 | ||
994141e6 | 15625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
15626 | if (obj0) { |
15627 | { | |
15628 | arg1 = &temp1; | |
15629 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
15630 | } | |
15631 | } | |
994141e6 RD |
15632 | if (obj1) { |
15633 | { | |
15634 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15635 | if (PyErr_Occurred()) SWIG_fail; | |
15636 | } | |
15637 | } | |
d14a1e28 RD |
15638 | { |
15639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15640 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
15641 | ||
15642 | wxPyEndAllowThreads(__tstate); | |
15643 | if (PyErr_Occurred()) SWIG_fail; | |
15644 | } | |
15645 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizeEvent, 1); | |
15646 | return resultobj; | |
15647 | fail: | |
15648 | return NULL; | |
15649 | } | |
15650 | ||
15651 | ||
15652 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15653 | PyObject *resultobj; | |
15654 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15655 | wxSize result; | |
15656 | PyObject * obj0 = 0 ; | |
15657 | char *kwnames[] = { | |
15658 | (char *) "self", NULL | |
15659 | }; | |
15660 | ||
15661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
15662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15663 | { | |
15664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15665 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
15666 | ||
15667 | wxPyEndAllowThreads(__tstate); | |
15668 | if (PyErr_Occurred()) SWIG_fail; | |
15669 | } | |
15670 | { | |
15671 | wxSize * resultptr; | |
15672 | resultptr = new wxSize((wxSize &) result); | |
15673 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15674 | } | |
15675 | return resultobj; | |
15676 | fail: | |
15677 | return NULL; | |
15678 | } | |
15679 | ||
15680 | ||
15681 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15682 | PyObject *resultobj; | |
15683 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15684 | wxRect result; | |
15685 | PyObject * obj0 = 0 ; | |
15686 | char *kwnames[] = { | |
15687 | (char *) "self", NULL | |
15688 | }; | |
15689 | ||
15690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
15691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15692 | { | |
15693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15694 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
15695 | ||
15696 | wxPyEndAllowThreads(__tstate); | |
15697 | if (PyErr_Occurred()) SWIG_fail; | |
15698 | } | |
15699 | { | |
15700 | wxRect * resultptr; | |
15701 | resultptr = new wxRect((wxRect &) result); | |
15702 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
15703 | } | |
15704 | return resultobj; | |
15705 | fail: | |
15706 | return NULL; | |
15707 | } | |
15708 | ||
15709 | ||
15710 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15711 | PyObject *resultobj; | |
15712 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15713 | wxRect arg2 ; | |
15714 | wxRect *argp2 ; | |
15715 | PyObject * obj0 = 0 ; | |
15716 | PyObject * obj1 = 0 ; | |
15717 | char *kwnames[] = { | |
15718 | (char *) "self",(char *) "rect", NULL | |
15719 | }; | |
15720 | ||
15721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15723 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15724 | arg2 = *argp2; | |
15725 | { | |
15726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15727 | (arg1)->SetRect(arg2); | |
15728 | ||
15729 | wxPyEndAllowThreads(__tstate); | |
15730 | if (PyErr_Occurred()) SWIG_fail; | |
15731 | } | |
15732 | Py_INCREF(Py_None); resultobj = Py_None; | |
15733 | return resultobj; | |
15734 | fail: | |
15735 | return NULL; | |
15736 | } | |
15737 | ||
15738 | ||
15739 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15740 | PyObject *resultobj; | |
15741 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15742 | wxSize arg2 ; | |
15743 | wxSize *argp2 ; | |
15744 | PyObject * obj0 = 0 ; | |
15745 | PyObject * obj1 = 0 ; | |
15746 | char *kwnames[] = { | |
15747 | (char *) "self",(char *) "size", NULL | |
15748 | }; | |
15749 | ||
15750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15752 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15753 | arg2 = *argp2; | |
15754 | { | |
15755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15756 | wxSizeEvent_SetSize(arg1,arg2); | |
15757 | ||
15758 | wxPyEndAllowThreads(__tstate); | |
15759 | if (PyErr_Occurred()) SWIG_fail; | |
15760 | } | |
15761 | Py_INCREF(Py_None); resultobj = Py_None; | |
15762 | return resultobj; | |
15763 | fail: | |
15764 | return NULL; | |
15765 | } | |
15766 | ||
15767 | ||
15768 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15769 | PyObject *resultobj; | |
15770 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15771 | wxSize *arg2 = (wxSize *) 0 ; | |
15772 | PyObject * obj0 = 0 ; | |
15773 | PyObject * obj1 = 0 ; | |
15774 | char *kwnames[] = { | |
15775 | (char *) "self",(char *) "m_size", NULL | |
15776 | }; | |
15777 | ||
15778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
15779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15780 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15781 | if (arg1) (arg1)->m_size = *arg2; | |
15782 | ||
15783 | Py_INCREF(Py_None); resultobj = Py_None; | |
15784 | return resultobj; | |
15785 | fail: | |
15786 | return NULL; | |
15787 | } | |
15788 | ||
15789 | ||
15790 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15791 | PyObject *resultobj; | |
15792 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15793 | wxSize *result; | |
15794 | PyObject * obj0 = 0 ; | |
15795 | char *kwnames[] = { | |
15796 | (char *) "self", NULL | |
15797 | }; | |
15798 | ||
15799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
15800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15801 | result = (wxSize *)& ((arg1)->m_size); | |
15802 | ||
15803 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
15804 | return resultobj; | |
15805 | fail: | |
15806 | return NULL; | |
15807 | } | |
15808 | ||
15809 | ||
15810 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15811 | PyObject *resultobj; | |
15812 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15813 | wxRect *arg2 = (wxRect *) 0 ; | |
15814 | PyObject * obj0 = 0 ; | |
15815 | PyObject * obj1 = 0 ; | |
15816 | char *kwnames[] = { | |
15817 | (char *) "self",(char *) "m_rect", NULL | |
15818 | }; | |
15819 | ||
15820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15822 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15823 | if (arg1) (arg1)->m_rect = *arg2; | |
15824 | ||
15825 | Py_INCREF(Py_None); resultobj = Py_None; | |
15826 | return resultobj; | |
15827 | fail: | |
15828 | return NULL; | |
15829 | } | |
15830 | ||
15831 | ||
15832 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15833 | PyObject *resultobj; | |
15834 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15835 | wxRect *result; | |
15836 | PyObject * obj0 = 0 ; | |
15837 | char *kwnames[] = { | |
15838 | (char *) "self", NULL | |
15839 | }; | |
15840 | ||
15841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15843 | result = (wxRect *)& ((arg1)->m_rect); | |
15844 | ||
15845 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
15846 | return resultobj; | |
15847 | fail: | |
15848 | return NULL; | |
15849 | } | |
15850 | ||
15851 | ||
15852 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
15853 | PyObject *obj; | |
15854 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15855 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
15856 | Py_INCREF(obj); | |
15857 | return Py_BuildValue((char *)""); | |
15858 | } | |
15859 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15860 | PyObject *resultobj; | |
15861 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
15862 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
15863 | int arg2 = (int) 0 ; | |
15864 | wxMoveEvent *result; | |
15865 | wxPoint temp1 ; | |
15866 | PyObject * obj0 = 0 ; | |
994141e6 | 15867 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15868 | char *kwnames[] = { |
15869 | (char *) "pos",(char *) "winid", NULL | |
15870 | }; | |
15871 | ||
994141e6 | 15872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
15873 | if (obj0) { |
15874 | { | |
15875 | arg1 = &temp1; | |
15876 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
15877 | } | |
15878 | } | |
994141e6 RD |
15879 | if (obj1) { |
15880 | { | |
15881 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15882 | if (PyErr_Occurred()) SWIG_fail; | |
15883 | } | |
15884 | } | |
d14a1e28 RD |
15885 | { |
15886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15887 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
15888 | ||
15889 | wxPyEndAllowThreads(__tstate); | |
15890 | if (PyErr_Occurred()) SWIG_fail; | |
15891 | } | |
15892 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMoveEvent, 1); | |
15893 | return resultobj; | |
15894 | fail: | |
15895 | return NULL; | |
15896 | } | |
15897 | ||
15898 | ||
15899 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15900 | PyObject *resultobj; | |
15901 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15902 | wxPoint result; | |
15903 | PyObject * obj0 = 0 ; | |
15904 | char *kwnames[] = { | |
15905 | (char *) "self", NULL | |
15906 | }; | |
15907 | ||
15908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15910 | { | |
15911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15912 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
15913 | ||
15914 | wxPyEndAllowThreads(__tstate); | |
15915 | if (PyErr_Occurred()) SWIG_fail; | |
15916 | } | |
15917 | { | |
15918 | wxPoint * resultptr; | |
15919 | resultptr = new wxPoint((wxPoint &) result); | |
15920 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
15921 | } | |
15922 | return resultobj; | |
15923 | fail: | |
15924 | return NULL; | |
15925 | } | |
15926 | ||
15927 | ||
15928 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15929 | PyObject *resultobj; | |
15930 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15931 | wxRect result; | |
15932 | PyObject * obj0 = 0 ; | |
15933 | char *kwnames[] = { | |
15934 | (char *) "self", NULL | |
15935 | }; | |
15936 | ||
15937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
15938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15939 | { | |
15940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15941 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
15942 | ||
15943 | wxPyEndAllowThreads(__tstate); | |
15944 | if (PyErr_Occurred()) SWIG_fail; | |
15945 | } | |
15946 | { | |
15947 | wxRect * resultptr; | |
15948 | resultptr = new wxRect((wxRect &) result); | |
15949 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
15950 | } | |
15951 | return resultobj; | |
15952 | fail: | |
15953 | return NULL; | |
15954 | } | |
15955 | ||
15956 | ||
15957 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15958 | PyObject *resultobj; | |
15959 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15960 | wxRect arg2 ; | |
15961 | wxRect *argp2 ; | |
15962 | PyObject * obj0 = 0 ; | |
15963 | PyObject * obj1 = 0 ; | |
15964 | char *kwnames[] = { | |
15965 | (char *) "self",(char *) "rect", NULL | |
15966 | }; | |
15967 | ||
15968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15970 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15971 | arg2 = *argp2; | |
15972 | { | |
15973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15974 | (arg1)->SetRect(arg2); | |
15975 | ||
15976 | wxPyEndAllowThreads(__tstate); | |
15977 | if (PyErr_Occurred()) SWIG_fail; | |
15978 | } | |
15979 | Py_INCREF(Py_None); resultobj = Py_None; | |
15980 | return resultobj; | |
15981 | fail: | |
15982 | return NULL; | |
15983 | } | |
15984 | ||
15985 | ||
15986 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15987 | PyObject *resultobj; | |
15988 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15989 | wxPoint arg2 ; | |
15990 | wxPoint *argp2 ; | |
15991 | PyObject * obj0 = 0 ; | |
15992 | PyObject * obj1 = 0 ; | |
15993 | char *kwnames[] = { | |
15994 | (char *) "self",(char *) "pos", NULL | |
15995 | }; | |
15996 | ||
15997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15999 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16000 | arg2 = *argp2; | |
16001 | { | |
16002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16003 | wxMoveEvent_SetPosition(arg1,arg2); | |
16004 | ||
16005 | wxPyEndAllowThreads(__tstate); | |
16006 | if (PyErr_Occurred()) SWIG_fail; | |
16007 | } | |
16008 | Py_INCREF(Py_None); resultobj = Py_None; | |
16009 | return resultobj; | |
16010 | fail: | |
16011 | return NULL; | |
16012 | } | |
16013 | ||
16014 | ||
16015 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16016 | PyObject *resultobj; | |
16017 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16018 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16019 | PyObject * obj0 = 0 ; | |
16020 | PyObject * obj1 = 0 ; | |
16021 | char *kwnames[] = { | |
16022 | (char *) "self",(char *) "m_pos", NULL | |
16023 | }; | |
16024 | ||
16025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
16026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16027 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16028 | if (arg1) (arg1)->m_pos = *arg2; | |
16029 | ||
16030 | Py_INCREF(Py_None); resultobj = Py_None; | |
16031 | return resultobj; | |
16032 | fail: | |
16033 | return NULL; | |
16034 | } | |
16035 | ||
16036 | ||
16037 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16038 | PyObject *resultobj; | |
16039 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16040 | wxPoint *result; | |
16041 | PyObject * obj0 = 0 ; | |
16042 | char *kwnames[] = { | |
16043 | (char *) "self", NULL | |
16044 | }; | |
16045 | ||
16046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
16047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16048 | result = (wxPoint *)& ((arg1)->m_pos); | |
16049 | ||
16050 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
16051 | return resultobj; | |
16052 | fail: | |
16053 | return NULL; | |
16054 | } | |
16055 | ||
16056 | ||
16057 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16058 | PyObject *resultobj; | |
16059 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16060 | wxRect *arg2 = (wxRect *) 0 ; | |
16061 | PyObject * obj0 = 0 ; | |
16062 | PyObject * obj1 = 0 ; | |
16063 | char *kwnames[] = { | |
16064 | (char *) "self",(char *) "m_rect", NULL | |
16065 | }; | |
16066 | ||
16067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16069 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16070 | if (arg1) (arg1)->m_rect = *arg2; | |
16071 | ||
16072 | Py_INCREF(Py_None); resultobj = Py_None; | |
16073 | return resultobj; | |
16074 | fail: | |
16075 | return NULL; | |
16076 | } | |
16077 | ||
16078 | ||
16079 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16080 | PyObject *resultobj; | |
16081 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16082 | wxRect *result; | |
16083 | PyObject * obj0 = 0 ; | |
16084 | char *kwnames[] = { | |
16085 | (char *) "self", NULL | |
16086 | }; | |
16087 | ||
16088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16090 | result = (wxRect *)& ((arg1)->m_rect); | |
16091 | ||
16092 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
16093 | return resultobj; | |
16094 | fail: | |
16095 | return NULL; | |
16096 | } | |
16097 | ||
16098 | ||
16099 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16100 | PyObject *obj; | |
16101 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16102 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16103 | Py_INCREF(obj); | |
16104 | return Py_BuildValue((char *)""); | |
16105 | } | |
16106 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16107 | PyObject *resultobj; | |
16108 | int arg1 = (int) 0 ; | |
16109 | wxPaintEvent *result; | |
994141e6 | 16110 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16111 | char *kwnames[] = { |
16112 | (char *) "Id", NULL | |
16113 | }; | |
16114 | ||
994141e6 RD |
16115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; |
16116 | if (obj0) { | |
16117 | { | |
16118 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16119 | if (PyErr_Occurred()) SWIG_fail; | |
16120 | } | |
16121 | } | |
d14a1e28 RD |
16122 | { |
16123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16124 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16125 | ||
16126 | wxPyEndAllowThreads(__tstate); | |
16127 | if (PyErr_Occurred()) SWIG_fail; | |
16128 | } | |
16129 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintEvent, 1); | |
16130 | return resultobj; | |
16131 | fail: | |
16132 | return NULL; | |
16133 | } | |
16134 | ||
16135 | ||
16136 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16137 | PyObject *obj; | |
16138 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16139 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16140 | Py_INCREF(obj); | |
16141 | return Py_BuildValue((char *)""); | |
16142 | } | |
16143 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16144 | PyObject *resultobj; | |
16145 | int arg1 = (int) 0 ; | |
16146 | wxNcPaintEvent *result; | |
994141e6 | 16147 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16148 | char *kwnames[] = { |
16149 | (char *) "winid", NULL | |
16150 | }; | |
16151 | ||
994141e6 RD |
16152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; |
16153 | if (obj0) { | |
16154 | { | |
16155 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16156 | if (PyErr_Occurred()) SWIG_fail; | |
16157 | } | |
16158 | } | |
d14a1e28 RD |
16159 | { |
16160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16161 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16162 | ||
16163 | wxPyEndAllowThreads(__tstate); | |
16164 | if (PyErr_Occurred()) SWIG_fail; | |
16165 | } | |
16166 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNcPaintEvent, 1); | |
16167 | return resultobj; | |
16168 | fail: | |
16169 | return NULL; | |
16170 | } | |
16171 | ||
16172 | ||
16173 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16174 | PyObject *obj; | |
16175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16176 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16177 | Py_INCREF(obj); | |
16178 | return Py_BuildValue((char *)""); | |
16179 | } | |
16180 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16181 | PyObject *resultobj; | |
16182 | int arg1 = (int) 0 ; | |
16183 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16184 | wxEraseEvent *result; | |
994141e6 | 16185 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16186 | PyObject * obj1 = 0 ; |
16187 | char *kwnames[] = { | |
16188 | (char *) "Id",(char *) "dc", NULL | |
16189 | }; | |
16190 | ||
994141e6 RD |
16191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; |
16192 | if (obj0) { | |
16193 | { | |
16194 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16195 | if (PyErr_Occurred()) SWIG_fail; | |
16196 | } | |
16197 | } | |
d14a1e28 RD |
16198 | if (obj1) { |
16199 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16200 | } | |
16201 | { | |
16202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16203 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16204 | ||
16205 | wxPyEndAllowThreads(__tstate); | |
16206 | if (PyErr_Occurred()) SWIG_fail; | |
16207 | } | |
16208 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEraseEvent, 1); | |
16209 | return resultobj; | |
16210 | fail: | |
16211 | return NULL; | |
16212 | } | |
16213 | ||
16214 | ||
16215 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16216 | PyObject *resultobj; | |
16217 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16218 | wxDC *result; | |
16219 | PyObject * obj0 = 0 ; | |
16220 | char *kwnames[] = { | |
16221 | (char *) "self", NULL | |
16222 | }; | |
16223 | ||
16224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
16225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEraseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16226 | { | |
16227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16228 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16229 | ||
16230 | wxPyEndAllowThreads(__tstate); | |
16231 | if (PyErr_Occurred()) SWIG_fail; | |
16232 | } | |
16233 | { | |
16234 | resultobj = wxPyMake_wxObject(result); | |
16235 | } | |
16236 | return resultobj; | |
16237 | fail: | |
16238 | return NULL; | |
16239 | } | |
16240 | ||
16241 | ||
16242 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
16243 | PyObject *obj; | |
16244 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16245 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16246 | Py_INCREF(obj); | |
16247 | return Py_BuildValue((char *)""); | |
16248 | } | |
16249 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16250 | PyObject *resultobj; | |
16251 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16252 | int arg2 = (int) 0 ; | |
16253 | wxFocusEvent *result; | |
994141e6 RD |
16254 | PyObject * obj0 = 0 ; |
16255 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16256 | char *kwnames[] = { |
16257 | (char *) "type",(char *) "winid", NULL | |
16258 | }; | |
16259 | ||
994141e6 RD |
16260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; |
16261 | if (obj0) { | |
16262 | { | |
16263 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
16264 | if (PyErr_Occurred()) SWIG_fail; | |
16265 | } | |
16266 | } | |
16267 | if (obj1) { | |
16268 | { | |
16269 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16270 | if (PyErr_Occurred()) SWIG_fail; | |
16271 | } | |
16272 | } | |
d14a1e28 RD |
16273 | { |
16274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16275 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16276 | ||
16277 | wxPyEndAllowThreads(__tstate); | |
16278 | if (PyErr_Occurred()) SWIG_fail; | |
16279 | } | |
16280 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFocusEvent, 1); | |
16281 | return resultobj; | |
16282 | fail: | |
16283 | return NULL; | |
16284 | } | |
16285 | ||
16286 | ||
16287 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16288 | PyObject *resultobj; | |
16289 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16290 | wxWindow *result; | |
16291 | PyObject * obj0 = 0 ; | |
16292 | char *kwnames[] = { | |
16293 | (char *) "self", NULL | |
16294 | }; | |
16295 | ||
16296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16298 | { | |
16299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16300 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
16301 | ||
16302 | wxPyEndAllowThreads(__tstate); | |
16303 | if (PyErr_Occurred()) SWIG_fail; | |
16304 | } | |
16305 | { | |
16306 | resultobj = wxPyMake_wxObject(result); | |
16307 | } | |
16308 | return resultobj; | |
16309 | fail: | |
16310 | return NULL; | |
16311 | } | |
16312 | ||
16313 | ||
16314 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16315 | PyObject *resultobj; | |
16316 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16317 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16318 | PyObject * obj0 = 0 ; | |
16319 | PyObject * obj1 = 0 ; | |
16320 | char *kwnames[] = { | |
16321 | (char *) "self",(char *) "win", NULL | |
16322 | }; | |
16323 | ||
16324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
16325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16326 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16327 | { | |
16328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16329 | (arg1)->SetWindow(arg2); | |
16330 | ||
16331 | wxPyEndAllowThreads(__tstate); | |
16332 | if (PyErr_Occurred()) SWIG_fail; | |
16333 | } | |
16334 | Py_INCREF(Py_None); resultobj = Py_None; | |
16335 | return resultobj; | |
16336 | fail: | |
16337 | return NULL; | |
16338 | } | |
16339 | ||
16340 | ||
16341 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16342 | PyObject *obj; | |
16343 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16344 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
16345 | Py_INCREF(obj); | |
16346 | return Py_BuildValue((char *)""); | |
16347 | } | |
16348 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16349 | PyObject *resultobj; | |
16350 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16351 | wxChildFocusEvent *result; | |
16352 | PyObject * obj0 = 0 ; | |
16353 | char *kwnames[] = { | |
16354 | (char *) "win", NULL | |
16355 | }; | |
16356 | ||
16357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
16358 | if (obj0) { | |
16359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16360 | } | |
16361 | { | |
16362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16363 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
16364 | ||
16365 | wxPyEndAllowThreads(__tstate); | |
16366 | if (PyErr_Occurred()) SWIG_fail; | |
16367 | } | |
16368 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChildFocusEvent, 1); | |
16369 | return resultobj; | |
16370 | fail: | |
16371 | return NULL; | |
16372 | } | |
16373 | ||
16374 | ||
16375 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16376 | PyObject *resultobj; | |
16377 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
16378 | wxWindow *result; | |
16379 | PyObject * obj0 = 0 ; | |
16380 | char *kwnames[] = { | |
16381 | (char *) "self", NULL | |
16382 | }; | |
16383 | ||
16384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChildFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16386 | { | |
16387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16388 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
16389 | ||
16390 | wxPyEndAllowThreads(__tstate); | |
16391 | if (PyErr_Occurred()) SWIG_fail; | |
16392 | } | |
16393 | { | |
16394 | resultobj = wxPyMake_wxObject(result); | |
16395 | } | |
16396 | return resultobj; | |
16397 | fail: | |
16398 | return NULL; | |
16399 | } | |
16400 | ||
16401 | ||
16402 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16403 | PyObject *obj; | |
16404 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16405 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
16406 | Py_INCREF(obj); | |
16407 | return Py_BuildValue((char *)""); | |
16408 | } | |
16409 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16410 | PyObject *resultobj; | |
16411 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 16412 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16413 | int arg3 = (int) 0 ; |
16414 | wxActivateEvent *result; | |
994141e6 | 16415 | PyObject * obj0 = 0 ; |
d14a1e28 | 16416 | PyObject * obj1 = 0 ; |
994141e6 | 16417 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16418 | char *kwnames[] = { |
16419 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
16420 | }; | |
16421 | ||
994141e6 RD |
16422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16423 | if (obj0) { | |
16424 | { | |
16425 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
16426 | if (PyErr_Occurred()) SWIG_fail; | |
16427 | } | |
16428 | } | |
d14a1e28 | 16429 | if (obj1) { |
a41e16b6 | 16430 | { |
994141e6 RD |
16431 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
16432 | if (PyErr_Occurred()) SWIG_fail; | |
16433 | } | |
16434 | } | |
16435 | if (obj2) { | |
16436 | { | |
16437 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
a41e16b6 RD |
16438 | if (PyErr_Occurred()) SWIG_fail; |
16439 | } | |
d14a1e28 RD |
16440 | } |
16441 | { | |
16442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16443 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
16444 | ||
16445 | wxPyEndAllowThreads(__tstate); | |
16446 | if (PyErr_Occurred()) SWIG_fail; | |
16447 | } | |
16448 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxActivateEvent, 1); | |
16449 | return resultobj; | |
16450 | fail: | |
16451 | return NULL; | |
16452 | } | |
16453 | ||
16454 | ||
16455 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16456 | PyObject *resultobj; | |
16457 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
16458 | bool result; | |
16459 | PyObject * obj0 = 0 ; | |
16460 | char *kwnames[] = { | |
16461 | (char *) "self", NULL | |
16462 | }; | |
16463 | ||
16464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
16465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxActivateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16466 | { | |
16467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16468 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
16469 | ||
16470 | wxPyEndAllowThreads(__tstate); | |
16471 | if (PyErr_Occurred()) SWIG_fail; | |
16472 | } | |
4d5c3d91 | 16473 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16474 | return resultobj; |
16475 | fail: | |
16476 | return NULL; | |
16477 | } | |
16478 | ||
16479 | ||
16480 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
16481 | PyObject *obj; | |
16482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16483 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
16484 | Py_INCREF(obj); | |
16485 | return Py_BuildValue((char *)""); | |
16486 | } | |
16487 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16488 | PyObject *resultobj; | |
16489 | int arg1 = (int) 0 ; | |
16490 | wxInitDialogEvent *result; | |
994141e6 | 16491 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16492 | char *kwnames[] = { |
16493 | (char *) "Id", NULL | |
16494 | }; | |
16495 | ||
994141e6 RD |
16496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; |
16497 | if (obj0) { | |
16498 | { | |
16499 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16500 | if (PyErr_Occurred()) SWIG_fail; | |
16501 | } | |
16502 | } | |
d14a1e28 RD |
16503 | { |
16504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16505 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
16506 | ||
16507 | wxPyEndAllowThreads(__tstate); | |
16508 | if (PyErr_Occurred()) SWIG_fail; | |
16509 | } | |
16510 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInitDialogEvent, 1); | |
16511 | return resultobj; | |
16512 | fail: | |
16513 | return NULL; | |
16514 | } | |
16515 | ||
16516 | ||
16517 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
16518 | PyObject *obj; | |
16519 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16520 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
16521 | Py_INCREF(obj); | |
16522 | return Py_BuildValue((char *)""); | |
16523 | } | |
16524 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16525 | PyObject *resultobj; | |
16526 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16527 | int arg2 = (int) 0 ; | |
16528 | wxMenu *arg3 = (wxMenu *) NULL ; | |
16529 | wxMenuEvent *result; | |
994141e6 RD |
16530 | PyObject * obj0 = 0 ; |
16531 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16532 | PyObject * obj2 = 0 ; |
16533 | char *kwnames[] = { | |
16534 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
16535 | }; | |
16536 | ||
994141e6 RD |
16537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16538 | if (obj0) { | |
16539 | { | |
16540 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
16541 | if (PyErr_Occurred()) SWIG_fail; | |
16542 | } | |
16543 | } | |
16544 | if (obj1) { | |
16545 | { | |
16546 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16547 | if (PyErr_Occurred()) SWIG_fail; | |
16548 | } | |
16549 | } | |
d14a1e28 RD |
16550 | if (obj2) { |
16551 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16552 | } | |
16553 | { | |
16554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16555 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
16556 | ||
16557 | wxPyEndAllowThreads(__tstate); | |
16558 | if (PyErr_Occurred()) SWIG_fail; | |
16559 | } | |
16560 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMenuEvent, 1); | |
16561 | return resultobj; | |
16562 | fail: | |
16563 | return NULL; | |
16564 | } | |
16565 | ||
16566 | ||
16567 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16568 | PyObject *resultobj; | |
16569 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16570 | int result; | |
16571 | PyObject * obj0 = 0 ; | |
16572 | char *kwnames[] = { | |
16573 | (char *) "self", NULL | |
16574 | }; | |
16575 | ||
16576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
16577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16578 | { | |
16579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16580 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
16581 | ||
16582 | wxPyEndAllowThreads(__tstate); | |
16583 | if (PyErr_Occurred()) SWIG_fail; | |
16584 | } | |
994141e6 | 16585 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16586 | return resultobj; |
16587 | fail: | |
16588 | return NULL; | |
16589 | } | |
16590 | ||
16591 | ||
16592 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16593 | PyObject *resultobj; | |
16594 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16595 | bool result; | |
16596 | PyObject * obj0 = 0 ; | |
16597 | char *kwnames[] = { | |
16598 | (char *) "self", NULL | |
16599 | }; | |
16600 | ||
16601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
16602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16603 | { | |
16604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16605 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
16606 | ||
16607 | wxPyEndAllowThreads(__tstate); | |
16608 | if (PyErr_Occurred()) SWIG_fail; | |
16609 | } | |
4d5c3d91 | 16610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16611 | return resultobj; |
16612 | fail: | |
16613 | return NULL; | |
16614 | } | |
16615 | ||
16616 | ||
16617 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16618 | PyObject *resultobj; | |
16619 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16620 | wxMenu *result; | |
16621 | PyObject * obj0 = 0 ; | |
16622 | char *kwnames[] = { | |
16623 | (char *) "self", NULL | |
16624 | }; | |
16625 | ||
16626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
16627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16628 | { | |
16629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16630 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
16631 | ||
16632 | wxPyEndAllowThreads(__tstate); | |
16633 | if (PyErr_Occurred()) SWIG_fail; | |
16634 | } | |
16635 | { | |
16636 | resultobj = wxPyMake_wxObject(result); | |
16637 | } | |
16638 | return resultobj; | |
16639 | fail: | |
16640 | return NULL; | |
16641 | } | |
16642 | ||
16643 | ||
16644 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
16645 | PyObject *obj; | |
16646 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16647 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
16648 | Py_INCREF(obj); | |
16649 | return Py_BuildValue((char *)""); | |
16650 | } | |
16651 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16652 | PyObject *resultobj; | |
16653 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16654 | int arg2 = (int) 0 ; | |
16655 | wxCloseEvent *result; | |
994141e6 RD |
16656 | PyObject * obj0 = 0 ; |
16657 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16658 | char *kwnames[] = { |
16659 | (char *) "type",(char *) "winid", NULL | |
16660 | }; | |
16661 | ||
994141e6 RD |
16662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; |
16663 | if (obj0) { | |
16664 | { | |
16665 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
16666 | if (PyErr_Occurred()) SWIG_fail; | |
16667 | } | |
16668 | } | |
16669 | if (obj1) { | |
16670 | { | |
16671 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16672 | if (PyErr_Occurred()) SWIG_fail; | |
16673 | } | |
16674 | } | |
d14a1e28 RD |
16675 | { |
16676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16677 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
16678 | ||
16679 | wxPyEndAllowThreads(__tstate); | |
16680 | if (PyErr_Occurred()) SWIG_fail; | |
16681 | } | |
16682 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCloseEvent, 1); | |
16683 | return resultobj; | |
16684 | fail: | |
16685 | return NULL; | |
16686 | } | |
16687 | ||
16688 | ||
16689 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16690 | PyObject *resultobj; | |
16691 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16692 | bool arg2 ; | |
16693 | PyObject * obj0 = 0 ; | |
16694 | PyObject * obj1 = 0 ; | |
16695 | char *kwnames[] = { | |
16696 | (char *) "self",(char *) "logOff", NULL | |
16697 | }; | |
16698 | ||
16699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
16700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 16701 | { |
994141e6 | 16702 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
16703 | if (PyErr_Occurred()) SWIG_fail; |
16704 | } | |
d14a1e28 RD |
16705 | { |
16706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16707 | (arg1)->SetLoggingOff(arg2); | |
16708 | ||
16709 | wxPyEndAllowThreads(__tstate); | |
16710 | if (PyErr_Occurred()) SWIG_fail; | |
16711 | } | |
16712 | Py_INCREF(Py_None); resultobj = Py_None; | |
16713 | return resultobj; | |
16714 | fail: | |
16715 | return NULL; | |
16716 | } | |
16717 | ||
16718 | ||
16719 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16720 | PyObject *resultobj; | |
16721 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16722 | bool result; | |
16723 | PyObject * obj0 = 0 ; | |
16724 | char *kwnames[] = { | |
16725 | (char *) "self", NULL | |
16726 | }; | |
16727 | ||
16728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
16729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16730 | { | |
16731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16732 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
16733 | ||
16734 | wxPyEndAllowThreads(__tstate); | |
16735 | if (PyErr_Occurred()) SWIG_fail; | |
16736 | } | |
4d5c3d91 | 16737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16738 | return resultobj; |
16739 | fail: | |
16740 | return NULL; | |
16741 | } | |
16742 | ||
16743 | ||
16744 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16745 | PyObject *resultobj; | |
16746 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
e811c8ce | 16747 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16748 | PyObject * obj0 = 0 ; |
16749 | PyObject * obj1 = 0 ; | |
16750 | char *kwnames[] = { | |
16751 | (char *) "self",(char *) "veto", NULL | |
16752 | }; | |
16753 | ||
16754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
16755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16756 | if (obj1) { | |
a41e16b6 | 16757 | { |
994141e6 | 16758 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
16759 | if (PyErr_Occurred()) SWIG_fail; |
16760 | } | |
d14a1e28 RD |
16761 | } |
16762 | { | |
16763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16764 | (arg1)->Veto(arg2); | |
16765 | ||
16766 | wxPyEndAllowThreads(__tstate); | |
16767 | if (PyErr_Occurred()) SWIG_fail; | |
16768 | } | |
16769 | Py_INCREF(Py_None); resultobj = Py_None; | |
16770 | return resultobj; | |
16771 | fail: | |
16772 | return NULL; | |
16773 | } | |
16774 | ||
16775 | ||
16776 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16777 | PyObject *resultobj; | |
16778 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16779 | bool arg2 ; | |
16780 | PyObject * obj0 = 0 ; | |
16781 | PyObject * obj1 = 0 ; | |
16782 | char *kwnames[] = { | |
16783 | (char *) "self",(char *) "canVeto", NULL | |
16784 | }; | |
16785 | ||
16786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
16787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 16788 | { |
994141e6 | 16789 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
16790 | if (PyErr_Occurred()) SWIG_fail; |
16791 | } | |
d14a1e28 RD |
16792 | { |
16793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16794 | (arg1)->SetCanVeto(arg2); | |
16795 | ||
16796 | wxPyEndAllowThreads(__tstate); | |
16797 | if (PyErr_Occurred()) SWIG_fail; | |
16798 | } | |
16799 | Py_INCREF(Py_None); resultobj = Py_None; | |
16800 | return resultobj; | |
16801 | fail: | |
16802 | return NULL; | |
16803 | } | |
16804 | ||
16805 | ||
16806 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16807 | PyObject *resultobj; | |
16808 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16809 | bool result; | |
16810 | PyObject * obj0 = 0 ; | |
16811 | char *kwnames[] = { | |
16812 | (char *) "self", NULL | |
16813 | }; | |
16814 | ||
16815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
16816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16817 | { | |
16818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16819 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
16820 | ||
16821 | wxPyEndAllowThreads(__tstate); | |
16822 | if (PyErr_Occurred()) SWIG_fail; | |
16823 | } | |
4d5c3d91 | 16824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16825 | return resultobj; |
16826 | fail: | |
16827 | return NULL; | |
16828 | } | |
16829 | ||
16830 | ||
16831 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16832 | PyObject *resultobj; | |
16833 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16834 | bool result; | |
16835 | PyObject * obj0 = 0 ; | |
16836 | char *kwnames[] = { | |
16837 | (char *) "self", NULL | |
16838 | }; | |
16839 | ||
16840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
16841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16842 | { | |
16843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16844 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
16845 | ||
16846 | wxPyEndAllowThreads(__tstate); | |
16847 | if (PyErr_Occurred()) SWIG_fail; | |
16848 | } | |
4d5c3d91 | 16849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16850 | return resultobj; |
16851 | fail: | |
16852 | return NULL; | |
16853 | } | |
16854 | ||
16855 | ||
16856 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
16857 | PyObject *obj; | |
16858 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16859 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
16860 | Py_INCREF(obj); | |
16861 | return Py_BuildValue((char *)""); | |
16862 | } | |
16863 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16864 | PyObject *resultobj; | |
16865 | int arg1 = (int) 0 ; | |
e811c8ce | 16866 | bool arg2 = (bool) False ; |
d14a1e28 | 16867 | wxShowEvent *result; |
994141e6 | 16868 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16869 | PyObject * obj1 = 0 ; |
16870 | char *kwnames[] = { | |
16871 | (char *) "winid",(char *) "show", NULL | |
16872 | }; | |
16873 | ||
994141e6 RD |
16874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; |
16875 | if (obj0) { | |
16876 | { | |
16877 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16878 | if (PyErr_Occurred()) SWIG_fail; | |
16879 | } | |
16880 | } | |
d14a1e28 | 16881 | if (obj1) { |
a41e16b6 | 16882 | { |
994141e6 | 16883 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
16884 | if (PyErr_Occurred()) SWIG_fail; |
16885 | } | |
d14a1e28 RD |
16886 | } |
16887 | { | |
16888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16889 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
16890 | ||
16891 | wxPyEndAllowThreads(__tstate); | |
16892 | if (PyErr_Occurred()) SWIG_fail; | |
16893 | } | |
16894 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxShowEvent, 1); | |
16895 | return resultobj; | |
16896 | fail: | |
16897 | return NULL; | |
16898 | } | |
16899 | ||
16900 | ||
16901 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16902 | PyObject *resultobj; | |
16903 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
16904 | bool arg2 ; | |
16905 | PyObject * obj0 = 0 ; | |
16906 | PyObject * obj1 = 0 ; | |
16907 | char *kwnames[] = { | |
16908 | (char *) "self",(char *) "show", NULL | |
16909 | }; | |
16910 | ||
16911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
16912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 16913 | { |
994141e6 | 16914 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
16915 | if (PyErr_Occurred()) SWIG_fail; |
16916 | } | |
d14a1e28 RD |
16917 | { |
16918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16919 | (arg1)->SetShow(arg2); | |
16920 | ||
16921 | wxPyEndAllowThreads(__tstate); | |
16922 | if (PyErr_Occurred()) SWIG_fail; | |
16923 | } | |
16924 | Py_INCREF(Py_None); resultobj = Py_None; | |
16925 | return resultobj; | |
16926 | fail: | |
16927 | return NULL; | |
16928 | } | |
16929 | ||
16930 | ||
16931 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16932 | PyObject *resultobj; | |
16933 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
16934 | bool result; | |
16935 | PyObject * obj0 = 0 ; | |
16936 | char *kwnames[] = { | |
16937 | (char *) "self", NULL | |
16938 | }; | |
16939 | ||
16940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
16941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16942 | { | |
16943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16944 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
16945 | ||
16946 | wxPyEndAllowThreads(__tstate); | |
16947 | if (PyErr_Occurred()) SWIG_fail; | |
16948 | } | |
4d5c3d91 | 16949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16950 | return resultobj; |
16951 | fail: | |
16952 | return NULL; | |
16953 | } | |
16954 | ||
16955 | ||
16956 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
16957 | PyObject *obj; | |
16958 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16959 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
16960 | Py_INCREF(obj); | |
16961 | return Py_BuildValue((char *)""); | |
16962 | } | |
16963 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16964 | PyObject *resultobj; | |
16965 | int arg1 = (int) 0 ; | |
e811c8ce | 16966 | bool arg2 = (bool) True ; |
d14a1e28 | 16967 | wxIconizeEvent *result; |
994141e6 | 16968 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16969 | PyObject * obj1 = 0 ; |
16970 | char *kwnames[] = { | |
16971 | (char *) "id",(char *) "iconized", NULL | |
16972 | }; | |
16973 | ||
994141e6 RD |
16974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; |
16975 | if (obj0) { | |
16976 | { | |
16977 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16978 | if (PyErr_Occurred()) SWIG_fail; | |
16979 | } | |
16980 | } | |
d14a1e28 | 16981 | if (obj1) { |
a41e16b6 | 16982 | { |
994141e6 | 16983 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
16984 | if (PyErr_Occurred()) SWIG_fail; |
16985 | } | |
d14a1e28 RD |
16986 | } |
16987 | { | |
16988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16989 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
16990 | ||
16991 | wxPyEndAllowThreads(__tstate); | |
16992 | if (PyErr_Occurred()) SWIG_fail; | |
16993 | } | |
16994 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconizeEvent, 1); | |
16995 | return resultobj; | |
16996 | fail: | |
16997 | return NULL; | |
16998 | } | |
16999 | ||
17000 | ||
17001 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17002 | PyObject *resultobj; | |
17003 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17004 | bool result; | |
17005 | PyObject * obj0 = 0 ; | |
17006 | char *kwnames[] = { | |
17007 | (char *) "self", NULL | |
17008 | }; | |
17009 | ||
17010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
17011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17012 | { | |
17013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17014 | result = (bool)(arg1)->Iconized(); | |
17015 | ||
17016 | wxPyEndAllowThreads(__tstate); | |
17017 | if (PyErr_Occurred()) SWIG_fail; | |
17018 | } | |
4d5c3d91 | 17019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17020 | return resultobj; |
17021 | fail: | |
17022 | return NULL; | |
17023 | } | |
17024 | ||
17025 | ||
17026 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17027 | PyObject *obj; | |
17028 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17029 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17030 | Py_INCREF(obj); | |
17031 | return Py_BuildValue((char *)""); | |
17032 | } | |
17033 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17034 | PyObject *resultobj; | |
17035 | int arg1 = (int) 0 ; | |
17036 | wxMaximizeEvent *result; | |
994141e6 | 17037 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17038 | char *kwnames[] = { |
17039 | (char *) "id", NULL | |
17040 | }; | |
17041 | ||
994141e6 RD |
17042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; |
17043 | if (obj0) { | |
17044 | { | |
17045 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17046 | if (PyErr_Occurred()) SWIG_fail; | |
17047 | } | |
17048 | } | |
d14a1e28 RD |
17049 | { |
17050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17051 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17052 | ||
17053 | wxPyEndAllowThreads(__tstate); | |
17054 | if (PyErr_Occurred()) SWIG_fail; | |
17055 | } | |
17056 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMaximizeEvent, 1); | |
17057 | return resultobj; | |
17058 | fail: | |
17059 | return NULL; | |
17060 | } | |
17061 | ||
17062 | ||
17063 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17064 | PyObject *obj; | |
17065 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17066 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17067 | Py_INCREF(obj); | |
17068 | return Py_BuildValue((char *)""); | |
17069 | } | |
17070 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17071 | PyObject *resultobj; | |
17072 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17073 | wxPoint result; | |
17074 | PyObject * obj0 = 0 ; | |
17075 | char *kwnames[] = { | |
17076 | (char *) "self", NULL | |
17077 | }; | |
17078 | ||
17079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
17080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17081 | { | |
17082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17083 | result = (arg1)->GetPosition(); | |
17084 | ||
17085 | wxPyEndAllowThreads(__tstate); | |
17086 | if (PyErr_Occurred()) SWIG_fail; | |
17087 | } | |
17088 | { | |
17089 | wxPoint * resultptr; | |
17090 | resultptr = new wxPoint((wxPoint &) result); | |
17091 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
17092 | } | |
17093 | return resultobj; | |
17094 | fail: | |
17095 | return NULL; | |
17096 | } | |
17097 | ||
17098 | ||
17099 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17100 | PyObject *resultobj; | |
17101 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17102 | int result; | |
17103 | PyObject * obj0 = 0 ; | |
17104 | char *kwnames[] = { | |
17105 | (char *) "self", NULL | |
17106 | }; | |
17107 | ||
17108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
17109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17110 | { | |
17111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17112 | result = (int)(arg1)->GetNumberOfFiles(); | |
17113 | ||
17114 | wxPyEndAllowThreads(__tstate); | |
17115 | if (PyErr_Occurred()) SWIG_fail; | |
17116 | } | |
994141e6 | 17117 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17118 | return resultobj; |
17119 | fail: | |
17120 | return NULL; | |
17121 | } | |
17122 | ||
17123 | ||
17124 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17125 | PyObject *resultobj; | |
17126 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17127 | PyObject *result; | |
17128 | PyObject * obj0 = 0 ; | |
17129 | char *kwnames[] = { | |
17130 | (char *) "self", NULL | |
17131 | }; | |
17132 | ||
17133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
17134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17135 | { | |
17136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17137 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17138 | ||
17139 | wxPyEndAllowThreads(__tstate); | |
17140 | if (PyErr_Occurred()) SWIG_fail; | |
17141 | } | |
17142 | resultobj = result; | |
17143 | return resultobj; | |
17144 | fail: | |
17145 | return NULL; | |
17146 | } | |
17147 | ||
17148 | ||
17149 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17150 | PyObject *obj; | |
17151 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17152 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17153 | Py_INCREF(obj); | |
17154 | return Py_BuildValue((char *)""); | |
17155 | } | |
17156 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17157 | PyObject *resultobj; | |
e811c8ce | 17158 | int arg1 = (int) 0 ; |
d14a1e28 | 17159 | wxUpdateUIEvent *result; |
994141e6 | 17160 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17161 | char *kwnames[] = { |
17162 | (char *) "commandId", NULL | |
17163 | }; | |
17164 | ||
994141e6 RD |
17165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; |
17166 | if (obj0) { | |
17167 | { | |
17168 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17169 | if (PyErr_Occurred()) SWIG_fail; | |
17170 | } | |
17171 | } | |
d14a1e28 RD |
17172 | { |
17173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17174 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17175 | ||
17176 | wxPyEndAllowThreads(__tstate); | |
17177 | if (PyErr_Occurred()) SWIG_fail; | |
17178 | } | |
17179 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxUpdateUIEvent, 1); | |
17180 | return resultobj; | |
17181 | fail: | |
17182 | return NULL; | |
17183 | } | |
17184 | ||
17185 | ||
17186 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17187 | PyObject *resultobj; | |
17188 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17189 | bool result; | |
17190 | PyObject * obj0 = 0 ; | |
17191 | char *kwnames[] = { | |
17192 | (char *) "self", NULL | |
17193 | }; | |
17194 | ||
17195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
17196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17197 | { | |
17198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17199 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17200 | ||
17201 | wxPyEndAllowThreads(__tstate); | |
17202 | if (PyErr_Occurred()) SWIG_fail; | |
17203 | } | |
4d5c3d91 | 17204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17205 | return resultobj; |
17206 | fail: | |
17207 | return NULL; | |
17208 | } | |
17209 | ||
17210 | ||
17211 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17212 | PyObject *resultobj; | |
17213 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17214 | bool result; | |
17215 | PyObject * obj0 = 0 ; | |
17216 | char *kwnames[] = { | |
17217 | (char *) "self", NULL | |
17218 | }; | |
17219 | ||
17220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
17221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17222 | { | |
17223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17224 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17225 | ||
17226 | wxPyEndAllowThreads(__tstate); | |
17227 | if (PyErr_Occurred()) SWIG_fail; | |
17228 | } | |
4d5c3d91 | 17229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17230 | return resultobj; |
17231 | fail: | |
17232 | return NULL; | |
17233 | } | |
17234 | ||
17235 | ||
17236 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17237 | PyObject *resultobj; | |
17238 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17239 | wxString result; | |
17240 | PyObject * obj0 = 0 ; | |
17241 | char *kwnames[] = { | |
17242 | (char *) "self", NULL | |
17243 | }; | |
17244 | ||
17245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
17246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17247 | { | |
17248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17249 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17250 | ||
17251 | wxPyEndAllowThreads(__tstate); | |
17252 | if (PyErr_Occurred()) SWIG_fail; | |
17253 | } | |
17254 | { | |
17255 | #if wxUSE_UNICODE | |
17256 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17257 | #else | |
17258 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17259 | #endif | |
17260 | } | |
17261 | return resultobj; | |
17262 | fail: | |
17263 | return NULL; | |
17264 | } | |
17265 | ||
17266 | ||
17267 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17268 | PyObject *resultobj; | |
17269 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17270 | bool result; | |
17271 | PyObject * obj0 = 0 ; | |
17272 | char *kwnames[] = { | |
17273 | (char *) "self", NULL | |
17274 | }; | |
17275 | ||
17276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
17277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17278 | { | |
17279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17280 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17281 | ||
17282 | wxPyEndAllowThreads(__tstate); | |
17283 | if (PyErr_Occurred()) SWIG_fail; | |
17284 | } | |
4d5c3d91 | 17285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17286 | return resultobj; |
17287 | fail: | |
17288 | return NULL; | |
17289 | } | |
17290 | ||
17291 | ||
17292 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17293 | PyObject *resultobj; | |
17294 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17295 | bool result; | |
17296 | PyObject * obj0 = 0 ; | |
17297 | char *kwnames[] = { | |
17298 | (char *) "self", NULL | |
17299 | }; | |
17300 | ||
17301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
17302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17303 | { | |
17304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17305 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
17306 | ||
17307 | wxPyEndAllowThreads(__tstate); | |
17308 | if (PyErr_Occurred()) SWIG_fail; | |
17309 | } | |
4d5c3d91 | 17310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17311 | return resultobj; |
17312 | fail: | |
17313 | return NULL; | |
17314 | } | |
17315 | ||
17316 | ||
17317 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17318 | PyObject *resultobj; | |
17319 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17320 | bool result; | |
17321 | PyObject * obj0 = 0 ; | |
17322 | char *kwnames[] = { | |
17323 | (char *) "self", NULL | |
17324 | }; | |
17325 | ||
17326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
17327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17328 | { | |
17329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17330 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
17331 | ||
17332 | wxPyEndAllowThreads(__tstate); | |
17333 | if (PyErr_Occurred()) SWIG_fail; | |
17334 | } | |
4d5c3d91 | 17335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17336 | return resultobj; |
17337 | fail: | |
17338 | return NULL; | |
17339 | } | |
17340 | ||
17341 | ||
17342 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17343 | PyObject *resultobj; | |
17344 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17345 | bool arg2 ; | |
17346 | PyObject * obj0 = 0 ; | |
17347 | PyObject * obj1 = 0 ; | |
17348 | char *kwnames[] = { | |
17349 | (char *) "self",(char *) "check", NULL | |
17350 | }; | |
17351 | ||
17352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
17353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 17354 | { |
994141e6 | 17355 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
17356 | if (PyErr_Occurred()) SWIG_fail; |
17357 | } | |
d14a1e28 RD |
17358 | { |
17359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17360 | (arg1)->Check(arg2); | |
17361 | ||
17362 | wxPyEndAllowThreads(__tstate); | |
17363 | if (PyErr_Occurred()) SWIG_fail; | |
17364 | } | |
17365 | Py_INCREF(Py_None); resultobj = Py_None; | |
17366 | return resultobj; | |
17367 | fail: | |
17368 | return NULL; | |
17369 | } | |
17370 | ||
17371 | ||
17372 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17373 | PyObject *resultobj; | |
17374 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17375 | bool arg2 ; | |
17376 | PyObject * obj0 = 0 ; | |
17377 | PyObject * obj1 = 0 ; | |
17378 | char *kwnames[] = { | |
17379 | (char *) "self",(char *) "enable", NULL | |
17380 | }; | |
17381 | ||
17382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
17383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 17384 | { |
994141e6 | 17385 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
17386 | if (PyErr_Occurred()) SWIG_fail; |
17387 | } | |
d14a1e28 RD |
17388 | { |
17389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17390 | (arg1)->Enable(arg2); | |
17391 | ||
17392 | wxPyEndAllowThreads(__tstate); | |
17393 | if (PyErr_Occurred()) SWIG_fail; | |
17394 | } | |
17395 | Py_INCREF(Py_None); resultobj = Py_None; | |
17396 | return resultobj; | |
17397 | fail: | |
17398 | return NULL; | |
17399 | } | |
17400 | ||
17401 | ||
17402 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17403 | PyObject *resultobj; | |
17404 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17405 | wxString *arg2 = 0 ; | |
e811c8ce | 17406 | bool temp2 = False ; |
d14a1e28 RD |
17407 | PyObject * obj0 = 0 ; |
17408 | PyObject * obj1 = 0 ; | |
17409 | char *kwnames[] = { | |
17410 | (char *) "self",(char *) "text", NULL | |
17411 | }; | |
17412 | ||
17413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
17414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17415 | { | |
17416 | arg2 = wxString_in_helper(obj1); | |
17417 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 17418 | temp2 = True; |
d14a1e28 RD |
17419 | } |
17420 | { | |
17421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17422 | (arg1)->SetText((wxString const &)*arg2); | |
17423 | ||
17424 | wxPyEndAllowThreads(__tstate); | |
17425 | if (PyErr_Occurred()) SWIG_fail; | |
17426 | } | |
17427 | Py_INCREF(Py_None); resultobj = Py_None; | |
17428 | { | |
17429 | if (temp2) | |
17430 | delete arg2; | |
17431 | } | |
17432 | return resultobj; | |
17433 | fail: | |
17434 | { | |
17435 | if (temp2) | |
17436 | delete arg2; | |
17437 | } | |
17438 | return NULL; | |
17439 | } | |
17440 | ||
17441 | ||
17442 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17443 | PyObject *resultobj; | |
17444 | long arg1 ; | |
994141e6 | 17445 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17446 | char *kwnames[] = { |
17447 | (char *) "updateInterval", NULL | |
17448 | }; | |
17449 | ||
994141e6 RD |
17450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; |
17451 | { | |
17452 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
17453 | if (PyErr_Occurred()) SWIG_fail; | |
17454 | } | |
d14a1e28 RD |
17455 | { |
17456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17457 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
17458 | ||
17459 | wxPyEndAllowThreads(__tstate); | |
17460 | if (PyErr_Occurred()) SWIG_fail; | |
17461 | } | |
17462 | Py_INCREF(Py_None); resultobj = Py_None; | |
17463 | return resultobj; | |
17464 | fail: | |
17465 | return NULL; | |
17466 | } | |
17467 | ||
17468 | ||
17469 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17470 | PyObject *resultobj; | |
17471 | long result; | |
17472 | char *kwnames[] = { | |
17473 | NULL | |
17474 | }; | |
17475 | ||
17476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
17477 | { | |
17478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17479 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
17480 | ||
17481 | wxPyEndAllowThreads(__tstate); | |
17482 | if (PyErr_Occurred()) SWIG_fail; | |
17483 | } | |
994141e6 | 17484 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
17485 | return resultobj; |
17486 | fail: | |
17487 | return NULL; | |
17488 | } | |
17489 | ||
17490 | ||
17491 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17492 | PyObject *resultobj; | |
17493 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17494 | bool result; | |
17495 | PyObject * obj0 = 0 ; | |
17496 | char *kwnames[] = { | |
17497 | (char *) "win", NULL | |
17498 | }; | |
17499 | ||
17500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
17501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17502 | { | |
17503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17504 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
17505 | ||
17506 | wxPyEndAllowThreads(__tstate); | |
17507 | if (PyErr_Occurred()) SWIG_fail; | |
17508 | } | |
4d5c3d91 | 17509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17510 | return resultobj; |
17511 | fail: | |
17512 | return NULL; | |
17513 | } | |
17514 | ||
17515 | ||
17516 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17517 | PyObject *resultobj; | |
17518 | char *kwnames[] = { | |
17519 | NULL | |
17520 | }; | |
17521 | ||
17522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
17523 | { | |
17524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17525 | wxUpdateUIEvent::ResetUpdateTime(); | |
17526 | ||
17527 | wxPyEndAllowThreads(__tstate); | |
17528 | if (PyErr_Occurred()) SWIG_fail; | |
17529 | } | |
17530 | Py_INCREF(Py_None); resultobj = Py_None; | |
17531 | return resultobj; | |
17532 | fail: | |
17533 | return NULL; | |
17534 | } | |
17535 | ||
17536 | ||
17537 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17538 | PyObject *resultobj; | |
17539 | int arg1 ; | |
994141e6 | 17540 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17541 | char *kwnames[] = { |
17542 | (char *) "mode", NULL | |
17543 | }; | |
17544 | ||
994141e6 RD |
17545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; |
17546 | { | |
17547 | arg1 = (wxUpdateUIMode) SWIG_PyObj_AsInt(obj0); | |
17548 | if (PyErr_Occurred()) SWIG_fail; | |
17549 | } | |
d14a1e28 RD |
17550 | { |
17551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17552 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
17553 | ||
17554 | wxPyEndAllowThreads(__tstate); | |
17555 | if (PyErr_Occurred()) SWIG_fail; | |
17556 | } | |
17557 | Py_INCREF(Py_None); resultobj = Py_None; | |
17558 | return resultobj; | |
17559 | fail: | |
17560 | return NULL; | |
17561 | } | |
17562 | ||
17563 | ||
17564 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17565 | PyObject *resultobj; | |
17566 | int result; | |
17567 | char *kwnames[] = { | |
17568 | NULL | |
17569 | }; | |
17570 | ||
17571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
17572 | { | |
17573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17574 | result = (int)wxUpdateUIEvent::GetMode(); | |
17575 | ||
17576 | wxPyEndAllowThreads(__tstate); | |
17577 | if (PyErr_Occurred()) SWIG_fail; | |
17578 | } | |
994141e6 | 17579 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17580 | return resultobj; |
17581 | fail: | |
17582 | return NULL; | |
17583 | } | |
17584 | ||
17585 | ||
17586 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
17587 | PyObject *obj; | |
17588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17589 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
17590 | Py_INCREF(obj); | |
17591 | return Py_BuildValue((char *)""); | |
17592 | } | |
17593 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17594 | PyObject *resultobj; | |
17595 | wxSysColourChangedEvent *result; | |
17596 | char *kwnames[] = { | |
17597 | NULL | |
17598 | }; | |
17599 | ||
17600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
17601 | { | |
17602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17603 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
17604 | ||
17605 | wxPyEndAllowThreads(__tstate); | |
17606 | if (PyErr_Occurred()) SWIG_fail; | |
17607 | } | |
17608 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
17609 | return resultobj; | |
17610 | fail: | |
17611 | return NULL; | |
17612 | } | |
17613 | ||
17614 | ||
17615 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17616 | PyObject *obj; | |
17617 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17618 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
17619 | Py_INCREF(obj); | |
17620 | return Py_BuildValue((char *)""); | |
17621 | } | |
17622 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17623 | PyObject *resultobj; | |
e811c8ce | 17624 | int arg1 = (int) 0 ; |
d14a1e28 RD |
17625 | wxWindow *arg2 = (wxWindow *) NULL ; |
17626 | wxMouseCaptureChangedEvent *result; | |
994141e6 | 17627 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17628 | PyObject * obj1 = 0 ; |
17629 | char *kwnames[] = { | |
17630 | (char *) "winid",(char *) "gainedCapture", NULL | |
17631 | }; | |
17632 | ||
994141e6 RD |
17633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; |
17634 | if (obj0) { | |
17635 | { | |
17636 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17637 | if (PyErr_Occurred()) SWIG_fail; | |
17638 | } | |
17639 | } | |
d14a1e28 RD |
17640 | if (obj1) { |
17641 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17642 | } | |
17643 | { | |
17644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17645 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
17646 | ||
17647 | wxPyEndAllowThreads(__tstate); | |
17648 | if (PyErr_Occurred()) SWIG_fail; | |
17649 | } | |
17650 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
17651 | return resultobj; | |
17652 | fail: | |
17653 | return NULL; | |
17654 | } | |
17655 | ||
17656 | ||
17657 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17658 | PyObject *resultobj; | |
17659 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
17660 | wxWindow *result; | |
17661 | PyObject * obj0 = 0 ; | |
17662 | char *kwnames[] = { | |
17663 | (char *) "self", NULL | |
17664 | }; | |
17665 | ||
17666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
17667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseCaptureChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17668 | { | |
17669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17670 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
17671 | ||
17672 | wxPyEndAllowThreads(__tstate); | |
17673 | if (PyErr_Occurred()) SWIG_fail; | |
17674 | } | |
17675 | { | |
17676 | resultobj = wxPyMake_wxObject(result); | |
17677 | } | |
17678 | return resultobj; | |
17679 | fail: | |
17680 | return NULL; | |
17681 | } | |
17682 | ||
17683 | ||
17684 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17685 | PyObject *obj; | |
17686 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17687 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
17688 | Py_INCREF(obj); | |
17689 | return Py_BuildValue((char *)""); | |
17690 | } | |
17691 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17692 | PyObject *resultobj; | |
17693 | wxDisplayChangedEvent *result; | |
17694 | char *kwnames[] = { | |
17695 | NULL | |
17696 | }; | |
17697 | ||
17698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
17699 | { | |
17700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17701 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
17702 | ||
17703 | wxPyEndAllowThreads(__tstate); | |
17704 | if (PyErr_Occurred()) SWIG_fail; | |
17705 | } | |
17706 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
17707 | return resultobj; | |
17708 | fail: | |
17709 | return NULL; | |
17710 | } | |
17711 | ||
17712 | ||
17713 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17714 | PyObject *obj; | |
17715 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17716 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
17717 | Py_INCREF(obj); | |
17718 | return Py_BuildValue((char *)""); | |
17719 | } | |
17720 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17721 | PyObject *resultobj; | |
e811c8ce | 17722 | int arg1 = (int) 0 ; |
d14a1e28 | 17723 | wxPaletteChangedEvent *result; |
994141e6 | 17724 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17725 | char *kwnames[] = { |
17726 | (char *) "id", NULL | |
17727 | }; | |
17728 | ||
994141e6 RD |
17729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; |
17730 | if (obj0) { | |
17731 | { | |
17732 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17733 | if (PyErr_Occurred()) SWIG_fail; | |
17734 | } | |
17735 | } | |
d14a1e28 RD |
17736 | { |
17737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17738 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
17739 | ||
17740 | wxPyEndAllowThreads(__tstate); | |
17741 | if (PyErr_Occurred()) SWIG_fail; | |
17742 | } | |
17743 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
17744 | return resultobj; | |
17745 | fail: | |
17746 | return NULL; | |
17747 | } | |
17748 | ||
17749 | ||
17750 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17751 | PyObject *resultobj; | |
17752 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
17753 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17754 | PyObject * obj0 = 0 ; | |
17755 | PyObject * obj1 = 0 ; | |
17756 | char *kwnames[] = { | |
17757 | (char *) "self",(char *) "win", NULL | |
17758 | }; | |
17759 | ||
17760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
17761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17762 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17763 | { | |
17764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17765 | (arg1)->SetChangedWindow(arg2); | |
17766 | ||
17767 | wxPyEndAllowThreads(__tstate); | |
17768 | if (PyErr_Occurred()) SWIG_fail; | |
17769 | } | |
17770 | Py_INCREF(Py_None); resultobj = Py_None; | |
17771 | return resultobj; | |
17772 | fail: | |
17773 | return NULL; | |
17774 | } | |
17775 | ||
17776 | ||
17777 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17778 | PyObject *resultobj; | |
17779 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
17780 | wxWindow *result; | |
17781 | PyObject * obj0 = 0 ; | |
17782 | char *kwnames[] = { | |
17783 | (char *) "self", NULL | |
17784 | }; | |
17785 | ||
17786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
17787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17788 | { | |
17789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17790 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
17791 | ||
17792 | wxPyEndAllowThreads(__tstate); | |
17793 | if (PyErr_Occurred()) SWIG_fail; | |
17794 | } | |
17795 | { | |
17796 | resultobj = wxPyMake_wxObject(result); | |
17797 | } | |
17798 | return resultobj; | |
17799 | fail: | |
17800 | return NULL; | |
17801 | } | |
17802 | ||
17803 | ||
17804 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17805 | PyObject *obj; | |
17806 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17807 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
17808 | Py_INCREF(obj); | |
17809 | return Py_BuildValue((char *)""); | |
17810 | } | |
17811 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17812 | PyObject *resultobj; | |
e811c8ce | 17813 | int arg1 = (int) 0 ; |
d14a1e28 | 17814 | wxQueryNewPaletteEvent *result; |
994141e6 | 17815 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17816 | char *kwnames[] = { |
17817 | (char *) "winid", NULL | |
17818 | }; | |
17819 | ||
994141e6 RD |
17820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; |
17821 | if (obj0) { | |
17822 | { | |
17823 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17824 | if (PyErr_Occurred()) SWIG_fail; | |
17825 | } | |
17826 | } | |
d14a1e28 RD |
17827 | { |
17828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17829 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
17830 | ||
17831 | wxPyEndAllowThreads(__tstate); | |
17832 | if (PyErr_Occurred()) SWIG_fail; | |
17833 | } | |
17834 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
17835 | return resultobj; | |
17836 | fail: | |
17837 | return NULL; | |
17838 | } | |
17839 | ||
17840 | ||
17841 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17842 | PyObject *resultobj; | |
17843 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
17844 | bool arg2 ; | |
17845 | PyObject * obj0 = 0 ; | |
17846 | PyObject * obj1 = 0 ; | |
17847 | char *kwnames[] = { | |
17848 | (char *) "self",(char *) "realized", NULL | |
17849 | }; | |
17850 | ||
17851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
17852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 17853 | { |
994141e6 | 17854 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
17855 | if (PyErr_Occurred()) SWIG_fail; |
17856 | } | |
d14a1e28 RD |
17857 | { |
17858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17859 | (arg1)->SetPaletteRealized(arg2); | |
17860 | ||
17861 | wxPyEndAllowThreads(__tstate); | |
17862 | if (PyErr_Occurred()) SWIG_fail; | |
17863 | } | |
17864 | Py_INCREF(Py_None); resultobj = Py_None; | |
17865 | return resultobj; | |
17866 | fail: | |
17867 | return NULL; | |
17868 | } | |
17869 | ||
17870 | ||
17871 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17872 | PyObject *resultobj; | |
17873 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
17874 | bool result; | |
17875 | PyObject * obj0 = 0 ; | |
17876 | char *kwnames[] = { | |
17877 | (char *) "self", NULL | |
17878 | }; | |
17879 | ||
17880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
17881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17882 | { | |
17883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17884 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
17885 | ||
17886 | wxPyEndAllowThreads(__tstate); | |
17887 | if (PyErr_Occurred()) SWIG_fail; | |
17888 | } | |
4d5c3d91 | 17889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17890 | return resultobj; |
17891 | fail: | |
17892 | return NULL; | |
17893 | } | |
17894 | ||
17895 | ||
17896 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
17897 | PyObject *obj; | |
17898 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17899 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
17900 | Py_INCREF(obj); | |
17901 | return Py_BuildValue((char *)""); | |
17902 | } | |
17903 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17904 | PyObject *resultobj; | |
17905 | wxNavigationKeyEvent *result; | |
17906 | char *kwnames[] = { | |
17907 | NULL | |
17908 | }; | |
17909 | ||
17910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
17911 | { | |
17912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17913 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
17914 | ||
17915 | wxPyEndAllowThreads(__tstate); | |
17916 | if (PyErr_Occurred()) SWIG_fail; | |
17917 | } | |
17918 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
17919 | return resultobj; | |
17920 | fail: | |
17921 | return NULL; | |
17922 | } | |
17923 | ||
17924 | ||
17925 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17926 | PyObject *resultobj; | |
17927 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
17928 | bool result; | |
17929 | PyObject * obj0 = 0 ; | |
17930 | char *kwnames[] = { | |
17931 | (char *) "self", NULL | |
17932 | }; | |
17933 | ||
17934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
17935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17936 | { | |
17937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17938 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
17939 | ||
17940 | wxPyEndAllowThreads(__tstate); | |
17941 | if (PyErr_Occurred()) SWIG_fail; | |
17942 | } | |
4d5c3d91 | 17943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17944 | return resultobj; |
17945 | fail: | |
17946 | return NULL; | |
17947 | } | |
17948 | ||
17949 | ||
17950 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17951 | PyObject *resultobj; | |
17952 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
17953 | bool arg2 ; | |
17954 | PyObject * obj0 = 0 ; | |
17955 | PyObject * obj1 = 0 ; | |
17956 | char *kwnames[] = { | |
17957 | (char *) "self",(char *) "bForward", NULL | |
17958 | }; | |
17959 | ||
17960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
17961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 17962 | { |
994141e6 | 17963 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
17964 | if (PyErr_Occurred()) SWIG_fail; |
17965 | } | |
d14a1e28 RD |
17966 | { |
17967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17968 | (arg1)->SetDirection(arg2); | |
17969 | ||
17970 | wxPyEndAllowThreads(__tstate); | |
17971 | if (PyErr_Occurred()) SWIG_fail; | |
17972 | } | |
17973 | Py_INCREF(Py_None); resultobj = Py_None; | |
17974 | return resultobj; | |
17975 | fail: | |
17976 | return NULL; | |
17977 | } | |
17978 | ||
17979 | ||
17980 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17981 | PyObject *resultobj; | |
17982 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
17983 | bool result; | |
17984 | PyObject * obj0 = 0 ; | |
17985 | char *kwnames[] = { | |
17986 | (char *) "self", NULL | |
17987 | }; | |
17988 | ||
17989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
17990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17991 | { | |
17992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17993 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
17994 | ||
17995 | wxPyEndAllowThreads(__tstate); | |
17996 | if (PyErr_Occurred()) SWIG_fail; | |
17997 | } | |
4d5c3d91 | 17998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17999 | return resultobj; |
18000 | fail: | |
18001 | return NULL; | |
18002 | } | |
18003 | ||
18004 | ||
18005 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18006 | PyObject *resultobj; | |
18007 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18008 | bool arg2 ; | |
18009 | PyObject * obj0 = 0 ; | |
18010 | PyObject * obj1 = 0 ; | |
18011 | char *kwnames[] = { | |
18012 | (char *) "self",(char *) "bIs", NULL | |
18013 | }; | |
18014 | ||
18015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
18016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 18017 | { |
994141e6 | 18018 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
18019 | if (PyErr_Occurred()) SWIG_fail; |
18020 | } | |
d14a1e28 RD |
18021 | { |
18022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18023 | (arg1)->SetWindowChange(arg2); | |
18024 | ||
18025 | wxPyEndAllowThreads(__tstate); | |
18026 | if (PyErr_Occurred()) SWIG_fail; | |
18027 | } | |
18028 | Py_INCREF(Py_None); resultobj = Py_None; | |
18029 | return resultobj; | |
18030 | fail: | |
18031 | return NULL; | |
18032 | } | |
18033 | ||
18034 | ||
18035 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18036 | PyObject *resultobj; | |
18037 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18038 | wxWindow *result; | |
18039 | PyObject * obj0 = 0 ; | |
18040 | char *kwnames[] = { | |
18041 | (char *) "self", NULL | |
18042 | }; | |
18043 | ||
18044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
18045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18046 | { | |
18047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18048 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18049 | ||
18050 | wxPyEndAllowThreads(__tstate); | |
18051 | if (PyErr_Occurred()) SWIG_fail; | |
18052 | } | |
18053 | { | |
18054 | resultobj = wxPyMake_wxObject(result); | |
18055 | } | |
18056 | return resultobj; | |
18057 | fail: | |
18058 | return NULL; | |
18059 | } | |
18060 | ||
18061 | ||
18062 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18063 | PyObject *resultobj; | |
18064 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18065 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18066 | PyObject * obj0 = 0 ; | |
18067 | PyObject * obj1 = 0 ; | |
18068 | char *kwnames[] = { | |
18069 | (char *) "self",(char *) "win", NULL | |
18070 | }; | |
18071 | ||
18072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
18073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18074 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18075 | { | |
18076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18077 | (arg1)->SetCurrentFocus(arg2); | |
18078 | ||
18079 | wxPyEndAllowThreads(__tstate); | |
18080 | if (PyErr_Occurred()) SWIG_fail; | |
18081 | } | |
18082 | Py_INCREF(Py_None); resultobj = Py_None; | |
18083 | return resultobj; | |
18084 | fail: | |
18085 | return NULL; | |
18086 | } | |
18087 | ||
18088 | ||
18089 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18090 | PyObject *obj; | |
18091 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18092 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18093 | Py_INCREF(obj); | |
18094 | return Py_BuildValue((char *)""); | |
18095 | } | |
18096 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18097 | PyObject *resultobj; | |
18098 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18099 | wxWindowCreateEvent *result; | |
18100 | PyObject * obj0 = 0 ; | |
18101 | char *kwnames[] = { | |
18102 | (char *) "win", NULL | |
18103 | }; | |
18104 | ||
18105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18106 | if (obj0) { | |
18107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18108 | } | |
18109 | { | |
18110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18111 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18112 | ||
18113 | wxPyEndAllowThreads(__tstate); | |
18114 | if (PyErr_Occurred()) SWIG_fail; | |
18115 | } | |
18116 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowCreateEvent, 1); | |
18117 | return resultobj; | |
18118 | fail: | |
18119 | return NULL; | |
18120 | } | |
18121 | ||
18122 | ||
18123 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18124 | PyObject *resultobj; | |
18125 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18126 | wxWindow *result; | |
18127 | PyObject * obj0 = 0 ; | |
18128 | char *kwnames[] = { | |
18129 | (char *) "self", NULL | |
18130 | }; | |
18131 | ||
18132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
18133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowCreateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18134 | { | |
18135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18136 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18137 | ||
18138 | wxPyEndAllowThreads(__tstate); | |
18139 | if (PyErr_Occurred()) SWIG_fail; | |
18140 | } | |
18141 | { | |
18142 | resultobj = wxPyMake_wxObject(result); | |
18143 | } | |
18144 | return resultobj; | |
18145 | fail: | |
18146 | return NULL; | |
18147 | } | |
18148 | ||
18149 | ||
18150 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18151 | PyObject *obj; | |
18152 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18153 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18154 | Py_INCREF(obj); | |
18155 | return Py_BuildValue((char *)""); | |
18156 | } | |
18157 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18158 | PyObject *resultobj; | |
18159 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18160 | wxWindowDestroyEvent *result; | |
18161 | PyObject * obj0 = 0 ; | |
18162 | char *kwnames[] = { | |
18163 | (char *) "win", NULL | |
18164 | }; | |
18165 | ||
18166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18167 | if (obj0) { | |
18168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18169 | } | |
18170 | { | |
18171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18172 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18173 | ||
18174 | wxPyEndAllowThreads(__tstate); | |
18175 | if (PyErr_Occurred()) SWIG_fail; | |
18176 | } | |
18177 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
18178 | return resultobj; | |
18179 | fail: | |
18180 | return NULL; | |
18181 | } | |
18182 | ||
18183 | ||
18184 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18185 | PyObject *resultobj; | |
18186 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18187 | wxWindow *result; | |
18188 | PyObject * obj0 = 0 ; | |
18189 | char *kwnames[] = { | |
18190 | (char *) "self", NULL | |
18191 | }; | |
18192 | ||
18193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
18194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDestroyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18195 | { | |
18196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18197 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18198 | ||
18199 | wxPyEndAllowThreads(__tstate); | |
18200 | if (PyErr_Occurred()) SWIG_fail; | |
18201 | } | |
18202 | { | |
18203 | resultobj = wxPyMake_wxObject(result); | |
18204 | } | |
18205 | return resultobj; | |
18206 | fail: | |
18207 | return NULL; | |
18208 | } | |
18209 | ||
18210 | ||
18211 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
18212 | PyObject *obj; | |
18213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18214 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18215 | Py_INCREF(obj); | |
18216 | return Py_BuildValue((char *)""); | |
18217 | } | |
18218 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18219 | PyObject *resultobj; | |
18220 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 18221 | int arg2 = (int) 0 ; |
d14a1e28 RD |
18222 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18223 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18224 | wxContextMenuEvent *result; | |
18225 | wxPoint temp3 ; | |
994141e6 RD |
18226 | PyObject * obj0 = 0 ; |
18227 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18228 | PyObject * obj2 = 0 ; |
18229 | char *kwnames[] = { | |
18230 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18231 | }; | |
18232 | ||
994141e6 RD |
18233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18234 | if (obj0) { | |
18235 | { | |
18236 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
18237 | if (PyErr_Occurred()) SWIG_fail; | |
18238 | } | |
18239 | } | |
18240 | if (obj1) { | |
18241 | { | |
18242 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18243 | if (PyErr_Occurred()) SWIG_fail; | |
18244 | } | |
18245 | } | |
d14a1e28 RD |
18246 | if (obj2) { |
18247 | { | |
18248 | arg3 = &temp3; | |
18249 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18250 | } | |
18251 | } | |
18252 | { | |
18253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18254 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18255 | ||
18256 | wxPyEndAllowThreads(__tstate); | |
18257 | if (PyErr_Occurred()) SWIG_fail; | |
18258 | } | |
18259 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextMenuEvent, 1); | |
18260 | return resultobj; | |
18261 | fail: | |
18262 | return NULL; | |
18263 | } | |
18264 | ||
18265 | ||
18266 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18267 | PyObject *resultobj; | |
18268 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18269 | wxPoint *result; | |
18270 | PyObject * obj0 = 0 ; | |
18271 | char *kwnames[] = { | |
18272 | (char *) "self", NULL | |
18273 | }; | |
18274 | ||
18275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
18276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18277 | { | |
18278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18279 | { | |
18280 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
18281 | result = (wxPoint *) &_result_ref; | |
18282 | } | |
18283 | ||
18284 | wxPyEndAllowThreads(__tstate); | |
18285 | if (PyErr_Occurred()) SWIG_fail; | |
18286 | } | |
18287 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
18288 | return resultobj; | |
18289 | fail: | |
18290 | return NULL; | |
18291 | } | |
18292 | ||
18293 | ||
18294 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18295 | PyObject *resultobj; | |
18296 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18297 | wxPoint *arg2 = 0 ; | |
18298 | wxPoint temp2 ; | |
18299 | PyObject * obj0 = 0 ; | |
18300 | PyObject * obj1 = 0 ; | |
18301 | char *kwnames[] = { | |
18302 | (char *) "self",(char *) "pos", NULL | |
18303 | }; | |
18304 | ||
18305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
18306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18307 | { | |
18308 | arg2 = &temp2; | |
18309 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18310 | } | |
18311 | { | |
18312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18313 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
18314 | ||
18315 | wxPyEndAllowThreads(__tstate); | |
18316 | if (PyErr_Occurred()) SWIG_fail; | |
18317 | } | |
18318 | Py_INCREF(Py_None); resultobj = Py_None; | |
18319 | return resultobj; | |
18320 | fail: | |
18321 | return NULL; | |
18322 | } | |
18323 | ||
18324 | ||
18325 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
18326 | PyObject *obj; | |
18327 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18328 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
18329 | Py_INCREF(obj); | |
18330 | return Py_BuildValue((char *)""); | |
18331 | } | |
18332 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18333 | PyObject *resultobj; | |
18334 | wxIdleEvent *result; | |
18335 | char *kwnames[] = { | |
18336 | NULL | |
18337 | }; | |
18338 | ||
18339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
18340 | { | |
18341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18342 | result = (wxIdleEvent *)new wxIdleEvent(); | |
18343 | ||
18344 | wxPyEndAllowThreads(__tstate); | |
18345 | if (PyErr_Occurred()) SWIG_fail; | |
18346 | } | |
18347 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIdleEvent, 1); | |
18348 | return resultobj; | |
18349 | fail: | |
18350 | return NULL; | |
18351 | } | |
18352 | ||
18353 | ||
18354 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18355 | PyObject *resultobj; | |
18356 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
e811c8ce | 18357 | bool arg2 = (bool) True ; |
d14a1e28 RD |
18358 | PyObject * obj0 = 0 ; |
18359 | PyObject * obj1 = 0 ; | |
18360 | char *kwnames[] = { | |
18361 | (char *) "self",(char *) "needMore", NULL | |
18362 | }; | |
18363 | ||
18364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
18365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18366 | if (obj1) { | |
a41e16b6 | 18367 | { |
994141e6 | 18368 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
18369 | if (PyErr_Occurred()) SWIG_fail; |
18370 | } | |
d14a1e28 RD |
18371 | } |
18372 | { | |
18373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18374 | (arg1)->RequestMore(arg2); | |
18375 | ||
18376 | wxPyEndAllowThreads(__tstate); | |
18377 | if (PyErr_Occurred()) SWIG_fail; | |
18378 | } | |
18379 | Py_INCREF(Py_None); resultobj = Py_None; | |
18380 | return resultobj; | |
18381 | fail: | |
18382 | return NULL; | |
18383 | } | |
18384 | ||
18385 | ||
18386 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18387 | PyObject *resultobj; | |
18388 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
18389 | bool result; | |
18390 | PyObject * obj0 = 0 ; | |
18391 | char *kwnames[] = { | |
18392 | (char *) "self", NULL | |
18393 | }; | |
18394 | ||
18395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
18396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18397 | { | |
18398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18399 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
18400 | ||
18401 | wxPyEndAllowThreads(__tstate); | |
18402 | if (PyErr_Occurred()) SWIG_fail; | |
18403 | } | |
4d5c3d91 | 18404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18405 | return resultobj; |
18406 | fail: | |
18407 | return NULL; | |
18408 | } | |
18409 | ||
18410 | ||
18411 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18412 | PyObject *resultobj; | |
18413 | int arg1 ; | |
994141e6 | 18414 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18415 | char *kwnames[] = { |
18416 | (char *) "mode", NULL | |
18417 | }; | |
18418 | ||
994141e6 RD |
18419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; |
18420 | { | |
18421 | arg1 = (wxIdleMode) SWIG_PyObj_AsInt(obj0); | |
18422 | if (PyErr_Occurred()) SWIG_fail; | |
18423 | } | |
d14a1e28 RD |
18424 | { |
18425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18426 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
18427 | ||
18428 | wxPyEndAllowThreads(__tstate); | |
18429 | if (PyErr_Occurred()) SWIG_fail; | |
18430 | } | |
18431 | Py_INCREF(Py_None); resultobj = Py_None; | |
18432 | return resultobj; | |
18433 | fail: | |
18434 | return NULL; | |
18435 | } | |
18436 | ||
18437 | ||
18438 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18439 | PyObject *resultobj; | |
18440 | int result; | |
18441 | char *kwnames[] = { | |
18442 | NULL | |
18443 | }; | |
18444 | ||
18445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
18446 | { | |
18447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18448 | result = (int)wxIdleEvent::GetMode(); | |
18449 | ||
18450 | wxPyEndAllowThreads(__tstate); | |
18451 | if (PyErr_Occurred()) SWIG_fail; | |
18452 | } | |
994141e6 | 18453 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18454 | return resultobj; |
18455 | fail: | |
18456 | return NULL; | |
18457 | } | |
18458 | ||
18459 | ||
18460 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18461 | PyObject *resultobj; | |
18462 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18463 | bool result; | |
18464 | PyObject * obj0 = 0 ; | |
18465 | char *kwnames[] = { | |
18466 | (char *) "win", NULL | |
18467 | }; | |
18468 | ||
18469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
18470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18471 | { | |
18472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18473 | result = (bool)wxIdleEvent::CanSend(arg1); | |
18474 | ||
18475 | wxPyEndAllowThreads(__tstate); | |
18476 | if (PyErr_Occurred()) SWIG_fail; | |
18477 | } | |
4d5c3d91 | 18478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18479 | return resultobj; |
18480 | fail: | |
18481 | return NULL; | |
18482 | } | |
18483 | ||
18484 | ||
18485 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
18486 | PyObject *obj; | |
18487 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18488 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
18489 | Py_INCREF(obj); | |
18490 | return Py_BuildValue((char *)""); | |
18491 | } | |
18492 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18493 | PyObject *resultobj; | |
18494 | int arg1 = (int) 0 ; | |
18495 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
18496 | wxPyEvent *result; | |
994141e6 RD |
18497 | PyObject * obj0 = 0 ; |
18498 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18499 | char *kwnames[] = { |
18500 | (char *) "winid",(char *) "commandType", NULL | |
18501 | }; | |
18502 | ||
994141e6 RD |
18503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; |
18504 | if (obj0) { | |
18505 | { | |
18506 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
18507 | if (PyErr_Occurred()) SWIG_fail; | |
18508 | } | |
18509 | } | |
18510 | if (obj1) { | |
18511 | { | |
18512 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
18513 | if (PyErr_Occurred()) SWIG_fail; | |
18514 | } | |
18515 | } | |
d14a1e28 RD |
18516 | { |
18517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18518 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
18519 | ||
18520 | wxPyEndAllowThreads(__tstate); | |
18521 | if (PyErr_Occurred()) SWIG_fail; | |
18522 | } | |
18523 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyEvent, 1); | |
18524 | return resultobj; | |
18525 | fail: | |
18526 | return NULL; | |
18527 | } | |
18528 | ||
18529 | ||
18530 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18531 | PyObject *resultobj; | |
18532 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18533 | PyObject * obj0 = 0 ; | |
18534 | char *kwnames[] = { | |
18535 | (char *) "self", NULL | |
18536 | }; | |
18537 | ||
18538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
18539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18540 | { | |
18541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18542 | delete arg1; | |
18543 | ||
18544 | wxPyEndAllowThreads(__tstate); | |
18545 | if (PyErr_Occurred()) SWIG_fail; | |
18546 | } | |
18547 | Py_INCREF(Py_None); resultobj = Py_None; | |
18548 | return resultobj; | |
18549 | fail: | |
18550 | return NULL; | |
18551 | } | |
18552 | ||
18553 | ||
18554 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18555 | PyObject *resultobj; | |
18556 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18557 | PyObject *arg2 = (PyObject *) 0 ; | |
18558 | PyObject * obj0 = 0 ; | |
18559 | PyObject * obj1 = 0 ; | |
18560 | char *kwnames[] = { | |
18561 | (char *) "self",(char *) "self", NULL | |
18562 | }; | |
18563 | ||
18564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
18565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18566 | arg2 = obj1; | |
18567 | { | |
18568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18569 | (arg1)->SetSelf(arg2); | |
18570 | ||
18571 | wxPyEndAllowThreads(__tstate); | |
18572 | if (PyErr_Occurred()) SWIG_fail; | |
18573 | } | |
18574 | Py_INCREF(Py_None); resultobj = Py_None; | |
18575 | return resultobj; | |
18576 | fail: | |
18577 | return NULL; | |
18578 | } | |
18579 | ||
18580 | ||
18581 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18582 | PyObject *resultobj; | |
18583 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18584 | PyObject *result; | |
18585 | PyObject * obj0 = 0 ; | |
18586 | char *kwnames[] = { | |
18587 | (char *) "self", NULL | |
18588 | }; | |
18589 | ||
18590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
18591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18592 | { | |
18593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18594 | result = (PyObject *)(arg1)->GetSelf(); | |
18595 | ||
18596 | wxPyEndAllowThreads(__tstate); | |
18597 | if (PyErr_Occurred()) SWIG_fail; | |
18598 | } | |
18599 | resultobj = result; | |
18600 | return resultobj; | |
18601 | fail: | |
18602 | return NULL; | |
18603 | } | |
18604 | ||
18605 | ||
18606 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
18607 | PyObject *obj; | |
18608 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18609 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
18610 | Py_INCREF(obj); | |
18611 | return Py_BuildValue((char *)""); | |
18612 | } | |
18613 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18614 | PyObject *resultobj; | |
18615 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18616 | int arg2 = (int) 0 ; | |
18617 | wxPyCommandEvent *result; | |
994141e6 RD |
18618 | PyObject * obj0 = 0 ; |
18619 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18620 | char *kwnames[] = { |
18621 | (char *) "commandType",(char *) "id", NULL | |
18622 | }; | |
18623 | ||
994141e6 RD |
18624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; |
18625 | if (obj0) { | |
18626 | { | |
18627 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
18628 | if (PyErr_Occurred()) SWIG_fail; | |
18629 | } | |
18630 | } | |
18631 | if (obj1) { | |
18632 | { | |
18633 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18634 | if (PyErr_Occurred()) SWIG_fail; | |
18635 | } | |
18636 | } | |
d14a1e28 RD |
18637 | { |
18638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18639 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
18640 | ||
18641 | wxPyEndAllowThreads(__tstate); | |
18642 | if (PyErr_Occurred()) SWIG_fail; | |
18643 | } | |
18644 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyCommandEvent, 1); | |
18645 | return resultobj; | |
18646 | fail: | |
18647 | return NULL; | |
18648 | } | |
18649 | ||
18650 | ||
18651 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18652 | PyObject *resultobj; | |
18653 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18654 | PyObject * obj0 = 0 ; | |
18655 | char *kwnames[] = { | |
18656 | (char *) "self", NULL | |
18657 | }; | |
18658 | ||
18659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
18660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18661 | { | |
18662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18663 | delete arg1; | |
18664 | ||
18665 | wxPyEndAllowThreads(__tstate); | |
18666 | if (PyErr_Occurred()) SWIG_fail; | |
18667 | } | |
18668 | Py_INCREF(Py_None); resultobj = Py_None; | |
18669 | return resultobj; | |
18670 | fail: | |
18671 | return NULL; | |
18672 | } | |
18673 | ||
18674 | ||
18675 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18676 | PyObject *resultobj; | |
18677 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18678 | PyObject *arg2 = (PyObject *) 0 ; | |
18679 | PyObject * obj0 = 0 ; | |
18680 | PyObject * obj1 = 0 ; | |
18681 | char *kwnames[] = { | |
18682 | (char *) "self",(char *) "self", NULL | |
18683 | }; | |
18684 | ||
18685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
18686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18687 | arg2 = obj1; | |
18688 | { | |
18689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18690 | (arg1)->SetSelf(arg2); | |
18691 | ||
18692 | wxPyEndAllowThreads(__tstate); | |
18693 | if (PyErr_Occurred()) SWIG_fail; | |
18694 | } | |
18695 | Py_INCREF(Py_None); resultobj = Py_None; | |
18696 | return resultobj; | |
18697 | fail: | |
18698 | return NULL; | |
18699 | } | |
18700 | ||
18701 | ||
18702 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18703 | PyObject *resultobj; | |
18704 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18705 | PyObject *result; | |
18706 | PyObject * obj0 = 0 ; | |
18707 | char *kwnames[] = { | |
18708 | (char *) "self", NULL | |
18709 | }; | |
18710 | ||
18711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
18712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18713 | { | |
18714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18715 | result = (PyObject *)(arg1)->GetSelf(); | |
18716 | ||
18717 | wxPyEndAllowThreads(__tstate); | |
18718 | if (PyErr_Occurred()) SWIG_fail; | |
18719 | } | |
18720 | resultobj = result; | |
18721 | return resultobj; | |
18722 | fail: | |
18723 | return NULL; | |
18724 | } | |
18725 | ||
18726 | ||
18727 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
18728 | PyObject *obj; | |
18729 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18730 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
18731 | Py_INCREF(obj); | |
18732 | return Py_BuildValue((char *)""); | |
18733 | } | |
18734 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18735 | PyObject *resultobj; | |
18736 | wxPyApp *result; | |
18737 | char *kwnames[] = { | |
18738 | NULL | |
18739 | }; | |
18740 | ||
18741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
18742 | { | |
18743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18744 | result = (wxPyApp *)new_wxPyApp(); | |
18745 | ||
18746 | wxPyEndAllowThreads(__tstate); | |
18747 | if (PyErr_Occurred()) SWIG_fail; | |
18748 | } | |
18749 | { | |
18750 | resultobj = wxPyMake_wxObject(result); | |
18751 | } | |
18752 | return resultobj; | |
18753 | fail: | |
18754 | return NULL; | |
18755 | } | |
18756 | ||
18757 | ||
18758 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18759 | PyObject *resultobj; | |
18760 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18761 | PyObject * obj0 = 0 ; | |
18762 | char *kwnames[] = { | |
18763 | (char *) "self", NULL | |
18764 | }; | |
18765 | ||
18766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
18767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18768 | { | |
18769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18770 | delete arg1; | |
18771 | ||
18772 | wxPyEndAllowThreads(__tstate); | |
18773 | if (PyErr_Occurred()) SWIG_fail; | |
18774 | } | |
18775 | Py_INCREF(Py_None); resultobj = Py_None; | |
18776 | return resultobj; | |
18777 | fail: | |
18778 | return NULL; | |
18779 | } | |
18780 | ||
18781 | ||
18782 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18783 | PyObject *resultobj; | |
18784 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18785 | PyObject *arg2 = (PyObject *) 0 ; | |
18786 | PyObject *arg3 = (PyObject *) 0 ; | |
18787 | PyObject * obj0 = 0 ; | |
18788 | PyObject * obj1 = 0 ; | |
18789 | PyObject * obj2 = 0 ; | |
18790 | char *kwnames[] = { | |
18791 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
18792 | }; | |
18793 | ||
18794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18796 | arg2 = obj1; | |
18797 | arg3 = obj2; | |
18798 | { | |
18799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18800 | (arg1)->_setCallbackInfo(arg2,arg3); | |
18801 | ||
18802 | wxPyEndAllowThreads(__tstate); | |
18803 | if (PyErr_Occurred()) SWIG_fail; | |
18804 | } | |
18805 | Py_INCREF(Py_None); resultobj = Py_None; | |
18806 | return resultobj; | |
18807 | fail: | |
18808 | return NULL; | |
18809 | } | |
18810 | ||
18811 | ||
18812 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18813 | PyObject *resultobj; | |
18814 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18815 | wxString result; | |
18816 | PyObject * obj0 = 0 ; | |
18817 | char *kwnames[] = { | |
18818 | (char *) "self", NULL | |
18819 | }; | |
18820 | ||
18821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
18822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18823 | { | |
18824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18825 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
18826 | ||
18827 | wxPyEndAllowThreads(__tstate); | |
18828 | if (PyErr_Occurred()) SWIG_fail; | |
18829 | } | |
18830 | { | |
18831 | #if wxUSE_UNICODE | |
18832 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18833 | #else | |
18834 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18835 | #endif | |
18836 | } | |
18837 | return resultobj; | |
18838 | fail: | |
18839 | return NULL; | |
18840 | } | |
18841 | ||
18842 | ||
18843 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18844 | PyObject *resultobj; | |
18845 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18846 | wxString *arg2 = 0 ; | |
e811c8ce | 18847 | bool temp2 = False ; |
d14a1e28 RD |
18848 | PyObject * obj0 = 0 ; |
18849 | PyObject * obj1 = 0 ; | |
18850 | char *kwnames[] = { | |
18851 | (char *) "self",(char *) "name", NULL | |
18852 | }; | |
18853 | ||
18854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
18855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18856 | { | |
18857 | arg2 = wxString_in_helper(obj1); | |
18858 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 18859 | temp2 = True; |
d14a1e28 RD |
18860 | } |
18861 | { | |
18862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18863 | (arg1)->SetAppName((wxString const &)*arg2); | |
18864 | ||
18865 | wxPyEndAllowThreads(__tstate); | |
18866 | if (PyErr_Occurred()) SWIG_fail; | |
18867 | } | |
18868 | Py_INCREF(Py_None); resultobj = Py_None; | |
18869 | { | |
18870 | if (temp2) | |
18871 | delete arg2; | |
18872 | } | |
18873 | return resultobj; | |
18874 | fail: | |
18875 | { | |
18876 | if (temp2) | |
18877 | delete arg2; | |
18878 | } | |
18879 | return NULL; | |
18880 | } | |
18881 | ||
18882 | ||
18883 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18884 | PyObject *resultobj; | |
18885 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18886 | wxString result; | |
18887 | PyObject * obj0 = 0 ; | |
18888 | char *kwnames[] = { | |
18889 | (char *) "self", NULL | |
18890 | }; | |
18891 | ||
18892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
18893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18894 | { | |
18895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18896 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
18897 | ||
18898 | wxPyEndAllowThreads(__tstate); | |
18899 | if (PyErr_Occurred()) SWIG_fail; | |
18900 | } | |
18901 | { | |
18902 | #if wxUSE_UNICODE | |
18903 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18904 | #else | |
18905 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18906 | #endif | |
18907 | } | |
18908 | return resultobj; | |
18909 | fail: | |
18910 | return NULL; | |
18911 | } | |
18912 | ||
18913 | ||
18914 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18915 | PyObject *resultobj; | |
18916 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18917 | wxString *arg2 = 0 ; | |
e811c8ce | 18918 | bool temp2 = False ; |
d14a1e28 RD |
18919 | PyObject * obj0 = 0 ; |
18920 | PyObject * obj1 = 0 ; | |
18921 | char *kwnames[] = { | |
18922 | (char *) "self",(char *) "name", NULL | |
18923 | }; | |
18924 | ||
18925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
18926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18927 | { | |
18928 | arg2 = wxString_in_helper(obj1); | |
18929 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 18930 | temp2 = True; |
d14a1e28 RD |
18931 | } |
18932 | { | |
18933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18934 | (arg1)->SetClassName((wxString const &)*arg2); | |
18935 | ||
18936 | wxPyEndAllowThreads(__tstate); | |
18937 | if (PyErr_Occurred()) SWIG_fail; | |
18938 | } | |
18939 | Py_INCREF(Py_None); resultobj = Py_None; | |
18940 | { | |
18941 | if (temp2) | |
18942 | delete arg2; | |
18943 | } | |
18944 | return resultobj; | |
18945 | fail: | |
18946 | { | |
18947 | if (temp2) | |
18948 | delete arg2; | |
18949 | } | |
18950 | return NULL; | |
18951 | } | |
18952 | ||
18953 | ||
18954 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18955 | PyObject *resultobj; | |
18956 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18957 | wxString *result; | |
18958 | PyObject * obj0 = 0 ; | |
18959 | char *kwnames[] = { | |
18960 | (char *) "self", NULL | |
18961 | }; | |
18962 | ||
18963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
18964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18965 | { | |
18966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18967 | { | |
18968 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
18969 | result = (wxString *) &_result_ref; | |
18970 | } | |
18971 | ||
18972 | wxPyEndAllowThreads(__tstate); | |
18973 | if (PyErr_Occurred()) SWIG_fail; | |
18974 | } | |
cc6dd355 RD |
18975 | { |
18976 | #if wxUSE_UNICODE | |
18977 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18978 | #else | |
18979 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18980 | #endif | |
18981 | } | |
d14a1e28 RD |
18982 | return resultobj; |
18983 | fail: | |
18984 | return NULL; | |
18985 | } | |
18986 | ||
18987 | ||
18988 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18989 | PyObject *resultobj; | |
18990 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18991 | wxString *arg2 = 0 ; | |
e811c8ce | 18992 | bool temp2 = False ; |
d14a1e28 RD |
18993 | PyObject * obj0 = 0 ; |
18994 | PyObject * obj1 = 0 ; | |
18995 | char *kwnames[] = { | |
18996 | (char *) "self",(char *) "name", NULL | |
18997 | }; | |
18998 | ||
18999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
19000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19001 | { | |
19002 | arg2 = wxString_in_helper(obj1); | |
19003 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19004 | temp2 = True; |
d14a1e28 RD |
19005 | } |
19006 | { | |
19007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19008 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19009 | ||
19010 | wxPyEndAllowThreads(__tstate); | |
19011 | if (PyErr_Occurred()) SWIG_fail; | |
19012 | } | |
19013 | Py_INCREF(Py_None); resultobj = Py_None; | |
19014 | { | |
19015 | if (temp2) | |
19016 | delete arg2; | |
19017 | } | |
19018 | return resultobj; | |
19019 | fail: | |
19020 | { | |
19021 | if (temp2) | |
19022 | delete arg2; | |
19023 | } | |
19024 | return NULL; | |
19025 | } | |
19026 | ||
19027 | ||
19028 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19029 | PyObject *resultobj; | |
19030 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19031 | wxAppTraits *result; | |
19032 | PyObject * obj0 = 0 ; | |
19033 | char *kwnames[] = { | |
19034 | (char *) "self", NULL | |
19035 | }; | |
19036 | ||
19037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
19038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19039 | { | |
19040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19041 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19042 | ||
19043 | wxPyEndAllowThreads(__tstate); | |
19044 | if (PyErr_Occurred()) SWIG_fail; | |
19045 | } | |
19046 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAppTraits, 0); | |
19047 | return resultobj; | |
19048 | fail: | |
19049 | return NULL; | |
19050 | } | |
19051 | ||
19052 | ||
19053 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19054 | PyObject *resultobj; | |
19055 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19056 | PyObject * obj0 = 0 ; | |
19057 | char *kwnames[] = { | |
19058 | (char *) "self", NULL | |
19059 | }; | |
19060 | ||
19061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
19062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19063 | { | |
19064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19065 | (arg1)->ProcessPendingEvents(); | |
19066 | ||
19067 | wxPyEndAllowThreads(__tstate); | |
19068 | if (PyErr_Occurred()) SWIG_fail; | |
19069 | } | |
19070 | Py_INCREF(Py_None); resultobj = Py_None; | |
19071 | return resultobj; | |
19072 | fail: | |
19073 | return NULL; | |
19074 | } | |
19075 | ||
19076 | ||
19077 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19078 | PyObject *resultobj; | |
19079 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
e811c8ce | 19080 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19081 | bool result; |
19082 | PyObject * obj0 = 0 ; | |
19083 | PyObject * obj1 = 0 ; | |
19084 | char *kwnames[] = { | |
19085 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19086 | }; | |
19087 | ||
19088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
19089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19090 | if (obj1) { | |
a41e16b6 | 19091 | { |
994141e6 | 19092 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
19093 | if (PyErr_Occurred()) SWIG_fail; |
19094 | } | |
d14a1e28 RD |
19095 | } |
19096 | { | |
19097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19098 | result = (bool)(arg1)->Yield(arg2); | |
19099 | ||
19100 | wxPyEndAllowThreads(__tstate); | |
19101 | if (PyErr_Occurred()) SWIG_fail; | |
19102 | } | |
4d5c3d91 | 19103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19104 | return resultobj; |
19105 | fail: | |
19106 | return NULL; | |
19107 | } | |
19108 | ||
19109 | ||
19110 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19111 | PyObject *resultobj; | |
19112 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19113 | PyObject * obj0 = 0 ; | |
19114 | char *kwnames[] = { | |
19115 | (char *) "self", NULL | |
19116 | }; | |
19117 | ||
19118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
19119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19120 | { | |
19121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19122 | (arg1)->WakeUpIdle(); | |
19123 | ||
19124 | wxPyEndAllowThreads(__tstate); | |
19125 | if (PyErr_Occurred()) SWIG_fail; | |
19126 | } | |
19127 | Py_INCREF(Py_None); resultobj = Py_None; | |
19128 | return resultobj; | |
19129 | fail: | |
19130 | return NULL; | |
19131 | } | |
19132 | ||
19133 | ||
19134 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19135 | PyObject *resultobj; | |
19136 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19137 | int result; | |
19138 | PyObject * obj0 = 0 ; | |
19139 | char *kwnames[] = { | |
19140 | (char *) "self", NULL | |
19141 | }; | |
19142 | ||
19143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
19144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19145 | { | |
19146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19147 | result = (int)(arg1)->MainLoop(); | |
19148 | ||
19149 | wxPyEndAllowThreads(__tstate); | |
19150 | if (PyErr_Occurred()) SWIG_fail; | |
19151 | } | |
994141e6 | 19152 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19153 | return resultobj; |
19154 | fail: | |
19155 | return NULL; | |
19156 | } | |
19157 | ||
19158 | ||
19159 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19160 | PyObject *resultobj; | |
19161 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19162 | PyObject * obj0 = 0 ; | |
19163 | char *kwnames[] = { | |
19164 | (char *) "self", NULL | |
19165 | }; | |
19166 | ||
19167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
19168 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19169 | { | |
19170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19171 | (arg1)->Exit(); | |
19172 | ||
19173 | wxPyEndAllowThreads(__tstate); | |
19174 | if (PyErr_Occurred()) SWIG_fail; | |
19175 | } | |
19176 | Py_INCREF(Py_None); resultobj = Py_None; | |
19177 | return resultobj; | |
19178 | fail: | |
19179 | return NULL; | |
19180 | } | |
19181 | ||
19182 | ||
19183 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19184 | PyObject *resultobj; | |
19185 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19186 | PyObject * obj0 = 0 ; | |
19187 | char *kwnames[] = { | |
19188 | (char *) "self", NULL | |
19189 | }; | |
19190 | ||
19191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
19192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19193 | { | |
19194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19195 | (arg1)->ExitMainLoop(); | |
19196 | ||
19197 | wxPyEndAllowThreads(__tstate); | |
19198 | if (PyErr_Occurred()) SWIG_fail; | |
19199 | } | |
19200 | Py_INCREF(Py_None); resultobj = Py_None; | |
19201 | return resultobj; | |
19202 | fail: | |
19203 | return NULL; | |
19204 | } | |
19205 | ||
19206 | ||
19207 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19208 | PyObject *resultobj; | |
19209 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19210 | bool result; | |
19211 | PyObject * obj0 = 0 ; | |
19212 | char *kwnames[] = { | |
19213 | (char *) "self", NULL | |
19214 | }; | |
19215 | ||
19216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
19217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19218 | { | |
19219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19220 | result = (bool)(arg1)->Pending(); | |
19221 | ||
19222 | wxPyEndAllowThreads(__tstate); | |
19223 | if (PyErr_Occurred()) SWIG_fail; | |
19224 | } | |
4d5c3d91 | 19225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19226 | return resultobj; |
19227 | fail: | |
19228 | return NULL; | |
19229 | } | |
19230 | ||
19231 | ||
19232 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19233 | PyObject *resultobj; | |
19234 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19235 | bool result; | |
19236 | PyObject * obj0 = 0 ; | |
19237 | char *kwnames[] = { | |
19238 | (char *) "self", NULL | |
19239 | }; | |
19240 | ||
19241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
19242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19243 | { | |
19244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19245 | result = (bool)(arg1)->Dispatch(); | |
19246 | ||
19247 | wxPyEndAllowThreads(__tstate); | |
19248 | if (PyErr_Occurred()) SWIG_fail; | |
19249 | } | |
4d5c3d91 | 19250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19251 | return resultobj; |
19252 | fail: | |
19253 | return NULL; | |
19254 | } | |
19255 | ||
19256 | ||
19257 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19258 | PyObject *resultobj; | |
19259 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19260 | bool result; | |
19261 | PyObject * obj0 = 0 ; | |
19262 | char *kwnames[] = { | |
19263 | (char *) "self", NULL | |
19264 | }; | |
19265 | ||
19266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
19267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19268 | { | |
19269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19270 | result = (bool)(arg1)->ProcessIdle(); | |
19271 | ||
19272 | wxPyEndAllowThreads(__tstate); | |
19273 | if (PyErr_Occurred()) SWIG_fail; | |
19274 | } | |
4d5c3d91 | 19275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19276 | return resultobj; |
19277 | fail: | |
19278 | return NULL; | |
19279 | } | |
19280 | ||
19281 | ||
19282 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19283 | PyObject *resultobj; | |
19284 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19285 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19286 | wxIdleEvent *arg3 = 0 ; | |
19287 | bool result; | |
19288 | PyObject * obj0 = 0 ; | |
19289 | PyObject * obj1 = 0 ; | |
19290 | PyObject * obj2 = 0 ; | |
19291 | char *kwnames[] = { | |
19292 | (char *) "self",(char *) "win",(char *) "event", NULL | |
19293 | }; | |
19294 | ||
19295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19297 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19298 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19299 | if (arg3 == NULL) { | |
19300 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19301 | } | |
19302 | { | |
19303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19304 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
19305 | ||
19306 | wxPyEndAllowThreads(__tstate); | |
19307 | if (PyErr_Occurred()) SWIG_fail; | |
19308 | } | |
4d5c3d91 | 19309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19310 | return resultobj; |
19311 | fail: | |
19312 | return NULL; | |
19313 | } | |
19314 | ||
19315 | ||
d14a1e28 RD |
19316 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
19317 | PyObject *resultobj; | |
19318 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19319 | bool result; | |
19320 | PyObject * obj0 = 0 ; | |
19321 | char *kwnames[] = { | |
19322 | (char *) "self", NULL | |
19323 | }; | |
19324 | ||
19325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
19326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19327 | { | |
19328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19329 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
19330 | ||
19331 | wxPyEndAllowThreads(__tstate); | |
19332 | if (PyErr_Occurred()) SWIG_fail; | |
19333 | } | |
4d5c3d91 | 19334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19335 | return resultobj; |
19336 | fail: | |
19337 | return NULL; | |
19338 | } | |
19339 | ||
19340 | ||
19341 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19342 | PyObject *resultobj; | |
19343 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19344 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19345 | PyObject * obj0 = 0 ; | |
19346 | PyObject * obj1 = 0 ; | |
19347 | char *kwnames[] = { | |
19348 | (char *) "self",(char *) "win", NULL | |
19349 | }; | |
19350 | ||
19351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
19352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19353 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19354 | { | |
19355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19356 | (arg1)->SetTopWindow(arg2); | |
19357 | ||
19358 | wxPyEndAllowThreads(__tstate); | |
19359 | if (PyErr_Occurred()) SWIG_fail; | |
19360 | } | |
19361 | Py_INCREF(Py_None); resultobj = Py_None; | |
19362 | return resultobj; | |
19363 | fail: | |
19364 | return NULL; | |
19365 | } | |
19366 | ||
19367 | ||
19368 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19369 | PyObject *resultobj; | |
19370 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19371 | wxWindow *result; | |
19372 | PyObject * obj0 = 0 ; | |
19373 | char *kwnames[] = { | |
19374 | (char *) "self", NULL | |
19375 | }; | |
19376 | ||
19377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
19378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19379 | { | |
19380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19381 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
19382 | ||
19383 | wxPyEndAllowThreads(__tstate); | |
19384 | if (PyErr_Occurred()) SWIG_fail; | |
19385 | } | |
19386 | { | |
19387 | resultobj = wxPyMake_wxObject(result); | |
19388 | } | |
19389 | return resultobj; | |
19390 | fail: | |
19391 | return NULL; | |
19392 | } | |
19393 | ||
19394 | ||
19395 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19396 | PyObject *resultobj; | |
19397 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19398 | bool arg2 ; | |
19399 | PyObject * obj0 = 0 ; | |
19400 | PyObject * obj1 = 0 ; | |
19401 | char *kwnames[] = { | |
19402 | (char *) "self",(char *) "flag", NULL | |
19403 | }; | |
19404 | ||
19405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
19406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 19407 | { |
994141e6 | 19408 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
19409 | if (PyErr_Occurred()) SWIG_fail; |
19410 | } | |
d14a1e28 RD |
19411 | { |
19412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19413 | (arg1)->SetExitOnFrameDelete(arg2); | |
19414 | ||
19415 | wxPyEndAllowThreads(__tstate); | |
19416 | if (PyErr_Occurred()) SWIG_fail; | |
19417 | } | |
19418 | Py_INCREF(Py_None); resultobj = Py_None; | |
19419 | return resultobj; | |
19420 | fail: | |
19421 | return NULL; | |
19422 | } | |
19423 | ||
19424 | ||
19425 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19426 | PyObject *resultobj; | |
19427 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19428 | bool result; | |
19429 | PyObject * obj0 = 0 ; | |
19430 | char *kwnames[] = { | |
19431 | (char *) "self", NULL | |
19432 | }; | |
19433 | ||
19434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
19435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19436 | { | |
19437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19438 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
19439 | ||
19440 | wxPyEndAllowThreads(__tstate); | |
19441 | if (PyErr_Occurred()) SWIG_fail; | |
19442 | } | |
4d5c3d91 | 19443 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19444 | return resultobj; |
19445 | fail: | |
19446 | return NULL; | |
19447 | } | |
19448 | ||
19449 | ||
19450 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19451 | PyObject *resultobj; | |
19452 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19453 | bool arg2 ; | |
19454 | PyObject * obj0 = 0 ; | |
19455 | PyObject * obj1 = 0 ; | |
19456 | char *kwnames[] = { | |
19457 | (char *) "self",(char *) "flag", NULL | |
19458 | }; | |
19459 | ||
19460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
19461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 19462 | { |
994141e6 | 19463 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
19464 | if (PyErr_Occurred()) SWIG_fail; |
19465 | } | |
d14a1e28 RD |
19466 | { |
19467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19468 | (arg1)->SetUseBestVisual(arg2); | |
19469 | ||
19470 | wxPyEndAllowThreads(__tstate); | |
19471 | if (PyErr_Occurred()) SWIG_fail; | |
19472 | } | |
19473 | Py_INCREF(Py_None); resultobj = Py_None; | |
19474 | return resultobj; | |
19475 | fail: | |
19476 | return NULL; | |
19477 | } | |
19478 | ||
19479 | ||
19480 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19481 | PyObject *resultobj; | |
19482 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19483 | bool result; | |
19484 | PyObject * obj0 = 0 ; | |
19485 | char *kwnames[] = { | |
19486 | (char *) "self", NULL | |
19487 | }; | |
19488 | ||
19489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
19490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19491 | { | |
19492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19493 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
19494 | ||
19495 | wxPyEndAllowThreads(__tstate); | |
19496 | if (PyErr_Occurred()) SWIG_fail; | |
19497 | } | |
4d5c3d91 | 19498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19499 | return resultobj; |
19500 | fail: | |
19501 | return NULL; | |
19502 | } | |
19503 | ||
19504 | ||
19505 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19506 | PyObject *resultobj; | |
19507 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19508 | int arg2 ; | |
19509 | PyObject * obj0 = 0 ; | |
994141e6 | 19510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19511 | char *kwnames[] = { |
19512 | (char *) "self",(char *) "mode", NULL | |
19513 | }; | |
19514 | ||
994141e6 | 19515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
19517 | { |
19518 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19519 | if (PyErr_Occurred()) SWIG_fail; | |
19520 | } | |
d14a1e28 RD |
19521 | { |
19522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19523 | (arg1)->SetPrintMode(arg2); | |
19524 | ||
19525 | wxPyEndAllowThreads(__tstate); | |
19526 | if (PyErr_Occurred()) SWIG_fail; | |
19527 | } | |
19528 | Py_INCREF(Py_None); resultobj = Py_None; | |
19529 | return resultobj; | |
19530 | fail: | |
19531 | return NULL; | |
19532 | } | |
19533 | ||
19534 | ||
19535 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19536 | PyObject *resultobj; | |
19537 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19538 | int result; | |
19539 | PyObject * obj0 = 0 ; | |
19540 | char *kwnames[] = { | |
19541 | (char *) "self", NULL | |
19542 | }; | |
19543 | ||
19544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
19545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19546 | { | |
19547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19548 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
19549 | ||
19550 | wxPyEndAllowThreads(__tstate); | |
19551 | if (PyErr_Occurred()) SWIG_fail; | |
19552 | } | |
994141e6 | 19553 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19554 | return resultobj; |
19555 | fail: | |
19556 | return NULL; | |
19557 | } | |
19558 | ||
19559 | ||
6c3b4aae | 19560 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19561 | PyObject *resultobj; |
19562 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 19563 | int arg2 ; |
d14a1e28 | 19564 | PyObject * obj0 = 0 ; |
994141e6 | 19565 | PyObject * obj1 = 0 ; |
d14a1e28 | 19566 | char *kwnames[] = { |
6c3b4aae | 19567 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
19568 | }; |
19569 | ||
994141e6 | 19570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
19572 | { |
19573 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19574 | if (PyErr_Occurred()) SWIG_fail; | |
19575 | } | |
d14a1e28 RD |
19576 | { |
19577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 19578 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
19579 | |
19580 | wxPyEndAllowThreads(__tstate); | |
19581 | if (PyErr_Occurred()) SWIG_fail; | |
19582 | } | |
6c3b4aae | 19583 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
19584 | return resultobj; |
19585 | fail: | |
19586 | return NULL; | |
19587 | } | |
19588 | ||
19589 | ||
6c3b4aae | 19590 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19591 | PyObject *resultobj; |
19592 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 19593 | int result; |
d14a1e28 RD |
19594 | PyObject * obj0 = 0 ; |
19595 | char *kwnames[] = { | |
6c3b4aae | 19596 | (char *) "self", NULL |
d14a1e28 RD |
19597 | }; |
19598 | ||
6c3b4aae | 19599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
19600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
19601 | { | |
19602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 19603 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
19604 | |
19605 | wxPyEndAllowThreads(__tstate); | |
19606 | if (PyErr_Occurred()) SWIG_fail; | |
19607 | } | |
994141e6 | 19608 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19609 | return resultobj; |
19610 | fail: | |
19611 | return NULL; | |
19612 | } | |
19613 | ||
19614 | ||
19615 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19616 | PyObject *resultobj; | |
19617 | bool result; | |
19618 | char *kwnames[] = { | |
19619 | NULL | |
19620 | }; | |
19621 | ||
19622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
19623 | { | |
19624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19625 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
19626 | ||
19627 | wxPyEndAllowThreads(__tstate); | |
19628 | if (PyErr_Occurred()) SWIG_fail; | |
19629 | } | |
4d5c3d91 | 19630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19631 | return resultobj; |
19632 | fail: | |
19633 | return NULL; | |
19634 | } | |
19635 | ||
19636 | ||
19637 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19638 | PyObject *resultobj; | |
19639 | long result; | |
19640 | char *kwnames[] = { | |
19641 | NULL | |
19642 | }; | |
19643 | ||
19644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
19645 | { | |
19646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19647 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
19648 | ||
19649 | wxPyEndAllowThreads(__tstate); | |
19650 | if (PyErr_Occurred()) SWIG_fail; | |
19651 | } | |
994141e6 | 19652 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19653 | return resultobj; |
19654 | fail: | |
19655 | return NULL; | |
19656 | } | |
19657 | ||
19658 | ||
19659 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19660 | PyObject *resultobj; | |
19661 | long result; | |
19662 | char *kwnames[] = { | |
19663 | NULL | |
19664 | }; | |
19665 | ||
19666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
19667 | { | |
19668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19669 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
19670 | ||
19671 | wxPyEndAllowThreads(__tstate); | |
19672 | if (PyErr_Occurred()) SWIG_fail; | |
19673 | } | |
994141e6 | 19674 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19675 | return resultobj; |
19676 | fail: | |
19677 | return NULL; | |
19678 | } | |
19679 | ||
19680 | ||
19681 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19682 | PyObject *resultobj; | |
19683 | long result; | |
19684 | char *kwnames[] = { | |
19685 | NULL | |
19686 | }; | |
19687 | ||
19688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
19689 | { | |
19690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19691 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
19692 | ||
19693 | wxPyEndAllowThreads(__tstate); | |
19694 | if (PyErr_Occurred()) SWIG_fail; | |
19695 | } | |
994141e6 | 19696 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19697 | return resultobj; |
19698 | fail: | |
19699 | return NULL; | |
19700 | } | |
19701 | ||
19702 | ||
19703 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19704 | PyObject *resultobj; | |
19705 | wxString result; | |
19706 | char *kwnames[] = { | |
19707 | NULL | |
19708 | }; | |
19709 | ||
19710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
19711 | { | |
19712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19713 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
19714 | ||
19715 | wxPyEndAllowThreads(__tstate); | |
19716 | if (PyErr_Occurred()) SWIG_fail; | |
19717 | } | |
19718 | { | |
19719 | #if wxUSE_UNICODE | |
19720 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19721 | #else | |
19722 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19723 | #endif | |
19724 | } | |
19725 | return resultobj; | |
19726 | fail: | |
19727 | return NULL; | |
19728 | } | |
19729 | ||
19730 | ||
19731 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19732 | PyObject *resultobj; | |
19733 | bool arg1 ; | |
19734 | PyObject * obj0 = 0 ; | |
19735 | char *kwnames[] = { | |
19736 | (char *) "val", NULL | |
19737 | }; | |
19738 | ||
19739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
a41e16b6 | 19740 | { |
994141e6 | 19741 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
a41e16b6 RD |
19742 | if (PyErr_Occurred()) SWIG_fail; |
19743 | } | |
d14a1e28 RD |
19744 | { |
19745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19746 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
19747 | ||
19748 | wxPyEndAllowThreads(__tstate); | |
19749 | if (PyErr_Occurred()) SWIG_fail; | |
19750 | } | |
19751 | Py_INCREF(Py_None); resultobj = Py_None; | |
19752 | return resultobj; | |
19753 | fail: | |
19754 | return NULL; | |
19755 | } | |
19756 | ||
19757 | ||
19758 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19759 | PyObject *resultobj; | |
19760 | long arg1 ; | |
994141e6 | 19761 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19762 | char *kwnames[] = { |
19763 | (char *) "val", NULL | |
19764 | }; | |
19765 | ||
994141e6 RD |
19766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; |
19767 | { | |
19768 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
19769 | if (PyErr_Occurred()) SWIG_fail; | |
19770 | } | |
d14a1e28 RD |
19771 | { |
19772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19773 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
19774 | ||
19775 | wxPyEndAllowThreads(__tstate); | |
19776 | if (PyErr_Occurred()) SWIG_fail; | |
19777 | } | |
19778 | Py_INCREF(Py_None); resultobj = Py_None; | |
19779 | return resultobj; | |
19780 | fail: | |
19781 | return NULL; | |
19782 | } | |
19783 | ||
19784 | ||
19785 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19786 | PyObject *resultobj; | |
19787 | long arg1 ; | |
994141e6 | 19788 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19789 | char *kwnames[] = { |
19790 | (char *) "val", NULL | |
19791 | }; | |
19792 | ||
994141e6 RD |
19793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; |
19794 | { | |
19795 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
19796 | if (PyErr_Occurred()) SWIG_fail; | |
19797 | } | |
d14a1e28 RD |
19798 | { |
19799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19800 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
19801 | ||
19802 | wxPyEndAllowThreads(__tstate); | |
19803 | if (PyErr_Occurred()) SWIG_fail; | |
19804 | } | |
19805 | Py_INCREF(Py_None); resultobj = Py_None; | |
19806 | return resultobj; | |
19807 | fail: | |
19808 | return NULL; | |
19809 | } | |
19810 | ||
19811 | ||
19812 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19813 | PyObject *resultobj; | |
19814 | long arg1 ; | |
994141e6 | 19815 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19816 | char *kwnames[] = { |
19817 | (char *) "val", NULL | |
19818 | }; | |
19819 | ||
994141e6 RD |
19820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; |
19821 | { | |
19822 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
19823 | if (PyErr_Occurred()) SWIG_fail; | |
19824 | } | |
d14a1e28 RD |
19825 | { |
19826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19827 | wxPyApp::SetMacExitMenuItemId(arg1); | |
19828 | ||
19829 | wxPyEndAllowThreads(__tstate); | |
19830 | if (PyErr_Occurred()) SWIG_fail; | |
19831 | } | |
19832 | Py_INCREF(Py_None); resultobj = Py_None; | |
19833 | return resultobj; | |
19834 | fail: | |
19835 | return NULL; | |
19836 | } | |
19837 | ||
19838 | ||
19839 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19840 | PyObject *resultobj; | |
19841 | wxString *arg1 = 0 ; | |
e811c8ce | 19842 | bool temp1 = False ; |
d14a1e28 RD |
19843 | PyObject * obj0 = 0 ; |
19844 | char *kwnames[] = { | |
19845 | (char *) "val", NULL | |
19846 | }; | |
19847 | ||
19848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
19849 | { | |
19850 | arg1 = wxString_in_helper(obj0); | |
19851 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 19852 | temp1 = True; |
d14a1e28 RD |
19853 | } |
19854 | { | |
19855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19856 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
19857 | ||
19858 | wxPyEndAllowThreads(__tstate); | |
19859 | if (PyErr_Occurred()) SWIG_fail; | |
19860 | } | |
19861 | Py_INCREF(Py_None); resultobj = Py_None; | |
19862 | { | |
19863 | if (temp1) | |
19864 | delete arg1; | |
19865 | } | |
19866 | return resultobj; | |
19867 | fail: | |
19868 | { | |
19869 | if (temp1) | |
19870 | delete arg1; | |
19871 | } | |
19872 | return NULL; | |
19873 | } | |
19874 | ||
19875 | ||
19876 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19877 | PyObject *resultobj; | |
19878 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19879 | PyObject * obj0 = 0 ; | |
19880 | char *kwnames[] = { | |
19881 | (char *) "self", NULL | |
19882 | }; | |
19883 | ||
19884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
19885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19886 | { | |
19887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19888 | (arg1)->_BootstrapApp(); | |
19889 | ||
19890 | wxPyEndAllowThreads(__tstate); | |
19891 | if (PyErr_Occurred()) SWIG_fail; | |
19892 | } | |
19893 | Py_INCREF(Py_None); resultobj = Py_None; | |
19894 | return resultobj; | |
19895 | fail: | |
19896 | return NULL; | |
19897 | } | |
19898 | ||
19899 | ||
19900 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19901 | PyObject *resultobj; | |
19902 | int result; | |
19903 | char *kwnames[] = { | |
19904 | NULL | |
19905 | }; | |
19906 | ||
19907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
19908 | { | |
19909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19910 | result = (int)PyApp_GetComCtl32Version(); | |
19911 | ||
19912 | wxPyEndAllowThreads(__tstate); | |
19913 | if (PyErr_Occurred()) SWIG_fail; | |
19914 | } | |
994141e6 | 19915 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19916 | return resultobj; |
19917 | fail: | |
19918 | return NULL; | |
19919 | } | |
19920 | ||
19921 | ||
19922 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
19923 | PyObject *obj; | |
19924 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19925 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
19926 | Py_INCREF(obj); | |
19927 | return Py_BuildValue((char *)""); | |
19928 | } | |
19929 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19930 | PyObject *resultobj; | |
19931 | char *kwnames[] = { | |
19932 | NULL | |
19933 | }; | |
19934 | ||
19935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
19936 | { | |
19937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19938 | wxExit(); | |
19939 | ||
19940 | wxPyEndAllowThreads(__tstate); | |
19941 | if (PyErr_Occurred()) SWIG_fail; | |
19942 | } | |
19943 | Py_INCREF(Py_None); resultobj = Py_None; | |
19944 | return resultobj; | |
19945 | fail: | |
19946 | return NULL; | |
19947 | } | |
19948 | ||
19949 | ||
19950 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19951 | PyObject *resultobj; | |
19952 | bool result; | |
19953 | char *kwnames[] = { | |
19954 | NULL | |
19955 | }; | |
19956 | ||
19957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
19958 | { | |
19959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19960 | result = (bool)wxYield(); | |
19961 | ||
19962 | wxPyEndAllowThreads(__tstate); | |
19963 | if (PyErr_Occurred()) SWIG_fail; | |
19964 | } | |
4d5c3d91 | 19965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19966 | return resultobj; |
19967 | fail: | |
19968 | return NULL; | |
19969 | } | |
19970 | ||
19971 | ||
19972 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19973 | PyObject *resultobj; | |
19974 | bool result; | |
19975 | char *kwnames[] = { | |
19976 | NULL | |
19977 | }; | |
19978 | ||
19979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
19980 | { | |
19981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19982 | result = (bool)wxYieldIfNeeded(); | |
19983 | ||
19984 | wxPyEndAllowThreads(__tstate); | |
19985 | if (PyErr_Occurred()) SWIG_fail; | |
19986 | } | |
4d5c3d91 | 19987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19988 | return resultobj; |
19989 | fail: | |
19990 | return NULL; | |
19991 | } | |
19992 | ||
19993 | ||
19994 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19995 | PyObject *resultobj; | |
19996 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 19997 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19998 | bool result; |
19999 | PyObject * obj0 = 0 ; | |
20000 | PyObject * obj1 = 0 ; | |
20001 | char *kwnames[] = { | |
20002 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20003 | }; | |
20004 | ||
20005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20006 | if (obj0) { | |
20007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20008 | } | |
20009 | if (obj1) { | |
a41e16b6 | 20010 | { |
994141e6 | 20011 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
20012 | if (PyErr_Occurred()) SWIG_fail; |
20013 | } | |
d14a1e28 RD |
20014 | } |
20015 | { | |
20016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20017 | result = (bool)wxSafeYield(arg1,arg2); | |
20018 | ||
20019 | wxPyEndAllowThreads(__tstate); | |
20020 | if (PyErr_Occurred()) SWIG_fail; | |
20021 | } | |
4d5c3d91 | 20022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20023 | return resultobj; |
20024 | fail: | |
20025 | return NULL; | |
20026 | } | |
20027 | ||
20028 | ||
20029 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20030 | PyObject *resultobj; | |
20031 | char *kwnames[] = { | |
20032 | NULL | |
20033 | }; | |
20034 | ||
20035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20036 | { | |
20037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20038 | wxWakeUpIdle(); | |
20039 | ||
20040 | wxPyEndAllowThreads(__tstate); | |
20041 | if (PyErr_Occurred()) SWIG_fail; | |
20042 | } | |
20043 | Py_INCREF(Py_None); resultobj = Py_None; | |
20044 | return resultobj; | |
20045 | fail: | |
20046 | return NULL; | |
20047 | } | |
20048 | ||
20049 | ||
20050 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20051 | PyObject *resultobj; | |
20052 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20053 | wxEvent *arg2 = 0 ; | |
20054 | PyObject * obj0 = 0 ; | |
20055 | PyObject * obj1 = 0 ; | |
20056 | char *kwnames[] = { | |
20057 | (char *) "dest",(char *) "event", NULL | |
20058 | }; | |
20059 | ||
20060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
20061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20062 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20063 | if (arg2 == NULL) { | |
20064 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20065 | } | |
20066 | { | |
20067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20068 | wxPostEvent(arg1,*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_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20081 | PyObject *resultobj; | |
20082 | char *kwnames[] = { | |
20083 | NULL | |
20084 | }; | |
20085 | ||
20086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20087 | { | |
20088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20089 | wxApp_CleanUp(); | |
20090 | ||
20091 | wxPyEndAllowThreads(__tstate); | |
20092 | if (PyErr_Occurred()) SWIG_fail; | |
20093 | } | |
20094 | Py_INCREF(Py_None); resultobj = Py_None; | |
20095 | return resultobj; | |
20096 | fail: | |
20097 | return NULL; | |
20098 | } | |
20099 | ||
20100 | ||
20101 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20102 | PyObject *resultobj; | |
20103 | wxPyApp *result; | |
20104 | char *kwnames[] = { | |
20105 | NULL | |
20106 | }; | |
20107 | ||
20108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20109 | { | |
20110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20111 | result = (wxPyApp *)wxGetApp(); | |
20112 | ||
20113 | wxPyEndAllowThreads(__tstate); | |
20114 | if (PyErr_Occurred()) SWIG_fail; | |
20115 | } | |
20116 | { | |
20117 | resultobj = wxPyMake_wxObject(result); | |
20118 | } | |
20119 | return resultobj; | |
20120 | fail: | |
20121 | return NULL; | |
20122 | } | |
20123 | ||
20124 | ||
1e0c8722 RD |
20125 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { |
20126 | PyObject *resultobj; | |
20127 | int arg1 = (int) 0 ; | |
20128 | int arg2 = (int) 0 ; | |
20129 | int arg3 = (int) 0 ; | |
20130 | wxMenuItem *arg4 = (wxMenuItem *) NULL ; | |
20131 | wxAcceleratorEntry *result; | |
994141e6 RD |
20132 | PyObject * obj0 = 0 ; |
20133 | PyObject * obj1 = 0 ; | |
20134 | PyObject * obj2 = 0 ; | |
1e0c8722 RD |
20135 | PyObject * obj3 = 0 ; |
20136 | char *kwnames[] = { | |
20137 | (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20138 | }; | |
20139 | ||
994141e6 RD |
20140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
20141 | if (obj0) { | |
20142 | { | |
20143 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
20144 | if (PyErr_Occurred()) SWIG_fail; | |
20145 | } | |
20146 | } | |
20147 | if (obj1) { | |
20148 | { | |
20149 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20150 | if (PyErr_Occurred()) SWIG_fail; | |
20151 | } | |
20152 | } | |
20153 | if (obj2) { | |
20154 | { | |
20155 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20156 | if (PyErr_Occurred()) SWIG_fail; | |
20157 | } | |
20158 | } | |
1e0c8722 RD |
20159 | if (obj3) { |
20160 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20161 | } | |
20162 | { | |
20163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20164 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); | |
20165 | ||
20166 | wxPyEndAllowThreads(__tstate); | |
20167 | if (PyErr_Occurred()) SWIG_fail; | |
20168 | } | |
20169 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 1); | |
20170 | return resultobj; | |
20171 | fail: | |
20172 | return NULL; | |
20173 | } | |
20174 | ||
20175 | ||
20176 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20177 | PyObject *resultobj; | |
20178 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20179 | PyObject * obj0 = 0 ; | |
20180 | char *kwnames[] = { | |
20181 | (char *) "self", NULL | |
20182 | }; | |
20183 | ||
20184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
20185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20186 | { | |
20187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20188 | delete arg1; | |
20189 | ||
20190 | wxPyEndAllowThreads(__tstate); | |
20191 | if (PyErr_Occurred()) SWIG_fail; | |
20192 | } | |
20193 | Py_INCREF(Py_None); resultobj = Py_None; | |
20194 | return resultobj; | |
20195 | fail: | |
20196 | return NULL; | |
20197 | } | |
20198 | ||
20199 | ||
20200 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20201 | PyObject *resultobj; | |
20202 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20203 | int arg2 ; | |
20204 | int arg3 ; | |
20205 | int arg4 ; | |
20206 | wxMenuItem *arg5 = (wxMenuItem *) NULL ; | |
20207 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20208 | PyObject * obj1 = 0 ; |
20209 | PyObject * obj2 = 0 ; | |
20210 | PyObject * obj3 = 0 ; | |
1e0c8722 RD |
20211 | PyObject * obj4 = 0 ; |
20212 | char *kwnames[] = { | |
20213 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20214 | }; | |
20215 | ||
994141e6 | 20216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
1e0c8722 | 20217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20218 | { |
20219 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20220 | if (PyErr_Occurred()) SWIG_fail; | |
20221 | } | |
20222 | { | |
20223 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20224 | if (PyErr_Occurred()) SWIG_fail; | |
20225 | } | |
20226 | { | |
20227 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20228 | if (PyErr_Occurred()) SWIG_fail; | |
20229 | } | |
1e0c8722 RD |
20230 | if (obj4) { |
20231 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20232 | } | |
20233 | { | |
20234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20235 | (arg1)->Set(arg2,arg3,arg4,arg5); | |
20236 | ||
20237 | wxPyEndAllowThreads(__tstate); | |
20238 | if (PyErr_Occurred()) SWIG_fail; | |
20239 | } | |
20240 | Py_INCREF(Py_None); resultobj = Py_None; | |
20241 | return resultobj; | |
20242 | fail: | |
20243 | return NULL; | |
20244 | } | |
20245 | ||
20246 | ||
20247 | static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20248 | PyObject *resultobj; | |
20249 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20250 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
20251 | PyObject * obj0 = 0 ; | |
20252 | PyObject * obj1 = 0 ; | |
20253 | char *kwnames[] = { | |
20254 | (char *) "self",(char *) "item", NULL | |
20255 | }; | |
20256 | ||
20257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; | |
20258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20259 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20260 | { | |
20261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20262 | (arg1)->SetMenuItem(arg2); | |
20263 | ||
20264 | wxPyEndAllowThreads(__tstate); | |
20265 | if (PyErr_Occurred()) SWIG_fail; | |
20266 | } | |
20267 | Py_INCREF(Py_None); resultobj = Py_None; | |
20268 | return resultobj; | |
20269 | fail: | |
20270 | return NULL; | |
20271 | } | |
20272 | ||
20273 | ||
20274 | static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20275 | PyObject *resultobj; | |
20276 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20277 | wxMenuItem *result; | |
20278 | PyObject * obj0 = 0 ; | |
20279 | char *kwnames[] = { | |
20280 | (char *) "self", NULL | |
20281 | }; | |
20282 | ||
20283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; | |
20284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20285 | { | |
20286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20287 | result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); | |
20288 | ||
20289 | wxPyEndAllowThreads(__tstate); | |
20290 | if (PyErr_Occurred()) SWIG_fail; | |
20291 | } | |
20292 | { | |
20293 | resultobj = wxPyMake_wxObject(result); | |
20294 | } | |
20295 | return resultobj; | |
20296 | fail: | |
20297 | return NULL; | |
20298 | } | |
20299 | ||
20300 | ||
20301 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20302 | PyObject *resultobj; | |
20303 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20304 | int result; | |
20305 | PyObject * obj0 = 0 ; | |
20306 | char *kwnames[] = { | |
20307 | (char *) "self", NULL | |
20308 | }; | |
20309 | ||
20310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
20311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20312 | { | |
20313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20314 | result = (int)(arg1)->GetFlags(); | |
20315 | ||
20316 | wxPyEndAllowThreads(__tstate); | |
20317 | if (PyErr_Occurred()) SWIG_fail; | |
20318 | } | |
994141e6 | 20319 | resultobj = SWIG_PyObj_FromInt((int)result); |
1e0c8722 RD |
20320 | return resultobj; |
20321 | fail: | |
20322 | return NULL; | |
20323 | } | |
20324 | ||
20325 | ||
20326 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20327 | PyObject *resultobj; | |
20328 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20329 | int result; | |
20330 | PyObject * obj0 = 0 ; | |
20331 | char *kwnames[] = { | |
20332 | (char *) "self", NULL | |
20333 | }; | |
20334 | ||
20335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
20336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20337 | { | |
20338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20339 | result = (int)(arg1)->GetKeyCode(); | |
20340 | ||
20341 | wxPyEndAllowThreads(__tstate); | |
20342 | if (PyErr_Occurred()) SWIG_fail; | |
20343 | } | |
994141e6 | 20344 | resultobj = SWIG_PyObj_FromInt((int)result); |
1e0c8722 RD |
20345 | return resultobj; |
20346 | fail: | |
20347 | return NULL; | |
20348 | } | |
20349 | ||
20350 | ||
20351 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20352 | PyObject *resultobj; | |
20353 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20354 | int result; | |
20355 | PyObject * obj0 = 0 ; | |
20356 | char *kwnames[] = { | |
20357 | (char *) "self", NULL | |
20358 | }; | |
20359 | ||
20360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
20361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20362 | { | |
20363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20364 | result = (int)(arg1)->GetCommand(); | |
20365 | ||
20366 | wxPyEndAllowThreads(__tstate); | |
20367 | if (PyErr_Occurred()) SWIG_fail; | |
20368 | } | |
994141e6 | 20369 | resultobj = SWIG_PyObj_FromInt((int)result); |
1e0c8722 RD |
20370 | return resultobj; |
20371 | fail: | |
20372 | return NULL; | |
20373 | } | |
20374 | ||
20375 | ||
20376 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
20377 | PyObject *obj; | |
20378 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20379 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
20380 | Py_INCREF(obj); | |
20381 | return Py_BuildValue((char *)""); | |
20382 | } | |
20383 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20384 | PyObject *resultobj; | |
20385 | int arg1 ; | |
20386 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
20387 | wxAcceleratorTable *result; | |
20388 | PyObject * obj0 = 0 ; | |
20389 | char *kwnames[] = { | |
20390 | (char *) "n", NULL | |
20391 | }; | |
20392 | ||
20393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
20394 | { | |
20395 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
20396 | if (arg2) arg1 = PyList_Size(obj0); | |
20397 | else arg1 = 0; | |
20398 | } | |
20399 | { | |
20400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20401 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
20402 | ||
20403 | wxPyEndAllowThreads(__tstate); | |
20404 | if (PyErr_Occurred()) SWIG_fail; | |
20405 | } | |
20406 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 1); | |
20407 | { | |
20408 | delete [] arg2; | |
20409 | } | |
20410 | return resultobj; | |
20411 | fail: | |
20412 | { | |
20413 | delete [] arg2; | |
20414 | } | |
20415 | return NULL; | |
20416 | } | |
20417 | ||
20418 | ||
20419 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20420 | PyObject *resultobj; | |
20421 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
20422 | PyObject * obj0 = 0 ; | |
20423 | char *kwnames[] = { | |
20424 | (char *) "self", NULL | |
20425 | }; | |
20426 | ||
20427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
20428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20429 | { | |
20430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20431 | delete arg1; | |
20432 | ||
20433 | wxPyEndAllowThreads(__tstate); | |
20434 | if (PyErr_Occurred()) SWIG_fail; | |
20435 | } | |
20436 | Py_INCREF(Py_None); resultobj = Py_None; | |
20437 | return resultobj; | |
20438 | fail: | |
20439 | return NULL; | |
20440 | } | |
20441 | ||
20442 | ||
20443 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20444 | PyObject *resultobj; | |
20445 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
20446 | bool result; | |
20447 | PyObject * obj0 = 0 ; | |
20448 | char *kwnames[] = { | |
20449 | (char *) "self", NULL | |
20450 | }; | |
20451 | ||
20452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
20453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20454 | { | |
20455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20456 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
20457 | ||
20458 | wxPyEndAllowThreads(__tstate); | |
20459 | if (PyErr_Occurred()) SWIG_fail; | |
20460 | } | |
4d5c3d91 | 20461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
1e0c8722 RD |
20462 | return resultobj; |
20463 | fail: | |
20464 | return NULL; | |
20465 | } | |
20466 | ||
20467 | ||
20468 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
20469 | PyObject *obj; | |
20470 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20471 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
20472 | Py_INCREF(obj); | |
20473 | return Py_BuildValue((char *)""); | |
20474 | } | |
20475 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { | |
20476 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); | |
20477 | return 1; | |
20478 | } | |
20479 | ||
20480 | ||
20481 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
20482 | PyObject *pyobj; | |
20483 | ||
20484 | pyobj = SWIG_NewPointerObj((void *) &wxNullAcceleratorTable, SWIGTYPE_p_wxAcceleratorTable, 0); | |
20485 | return pyobj; | |
20486 | } | |
20487 | ||
20488 | ||
20489 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20490 | PyObject *resultobj; | |
20491 | wxString *arg1 = 0 ; | |
20492 | wxAcceleratorEntry *result; | |
20493 | bool temp1 = False ; | |
20494 | PyObject * obj0 = 0 ; | |
20495 | char *kwnames[] = { | |
20496 | (char *) "label", NULL | |
20497 | }; | |
20498 | ||
20499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
20500 | { | |
20501 | arg1 = wxString_in_helper(obj0); | |
20502 | if (arg1 == NULL) SWIG_fail; | |
20503 | temp1 = True; | |
20504 | } | |
20505 | { | |
20506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20507 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
20508 | ||
20509 | wxPyEndAllowThreads(__tstate); | |
20510 | if (PyErr_Occurred()) SWIG_fail; | |
20511 | } | |
20512 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0); | |
20513 | { | |
20514 | if (temp1) | |
20515 | delete arg1; | |
20516 | } | |
20517 | return resultobj; | |
20518 | fail: | |
20519 | { | |
20520 | if (temp1) | |
20521 | delete arg1; | |
20522 | } | |
20523 | return NULL; | |
20524 | } | |
20525 | ||
20526 | ||
e811c8ce RD |
20527 | static int _wrap_PanelNameStr_set(PyObject *_val) { |
20528 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); | |
20529 | return 1; | |
20530 | } | |
20531 | ||
20532 | ||
20533 | static PyObject *_wrap_PanelNameStr_get() { | |
20534 | PyObject *pyobj; | |
20535 | ||
20536 | { | |
20537 | #if wxUSE_UNICODE | |
20538 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
20539 | #else | |
20540 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
20541 | #endif | |
20542 | } | |
20543 | return pyobj; | |
20544 | } | |
20545 | ||
20546 | ||
d14a1e28 RD |
20547 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { |
20548 | PyObject *resultobj; | |
20549 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 20550 | int arg2 ; |
d14a1e28 RD |
20551 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20552 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20553 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20554 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20555 | long arg5 = (long) 0 ; | |
20556 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
20557 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20558 | wxWindow *result; | |
20559 | wxPoint temp3 ; | |
20560 | wxSize temp4 ; | |
e811c8ce | 20561 | bool temp6 = False ; |
d14a1e28 | 20562 | PyObject * obj0 = 0 ; |
994141e6 | 20563 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20564 | PyObject * obj2 = 0 ; |
20565 | PyObject * obj3 = 0 ; | |
994141e6 | 20566 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20567 | PyObject * obj5 = 0 ; |
20568 | char *kwnames[] = { | |
20569 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20570 | }; | |
20571 | ||
994141e6 | 20572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 20573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20574 | { |
20575 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
20576 | if (PyErr_Occurred()) SWIG_fail; | |
20577 | } | |
d14a1e28 RD |
20578 | if (obj2) { |
20579 | { | |
20580 | arg3 = &temp3; | |
20581 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20582 | } | |
20583 | } | |
20584 | if (obj3) { | |
20585 | { | |
20586 | arg4 = &temp4; | |
20587 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20588 | } | |
20589 | } | |
994141e6 RD |
20590 | if (obj4) { |
20591 | { | |
20592 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
20593 | if (PyErr_Occurred()) SWIG_fail; | |
20594 | } | |
20595 | } | |
d14a1e28 RD |
20596 | if (obj5) { |
20597 | { | |
20598 | arg6 = wxString_in_helper(obj5); | |
20599 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 20600 | temp6 = True; |
d14a1e28 RD |
20601 | } |
20602 | } | |
20603 | { | |
20604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20605 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20606 | ||
20607 | wxPyEndAllowThreads(__tstate); | |
20608 | if (PyErr_Occurred()) SWIG_fail; | |
20609 | } | |
20610 | { | |
20611 | resultobj = wxPyMake_wxObject(result); | |
20612 | } | |
20613 | { | |
20614 | if (temp6) | |
20615 | delete arg6; | |
20616 | } | |
20617 | return resultobj; | |
20618 | fail: | |
20619 | { | |
20620 | if (temp6) | |
20621 | delete arg6; | |
20622 | } | |
20623 | return NULL; | |
20624 | } | |
20625 | ||
20626 | ||
20627 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20628 | PyObject *resultobj; | |
20629 | wxWindow *result; | |
20630 | char *kwnames[] = { | |
20631 | NULL | |
20632 | }; | |
20633 | ||
20634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
20635 | { | |
20636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20637 | result = (wxWindow *)new wxWindow(); | |
20638 | ||
20639 | wxPyEndAllowThreads(__tstate); | |
20640 | if (PyErr_Occurred()) SWIG_fail; | |
20641 | } | |
20642 | { | |
20643 | resultobj = wxPyMake_wxObject(result); | |
20644 | } | |
20645 | return resultobj; | |
20646 | fail: | |
20647 | return NULL; | |
20648 | } | |
20649 | ||
20650 | ||
20651 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20652 | PyObject *resultobj; | |
20653 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20654 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 20655 | int arg3 ; |
d14a1e28 RD |
20656 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20657 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20658 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20659 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20660 | long arg6 = (long) 0 ; | |
20661 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
20662 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20663 | bool result; | |
20664 | wxPoint temp4 ; | |
20665 | wxSize temp5 ; | |
e811c8ce | 20666 | bool temp7 = False ; |
d14a1e28 RD |
20667 | PyObject * obj0 = 0 ; |
20668 | PyObject * obj1 = 0 ; | |
994141e6 | 20669 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20670 | PyObject * obj3 = 0 ; |
20671 | PyObject * obj4 = 0 ; | |
994141e6 | 20672 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20673 | PyObject * obj6 = 0 ; |
20674 | char *kwnames[] = { | |
20675 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20676 | }; | |
20677 | ||
994141e6 | 20678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
20679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20680 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
20681 | { |
20682 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
20683 | if (PyErr_Occurred()) SWIG_fail; | |
20684 | } | |
d14a1e28 RD |
20685 | if (obj3) { |
20686 | { | |
20687 | arg4 = &temp4; | |
20688 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20689 | } | |
20690 | } | |
20691 | if (obj4) { | |
20692 | { | |
20693 | arg5 = &temp5; | |
20694 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20695 | } | |
20696 | } | |
994141e6 RD |
20697 | if (obj5) { |
20698 | { | |
20699 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
20700 | if (PyErr_Occurred()) SWIG_fail; | |
20701 | } | |
20702 | } | |
d14a1e28 RD |
20703 | if (obj6) { |
20704 | { | |
20705 | arg7 = wxString_in_helper(obj6); | |
20706 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 20707 | temp7 = True; |
d14a1e28 RD |
20708 | } |
20709 | } | |
20710 | { | |
20711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20712 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20713 | ||
20714 | wxPyEndAllowThreads(__tstate); | |
20715 | if (PyErr_Occurred()) SWIG_fail; | |
20716 | } | |
4d5c3d91 | 20717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20718 | { |
20719 | if (temp7) | |
20720 | delete arg7; | |
20721 | } | |
20722 | return resultobj; | |
20723 | fail: | |
20724 | { | |
20725 | if (temp7) | |
20726 | delete arg7; | |
20727 | } | |
20728 | return NULL; | |
20729 | } | |
20730 | ||
20731 | ||
20732 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20733 | PyObject *resultobj; | |
20734 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 20735 | bool arg2 = (bool) False ; |
d14a1e28 RD |
20736 | bool result; |
20737 | PyObject * obj0 = 0 ; | |
20738 | PyObject * obj1 = 0 ; | |
20739 | char *kwnames[] = { | |
20740 | (char *) "self",(char *) "force", NULL | |
20741 | }; | |
20742 | ||
20743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
20744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20745 | if (obj1) { | |
a41e16b6 | 20746 | { |
994141e6 | 20747 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
20748 | if (PyErr_Occurred()) SWIG_fail; |
20749 | } | |
d14a1e28 RD |
20750 | } |
20751 | { | |
20752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20753 | result = (bool)(arg1)->Close(arg2); | |
20754 | ||
20755 | wxPyEndAllowThreads(__tstate); | |
20756 | if (PyErr_Occurred()) SWIG_fail; | |
20757 | } | |
4d5c3d91 | 20758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20759 | return resultobj; |
20760 | fail: | |
20761 | return NULL; | |
20762 | } | |
20763 | ||
20764 | ||
20765 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20766 | PyObject *resultobj; | |
20767 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20768 | bool result; | |
20769 | PyObject * obj0 = 0 ; | |
20770 | char *kwnames[] = { | |
20771 | (char *) "self", NULL | |
20772 | }; | |
20773 | ||
20774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
20775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20776 | { | |
20777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20778 | result = (bool)(arg1)->Destroy(); | |
20779 | ||
20780 | wxPyEndAllowThreads(__tstate); | |
20781 | if (PyErr_Occurred()) SWIG_fail; | |
20782 | } | |
4d5c3d91 | 20783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20784 | return resultobj; |
20785 | fail: | |
20786 | return NULL; | |
20787 | } | |
20788 | ||
20789 | ||
20790 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20791 | PyObject *resultobj; | |
20792 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20793 | bool result; | |
20794 | PyObject * obj0 = 0 ; | |
20795 | char *kwnames[] = { | |
20796 | (char *) "self", NULL | |
20797 | }; | |
20798 | ||
20799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
20800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20801 | { | |
20802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20803 | result = (bool)(arg1)->DestroyChildren(); | |
20804 | ||
20805 | wxPyEndAllowThreads(__tstate); | |
20806 | if (PyErr_Occurred()) SWIG_fail; | |
20807 | } | |
4d5c3d91 | 20808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20809 | return resultobj; |
20810 | fail: | |
20811 | return NULL; | |
20812 | } | |
20813 | ||
20814 | ||
20815 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20816 | PyObject *resultobj; | |
20817 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20818 | bool result; | |
20819 | PyObject * obj0 = 0 ; | |
20820 | char *kwnames[] = { | |
20821 | (char *) "self", NULL | |
20822 | }; | |
20823 | ||
20824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
20825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20826 | { | |
20827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20828 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
20829 | ||
20830 | wxPyEndAllowThreads(__tstate); | |
20831 | if (PyErr_Occurred()) SWIG_fail; | |
20832 | } | |
4d5c3d91 | 20833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20834 | return resultobj; |
20835 | fail: | |
20836 | return NULL; | |
20837 | } | |
20838 | ||
20839 | ||
20840 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20841 | PyObject *resultobj; | |
20842 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20843 | wxString *arg2 = 0 ; | |
e811c8ce | 20844 | bool temp2 = False ; |
d14a1e28 RD |
20845 | PyObject * obj0 = 0 ; |
20846 | PyObject * obj1 = 0 ; | |
20847 | char *kwnames[] = { | |
20848 | (char *) "self",(char *) "title", NULL | |
20849 | }; | |
20850 | ||
20851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
20852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20853 | { | |
20854 | arg2 = wxString_in_helper(obj1); | |
20855 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20856 | temp2 = True; |
d14a1e28 RD |
20857 | } |
20858 | { | |
20859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20860 | (arg1)->SetTitle((wxString const &)*arg2); | |
20861 | ||
20862 | wxPyEndAllowThreads(__tstate); | |
20863 | if (PyErr_Occurred()) SWIG_fail; | |
20864 | } | |
20865 | Py_INCREF(Py_None); resultobj = Py_None; | |
20866 | { | |
20867 | if (temp2) | |
20868 | delete arg2; | |
20869 | } | |
20870 | return resultobj; | |
20871 | fail: | |
20872 | { | |
20873 | if (temp2) | |
20874 | delete arg2; | |
20875 | } | |
20876 | return NULL; | |
20877 | } | |
20878 | ||
20879 | ||
20880 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20881 | PyObject *resultobj; | |
20882 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20883 | wxString result; | |
20884 | PyObject * obj0 = 0 ; | |
20885 | char *kwnames[] = { | |
20886 | (char *) "self", NULL | |
20887 | }; | |
20888 | ||
20889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
20890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20891 | { | |
20892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20893 | result = ((wxWindow const *)arg1)->GetTitle(); | |
20894 | ||
20895 | wxPyEndAllowThreads(__tstate); | |
20896 | if (PyErr_Occurred()) SWIG_fail; | |
20897 | } | |
20898 | { | |
20899 | #if wxUSE_UNICODE | |
20900 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20901 | #else | |
20902 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20903 | #endif | |
20904 | } | |
20905 | return resultobj; | |
20906 | fail: | |
20907 | return NULL; | |
20908 | } | |
20909 | ||
20910 | ||
20911 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20912 | PyObject *resultobj; | |
20913 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20914 | wxString *arg2 = 0 ; | |
e811c8ce | 20915 | bool temp2 = False ; |
d14a1e28 RD |
20916 | PyObject * obj0 = 0 ; |
20917 | PyObject * obj1 = 0 ; | |
20918 | char *kwnames[] = { | |
20919 | (char *) "self",(char *) "label", NULL | |
20920 | }; | |
20921 | ||
20922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
20923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20924 | { | |
20925 | arg2 = wxString_in_helper(obj1); | |
20926 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20927 | temp2 = True; |
d14a1e28 RD |
20928 | } |
20929 | { | |
20930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20931 | (arg1)->SetLabel((wxString const &)*arg2); | |
20932 | ||
20933 | wxPyEndAllowThreads(__tstate); | |
20934 | if (PyErr_Occurred()) SWIG_fail; | |
20935 | } | |
20936 | Py_INCREF(Py_None); resultobj = Py_None; | |
20937 | { | |
20938 | if (temp2) | |
20939 | delete arg2; | |
20940 | } | |
20941 | return resultobj; | |
20942 | fail: | |
20943 | { | |
20944 | if (temp2) | |
20945 | delete arg2; | |
20946 | } | |
20947 | return NULL; | |
20948 | } | |
20949 | ||
20950 | ||
20951 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20952 | PyObject *resultobj; | |
20953 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20954 | wxString result; | |
20955 | PyObject * obj0 = 0 ; | |
20956 | char *kwnames[] = { | |
20957 | (char *) "self", NULL | |
20958 | }; | |
20959 | ||
20960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
20961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20962 | { | |
20963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20964 | result = ((wxWindow const *)arg1)->GetLabel(); | |
20965 | ||
20966 | wxPyEndAllowThreads(__tstate); | |
20967 | if (PyErr_Occurred()) SWIG_fail; | |
20968 | } | |
20969 | { | |
20970 | #if wxUSE_UNICODE | |
20971 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20972 | #else | |
20973 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20974 | #endif | |
20975 | } | |
20976 | return resultobj; | |
20977 | fail: | |
20978 | return NULL; | |
20979 | } | |
20980 | ||
20981 | ||
20982 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20983 | PyObject *resultobj; | |
20984 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20985 | wxString *arg2 = 0 ; | |
e811c8ce | 20986 | bool temp2 = False ; |
d14a1e28 RD |
20987 | PyObject * obj0 = 0 ; |
20988 | PyObject * obj1 = 0 ; | |
20989 | char *kwnames[] = { | |
20990 | (char *) "self",(char *) "name", NULL | |
20991 | }; | |
20992 | ||
20993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
20994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20995 | { | |
20996 | arg2 = wxString_in_helper(obj1); | |
20997 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 20998 | temp2 = True; |
d14a1e28 RD |
20999 | } |
21000 | { | |
21001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21002 | (arg1)->SetName((wxString const &)*arg2); | |
21003 | ||
21004 | wxPyEndAllowThreads(__tstate); | |
21005 | if (PyErr_Occurred()) SWIG_fail; | |
21006 | } | |
21007 | Py_INCREF(Py_None); resultobj = Py_None; | |
21008 | { | |
21009 | if (temp2) | |
21010 | delete arg2; | |
21011 | } | |
21012 | return resultobj; | |
21013 | fail: | |
21014 | { | |
21015 | if (temp2) | |
21016 | delete arg2; | |
21017 | } | |
21018 | return NULL; | |
21019 | } | |
21020 | ||
21021 | ||
21022 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21023 | PyObject *resultobj; | |
21024 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21025 | wxString result; | |
21026 | PyObject * obj0 = 0 ; | |
21027 | char *kwnames[] = { | |
21028 | (char *) "self", NULL | |
21029 | }; | |
21030 | ||
21031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
21032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21033 | { | |
21034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21035 | result = ((wxWindow const *)arg1)->GetName(); | |
21036 | ||
21037 | wxPyEndAllowThreads(__tstate); | |
21038 | if (PyErr_Occurred()) SWIG_fail; | |
21039 | } | |
21040 | { | |
21041 | #if wxUSE_UNICODE | |
21042 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21043 | #else | |
21044 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21045 | #endif | |
21046 | } | |
21047 | return resultobj; | |
21048 | fail: | |
21049 | return NULL; | |
21050 | } | |
21051 | ||
21052 | ||
21053 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21054 | PyObject *resultobj; | |
21055 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21056 | int arg2 ; |
d14a1e28 | 21057 | PyObject * obj0 = 0 ; |
994141e6 | 21058 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21059 | char *kwnames[] = { |
21060 | (char *) "self",(char *) "winid", NULL | |
21061 | }; | |
21062 | ||
994141e6 | 21063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21065 | { |
21066 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21067 | if (PyErr_Occurred()) SWIG_fail; | |
21068 | } | |
d14a1e28 RD |
21069 | { |
21070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21071 | (arg1)->SetId(arg2); | |
21072 | ||
21073 | wxPyEndAllowThreads(__tstate); | |
21074 | if (PyErr_Occurred()) SWIG_fail; | |
21075 | } | |
21076 | Py_INCREF(Py_None); resultobj = Py_None; | |
21077 | return resultobj; | |
21078 | fail: | |
21079 | return NULL; | |
21080 | } | |
21081 | ||
21082 | ||
21083 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21084 | PyObject *resultobj; | |
21085 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21086 | int result; |
d14a1e28 RD |
21087 | PyObject * obj0 = 0 ; |
21088 | char *kwnames[] = { | |
21089 | (char *) "self", NULL | |
21090 | }; | |
21091 | ||
21092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
21093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21094 | { | |
21095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 21096 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
21097 | |
21098 | wxPyEndAllowThreads(__tstate); | |
21099 | if (PyErr_Occurred()) SWIG_fail; | |
21100 | } | |
994141e6 | 21101 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21102 | return resultobj; |
21103 | fail: | |
21104 | return NULL; | |
21105 | } | |
21106 | ||
21107 | ||
21108 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21109 | PyObject *resultobj; | |
21110 | int result; | |
21111 | char *kwnames[] = { | |
21112 | NULL | |
21113 | }; | |
21114 | ||
21115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
21116 | { | |
21117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21118 | result = (int)wxWindow::NewControlId(); | |
21119 | ||
21120 | wxPyEndAllowThreads(__tstate); | |
21121 | if (PyErr_Occurred()) SWIG_fail; | |
21122 | } | |
994141e6 | 21123 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21124 | return resultobj; |
21125 | fail: | |
21126 | return NULL; | |
21127 | } | |
21128 | ||
21129 | ||
21130 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21131 | PyObject *resultobj; | |
21132 | int arg1 ; | |
21133 | int result; | |
994141e6 | 21134 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21135 | char *kwnames[] = { |
21136 | (char *) "winid", NULL | |
21137 | }; | |
21138 | ||
994141e6 RD |
21139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; |
21140 | { | |
21141 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
21142 | if (PyErr_Occurred()) SWIG_fail; | |
21143 | } | |
d14a1e28 RD |
21144 | { |
21145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21146 | result = (int)wxWindow::NextControlId(arg1); | |
21147 | ||
21148 | wxPyEndAllowThreads(__tstate); | |
21149 | if (PyErr_Occurred()) SWIG_fail; | |
21150 | } | |
994141e6 | 21151 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21152 | return resultobj; |
21153 | fail: | |
21154 | return NULL; | |
21155 | } | |
21156 | ||
21157 | ||
21158 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21159 | PyObject *resultobj; | |
21160 | int arg1 ; | |
21161 | int result; | |
994141e6 | 21162 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21163 | char *kwnames[] = { |
21164 | (char *) "winid", NULL | |
21165 | }; | |
21166 | ||
994141e6 RD |
21167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; |
21168 | { | |
21169 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
21170 | if (PyErr_Occurred()) SWIG_fail; | |
21171 | } | |
d14a1e28 RD |
21172 | { |
21173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21174 | result = (int)wxWindow::PrevControlId(arg1); | |
21175 | ||
21176 | wxPyEndAllowThreads(__tstate); | |
21177 | if (PyErr_Occurred()) SWIG_fail; | |
21178 | } | |
994141e6 | 21179 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21180 | return resultobj; |
21181 | fail: | |
21182 | return NULL; | |
21183 | } | |
21184 | ||
21185 | ||
21186 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21187 | PyObject *resultobj; | |
21188 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21189 | wxSize *arg2 = 0 ; | |
21190 | wxSize temp2 ; | |
21191 | PyObject * obj0 = 0 ; | |
21192 | PyObject * obj1 = 0 ; | |
21193 | char *kwnames[] = { | |
21194 | (char *) "self",(char *) "size", NULL | |
21195 | }; | |
21196 | ||
21197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
21198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21199 | { | |
21200 | arg2 = &temp2; | |
21201 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21202 | } | |
21203 | { | |
21204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21205 | (arg1)->SetSize((wxSize const &)*arg2); | |
21206 | ||
21207 | wxPyEndAllowThreads(__tstate); | |
21208 | if (PyErr_Occurred()) SWIG_fail; | |
21209 | } | |
21210 | Py_INCREF(Py_None); resultobj = Py_None; | |
21211 | return resultobj; | |
21212 | fail: | |
21213 | return NULL; | |
21214 | } | |
21215 | ||
21216 | ||
21217 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21218 | PyObject *resultobj; | |
21219 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21220 | int arg2 ; | |
21221 | int arg3 ; | |
21222 | int arg4 ; | |
21223 | int arg5 ; | |
21224 | int arg6 = (int) wxSIZE_AUTO ; | |
21225 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21226 | PyObject * obj1 = 0 ; |
21227 | PyObject * obj2 = 0 ; | |
21228 | PyObject * obj3 = 0 ; | |
21229 | PyObject * obj4 = 0 ; | |
21230 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
21231 | char *kwnames[] = { |
21232 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21233 | }; | |
21234 | ||
994141e6 | 21235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 21236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21237 | { |
21238 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21239 | if (PyErr_Occurred()) SWIG_fail; | |
21240 | } | |
21241 | { | |
21242 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21243 | if (PyErr_Occurred()) SWIG_fail; | |
21244 | } | |
21245 | { | |
21246 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21247 | if (PyErr_Occurred()) SWIG_fail; | |
21248 | } | |
21249 | { | |
21250 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
21251 | if (PyErr_Occurred()) SWIG_fail; | |
21252 | } | |
21253 | if (obj5) { | |
21254 | { | |
21255 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
21256 | if (PyErr_Occurred()) SWIG_fail; | |
21257 | } | |
21258 | } | |
d14a1e28 RD |
21259 | { |
21260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21261 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
21262 | ||
21263 | wxPyEndAllowThreads(__tstate); | |
21264 | if (PyErr_Occurred()) SWIG_fail; | |
21265 | } | |
21266 | Py_INCREF(Py_None); resultobj = Py_None; | |
21267 | return resultobj; | |
21268 | fail: | |
21269 | return NULL; | |
21270 | } | |
21271 | ||
21272 | ||
21273 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21274 | PyObject *resultobj; | |
21275 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21276 | wxRect *arg2 = 0 ; | |
21277 | int arg3 = (int) wxSIZE_AUTO ; | |
21278 | wxRect temp2 ; | |
21279 | PyObject * obj0 = 0 ; | |
21280 | PyObject * obj1 = 0 ; | |
994141e6 | 21281 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21282 | char *kwnames[] = { |
21283 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
21284 | }; | |
21285 | ||
994141e6 | 21286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
21287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21288 | { | |
21289 | arg2 = &temp2; | |
21290 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
21291 | } | |
994141e6 RD |
21292 | if (obj2) { |
21293 | { | |
21294 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21295 | if (PyErr_Occurred()) SWIG_fail; | |
21296 | } | |
21297 | } | |
d14a1e28 RD |
21298 | { |
21299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21300 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
21301 | ||
21302 | wxPyEndAllowThreads(__tstate); | |
21303 | if (PyErr_Occurred()) SWIG_fail; | |
21304 | } | |
21305 | Py_INCREF(Py_None); resultobj = Py_None; | |
21306 | return resultobj; | |
21307 | fail: | |
21308 | return NULL; | |
21309 | } | |
21310 | ||
21311 | ||
21312 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21313 | PyObject *resultobj; | |
21314 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21315 | int arg2 ; | |
21316 | int arg3 ; | |
21317 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21318 | PyObject * obj1 = 0 ; |
21319 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21320 | char *kwnames[] = { |
21321 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21322 | }; | |
21323 | ||
994141e6 | 21324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21326 | { |
21327 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21328 | if (PyErr_Occurred()) SWIG_fail; | |
21329 | } | |
21330 | { | |
21331 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21332 | if (PyErr_Occurred()) SWIG_fail; | |
21333 | } | |
d14a1e28 RD |
21334 | { |
21335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21336 | (arg1)->SetSize(arg2,arg3); | |
21337 | ||
21338 | wxPyEndAllowThreads(__tstate); | |
21339 | if (PyErr_Occurred()) SWIG_fail; | |
21340 | } | |
21341 | Py_INCREF(Py_None); resultobj = Py_None; | |
21342 | return resultobj; | |
21343 | fail: | |
21344 | return NULL; | |
21345 | } | |
21346 | ||
21347 | ||
21348 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21349 | PyObject *resultobj; | |
21350 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21351 | wxPoint *arg2 = 0 ; | |
21352 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
21353 | wxPoint temp2 ; | |
21354 | PyObject * obj0 = 0 ; | |
21355 | PyObject * obj1 = 0 ; | |
994141e6 | 21356 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21357 | char *kwnames[] = { |
21358 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
21359 | }; | |
21360 | ||
994141e6 | 21361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
21362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21363 | { | |
21364 | arg2 = &temp2; | |
21365 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21366 | } | |
994141e6 RD |
21367 | if (obj2) { |
21368 | { | |
21369 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21370 | if (PyErr_Occurred()) SWIG_fail; | |
21371 | } | |
21372 | } | |
d14a1e28 RD |
21373 | { |
21374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21375 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
21376 | ||
21377 | wxPyEndAllowThreads(__tstate); | |
21378 | if (PyErr_Occurred()) SWIG_fail; | |
21379 | } | |
21380 | Py_INCREF(Py_None); resultobj = Py_None; | |
21381 | return resultobj; | |
21382 | fail: | |
21383 | return NULL; | |
21384 | } | |
21385 | ||
21386 | ||
21387 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21388 | PyObject *resultobj; | |
21389 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21390 | int arg2 ; | |
21391 | int arg3 ; | |
21392 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
21393 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21394 | PyObject * obj1 = 0 ; |
21395 | PyObject * obj2 = 0 ; | |
21396 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21397 | char *kwnames[] = { |
21398 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
21399 | }; | |
21400 | ||
994141e6 | 21401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21403 | { |
21404 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21405 | if (PyErr_Occurred()) SWIG_fail; | |
21406 | } | |
21407 | { | |
21408 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21409 | if (PyErr_Occurred()) SWIG_fail; | |
21410 | } | |
21411 | if (obj3) { | |
21412 | { | |
21413 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21414 | if (PyErr_Occurred()) SWIG_fail; | |
21415 | } | |
21416 | } | |
d14a1e28 RD |
21417 | { |
21418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21419 | (arg1)->Move(arg2,arg3,arg4); | |
21420 | ||
21421 | wxPyEndAllowThreads(__tstate); | |
21422 | if (PyErr_Occurred()) SWIG_fail; | |
21423 | } | |
21424 | Py_INCREF(Py_None); resultobj = Py_None; | |
21425 | return resultobj; | |
21426 | fail: | |
21427 | return NULL; | |
21428 | } | |
21429 | ||
21430 | ||
21431 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21432 | PyObject *resultobj; | |
21433 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21434 | PyObject * obj0 = 0 ; | |
21435 | char *kwnames[] = { | |
21436 | (char *) "self", NULL | |
21437 | }; | |
21438 | ||
21439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
21440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21441 | { | |
21442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21443 | (arg1)->Raise(); | |
21444 | ||
21445 | wxPyEndAllowThreads(__tstate); | |
21446 | if (PyErr_Occurred()) SWIG_fail; | |
21447 | } | |
21448 | Py_INCREF(Py_None); resultobj = Py_None; | |
21449 | return resultobj; | |
21450 | fail: | |
21451 | return NULL; | |
21452 | } | |
21453 | ||
21454 | ||
21455 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21456 | PyObject *resultobj; | |
21457 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21458 | PyObject * obj0 = 0 ; | |
21459 | char *kwnames[] = { | |
21460 | (char *) "self", NULL | |
21461 | }; | |
21462 | ||
21463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
21464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21465 | { | |
21466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21467 | (arg1)->Lower(); | |
21468 | ||
21469 | wxPyEndAllowThreads(__tstate); | |
21470 | if (PyErr_Occurred()) SWIG_fail; | |
21471 | } | |
21472 | Py_INCREF(Py_None); resultobj = Py_None; | |
21473 | return resultobj; | |
21474 | fail: | |
21475 | return NULL; | |
21476 | } | |
21477 | ||
21478 | ||
21479 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21480 | PyObject *resultobj; | |
21481 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21482 | wxSize *arg2 = 0 ; | |
21483 | wxSize temp2 ; | |
21484 | PyObject * obj0 = 0 ; | |
21485 | PyObject * obj1 = 0 ; | |
21486 | char *kwnames[] = { | |
21487 | (char *) "self",(char *) "size", NULL | |
21488 | }; | |
21489 | ||
21490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
21491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21492 | { | |
21493 | arg2 = &temp2; | |
21494 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21495 | } | |
21496 | { | |
21497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21498 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
21499 | ||
21500 | wxPyEndAllowThreads(__tstate); | |
21501 | if (PyErr_Occurred()) SWIG_fail; | |
21502 | } | |
21503 | Py_INCREF(Py_None); resultobj = Py_None; | |
21504 | return resultobj; | |
21505 | fail: | |
21506 | return NULL; | |
21507 | } | |
21508 | ||
21509 | ||
21510 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21511 | PyObject *resultobj; | |
21512 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21513 | int arg2 ; | |
21514 | int arg3 ; | |
21515 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21516 | PyObject * obj1 = 0 ; |
21517 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21518 | char *kwnames[] = { |
21519 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21520 | }; | |
21521 | ||
994141e6 | 21522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21524 | { |
21525 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21526 | if (PyErr_Occurred()) SWIG_fail; | |
21527 | } | |
21528 | { | |
21529 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21530 | if (PyErr_Occurred()) SWIG_fail; | |
21531 | } | |
d14a1e28 RD |
21532 | { |
21533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21534 | (arg1)->SetClientSize(arg2,arg3); | |
21535 | ||
21536 | wxPyEndAllowThreads(__tstate); | |
21537 | if (PyErr_Occurred()) SWIG_fail; | |
21538 | } | |
21539 | Py_INCREF(Py_None); resultobj = Py_None; | |
21540 | return resultobj; | |
21541 | fail: | |
21542 | return NULL; | |
21543 | } | |
21544 | ||
21545 | ||
21546 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21547 | PyObject *resultobj; | |
21548 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21549 | wxRect *arg2 = 0 ; | |
21550 | wxRect temp2 ; | |
21551 | PyObject * obj0 = 0 ; | |
21552 | PyObject * obj1 = 0 ; | |
21553 | char *kwnames[] = { | |
21554 | (char *) "self",(char *) "rect", NULL | |
21555 | }; | |
21556 | ||
21557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
21558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21559 | { | |
21560 | arg2 = &temp2; | |
21561 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
21562 | } | |
21563 | { | |
21564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21565 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
21566 | ||
21567 | wxPyEndAllowThreads(__tstate); | |
21568 | if (PyErr_Occurred()) SWIG_fail; | |
21569 | } | |
21570 | Py_INCREF(Py_None); resultobj = Py_None; | |
21571 | return resultobj; | |
21572 | fail: | |
21573 | return NULL; | |
21574 | } | |
21575 | ||
21576 | ||
21577 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21578 | PyObject *resultobj; | |
21579 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21580 | wxPoint result; | |
21581 | PyObject * obj0 = 0 ; | |
21582 | char *kwnames[] = { | |
21583 | (char *) "self", NULL | |
21584 | }; | |
21585 | ||
21586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
21587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21588 | { | |
21589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 21590 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
21591 | |
21592 | wxPyEndAllowThreads(__tstate); | |
21593 | if (PyErr_Occurred()) SWIG_fail; | |
21594 | } | |
21595 | { | |
21596 | wxPoint * resultptr; | |
21597 | resultptr = new wxPoint((wxPoint &) result); | |
21598 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
21599 | } | |
21600 | return resultobj; | |
21601 | fail: | |
21602 | return NULL; | |
21603 | } | |
21604 | ||
21605 | ||
21606 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21607 | PyObject *resultobj; | |
21608 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21609 | int *arg2 = (int *) 0 ; | |
21610 | int *arg3 = (int *) 0 ; | |
21611 | int temp2 ; | |
21612 | int temp3 ; | |
21613 | PyObject * obj0 = 0 ; | |
21614 | char *kwnames[] = { | |
21615 | (char *) "self", NULL | |
21616 | }; | |
21617 | ||
21618 | arg2 = &temp2; | |
21619 | arg3 = &temp3; | |
21620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
21621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21622 | { | |
21623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 21624 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
21625 | |
21626 | wxPyEndAllowThreads(__tstate); | |
21627 | if (PyErr_Occurred()) SWIG_fail; | |
21628 | } | |
21629 | Py_INCREF(Py_None); resultobj = Py_None; | |
21630 | { | |
21631 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21632 | resultobj = t_output_helper(resultobj,o); | |
21633 | } | |
21634 | { | |
21635 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21636 | resultobj = t_output_helper(resultobj,o); | |
21637 | } | |
21638 | return resultobj; | |
21639 | fail: | |
21640 | return NULL; | |
21641 | } | |
21642 | ||
21643 | ||
21644 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21645 | PyObject *resultobj; | |
21646 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21647 | wxSize result; | |
21648 | PyObject * obj0 = 0 ; | |
21649 | char *kwnames[] = { | |
21650 | (char *) "self", NULL | |
21651 | }; | |
21652 | ||
21653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
21654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21655 | { | |
21656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21657 | result = ((wxWindow const *)arg1)->GetSize(); | |
21658 | ||
21659 | wxPyEndAllowThreads(__tstate); | |
21660 | if (PyErr_Occurred()) SWIG_fail; | |
21661 | } | |
21662 | { | |
21663 | wxSize * resultptr; | |
21664 | resultptr = new wxSize((wxSize &) result); | |
21665 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21666 | } | |
21667 | return resultobj; | |
21668 | fail: | |
21669 | return NULL; | |
21670 | } | |
21671 | ||
21672 | ||
21673 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21674 | PyObject *resultobj; | |
21675 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21676 | int *arg2 = (int *) 0 ; | |
21677 | int *arg3 = (int *) 0 ; | |
21678 | int temp2 ; | |
21679 | int temp3 ; | |
21680 | PyObject * obj0 = 0 ; | |
21681 | char *kwnames[] = { | |
21682 | (char *) "self", NULL | |
21683 | }; | |
21684 | ||
21685 | arg2 = &temp2; | |
21686 | arg3 = &temp3; | |
21687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
21688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21689 | { | |
21690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21691 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
21692 | ||
21693 | wxPyEndAllowThreads(__tstate); | |
21694 | if (PyErr_Occurred()) SWIG_fail; | |
21695 | } | |
21696 | Py_INCREF(Py_None); resultobj = Py_None; | |
21697 | { | |
21698 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21699 | resultobj = t_output_helper(resultobj,o); | |
21700 | } | |
21701 | { | |
21702 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21703 | resultobj = t_output_helper(resultobj,o); | |
21704 | } | |
21705 | return resultobj; | |
21706 | fail: | |
21707 | return NULL; | |
21708 | } | |
21709 | ||
21710 | ||
21711 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21712 | PyObject *resultobj; | |
21713 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21714 | wxRect result; | |
21715 | PyObject * obj0 = 0 ; | |
21716 | char *kwnames[] = { | |
21717 | (char *) "self", NULL | |
21718 | }; | |
21719 | ||
21720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
21721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21722 | { | |
21723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21724 | result = ((wxWindow const *)arg1)->GetRect(); | |
21725 | ||
21726 | wxPyEndAllowThreads(__tstate); | |
21727 | if (PyErr_Occurred()) SWIG_fail; | |
21728 | } | |
21729 | { | |
21730 | wxRect * resultptr; | |
21731 | resultptr = new wxRect((wxRect &) result); | |
21732 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
21733 | } | |
21734 | return resultobj; | |
21735 | fail: | |
21736 | return NULL; | |
21737 | } | |
21738 | ||
21739 | ||
21740 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21741 | PyObject *resultobj; | |
21742 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21743 | wxSize result; | |
21744 | PyObject * obj0 = 0 ; | |
21745 | char *kwnames[] = { | |
21746 | (char *) "self", NULL | |
21747 | }; | |
21748 | ||
21749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
21750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21751 | { | |
21752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21753 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
21754 | ||
21755 | wxPyEndAllowThreads(__tstate); | |
21756 | if (PyErr_Occurred()) SWIG_fail; | |
21757 | } | |
21758 | { | |
21759 | wxSize * resultptr; | |
21760 | resultptr = new wxSize((wxSize &) result); | |
21761 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21762 | } | |
21763 | return resultobj; | |
21764 | fail: | |
21765 | return NULL; | |
21766 | } | |
21767 | ||
21768 | ||
21769 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21770 | PyObject *resultobj; | |
21771 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21772 | int *arg2 = (int *) 0 ; | |
21773 | int *arg3 = (int *) 0 ; | |
21774 | int temp2 ; | |
21775 | int temp3 ; | |
21776 | PyObject * obj0 = 0 ; | |
21777 | char *kwnames[] = { | |
21778 | (char *) "self", NULL | |
21779 | }; | |
21780 | ||
21781 | arg2 = &temp2; | |
21782 | arg3 = &temp3; | |
21783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
21784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21785 | { | |
21786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21787 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
21788 | ||
21789 | wxPyEndAllowThreads(__tstate); | |
21790 | if (PyErr_Occurred()) SWIG_fail; | |
21791 | } | |
21792 | Py_INCREF(Py_None); resultobj = Py_None; | |
21793 | { | |
21794 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21795 | resultobj = t_output_helper(resultobj,o); | |
21796 | } | |
21797 | { | |
21798 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21799 | resultobj = t_output_helper(resultobj,o); | |
21800 | } | |
21801 | return resultobj; | |
21802 | fail: | |
21803 | return NULL; | |
21804 | } | |
21805 | ||
21806 | ||
21807 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21808 | PyObject *resultobj; | |
21809 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21810 | wxPoint result; | |
21811 | PyObject * obj0 = 0 ; | |
21812 | char *kwnames[] = { | |
21813 | (char *) "self", NULL | |
21814 | }; | |
21815 | ||
21816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
21817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21818 | { | |
21819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21820 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
21821 | ||
21822 | wxPyEndAllowThreads(__tstate); | |
21823 | if (PyErr_Occurred()) SWIG_fail; | |
21824 | } | |
21825 | { | |
21826 | wxPoint * resultptr; | |
21827 | resultptr = new wxPoint((wxPoint &) result); | |
21828 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
21829 | } | |
21830 | return resultobj; | |
21831 | fail: | |
21832 | return NULL; | |
21833 | } | |
21834 | ||
21835 | ||
21836 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21837 | PyObject *resultobj; | |
21838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21839 | wxRect result; | |
21840 | PyObject * obj0 = 0 ; | |
21841 | char *kwnames[] = { | |
21842 | (char *) "self", NULL | |
21843 | }; | |
21844 | ||
21845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
21846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21847 | { | |
21848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21849 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
21850 | ||
21851 | wxPyEndAllowThreads(__tstate); | |
21852 | if (PyErr_Occurred()) SWIG_fail; | |
21853 | } | |
21854 | { | |
21855 | wxRect * resultptr; | |
21856 | resultptr = new wxRect((wxRect &) result); | |
21857 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
21858 | } | |
21859 | return resultobj; | |
21860 | fail: | |
21861 | return NULL; | |
21862 | } | |
21863 | ||
21864 | ||
21865 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21866 | PyObject *resultobj; | |
21867 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21868 | wxSize result; | |
21869 | PyObject * obj0 = 0 ; | |
21870 | char *kwnames[] = { | |
21871 | (char *) "self", NULL | |
21872 | }; | |
21873 | ||
21874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
21875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21876 | { | |
21877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21878 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
21879 | ||
21880 | wxPyEndAllowThreads(__tstate); | |
21881 | if (PyErr_Occurred()) SWIG_fail; | |
21882 | } | |
21883 | { | |
21884 | wxSize * resultptr; | |
21885 | resultptr = new wxSize((wxSize &) result); | |
21886 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21887 | } | |
21888 | return resultobj; | |
21889 | fail: | |
21890 | return NULL; | |
21891 | } | |
21892 | ||
21893 | ||
21894 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21895 | PyObject *resultobj; | |
21896 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21897 | int *arg2 = (int *) 0 ; | |
21898 | int *arg3 = (int *) 0 ; | |
21899 | int temp2 ; | |
21900 | int temp3 ; | |
21901 | PyObject * obj0 = 0 ; | |
21902 | char *kwnames[] = { | |
21903 | (char *) "self", NULL | |
21904 | }; | |
21905 | ||
21906 | arg2 = &temp2; | |
21907 | arg3 = &temp3; | |
21908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
21909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21910 | { | |
21911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21912 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
21913 | ||
21914 | wxPyEndAllowThreads(__tstate); | |
21915 | if (PyErr_Occurred()) SWIG_fail; | |
21916 | } | |
21917 | Py_INCREF(Py_None); resultobj = Py_None; | |
21918 | { | |
21919 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21920 | resultobj = t_output_helper(resultobj,o); | |
21921 | } | |
21922 | { | |
21923 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21924 | resultobj = t_output_helper(resultobj,o); | |
21925 | } | |
21926 | return resultobj; | |
21927 | fail: | |
21928 | return NULL; | |
21929 | } | |
21930 | ||
21931 | ||
21932 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21933 | PyObject *resultobj; | |
21934 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21935 | wxSize result; | |
21936 | PyObject * obj0 = 0 ; | |
21937 | char *kwnames[] = { | |
21938 | (char *) "self", NULL | |
21939 | }; | |
21940 | ||
21941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
21942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21943 | { | |
21944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21945 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
21946 | ||
21947 | wxPyEndAllowThreads(__tstate); | |
21948 | if (PyErr_Occurred()) SWIG_fail; | |
21949 | } | |
21950 | { | |
21951 | wxSize * resultptr; | |
21952 | resultptr = new wxSize((wxSize &) result); | |
21953 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21954 | } | |
21955 | return resultobj; | |
21956 | fail: | |
21957 | return NULL; | |
21958 | } | |
21959 | ||
21960 | ||
21961 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21962 | PyObject *resultobj; | |
21963 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21964 | int arg2 = (int) wxBOTH ; | |
21965 | PyObject * obj0 = 0 ; | |
994141e6 | 21966 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21967 | char *kwnames[] = { |
21968 | (char *) "self",(char *) "direction", NULL | |
21969 | }; | |
21970 | ||
994141e6 | 21971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21973 | if (obj1) { |
21974 | { | |
21975 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21976 | if (PyErr_Occurred()) SWIG_fail; | |
21977 | } | |
21978 | } | |
d14a1e28 RD |
21979 | { |
21980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21981 | (arg1)->Center(arg2); | |
21982 | ||
21983 | wxPyEndAllowThreads(__tstate); | |
21984 | if (PyErr_Occurred()) SWIG_fail; | |
21985 | } | |
21986 | Py_INCREF(Py_None); resultobj = Py_None; | |
21987 | return resultobj; | |
21988 | fail: | |
21989 | return NULL; | |
21990 | } | |
21991 | ||
21992 | ||
21993 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21994 | PyObject *resultobj; | |
21995 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21996 | int arg2 = (int) wxBOTH ; | |
21997 | PyObject * obj0 = 0 ; | |
994141e6 | 21998 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21999 | char *kwnames[] = { |
22000 | (char *) "self",(char *) "dir", NULL | |
22001 | }; | |
22002 | ||
994141e6 | 22003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22005 | if (obj1) { |
22006 | { | |
22007 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22008 | if (PyErr_Occurred()) SWIG_fail; | |
22009 | } | |
22010 | } | |
d14a1e28 RD |
22011 | { |
22012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22013 | (arg1)->CenterOnScreen(arg2); | |
22014 | ||
22015 | wxPyEndAllowThreads(__tstate); | |
22016 | if (PyErr_Occurred()) SWIG_fail; | |
22017 | } | |
22018 | Py_INCREF(Py_None); resultobj = Py_None; | |
22019 | return resultobj; | |
22020 | fail: | |
22021 | return NULL; | |
22022 | } | |
22023 | ||
22024 | ||
22025 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22026 | PyObject *resultobj; | |
22027 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22028 | int arg2 = (int) wxBOTH ; | |
22029 | PyObject * obj0 = 0 ; | |
994141e6 | 22030 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22031 | char *kwnames[] = { |
22032 | (char *) "self",(char *) "dir", NULL | |
22033 | }; | |
22034 | ||
994141e6 | 22035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22037 | if (obj1) { |
22038 | { | |
22039 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22040 | if (PyErr_Occurred()) SWIG_fail; | |
22041 | } | |
22042 | } | |
d14a1e28 RD |
22043 | { |
22044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22045 | (arg1)->CenterOnParent(arg2); | |
22046 | ||
22047 | wxPyEndAllowThreads(__tstate); | |
22048 | if (PyErr_Occurred()) SWIG_fail; | |
22049 | } | |
22050 | Py_INCREF(Py_None); resultobj = Py_None; | |
22051 | return resultobj; | |
22052 | fail: | |
22053 | return NULL; | |
22054 | } | |
22055 | ||
22056 | ||
22057 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22058 | PyObject *resultobj; | |
22059 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22060 | PyObject * obj0 = 0 ; | |
22061 | char *kwnames[] = { | |
22062 | (char *) "self", NULL | |
22063 | }; | |
22064 | ||
22065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
22066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22067 | { | |
22068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22069 | (arg1)->Fit(); | |
22070 | ||
22071 | wxPyEndAllowThreads(__tstate); | |
22072 | if (PyErr_Occurred()) SWIG_fail; | |
22073 | } | |
22074 | Py_INCREF(Py_None); resultobj = Py_None; | |
22075 | return resultobj; | |
22076 | fail: | |
22077 | return NULL; | |
22078 | } | |
22079 | ||
22080 | ||
22081 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22082 | PyObject *resultobj; | |
22083 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22084 | PyObject * obj0 = 0 ; | |
22085 | char *kwnames[] = { | |
22086 | (char *) "self", NULL | |
22087 | }; | |
22088 | ||
22089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
22090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22091 | { | |
22092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22093 | (arg1)->FitInside(); | |
22094 | ||
22095 | wxPyEndAllowThreads(__tstate); | |
22096 | if (PyErr_Occurred()) SWIG_fail; | |
22097 | } | |
22098 | Py_INCREF(Py_None); resultobj = Py_None; | |
22099 | return resultobj; | |
22100 | fail: | |
22101 | return NULL; | |
22102 | } | |
22103 | ||
22104 | ||
22105 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22106 | PyObject *resultobj; | |
22107 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22108 | int arg2 ; | |
22109 | int arg3 ; | |
22110 | int arg4 = (int) -1 ; | |
22111 | int arg5 = (int) -1 ; | |
22112 | int arg6 = (int) -1 ; | |
22113 | int arg7 = (int) -1 ; | |
22114 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22115 | PyObject * obj1 = 0 ; |
22116 | PyObject * obj2 = 0 ; | |
22117 | PyObject * obj3 = 0 ; | |
22118 | PyObject * obj4 = 0 ; | |
22119 | PyObject * obj5 = 0 ; | |
22120 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
22121 | char *kwnames[] = { |
22122 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
22123 | }; | |
22124 | ||
994141e6 | 22125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 22126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22127 | { |
22128 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22129 | if (PyErr_Occurred()) SWIG_fail; | |
22130 | } | |
22131 | { | |
22132 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22133 | if (PyErr_Occurred()) SWIG_fail; | |
22134 | } | |
22135 | if (obj3) { | |
22136 | { | |
22137 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
22138 | if (PyErr_Occurred()) SWIG_fail; | |
22139 | } | |
22140 | } | |
22141 | if (obj4) { | |
22142 | { | |
22143 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
22144 | if (PyErr_Occurred()) SWIG_fail; | |
22145 | } | |
22146 | } | |
22147 | if (obj5) { | |
22148 | { | |
22149 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
22150 | if (PyErr_Occurred()) SWIG_fail; | |
22151 | } | |
22152 | } | |
22153 | if (obj6) { | |
22154 | { | |
22155 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
22156 | if (PyErr_Occurred()) SWIG_fail; | |
22157 | } | |
22158 | } | |
d14a1e28 RD |
22159 | { |
22160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22161 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
22162 | ||
22163 | wxPyEndAllowThreads(__tstate); | |
22164 | if (PyErr_Occurred()) SWIG_fail; | |
22165 | } | |
22166 | Py_INCREF(Py_None); resultobj = Py_None; | |
22167 | return resultobj; | |
22168 | fail: | |
22169 | return NULL; | |
22170 | } | |
22171 | ||
22172 | ||
22173 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22174 | PyObject *resultobj; | |
22175 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22176 | int arg2 ; | |
22177 | int arg3 ; | |
22178 | int arg4 = (int) -1 ; | |
22179 | int arg5 = (int) -1 ; | |
22180 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22181 | PyObject * obj1 = 0 ; |
22182 | PyObject * obj2 = 0 ; | |
22183 | PyObject * obj3 = 0 ; | |
22184 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
22185 | char *kwnames[] = { |
22186 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
22187 | }; | |
22188 | ||
994141e6 | 22189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 22190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22191 | { |
22192 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22193 | if (PyErr_Occurred()) SWIG_fail; | |
22194 | } | |
22195 | { | |
22196 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22197 | if (PyErr_Occurred()) SWIG_fail; | |
22198 | } | |
22199 | if (obj3) { | |
22200 | { | |
22201 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
22202 | if (PyErr_Occurred()) SWIG_fail; | |
22203 | } | |
22204 | } | |
22205 | if (obj4) { | |
22206 | { | |
22207 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
22208 | if (PyErr_Occurred()) SWIG_fail; | |
22209 | } | |
22210 | } | |
d14a1e28 RD |
22211 | { |
22212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22213 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
22214 | ||
22215 | wxPyEndAllowThreads(__tstate); | |
22216 | if (PyErr_Occurred()) SWIG_fail; | |
22217 | } | |
22218 | Py_INCREF(Py_None); resultobj = Py_None; | |
22219 | return resultobj; | |
22220 | fail: | |
22221 | return NULL; | |
22222 | } | |
22223 | ||
22224 | ||
22225 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22226 | PyObject *resultobj; | |
22227 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22228 | int result; | |
22229 | PyObject * obj0 = 0 ; | |
22230 | char *kwnames[] = { | |
22231 | (char *) "self", NULL | |
22232 | }; | |
22233 | ||
22234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
22235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22236 | { | |
22237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22238 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
22239 | ||
22240 | wxPyEndAllowThreads(__tstate); | |
22241 | if (PyErr_Occurred()) SWIG_fail; | |
22242 | } | |
994141e6 | 22243 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22244 | return resultobj; |
22245 | fail: | |
22246 | return NULL; | |
22247 | } | |
22248 | ||
22249 | ||
22250 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22251 | PyObject *resultobj; | |
22252 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22253 | int result; | |
22254 | PyObject * obj0 = 0 ; | |
22255 | char *kwnames[] = { | |
22256 | (char *) "self", NULL | |
22257 | }; | |
22258 | ||
22259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
22260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22261 | { | |
22262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22263 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
22264 | ||
22265 | wxPyEndAllowThreads(__tstate); | |
22266 | if (PyErr_Occurred()) SWIG_fail; | |
22267 | } | |
994141e6 | 22268 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22269 | return resultobj; |
22270 | fail: | |
22271 | return NULL; | |
22272 | } | |
22273 | ||
22274 | ||
22275 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22276 | PyObject *resultobj; | |
22277 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22278 | int result; | |
22279 | PyObject * obj0 = 0 ; | |
22280 | char *kwnames[] = { | |
22281 | (char *) "self", NULL | |
22282 | }; | |
22283 | ||
22284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
22285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22286 | { | |
22287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22288 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
22289 | ||
22290 | wxPyEndAllowThreads(__tstate); | |
22291 | if (PyErr_Occurred()) SWIG_fail; | |
22292 | } | |
994141e6 | 22293 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22294 | return resultobj; |
22295 | fail: | |
22296 | return NULL; | |
22297 | } | |
22298 | ||
22299 | ||
22300 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22301 | PyObject *resultobj; | |
22302 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22303 | int result; | |
22304 | PyObject * obj0 = 0 ; | |
22305 | char *kwnames[] = { | |
22306 | (char *) "self", NULL | |
22307 | }; | |
22308 | ||
22309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
22310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22311 | { | |
22312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22313 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
22314 | ||
22315 | wxPyEndAllowThreads(__tstate); | |
22316 | if (PyErr_Occurred()) SWIG_fail; | |
22317 | } | |
994141e6 | 22318 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22319 | return resultobj; |
22320 | fail: | |
22321 | return NULL; | |
22322 | } | |
22323 | ||
22324 | ||
22325 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22326 | PyObject *resultobj; | |
22327 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22328 | wxSize result; | |
22329 | PyObject * obj0 = 0 ; | |
22330 | char *kwnames[] = { | |
22331 | (char *) "self", NULL | |
22332 | }; | |
22333 | ||
22334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
22335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22336 | { | |
22337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22338 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
22339 | ||
22340 | wxPyEndAllowThreads(__tstate); | |
22341 | if (PyErr_Occurred()) SWIG_fail; | |
22342 | } | |
22343 | { | |
22344 | wxSize * resultptr; | |
22345 | resultptr = new wxSize((wxSize &) result); | |
22346 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22347 | } | |
22348 | return resultobj; | |
22349 | fail: | |
22350 | return NULL; | |
22351 | } | |
22352 | ||
22353 | ||
22354 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22355 | PyObject *resultobj; | |
22356 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22357 | wxSize *arg2 = 0 ; | |
22358 | wxSize temp2 ; | |
22359 | PyObject * obj0 = 0 ; | |
22360 | PyObject * obj1 = 0 ; | |
22361 | char *kwnames[] = { | |
22362 | (char *) "self",(char *) "size", NULL | |
22363 | }; | |
22364 | ||
22365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
22366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22367 | { | |
22368 | arg2 = &temp2; | |
22369 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22370 | } | |
22371 | { | |
22372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22373 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
22374 | ||
22375 | wxPyEndAllowThreads(__tstate); | |
22376 | if (PyErr_Occurred()) SWIG_fail; | |
22377 | } | |
22378 | Py_INCREF(Py_None); resultobj = Py_None; | |
22379 | return resultobj; | |
22380 | fail: | |
22381 | return NULL; | |
22382 | } | |
22383 | ||
22384 | ||
22385 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22386 | PyObject *resultobj; | |
22387 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22388 | int arg2 ; | |
22389 | int arg3 ; | |
22390 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22391 | PyObject * obj1 = 0 ; |
22392 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22393 | char *kwnames[] = { |
22394 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22395 | }; | |
22396 | ||
994141e6 | 22397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22399 | { |
22400 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22401 | if (PyErr_Occurred()) SWIG_fail; | |
22402 | } | |
22403 | { | |
22404 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22405 | if (PyErr_Occurred()) SWIG_fail; | |
22406 | } | |
d14a1e28 RD |
22407 | { |
22408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22409 | (arg1)->SetVirtualSize(arg2,arg3); | |
22410 | ||
22411 | wxPyEndAllowThreads(__tstate); | |
22412 | if (PyErr_Occurred()) SWIG_fail; | |
22413 | } | |
22414 | Py_INCREF(Py_None); resultobj = Py_None; | |
22415 | return resultobj; | |
22416 | fail: | |
22417 | return NULL; | |
22418 | } | |
22419 | ||
22420 | ||
22421 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22422 | PyObject *resultobj; | |
22423 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22424 | wxSize result; | |
22425 | PyObject * obj0 = 0 ; | |
22426 | char *kwnames[] = { | |
22427 | (char *) "self", NULL | |
22428 | }; | |
22429 | ||
22430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
22431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22432 | { | |
22433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22434 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
22435 | ||
22436 | wxPyEndAllowThreads(__tstate); | |
22437 | if (PyErr_Occurred()) SWIG_fail; | |
22438 | } | |
22439 | { | |
22440 | wxSize * resultptr; | |
22441 | resultptr = new wxSize((wxSize &) result); | |
22442 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22443 | } | |
22444 | return resultobj; | |
22445 | fail: | |
22446 | return NULL; | |
22447 | } | |
22448 | ||
22449 | ||
22450 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22451 | PyObject *resultobj; | |
22452 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22453 | int *arg2 = (int *) 0 ; | |
22454 | int *arg3 = (int *) 0 ; | |
22455 | int temp2 ; | |
22456 | int temp3 ; | |
22457 | PyObject * obj0 = 0 ; | |
22458 | char *kwnames[] = { | |
22459 | (char *) "self", NULL | |
22460 | }; | |
22461 | ||
22462 | arg2 = &temp2; | |
22463 | arg3 = &temp3; | |
22464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
22465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22466 | { | |
22467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22468 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
22469 | ||
22470 | wxPyEndAllowThreads(__tstate); | |
22471 | if (PyErr_Occurred()) SWIG_fail; | |
22472 | } | |
22473 | Py_INCREF(Py_None); resultobj = Py_None; | |
22474 | { | |
22475 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22476 | resultobj = t_output_helper(resultobj,o); | |
22477 | } | |
22478 | { | |
22479 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22480 | resultobj = t_output_helper(resultobj,o); | |
22481 | } | |
22482 | return resultobj; | |
22483 | fail: | |
22484 | return NULL; | |
22485 | } | |
22486 | ||
22487 | ||
22488 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22489 | PyObject *resultobj; | |
22490 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22491 | wxSize result; | |
22492 | PyObject * obj0 = 0 ; | |
22493 | char *kwnames[] = { | |
22494 | (char *) "self", NULL | |
22495 | }; | |
22496 | ||
22497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
22498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22499 | { | |
22500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22501 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
22502 | ||
22503 | wxPyEndAllowThreads(__tstate); | |
22504 | if (PyErr_Occurred()) SWIG_fail; | |
22505 | } | |
22506 | { | |
22507 | wxSize * resultptr; | |
22508 | resultptr = new wxSize((wxSize &) result); | |
22509 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22510 | } | |
22511 | return resultobj; | |
22512 | fail: | |
22513 | return NULL; | |
22514 | } | |
22515 | ||
22516 | ||
22517 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22518 | PyObject *resultobj; | |
22519 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22520 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22521 | bool result; |
22522 | PyObject * obj0 = 0 ; | |
22523 | PyObject * obj1 = 0 ; | |
22524 | char *kwnames[] = { | |
22525 | (char *) "self",(char *) "show", NULL | |
22526 | }; | |
22527 | ||
22528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
22529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22530 | if (obj1) { | |
a41e16b6 | 22531 | { |
994141e6 | 22532 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
22533 | if (PyErr_Occurred()) SWIG_fail; |
22534 | } | |
d14a1e28 RD |
22535 | } |
22536 | { | |
22537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22538 | result = (bool)(arg1)->Show(arg2); | |
22539 | ||
22540 | wxPyEndAllowThreads(__tstate); | |
22541 | if (PyErr_Occurred()) SWIG_fail; | |
22542 | } | |
4d5c3d91 | 22543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22544 | return resultobj; |
22545 | fail: | |
22546 | return NULL; | |
22547 | } | |
22548 | ||
22549 | ||
22550 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22551 | PyObject *resultobj; | |
22552 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22553 | bool result; | |
22554 | PyObject * obj0 = 0 ; | |
22555 | char *kwnames[] = { | |
22556 | (char *) "self", NULL | |
22557 | }; | |
22558 | ||
22559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
22560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22561 | { | |
22562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22563 | result = (bool)(arg1)->Hide(); | |
22564 | ||
22565 | wxPyEndAllowThreads(__tstate); | |
22566 | if (PyErr_Occurred()) SWIG_fail; | |
22567 | } | |
4d5c3d91 | 22568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22569 | return resultobj; |
22570 | fail: | |
22571 | return NULL; | |
22572 | } | |
22573 | ||
22574 | ||
22575 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22576 | PyObject *resultobj; | |
22577 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22578 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22579 | bool result; |
22580 | PyObject * obj0 = 0 ; | |
22581 | PyObject * obj1 = 0 ; | |
22582 | char *kwnames[] = { | |
22583 | (char *) "self",(char *) "enable", NULL | |
22584 | }; | |
22585 | ||
22586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
22587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22588 | if (obj1) { | |
a41e16b6 | 22589 | { |
994141e6 | 22590 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
22591 | if (PyErr_Occurred()) SWIG_fail; |
22592 | } | |
d14a1e28 RD |
22593 | } |
22594 | { | |
22595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22596 | result = (bool)(arg1)->Enable(arg2); | |
22597 | ||
22598 | wxPyEndAllowThreads(__tstate); | |
22599 | if (PyErr_Occurred()) SWIG_fail; | |
22600 | } | |
4d5c3d91 | 22601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22602 | return resultobj; |
22603 | fail: | |
22604 | return NULL; | |
22605 | } | |
22606 | ||
22607 | ||
22608 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22609 | PyObject *resultobj; | |
22610 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22611 | bool result; | |
22612 | PyObject * obj0 = 0 ; | |
22613 | char *kwnames[] = { | |
22614 | (char *) "self", NULL | |
22615 | }; | |
22616 | ||
22617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
22618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22619 | { | |
22620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22621 | result = (bool)(arg1)->Disable(); | |
22622 | ||
22623 | wxPyEndAllowThreads(__tstate); | |
22624 | if (PyErr_Occurred()) SWIG_fail; | |
22625 | } | |
4d5c3d91 | 22626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22627 | return resultobj; |
22628 | fail: | |
22629 | return NULL; | |
22630 | } | |
22631 | ||
22632 | ||
22633 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22634 | PyObject *resultobj; | |
22635 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22636 | bool result; | |
22637 | PyObject * obj0 = 0 ; | |
22638 | char *kwnames[] = { | |
22639 | (char *) "self", NULL | |
22640 | }; | |
22641 | ||
22642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
22643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22644 | { | |
22645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22646 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
22647 | ||
22648 | wxPyEndAllowThreads(__tstate); | |
22649 | if (PyErr_Occurred()) SWIG_fail; | |
22650 | } | |
4d5c3d91 | 22651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22652 | return resultobj; |
22653 | fail: | |
22654 | return NULL; | |
22655 | } | |
22656 | ||
22657 | ||
22658 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22659 | PyObject *resultobj; | |
22660 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22661 | bool result; | |
22662 | PyObject * obj0 = 0 ; | |
22663 | char *kwnames[] = { | |
22664 | (char *) "self", NULL | |
22665 | }; | |
22666 | ||
22667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
22668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22669 | { | |
22670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22671 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
22672 | ||
22673 | wxPyEndAllowThreads(__tstate); | |
22674 | if (PyErr_Occurred()) SWIG_fail; | |
22675 | } | |
4d5c3d91 | 22676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22677 | return resultobj; |
22678 | fail: | |
22679 | return NULL; | |
22680 | } | |
22681 | ||
22682 | ||
22683 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22684 | PyObject *resultobj; | |
22685 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22686 | long arg2 ; | |
22687 | PyObject * obj0 = 0 ; | |
994141e6 | 22688 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22689 | char *kwnames[] = { |
22690 | (char *) "self",(char *) "style", NULL | |
22691 | }; | |
22692 | ||
994141e6 | 22693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22695 | { |
22696 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22697 | if (PyErr_Occurred()) SWIG_fail; | |
22698 | } | |
d14a1e28 RD |
22699 | { |
22700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22701 | (arg1)->SetWindowStyleFlag(arg2); | |
22702 | ||
22703 | wxPyEndAllowThreads(__tstate); | |
22704 | if (PyErr_Occurred()) SWIG_fail; | |
22705 | } | |
22706 | Py_INCREF(Py_None); resultobj = Py_None; | |
22707 | return resultobj; | |
22708 | fail: | |
22709 | return NULL; | |
22710 | } | |
22711 | ||
22712 | ||
22713 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22714 | PyObject *resultobj; | |
22715 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22716 | long result; | |
22717 | PyObject * obj0 = 0 ; | |
22718 | char *kwnames[] = { | |
22719 | (char *) "self", NULL | |
22720 | }; | |
22721 | ||
22722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
22723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22724 | { | |
22725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22726 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
22727 | ||
22728 | wxPyEndAllowThreads(__tstate); | |
22729 | if (PyErr_Occurred()) SWIG_fail; | |
22730 | } | |
994141e6 | 22731 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22732 | return resultobj; |
22733 | fail: | |
22734 | return NULL; | |
22735 | } | |
22736 | ||
22737 | ||
22738 | static PyObject *_wrap_Window_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22739 | PyObject *resultobj; | |
22740 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22741 | long arg2 ; | |
22742 | PyObject * obj0 = 0 ; | |
994141e6 | 22743 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22744 | char *kwnames[] = { |
22745 | (char *) "self",(char *) "style", NULL | |
22746 | }; | |
22747 | ||
994141e6 | 22748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22750 | { |
22751 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22752 | if (PyErr_Occurred()) SWIG_fail; | |
22753 | } | |
d14a1e28 RD |
22754 | { |
22755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22756 | (arg1)->SetWindowStyle(arg2); | |
22757 | ||
22758 | wxPyEndAllowThreads(__tstate); | |
22759 | if (PyErr_Occurred()) SWIG_fail; | |
22760 | } | |
22761 | Py_INCREF(Py_None); resultobj = Py_None; | |
22762 | return resultobj; | |
22763 | fail: | |
22764 | return NULL; | |
22765 | } | |
22766 | ||
22767 | ||
22768 | static PyObject *_wrap_Window_GetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22769 | PyObject *resultobj; | |
22770 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22771 | long result; | |
22772 | PyObject * obj0 = 0 ; | |
22773 | char *kwnames[] = { | |
22774 | (char *) "self", NULL | |
22775 | }; | |
22776 | ||
22777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyle",kwnames,&obj0)) goto fail; | |
22778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22779 | { | |
22780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22781 | result = (long)((wxWindow const *)arg1)->GetWindowStyle(); | |
22782 | ||
22783 | wxPyEndAllowThreads(__tstate); | |
22784 | if (PyErr_Occurred()) SWIG_fail; | |
22785 | } | |
994141e6 | 22786 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22787 | return resultobj; |
22788 | fail: | |
22789 | return NULL; | |
22790 | } | |
22791 | ||
22792 | ||
22793 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22794 | PyObject *resultobj; | |
22795 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22796 | int arg2 ; | |
22797 | bool result; | |
22798 | PyObject * obj0 = 0 ; | |
994141e6 | 22799 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22800 | char *kwnames[] = { |
22801 | (char *) "self",(char *) "flag", NULL | |
22802 | }; | |
22803 | ||
994141e6 | 22804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22806 | { |
22807 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22808 | if (PyErr_Occurred()) SWIG_fail; | |
22809 | } | |
d14a1e28 RD |
22810 | { |
22811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22812 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
22813 | ||
22814 | wxPyEndAllowThreads(__tstate); | |
22815 | if (PyErr_Occurred()) SWIG_fail; | |
22816 | } | |
4d5c3d91 | 22817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22818 | return resultobj; |
22819 | fail: | |
22820 | return NULL; | |
22821 | } | |
22822 | ||
22823 | ||
22824 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22825 | PyObject *resultobj; | |
22826 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22827 | bool result; | |
22828 | PyObject * obj0 = 0 ; | |
22829 | char *kwnames[] = { | |
22830 | (char *) "self", NULL | |
22831 | }; | |
22832 | ||
22833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
22834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22835 | { | |
22836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22837 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
22838 | ||
22839 | wxPyEndAllowThreads(__tstate); | |
22840 | if (PyErr_Occurred()) SWIG_fail; | |
22841 | } | |
4d5c3d91 | 22842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22843 | return resultobj; |
22844 | fail: | |
22845 | return NULL; | |
22846 | } | |
22847 | ||
22848 | ||
22849 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22850 | PyObject *resultobj; | |
22851 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22852 | long arg2 ; | |
22853 | PyObject * obj0 = 0 ; | |
994141e6 | 22854 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22855 | char *kwnames[] = { |
22856 | (char *) "self",(char *) "exStyle", NULL | |
22857 | }; | |
22858 | ||
994141e6 | 22859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22861 | { |
22862 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22863 | if (PyErr_Occurred()) SWIG_fail; | |
22864 | } | |
d14a1e28 RD |
22865 | { |
22866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22867 | (arg1)->SetExtraStyle(arg2); | |
22868 | ||
22869 | wxPyEndAllowThreads(__tstate); | |
22870 | if (PyErr_Occurred()) SWIG_fail; | |
22871 | } | |
22872 | Py_INCREF(Py_None); resultobj = Py_None; | |
22873 | return resultobj; | |
22874 | fail: | |
22875 | return NULL; | |
22876 | } | |
22877 | ||
22878 | ||
22879 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22880 | PyObject *resultobj; | |
22881 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22882 | long result; | |
22883 | PyObject * obj0 = 0 ; | |
22884 | char *kwnames[] = { | |
22885 | (char *) "self", NULL | |
22886 | }; | |
22887 | ||
22888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
22889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22890 | { | |
22891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22892 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
22893 | ||
22894 | wxPyEndAllowThreads(__tstate); | |
22895 | if (PyErr_Occurred()) SWIG_fail; | |
22896 | } | |
994141e6 | 22897 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22898 | return resultobj; |
22899 | fail: | |
22900 | return NULL; | |
22901 | } | |
22902 | ||
22903 | ||
22904 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22905 | PyObject *resultobj; | |
22906 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22907 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22908 | PyObject * obj0 = 0 ; |
22909 | PyObject * obj1 = 0 ; | |
22910 | char *kwnames[] = { | |
22911 | (char *) "self",(char *) "modal", NULL | |
22912 | }; | |
22913 | ||
22914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
22915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22916 | if (obj1) { | |
a41e16b6 | 22917 | { |
994141e6 | 22918 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
22919 | if (PyErr_Occurred()) SWIG_fail; |
22920 | } | |
d14a1e28 RD |
22921 | } |
22922 | { | |
22923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22924 | (arg1)->MakeModal(arg2); | |
22925 | ||
22926 | wxPyEndAllowThreads(__tstate); | |
22927 | if (PyErr_Occurred()) SWIG_fail; | |
22928 | } | |
22929 | Py_INCREF(Py_None); resultobj = Py_None; | |
22930 | return resultobj; | |
22931 | fail: | |
22932 | return NULL; | |
22933 | } | |
22934 | ||
22935 | ||
22936 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22937 | PyObject *resultobj; | |
22938 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22939 | bool arg2 ; | |
22940 | PyObject * obj0 = 0 ; | |
22941 | PyObject * obj1 = 0 ; | |
22942 | char *kwnames[] = { | |
22943 | (char *) "self",(char *) "enableTheme", NULL | |
22944 | }; | |
22945 | ||
22946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
22947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 22948 | { |
994141e6 | 22949 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
22950 | if (PyErr_Occurred()) SWIG_fail; |
22951 | } | |
d14a1e28 RD |
22952 | { |
22953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22954 | (arg1)->SetThemeEnabled(arg2); | |
22955 | ||
22956 | wxPyEndAllowThreads(__tstate); | |
22957 | if (PyErr_Occurred()) SWIG_fail; | |
22958 | } | |
22959 | Py_INCREF(Py_None); resultobj = Py_None; | |
22960 | return resultobj; | |
22961 | fail: | |
22962 | return NULL; | |
22963 | } | |
22964 | ||
22965 | ||
22966 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22967 | PyObject *resultobj; | |
22968 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22969 | bool result; | |
22970 | PyObject * obj0 = 0 ; | |
22971 | char *kwnames[] = { | |
22972 | (char *) "self", NULL | |
22973 | }; | |
22974 | ||
22975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
22976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22977 | { | |
22978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22979 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
22980 | ||
22981 | wxPyEndAllowThreads(__tstate); | |
22982 | if (PyErr_Occurred()) SWIG_fail; | |
22983 | } | |
4d5c3d91 | 22984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22985 | return resultobj; |
22986 | fail: | |
22987 | return NULL; | |
22988 | } | |
22989 | ||
22990 | ||
22991 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22992 | PyObject *resultobj; | |
22993 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22994 | bool result; | |
22995 | PyObject * obj0 = 0 ; | |
22996 | char *kwnames[] = { | |
22997 | (char *) "self", NULL | |
22998 | }; | |
22999 | ||
23000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
23001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23002 | { | |
23003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23004 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
23005 | ||
23006 | wxPyEndAllowThreads(__tstate); | |
23007 | if (PyErr_Occurred()) SWIG_fail; | |
23008 | } | |
4d5c3d91 | 23009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23010 | return resultobj; |
23011 | fail: | |
23012 | return NULL; | |
23013 | } | |
23014 | ||
23015 | ||
23016 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23017 | PyObject *resultobj; | |
23018 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23019 | PyObject * obj0 = 0 ; | |
23020 | char *kwnames[] = { | |
23021 | (char *) "self", NULL | |
23022 | }; | |
23023 | ||
23024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
23025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23026 | { | |
23027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23028 | (arg1)->SetFocus(); | |
23029 | ||
23030 | wxPyEndAllowThreads(__tstate); | |
23031 | if (PyErr_Occurred()) SWIG_fail; | |
23032 | } | |
23033 | Py_INCREF(Py_None); resultobj = Py_None; | |
23034 | return resultobj; | |
23035 | fail: | |
23036 | return NULL; | |
23037 | } | |
23038 | ||
23039 | ||
23040 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23041 | PyObject *resultobj; | |
23042 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23043 | PyObject * obj0 = 0 ; | |
23044 | char *kwnames[] = { | |
23045 | (char *) "self", NULL | |
23046 | }; | |
23047 | ||
23048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
23049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23050 | { | |
23051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23052 | (arg1)->SetFocusFromKbd(); | |
23053 | ||
23054 | wxPyEndAllowThreads(__tstate); | |
23055 | if (PyErr_Occurred()) SWIG_fail; | |
23056 | } | |
23057 | Py_INCREF(Py_None); resultobj = Py_None; | |
23058 | return resultobj; | |
23059 | fail: | |
23060 | return NULL; | |
23061 | } | |
23062 | ||
23063 | ||
23064 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23065 | PyObject *resultobj; | |
23066 | wxWindow *result; | |
23067 | char *kwnames[] = { | |
23068 | NULL | |
23069 | }; | |
23070 | ||
23071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
23072 | { | |
23073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23074 | result = (wxWindow *)wxWindow::FindFocus(); | |
23075 | ||
23076 | wxPyEndAllowThreads(__tstate); | |
23077 | if (PyErr_Occurred()) SWIG_fail; | |
23078 | } | |
23079 | { | |
23080 | resultobj = wxPyMake_wxObject(result); | |
23081 | } | |
23082 | return resultobj; | |
23083 | fail: | |
23084 | return NULL; | |
23085 | } | |
23086 | ||
23087 | ||
23088 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23089 | PyObject *resultobj; | |
23090 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23091 | bool result; | |
23092 | PyObject * obj0 = 0 ; | |
23093 | char *kwnames[] = { | |
23094 | (char *) "self", NULL | |
23095 | }; | |
23096 | ||
23097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
23098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23099 | { | |
23100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23101 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
23102 | ||
23103 | wxPyEndAllowThreads(__tstate); | |
23104 | if (PyErr_Occurred()) SWIG_fail; | |
23105 | } | |
4d5c3d91 | 23106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23107 | return resultobj; |
23108 | fail: | |
23109 | return NULL; | |
23110 | } | |
23111 | ||
23112 | ||
23113 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23114 | PyObject *resultobj; | |
23115 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23116 | bool result; | |
23117 | PyObject * obj0 = 0 ; | |
23118 | char *kwnames[] = { | |
23119 | (char *) "self", NULL | |
23120 | }; | |
23121 | ||
23122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
23123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23124 | { | |
23125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23126 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
23127 | ||
23128 | wxPyEndAllowThreads(__tstate); | |
23129 | if (PyErr_Occurred()) SWIG_fail; | |
23130 | } | |
4d5c3d91 | 23131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23132 | return resultobj; |
23133 | fail: | |
23134 | return NULL; | |
23135 | } | |
23136 | ||
23137 | ||
23138 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23139 | PyObject *resultobj; | |
23140 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23141 | wxWindow *result; | |
23142 | PyObject * obj0 = 0 ; | |
23143 | char *kwnames[] = { | |
23144 | (char *) "self", NULL | |
23145 | }; | |
23146 | ||
23147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
23148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23149 | { | |
23150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23151 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
23152 | ||
23153 | wxPyEndAllowThreads(__tstate); | |
23154 | if (PyErr_Occurred()) SWIG_fail; | |
23155 | } | |
23156 | { | |
23157 | resultobj = wxPyMake_wxObject(result); | |
23158 | } | |
23159 | return resultobj; | |
23160 | fail: | |
23161 | return NULL; | |
23162 | } | |
23163 | ||
23164 | ||
23165 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23166 | PyObject *resultobj; | |
23167 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23168 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23169 | wxWindow *result; | |
23170 | PyObject * obj0 = 0 ; | |
23171 | PyObject * obj1 = 0 ; | |
23172 | char *kwnames[] = { | |
23173 | (char *) "self",(char *) "child", NULL | |
23174 | }; | |
23175 | ||
23176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
23177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23178 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23179 | { | |
23180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23181 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
23182 | ||
23183 | wxPyEndAllowThreads(__tstate); | |
23184 | if (PyErr_Occurred()) SWIG_fail; | |
23185 | } | |
23186 | { | |
23187 | resultobj = wxPyMake_wxObject(result); | |
23188 | } | |
23189 | return resultobj; | |
23190 | fail: | |
23191 | return NULL; | |
23192 | } | |
23193 | ||
23194 | ||
23195 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23196 | PyObject *resultobj; | |
23197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23198 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23199 | PyObject * obj0 = 0 ; | |
23200 | PyObject * obj1 = 0 ; | |
23201 | char *kwnames[] = { | |
23202 | (char *) "self",(char *) "win", NULL | |
23203 | }; | |
23204 | ||
23205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
23206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23207 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23208 | { | |
23209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23210 | (arg1)->SetTmpDefaultItem(arg2); | |
23211 | ||
23212 | wxPyEndAllowThreads(__tstate); | |
23213 | if (PyErr_Occurred()) SWIG_fail; | |
23214 | } | |
23215 | Py_INCREF(Py_None); resultobj = Py_None; | |
23216 | return resultobj; | |
23217 | fail: | |
23218 | return NULL; | |
23219 | } | |
23220 | ||
23221 | ||
23222 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23223 | PyObject *resultobj; | |
23224 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23225 | PyObject *result; | |
23226 | PyObject * obj0 = 0 ; | |
23227 | char *kwnames[] = { | |
23228 | (char *) "self", NULL | |
23229 | }; | |
23230 | ||
23231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
23232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23233 | { | |
23234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23235 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
23236 | ||
23237 | wxPyEndAllowThreads(__tstate); | |
23238 | if (PyErr_Occurred()) SWIG_fail; | |
23239 | } | |
23240 | resultobj = result; | |
23241 | return resultobj; | |
23242 | fail: | |
23243 | return NULL; | |
23244 | } | |
23245 | ||
23246 | ||
23247 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23248 | PyObject *resultobj; | |
23249 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23250 | wxWindow *result; | |
23251 | PyObject * obj0 = 0 ; | |
23252 | char *kwnames[] = { | |
23253 | (char *) "self", NULL | |
23254 | }; | |
23255 | ||
23256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
23257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23258 | { | |
23259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23260 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
23261 | ||
23262 | wxPyEndAllowThreads(__tstate); | |
23263 | if (PyErr_Occurred()) SWIG_fail; | |
23264 | } | |
23265 | { | |
23266 | resultobj = wxPyMake_wxObject(result); | |
23267 | } | |
23268 | return resultobj; | |
23269 | fail: | |
23270 | return NULL; | |
23271 | } | |
23272 | ||
23273 | ||
23274 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23275 | PyObject *resultobj; | |
23276 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23277 | wxWindow *result; | |
23278 | PyObject * obj0 = 0 ; | |
23279 | char *kwnames[] = { | |
23280 | (char *) "self", NULL | |
23281 | }; | |
23282 | ||
23283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
23284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23285 | { | |
23286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23287 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
23288 | ||
23289 | wxPyEndAllowThreads(__tstate); | |
23290 | if (PyErr_Occurred()) SWIG_fail; | |
23291 | } | |
23292 | { | |
23293 | resultobj = wxPyMake_wxObject(result); | |
23294 | } | |
23295 | return resultobj; | |
23296 | fail: | |
23297 | return NULL; | |
23298 | } | |
23299 | ||
23300 | ||
23301 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23302 | PyObject *resultobj; | |
23303 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23304 | bool result; | |
23305 | PyObject * obj0 = 0 ; | |
23306 | char *kwnames[] = { | |
23307 | (char *) "self", NULL | |
23308 | }; | |
23309 | ||
23310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
23311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23312 | { | |
23313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23314 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
23315 | ||
23316 | wxPyEndAllowThreads(__tstate); | |
23317 | if (PyErr_Occurred()) SWIG_fail; | |
23318 | } | |
4d5c3d91 | 23319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23320 | return resultobj; |
23321 | fail: | |
23322 | return NULL; | |
23323 | } | |
23324 | ||
23325 | ||
23326 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23327 | PyObject *resultobj; | |
23328 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23329 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23330 | bool result; | |
23331 | PyObject * obj0 = 0 ; | |
23332 | PyObject * obj1 = 0 ; | |
23333 | char *kwnames[] = { | |
23334 | (char *) "self",(char *) "newParent", NULL | |
23335 | }; | |
23336 | ||
23337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
23338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23339 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23340 | { | |
23341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23342 | result = (bool)(arg1)->Reparent(arg2); | |
23343 | ||
23344 | wxPyEndAllowThreads(__tstate); | |
23345 | if (PyErr_Occurred()) SWIG_fail; | |
23346 | } | |
4d5c3d91 | 23347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23348 | return resultobj; |
23349 | fail: | |
23350 | return NULL; | |
23351 | } | |
23352 | ||
23353 | ||
23354 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23355 | PyObject *resultobj; | |
23356 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23357 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23358 | PyObject * obj0 = 0 ; | |
23359 | PyObject * obj1 = 0 ; | |
23360 | char *kwnames[] = { | |
23361 | (char *) "self",(char *) "child", NULL | |
23362 | }; | |
23363 | ||
23364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
23365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23366 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23367 | { | |
23368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23369 | (arg1)->AddChild(arg2); | |
23370 | ||
23371 | wxPyEndAllowThreads(__tstate); | |
23372 | if (PyErr_Occurred()) SWIG_fail; | |
23373 | } | |
23374 | Py_INCREF(Py_None); resultobj = Py_None; | |
23375 | return resultobj; | |
23376 | fail: | |
23377 | return NULL; | |
23378 | } | |
23379 | ||
23380 | ||
23381 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23382 | PyObject *resultobj; | |
23383 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23384 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23385 | PyObject * obj0 = 0 ; | |
23386 | PyObject * obj1 = 0 ; | |
23387 | char *kwnames[] = { | |
23388 | (char *) "self",(char *) "child", NULL | |
23389 | }; | |
23390 | ||
23391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
23392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23393 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23394 | { | |
23395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23396 | (arg1)->RemoveChild(arg2); | |
23397 | ||
23398 | wxPyEndAllowThreads(__tstate); | |
23399 | if (PyErr_Occurred()) SWIG_fail; | |
23400 | } | |
23401 | Py_INCREF(Py_None); resultobj = Py_None; | |
23402 | return resultobj; | |
23403 | fail: | |
23404 | return NULL; | |
23405 | } | |
23406 | ||
23407 | ||
23408 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23409 | PyObject *resultobj; | |
23410 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23411 | long arg2 ; | |
23412 | wxWindow *result; | |
23413 | PyObject * obj0 = 0 ; | |
994141e6 | 23414 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23415 | char *kwnames[] = { |
23416 | (char *) "self",(char *) "winid", NULL | |
23417 | }; | |
23418 | ||
994141e6 | 23419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
23421 | { |
23422 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
23423 | if (PyErr_Occurred()) SWIG_fail; | |
23424 | } | |
d14a1e28 RD |
23425 | { |
23426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23427 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
23428 | ||
23429 | wxPyEndAllowThreads(__tstate); | |
23430 | if (PyErr_Occurred()) SWIG_fail; | |
23431 | } | |
23432 | { | |
23433 | resultobj = wxPyMake_wxObject(result); | |
23434 | } | |
23435 | return resultobj; | |
23436 | fail: | |
23437 | return NULL; | |
23438 | } | |
23439 | ||
23440 | ||
23441 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23442 | PyObject *resultobj; | |
23443 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23444 | wxString *arg2 = 0 ; | |
23445 | wxWindow *result; | |
e811c8ce | 23446 | bool temp2 = False ; |
d14a1e28 RD |
23447 | PyObject * obj0 = 0 ; |
23448 | PyObject * obj1 = 0 ; | |
23449 | char *kwnames[] = { | |
23450 | (char *) "self",(char *) "name", NULL | |
23451 | }; | |
23452 | ||
23453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
23454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23455 | { | |
23456 | arg2 = wxString_in_helper(obj1); | |
23457 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 23458 | temp2 = True; |
d14a1e28 RD |
23459 | } |
23460 | { | |
23461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23462 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
23463 | ||
23464 | wxPyEndAllowThreads(__tstate); | |
23465 | if (PyErr_Occurred()) SWIG_fail; | |
23466 | } | |
23467 | { | |
23468 | resultobj = wxPyMake_wxObject(result); | |
23469 | } | |
23470 | { | |
23471 | if (temp2) | |
23472 | delete arg2; | |
23473 | } | |
23474 | return resultobj; | |
23475 | fail: | |
23476 | { | |
23477 | if (temp2) | |
23478 | delete arg2; | |
23479 | } | |
23480 | return NULL; | |
23481 | } | |
23482 | ||
23483 | ||
23484 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23485 | PyObject *resultobj; | |
23486 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23487 | wxEvtHandler *result; | |
23488 | PyObject * obj0 = 0 ; | |
23489 | char *kwnames[] = { | |
23490 | (char *) "self", NULL | |
23491 | }; | |
23492 | ||
23493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
23494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23495 | { | |
23496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23497 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
23498 | ||
23499 | wxPyEndAllowThreads(__tstate); | |
23500 | if (PyErr_Occurred()) SWIG_fail; | |
23501 | } | |
23502 | { | |
23503 | resultobj = wxPyMake_wxObject(result); | |
23504 | } | |
23505 | return resultobj; | |
23506 | fail: | |
23507 | return NULL; | |
23508 | } | |
23509 | ||
23510 | ||
23511 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23512 | PyObject *resultobj; | |
23513 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23514 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23515 | PyObject * obj0 = 0 ; | |
23516 | PyObject * obj1 = 0 ; | |
23517 | char *kwnames[] = { | |
23518 | (char *) "self",(char *) "handler", NULL | |
23519 | }; | |
23520 | ||
23521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
23522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23523 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23524 | { | |
23525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23526 | (arg1)->SetEventHandler(arg2); | |
23527 | ||
23528 | wxPyEndAllowThreads(__tstate); | |
23529 | if (PyErr_Occurred()) SWIG_fail; | |
23530 | } | |
23531 | Py_INCREF(Py_None); resultobj = Py_None; | |
23532 | return resultobj; | |
23533 | fail: | |
23534 | return NULL; | |
23535 | } | |
23536 | ||
23537 | ||
23538 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23539 | PyObject *resultobj; | |
23540 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23541 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23542 | PyObject * obj0 = 0 ; | |
23543 | PyObject * obj1 = 0 ; | |
23544 | char *kwnames[] = { | |
23545 | (char *) "self",(char *) "handler", NULL | |
23546 | }; | |
23547 | ||
23548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
23549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23550 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23551 | { | |
23552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23553 | (arg1)->PushEventHandler(arg2); | |
23554 | ||
23555 | wxPyEndAllowThreads(__tstate); | |
23556 | if (PyErr_Occurred()) SWIG_fail; | |
23557 | } | |
23558 | Py_INCREF(Py_None); resultobj = Py_None; | |
23559 | return resultobj; | |
23560 | fail: | |
23561 | return NULL; | |
23562 | } | |
23563 | ||
23564 | ||
23565 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23566 | PyObject *resultobj; | |
23567 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23568 | bool arg2 = (bool) False ; |
d14a1e28 RD |
23569 | wxEvtHandler *result; |
23570 | PyObject * obj0 = 0 ; | |
23571 | PyObject * obj1 = 0 ; | |
23572 | char *kwnames[] = { | |
23573 | (char *) "self",(char *) "deleteHandler", NULL | |
23574 | }; | |
23575 | ||
23576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
23577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23578 | if (obj1) { | |
a41e16b6 | 23579 | { |
994141e6 | 23580 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
23581 | if (PyErr_Occurred()) SWIG_fail; |
23582 | } | |
d14a1e28 RD |
23583 | } |
23584 | { | |
23585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23586 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
23587 | ||
23588 | wxPyEndAllowThreads(__tstate); | |
23589 | if (PyErr_Occurred()) SWIG_fail; | |
23590 | } | |
23591 | { | |
23592 | resultobj = wxPyMake_wxObject(result); | |
23593 | } | |
23594 | return resultobj; | |
23595 | fail: | |
23596 | return NULL; | |
23597 | } | |
23598 | ||
23599 | ||
23600 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23601 | PyObject *resultobj; | |
23602 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23603 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23604 | bool result; | |
23605 | PyObject * obj0 = 0 ; | |
23606 | PyObject * obj1 = 0 ; | |
23607 | char *kwnames[] = { | |
23608 | (char *) "self",(char *) "handler", NULL | |
23609 | }; | |
23610 | ||
23611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
23612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23613 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23614 | { | |
23615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23616 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
23617 | ||
23618 | wxPyEndAllowThreads(__tstate); | |
23619 | if (PyErr_Occurred()) SWIG_fail; | |
23620 | } | |
4d5c3d91 | 23621 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23622 | return resultobj; |
23623 | fail: | |
23624 | return NULL; | |
23625 | } | |
23626 | ||
23627 | ||
23628 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23629 | PyObject *resultobj; | |
23630 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23631 | wxValidator *arg2 = 0 ; | |
23632 | PyObject * obj0 = 0 ; | |
23633 | PyObject * obj1 = 0 ; | |
23634 | char *kwnames[] = { | |
23635 | (char *) "self",(char *) "validator", NULL | |
23636 | }; | |
23637 | ||
23638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
23639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23640 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23641 | if (arg2 == NULL) { | |
23642 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23643 | } | |
23644 | { | |
23645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23646 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
23647 | ||
23648 | wxPyEndAllowThreads(__tstate); | |
23649 | if (PyErr_Occurred()) SWIG_fail; | |
23650 | } | |
23651 | Py_INCREF(Py_None); resultobj = Py_None; | |
23652 | return resultobj; | |
23653 | fail: | |
23654 | return NULL; | |
23655 | } | |
23656 | ||
23657 | ||
23658 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23659 | PyObject *resultobj; | |
23660 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23661 | wxValidator *result; | |
23662 | PyObject * obj0 = 0 ; | |
23663 | char *kwnames[] = { | |
23664 | (char *) "self", NULL | |
23665 | }; | |
23666 | ||
23667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
23668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23669 | { | |
23670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23671 | result = (wxValidator *)(arg1)->GetValidator(); | |
23672 | ||
23673 | wxPyEndAllowThreads(__tstate); | |
23674 | if (PyErr_Occurred()) SWIG_fail; | |
23675 | } | |
23676 | { | |
23677 | resultobj = wxPyMake_wxObject(result); | |
23678 | } | |
23679 | return resultobj; | |
23680 | fail: | |
23681 | return NULL; | |
23682 | } | |
23683 | ||
23684 | ||
23685 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23686 | PyObject *resultobj; | |
23687 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23688 | wxAcceleratorTable *arg2 = 0 ; | |
23689 | PyObject * obj0 = 0 ; | |
23690 | PyObject * obj1 = 0 ; | |
23691 | char *kwnames[] = { | |
23692 | (char *) "self",(char *) "accel", NULL | |
23693 | }; | |
23694 | ||
23695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
23696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23697 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23698 | if (arg2 == NULL) { | |
23699 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23700 | } | |
23701 | { | |
23702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23703 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
23704 | ||
23705 | wxPyEndAllowThreads(__tstate); | |
23706 | if (PyErr_Occurred()) SWIG_fail; | |
23707 | } | |
23708 | Py_INCREF(Py_None); resultobj = Py_None; | |
23709 | return resultobj; | |
23710 | fail: | |
23711 | return NULL; | |
23712 | } | |
23713 | ||
23714 | ||
23715 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23716 | PyObject *resultobj; | |
23717 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23718 | wxAcceleratorTable *result; | |
23719 | PyObject * obj0 = 0 ; | |
23720 | char *kwnames[] = { | |
23721 | (char *) "self", NULL | |
23722 | }; | |
23723 | ||
23724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
23725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23726 | { | |
23727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23728 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
23729 | ||
23730 | wxPyEndAllowThreads(__tstate); | |
23731 | if (PyErr_Occurred()) SWIG_fail; | |
23732 | } | |
23733 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 0); | |
23734 | return resultobj; | |
23735 | fail: | |
23736 | return NULL; | |
23737 | } | |
23738 | ||
23739 | ||
23740 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23741 | PyObject *resultobj; | |
23742 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23743 | int arg2 ; | |
23744 | int arg3 ; | |
23745 | int arg4 ; | |
23746 | bool result; | |
23747 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23748 | PyObject * obj1 = 0 ; |
23749 | PyObject * obj2 = 0 ; | |
23750 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
23751 | char *kwnames[] = { |
23752 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
23753 | }; | |
23754 | ||
994141e6 | 23755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 23756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
23757 | { |
23758 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23759 | if (PyErr_Occurred()) SWIG_fail; | |
23760 | } | |
23761 | { | |
23762 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
23763 | if (PyErr_Occurred()) SWIG_fail; | |
23764 | } | |
23765 | { | |
23766 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
23767 | if (PyErr_Occurred()) SWIG_fail; | |
23768 | } | |
d14a1e28 RD |
23769 | { |
23770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23771 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
23772 | ||
23773 | wxPyEndAllowThreads(__tstate); | |
23774 | if (PyErr_Occurred()) SWIG_fail; | |
23775 | } | |
4d5c3d91 | 23776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23777 | return resultobj; |
23778 | fail: | |
23779 | return NULL; | |
23780 | } | |
23781 | ||
23782 | ||
23783 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23784 | PyObject *resultobj; | |
23785 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23786 | int arg2 ; | |
23787 | bool result; | |
23788 | PyObject * obj0 = 0 ; | |
994141e6 | 23789 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23790 | char *kwnames[] = { |
23791 | (char *) "self",(char *) "hotkeyId", NULL | |
23792 | }; | |
23793 | ||
994141e6 | 23794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
23796 | { |
23797 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23798 | if (PyErr_Occurred()) SWIG_fail; | |
23799 | } | |
d14a1e28 RD |
23800 | { |
23801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23802 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
23803 | ||
23804 | wxPyEndAllowThreads(__tstate); | |
23805 | if (PyErr_Occurred()) SWIG_fail; | |
23806 | } | |
4d5c3d91 | 23807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23808 | return resultobj; |
23809 | fail: | |
23810 | return NULL; | |
23811 | } | |
23812 | ||
23813 | ||
23814 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23815 | PyObject *resultobj; | |
23816 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23817 | wxPoint *arg2 = 0 ; | |
23818 | wxPoint result; | |
23819 | wxPoint temp2 ; | |
23820 | PyObject * obj0 = 0 ; | |
23821 | PyObject * obj1 = 0 ; | |
23822 | char *kwnames[] = { | |
23823 | (char *) "self",(char *) "pt", NULL | |
23824 | }; | |
23825 | ||
23826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
23827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23828 | { | |
23829 | arg2 = &temp2; | |
23830 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23831 | } | |
23832 | { | |
23833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23834 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
23835 | ||
23836 | wxPyEndAllowThreads(__tstate); | |
23837 | if (PyErr_Occurred()) SWIG_fail; | |
23838 | } | |
23839 | { | |
23840 | wxPoint * resultptr; | |
23841 | resultptr = new wxPoint((wxPoint &) result); | |
23842 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23843 | } | |
23844 | return resultobj; | |
23845 | fail: | |
23846 | return NULL; | |
23847 | } | |
23848 | ||
23849 | ||
23850 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23851 | PyObject *resultobj; | |
23852 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23853 | wxSize *arg2 = 0 ; | |
23854 | wxSize result; | |
23855 | wxSize temp2 ; | |
23856 | PyObject * obj0 = 0 ; | |
23857 | PyObject * obj1 = 0 ; | |
23858 | char *kwnames[] = { | |
23859 | (char *) "self",(char *) "sz", NULL | |
23860 | }; | |
23861 | ||
23862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
23863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23864 | { | |
23865 | arg2 = &temp2; | |
23866 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23867 | } | |
23868 | { | |
23869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23870 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
23871 | ||
23872 | wxPyEndAllowThreads(__tstate); | |
23873 | if (PyErr_Occurred()) SWIG_fail; | |
23874 | } | |
23875 | { | |
23876 | wxSize * resultptr; | |
23877 | resultptr = new wxSize((wxSize &) result); | |
23878 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
23879 | } | |
23880 | return resultobj; | |
23881 | fail: | |
23882 | return NULL; | |
23883 | } | |
23884 | ||
23885 | ||
23886 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23887 | PyObject *resultobj; | |
23888 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23889 | wxPoint *arg2 = 0 ; | |
23890 | wxPoint result; | |
23891 | wxPoint temp2 ; | |
23892 | PyObject * obj0 = 0 ; | |
23893 | PyObject * obj1 = 0 ; | |
23894 | char *kwnames[] = { | |
23895 | (char *) "self",(char *) "pt", NULL | |
23896 | }; | |
23897 | ||
23898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
23899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23900 | { | |
23901 | arg2 = &temp2; | |
23902 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23903 | } | |
23904 | { | |
23905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23906 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
23907 | ||
23908 | wxPyEndAllowThreads(__tstate); | |
23909 | if (PyErr_Occurred()) SWIG_fail; | |
23910 | } | |
23911 | { | |
23912 | wxPoint * resultptr; | |
23913 | resultptr = new wxPoint((wxPoint &) result); | |
23914 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23915 | } | |
23916 | return resultobj; | |
23917 | fail: | |
23918 | return NULL; | |
23919 | } | |
23920 | ||
23921 | ||
23922 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23923 | PyObject *resultobj; | |
23924 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23925 | wxSize *arg2 = 0 ; | |
23926 | wxSize result; | |
23927 | wxSize temp2 ; | |
23928 | PyObject * obj0 = 0 ; | |
23929 | PyObject * obj1 = 0 ; | |
23930 | char *kwnames[] = { | |
23931 | (char *) "self",(char *) "sz", NULL | |
23932 | }; | |
23933 | ||
23934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
23935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23936 | { | |
23937 | arg2 = &temp2; | |
23938 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23939 | } | |
23940 | { | |
23941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23942 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
23943 | ||
23944 | wxPyEndAllowThreads(__tstate); | |
23945 | if (PyErr_Occurred()) SWIG_fail; | |
23946 | } | |
23947 | { | |
23948 | wxSize * resultptr; | |
23949 | resultptr = new wxSize((wxSize &) result); | |
23950 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
23951 | } | |
23952 | return resultobj; | |
23953 | fail: | |
23954 | return NULL; | |
23955 | } | |
23956 | ||
23957 | ||
23958 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23959 | PyObject *resultobj; | |
23960 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23961 | wxPoint *arg2 = 0 ; | |
23962 | wxPoint result; | |
23963 | wxPoint temp2 ; | |
23964 | PyObject * obj0 = 0 ; | |
23965 | PyObject * obj1 = 0 ; | |
23966 | char *kwnames[] = { | |
23967 | (char *) "self",(char *) "pt", NULL | |
23968 | }; | |
23969 | ||
23970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
23971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23972 | { | |
23973 | arg2 = &temp2; | |
23974 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23975 | } | |
23976 | { | |
23977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23978 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
23979 | ||
23980 | wxPyEndAllowThreads(__tstate); | |
23981 | if (PyErr_Occurred()) SWIG_fail; | |
23982 | } | |
23983 | { | |
23984 | wxPoint * resultptr; | |
23985 | resultptr = new wxPoint((wxPoint &) result); | |
23986 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23987 | } | |
23988 | return resultobj; | |
23989 | fail: | |
23990 | return NULL; | |
23991 | } | |
23992 | ||
23993 | ||
23994 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23995 | PyObject *resultobj; | |
23996 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23997 | wxSize *arg2 = 0 ; | |
23998 | wxSize result; | |
23999 | wxSize temp2 ; | |
24000 | PyObject * obj0 = 0 ; | |
24001 | PyObject * obj1 = 0 ; | |
24002 | char *kwnames[] = { | |
24003 | (char *) "self",(char *) "sz", NULL | |
24004 | }; | |
24005 | ||
24006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
24007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24008 | { | |
24009 | arg2 = &temp2; | |
24010 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24011 | } | |
24012 | { | |
24013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24014 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
24015 | ||
24016 | wxPyEndAllowThreads(__tstate); | |
24017 | if (PyErr_Occurred()) SWIG_fail; | |
24018 | } | |
24019 | { | |
24020 | wxSize * resultptr; | |
24021 | resultptr = new wxSize((wxSize &) result); | |
24022 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24023 | } | |
24024 | return resultobj; | |
24025 | fail: | |
24026 | return NULL; | |
24027 | } | |
24028 | ||
24029 | ||
24030 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24031 | PyObject *resultobj; | |
24032 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24033 | int arg2 ; | |
24034 | int arg3 ; | |
24035 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24036 | PyObject * obj1 = 0 ; |
24037 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24038 | char *kwnames[] = { |
24039 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24040 | }; | |
24041 | ||
994141e6 | 24042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 24043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
24044 | { |
24045 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
24046 | if (PyErr_Occurred()) SWIG_fail; | |
24047 | } | |
24048 | { | |
24049 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24050 | if (PyErr_Occurred()) SWIG_fail; | |
24051 | } | |
d14a1e28 RD |
24052 | { |
24053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24054 | (arg1)->WarpPointer(arg2,arg3); | |
24055 | ||
24056 | wxPyEndAllowThreads(__tstate); | |
24057 | if (PyErr_Occurred()) SWIG_fail; | |
24058 | } | |
24059 | Py_INCREF(Py_None); resultobj = Py_None; | |
24060 | return resultobj; | |
24061 | fail: | |
24062 | return NULL; | |
24063 | } | |
24064 | ||
24065 | ||
24066 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24067 | PyObject *resultobj; | |
24068 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24069 | PyObject * obj0 = 0 ; | |
24070 | char *kwnames[] = { | |
24071 | (char *) "self", NULL | |
24072 | }; | |
24073 | ||
24074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
24075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24076 | { | |
24077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24078 | (arg1)->CaptureMouse(); | |
24079 | ||
24080 | wxPyEndAllowThreads(__tstate); | |
24081 | if (PyErr_Occurred()) SWIG_fail; | |
24082 | } | |
24083 | Py_INCREF(Py_None); resultobj = Py_None; | |
24084 | return resultobj; | |
24085 | fail: | |
24086 | return NULL; | |
24087 | } | |
24088 | ||
24089 | ||
24090 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24091 | PyObject *resultobj; | |
24092 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24093 | PyObject * obj0 = 0 ; | |
24094 | char *kwnames[] = { | |
24095 | (char *) "self", NULL | |
24096 | }; | |
24097 | ||
24098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
24099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24100 | { | |
24101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24102 | (arg1)->ReleaseMouse(); | |
24103 | ||
24104 | wxPyEndAllowThreads(__tstate); | |
24105 | if (PyErr_Occurred()) SWIG_fail; | |
24106 | } | |
24107 | Py_INCREF(Py_None); resultobj = Py_None; | |
24108 | return resultobj; | |
24109 | fail: | |
24110 | return NULL; | |
24111 | } | |
24112 | ||
24113 | ||
24114 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24115 | PyObject *resultobj; | |
24116 | wxWindow *result; | |
24117 | char *kwnames[] = { | |
24118 | NULL | |
24119 | }; | |
24120 | ||
24121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
24122 | { | |
24123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24124 | result = (wxWindow *)wxWindow::GetCapture(); | |
24125 | ||
24126 | wxPyEndAllowThreads(__tstate); | |
24127 | if (PyErr_Occurred()) SWIG_fail; | |
24128 | } | |
24129 | { | |
24130 | resultobj = wxPyMake_wxObject(result); | |
24131 | } | |
24132 | return resultobj; | |
24133 | fail: | |
24134 | return NULL; | |
24135 | } | |
24136 | ||
24137 | ||
24138 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24139 | PyObject *resultobj; | |
24140 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24141 | bool result; | |
24142 | PyObject * obj0 = 0 ; | |
24143 | char *kwnames[] = { | |
24144 | (char *) "self", NULL | |
24145 | }; | |
24146 | ||
24147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
24148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24149 | { | |
24150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24151 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
24152 | ||
24153 | wxPyEndAllowThreads(__tstate); | |
24154 | if (PyErr_Occurred()) SWIG_fail; | |
24155 | } | |
4d5c3d91 | 24156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24157 | return resultobj; |
24158 | fail: | |
24159 | return NULL; | |
24160 | } | |
24161 | ||
24162 | ||
24163 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24164 | PyObject *resultobj; | |
24165 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24166 | bool arg2 = (bool) True ; |
d14a1e28 RD |
24167 | wxRect *arg3 = (wxRect *) NULL ; |
24168 | PyObject * obj0 = 0 ; | |
24169 | PyObject * obj1 = 0 ; | |
24170 | PyObject * obj2 = 0 ; | |
24171 | char *kwnames[] = { | |
24172 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
24173 | }; | |
24174 | ||
24175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24177 | if (obj1) { | |
a41e16b6 | 24178 | { |
994141e6 | 24179 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
24180 | if (PyErr_Occurred()) SWIG_fail; |
24181 | } | |
d14a1e28 RD |
24182 | } |
24183 | if (obj2) { | |
24184 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24185 | } | |
24186 | { | |
24187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24188 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
24189 | ||
24190 | wxPyEndAllowThreads(__tstate); | |
24191 | if (PyErr_Occurred()) SWIG_fail; | |
24192 | } | |
24193 | Py_INCREF(Py_None); resultobj = Py_None; | |
24194 | return resultobj; | |
24195 | fail: | |
24196 | return NULL; | |
24197 | } | |
24198 | ||
24199 | ||
24200 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24201 | PyObject *resultobj; | |
24202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24203 | wxRect *arg2 = 0 ; | |
24204 | wxRect temp2 ; | |
24205 | PyObject * obj0 = 0 ; | |
24206 | PyObject * obj1 = 0 ; | |
24207 | char *kwnames[] = { | |
24208 | (char *) "self",(char *) "rect", NULL | |
24209 | }; | |
24210 | ||
24211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
24212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24213 | { | |
24214 | arg2 = &temp2; | |
24215 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24216 | } | |
24217 | { | |
24218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24219 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
24220 | ||
24221 | wxPyEndAllowThreads(__tstate); | |
24222 | if (PyErr_Occurred()) SWIG_fail; | |
24223 | } | |
24224 | Py_INCREF(Py_None); resultobj = Py_None; | |
24225 | return resultobj; | |
24226 | fail: | |
24227 | return NULL; | |
24228 | } | |
24229 | ||
24230 | ||
24231 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24232 | PyObject *resultobj; | |
24233 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24234 | PyObject * obj0 = 0 ; | |
24235 | char *kwnames[] = { | |
24236 | (char *) "self", NULL | |
24237 | }; | |
24238 | ||
24239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
24240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24241 | { | |
24242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24243 | (arg1)->Update(); | |
24244 | ||
24245 | wxPyEndAllowThreads(__tstate); | |
24246 | if (PyErr_Occurred()) SWIG_fail; | |
24247 | } | |
24248 | Py_INCREF(Py_None); resultobj = Py_None; | |
24249 | return resultobj; | |
24250 | fail: | |
24251 | return NULL; | |
24252 | } | |
24253 | ||
24254 | ||
24255 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24256 | PyObject *resultobj; | |
24257 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24258 | PyObject * obj0 = 0 ; | |
24259 | char *kwnames[] = { | |
24260 | (char *) "self", NULL | |
24261 | }; | |
24262 | ||
24263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
24264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24265 | { | |
24266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24267 | (arg1)->ClearBackground(); | |
24268 | ||
24269 | wxPyEndAllowThreads(__tstate); | |
24270 | if (PyErr_Occurred()) SWIG_fail; | |
24271 | } | |
24272 | Py_INCREF(Py_None); resultobj = Py_None; | |
24273 | return resultobj; | |
24274 | fail: | |
24275 | return NULL; | |
24276 | } | |
24277 | ||
24278 | ||
24279 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24280 | PyObject *resultobj; | |
24281 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24282 | PyObject * obj0 = 0 ; | |
24283 | char *kwnames[] = { | |
24284 | (char *) "self", NULL | |
24285 | }; | |
24286 | ||
24287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
24288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24289 | { | |
24290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24291 | (arg1)->Freeze(); | |
24292 | ||
24293 | wxPyEndAllowThreads(__tstate); | |
24294 | if (PyErr_Occurred()) SWIG_fail; | |
24295 | } | |
24296 | Py_INCREF(Py_None); resultobj = Py_None; | |
24297 | return resultobj; | |
24298 | fail: | |
24299 | return NULL; | |
24300 | } | |
24301 | ||
24302 | ||
24303 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24304 | PyObject *resultobj; | |
24305 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24306 | PyObject * obj0 = 0 ; | |
24307 | char *kwnames[] = { | |
24308 | (char *) "self", NULL | |
24309 | }; | |
24310 | ||
24311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
24312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24313 | { | |
24314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24315 | (arg1)->Thaw(); | |
24316 | ||
24317 | wxPyEndAllowThreads(__tstate); | |
24318 | if (PyErr_Occurred()) SWIG_fail; | |
24319 | } | |
24320 | Py_INCREF(Py_None); resultobj = Py_None; | |
24321 | return resultobj; | |
24322 | fail: | |
24323 | return NULL; | |
24324 | } | |
24325 | ||
24326 | ||
24327 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24328 | PyObject *resultobj; | |
24329 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24330 | wxDC *arg2 = 0 ; | |
24331 | PyObject * obj0 = 0 ; | |
24332 | PyObject * obj1 = 0 ; | |
24333 | char *kwnames[] = { | |
24334 | (char *) "self",(char *) "dc", NULL | |
24335 | }; | |
24336 | ||
24337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
24338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24339 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24340 | if (arg2 == NULL) { | |
24341 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24342 | } | |
24343 | { | |
24344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24345 | (arg1)->PrepareDC(*arg2); | |
24346 | ||
24347 | wxPyEndAllowThreads(__tstate); | |
24348 | if (PyErr_Occurred()) SWIG_fail; | |
24349 | } | |
24350 | Py_INCREF(Py_None); resultobj = Py_None; | |
24351 | return resultobj; | |
24352 | fail: | |
24353 | return NULL; | |
24354 | } | |
24355 | ||
24356 | ||
24357 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24358 | PyObject *resultobj; | |
24359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24360 | wxRegion *result; | |
24361 | PyObject * obj0 = 0 ; | |
24362 | char *kwnames[] = { | |
24363 | (char *) "self", NULL | |
24364 | }; | |
24365 | ||
24366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
24367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24368 | { | |
24369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24370 | { | |
24371 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
24372 | result = (wxRegion *) &_result_ref; | |
24373 | } | |
24374 | ||
24375 | wxPyEndAllowThreads(__tstate); | |
24376 | if (PyErr_Occurred()) SWIG_fail; | |
24377 | } | |
24378 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 0); | |
24379 | return resultobj; | |
24380 | fail: | |
24381 | return NULL; | |
24382 | } | |
24383 | ||
24384 | ||
24385 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24386 | PyObject *resultobj; | |
24387 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24388 | wxRect result; | |
24389 | PyObject * obj0 = 0 ; | |
24390 | char *kwnames[] = { | |
24391 | (char *) "self", NULL | |
24392 | }; | |
24393 | ||
24394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
24395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24396 | { | |
24397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24398 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
24399 | ||
24400 | wxPyEndAllowThreads(__tstate); | |
24401 | if (PyErr_Occurred()) SWIG_fail; | |
24402 | } | |
24403 | { | |
24404 | wxRect * resultptr; | |
24405 | resultptr = new wxRect((wxRect &) result); | |
24406 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
24407 | } | |
24408 | return resultobj; | |
24409 | fail: | |
24410 | return NULL; | |
24411 | } | |
24412 | ||
24413 | ||
24414 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24415 | PyObject *resultobj; | |
24416 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24417 | int arg2 ; | |
24418 | int arg3 ; | |
24419 | int arg4 = (int) 1 ; | |
24420 | int arg5 = (int) 1 ; | |
24421 | bool result; | |
24422 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24423 | PyObject * obj1 = 0 ; |
24424 | PyObject * obj2 = 0 ; | |
24425 | PyObject * obj3 = 0 ; | |
24426 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
24427 | char *kwnames[] = { |
24428 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
24429 | }; | |
24430 | ||
994141e6 | 24431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 24432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
24433 | { |
24434 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
24435 | if (PyErr_Occurred()) SWIG_fail; | |
24436 | } | |
24437 | { | |
24438 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24439 | if (PyErr_Occurred()) SWIG_fail; | |
24440 | } | |
24441 | if (obj3) { | |
24442 | { | |
24443 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
24444 | if (PyErr_Occurred()) SWIG_fail; | |
24445 | } | |
24446 | } | |
24447 | if (obj4) { | |
24448 | { | |
24449 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
24450 | if (PyErr_Occurred()) SWIG_fail; | |
24451 | } | |
24452 | } | |
d14a1e28 RD |
24453 | { |
24454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24455 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
24456 | ||
24457 | wxPyEndAllowThreads(__tstate); | |
24458 | if (PyErr_Occurred()) SWIG_fail; | |
24459 | } | |
4d5c3d91 | 24460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24461 | return resultobj; |
24462 | fail: | |
24463 | return NULL; | |
24464 | } | |
24465 | ||
24466 | ||
24467 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24468 | PyObject *resultobj; | |
24469 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24470 | wxPoint *arg2 = 0 ; | |
24471 | bool result; | |
24472 | wxPoint temp2 ; | |
24473 | PyObject * obj0 = 0 ; | |
24474 | PyObject * obj1 = 0 ; | |
24475 | char *kwnames[] = { | |
24476 | (char *) "self",(char *) "pt", NULL | |
24477 | }; | |
24478 | ||
24479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
24480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24481 | { | |
24482 | arg2 = &temp2; | |
24483 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24484 | } | |
24485 | { | |
24486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24487 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
24488 | ||
24489 | wxPyEndAllowThreads(__tstate); | |
24490 | if (PyErr_Occurred()) SWIG_fail; | |
24491 | } | |
4d5c3d91 | 24492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24493 | return resultobj; |
24494 | fail: | |
24495 | return NULL; | |
24496 | } | |
24497 | ||
24498 | ||
24499 | static PyObject *_wrap_Window_isExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24500 | PyObject *resultobj; | |
24501 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24502 | wxRect *arg2 = 0 ; | |
24503 | bool result; | |
24504 | wxRect temp2 ; | |
24505 | PyObject * obj0 = 0 ; | |
24506 | PyObject * obj1 = 0 ; | |
24507 | char *kwnames[] = { | |
24508 | (char *) "self",(char *) "rect", NULL | |
24509 | }; | |
24510 | ||
24511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_isExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
24512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24513 | { | |
24514 | arg2 = &temp2; | |
24515 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24516 | } | |
24517 | { | |
24518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24519 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
24520 | ||
24521 | wxPyEndAllowThreads(__tstate); | |
24522 | if (PyErr_Occurred()) SWIG_fail; | |
24523 | } | |
4d5c3d91 | 24524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24525 | return resultobj; |
24526 | fail: | |
24527 | return NULL; | |
24528 | } | |
24529 | ||
24530 | ||
24531 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24532 | PyObject *resultobj; | |
24533 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24534 | wxColour *arg2 = 0 ; | |
24535 | bool result; | |
24536 | wxColour temp2 ; | |
24537 | PyObject * obj0 = 0 ; | |
24538 | PyObject * obj1 = 0 ; | |
24539 | char *kwnames[] = { | |
24540 | (char *) "self",(char *) "colour", NULL | |
24541 | }; | |
24542 | ||
24543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24545 | { | |
24546 | arg2 = &temp2; | |
24547 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24548 | } | |
24549 | { | |
24550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24551 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
24552 | ||
24553 | wxPyEndAllowThreads(__tstate); | |
24554 | if (PyErr_Occurred()) SWIG_fail; | |
24555 | } | |
4d5c3d91 | 24556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24557 | return resultobj; |
24558 | fail: | |
24559 | return NULL; | |
24560 | } | |
24561 | ||
24562 | ||
24563 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24564 | PyObject *resultobj; | |
24565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24566 | wxColour *arg2 = 0 ; | |
24567 | bool result; | |
24568 | wxColour temp2 ; | |
24569 | PyObject * obj0 = 0 ; | |
24570 | PyObject * obj1 = 0 ; | |
24571 | char *kwnames[] = { | |
24572 | (char *) "self",(char *) "colour", NULL | |
24573 | }; | |
24574 | ||
24575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24577 | { | |
24578 | arg2 = &temp2; | |
24579 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24580 | } | |
24581 | { | |
24582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24583 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
24584 | ||
24585 | wxPyEndAllowThreads(__tstate); | |
24586 | if (PyErr_Occurred()) SWIG_fail; | |
24587 | } | |
4d5c3d91 | 24588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24589 | return resultobj; |
24590 | fail: | |
24591 | return NULL; | |
24592 | } | |
24593 | ||
24594 | ||
24595 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24596 | PyObject *resultobj; | |
24597 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24598 | wxColour result; | |
24599 | PyObject * obj0 = 0 ; | |
24600 | char *kwnames[] = { | |
24601 | (char *) "self", NULL | |
24602 | }; | |
24603 | ||
24604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
24605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24606 | { | |
24607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24608 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
24609 | ||
24610 | wxPyEndAllowThreads(__tstate); | |
24611 | if (PyErr_Occurred()) SWIG_fail; | |
24612 | } | |
24613 | { | |
24614 | wxColour * resultptr; | |
24615 | resultptr = new wxColour((wxColour &) result); | |
24616 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24617 | } | |
24618 | return resultobj; | |
24619 | fail: | |
24620 | return NULL; | |
24621 | } | |
24622 | ||
24623 | ||
24624 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24625 | PyObject *resultobj; | |
24626 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24627 | wxColour result; | |
24628 | PyObject * obj0 = 0 ; | |
24629 | char *kwnames[] = { | |
24630 | (char *) "self", NULL | |
24631 | }; | |
24632 | ||
24633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
24634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24635 | { | |
24636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24637 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
24638 | ||
24639 | wxPyEndAllowThreads(__tstate); | |
24640 | if (PyErr_Occurred()) SWIG_fail; | |
24641 | } | |
24642 | { | |
24643 | wxColour * resultptr; | |
24644 | resultptr = new wxColour((wxColour &) result); | |
24645 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24646 | } | |
24647 | return resultobj; | |
24648 | fail: | |
24649 | return NULL; | |
24650 | } | |
24651 | ||
24652 | ||
24653 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24654 | PyObject *resultobj; | |
24655 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24656 | wxCursor *arg2 = 0 ; | |
24657 | bool result; | |
24658 | PyObject * obj0 = 0 ; | |
24659 | PyObject * obj1 = 0 ; | |
24660 | char *kwnames[] = { | |
24661 | (char *) "self",(char *) "cursor", NULL | |
24662 | }; | |
24663 | ||
24664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
24665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24666 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24667 | if (arg2 == NULL) { | |
24668 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24669 | } | |
24670 | { | |
24671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24672 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
24673 | ||
24674 | wxPyEndAllowThreads(__tstate); | |
24675 | if (PyErr_Occurred()) SWIG_fail; | |
24676 | } | |
4d5c3d91 | 24677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24678 | return resultobj; |
24679 | fail: | |
24680 | return NULL; | |
24681 | } | |
24682 | ||
24683 | ||
24684 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24685 | PyObject *resultobj; | |
24686 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24687 | wxCursor *result; | |
24688 | PyObject * obj0 = 0 ; | |
24689 | char *kwnames[] = { | |
24690 | (char *) "self", NULL | |
24691 | }; | |
24692 | ||
24693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
24694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24695 | { | |
24696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24697 | { | |
24698 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
24699 | result = (wxCursor *) &_result_ref; | |
24700 | } | |
24701 | ||
24702 | wxPyEndAllowThreads(__tstate); | |
24703 | if (PyErr_Occurred()) SWIG_fail; | |
24704 | } | |
24705 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
24706 | return resultobj; | |
24707 | fail: | |
24708 | return NULL; | |
24709 | } | |
24710 | ||
24711 | ||
24712 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24713 | PyObject *resultobj; | |
24714 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24715 | wxFont *arg2 = 0 ; | |
24716 | bool result; | |
24717 | PyObject * obj0 = 0 ; | |
24718 | PyObject * obj1 = 0 ; | |
24719 | char *kwnames[] = { | |
24720 | (char *) "self",(char *) "font", NULL | |
24721 | }; | |
24722 | ||
24723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
24724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24725 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24726 | if (arg2 == NULL) { | |
24727 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24728 | } | |
24729 | { | |
24730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24731 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
24732 | ||
24733 | wxPyEndAllowThreads(__tstate); | |
24734 | if (PyErr_Occurred()) SWIG_fail; | |
24735 | } | |
4d5c3d91 | 24736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24737 | return resultobj; |
24738 | fail: | |
24739 | return NULL; | |
24740 | } | |
24741 | ||
24742 | ||
24743 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24744 | PyObject *resultobj; | |
24745 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24746 | wxFont *result; | |
24747 | PyObject * obj0 = 0 ; | |
24748 | char *kwnames[] = { | |
24749 | (char *) "self", NULL | |
24750 | }; | |
24751 | ||
24752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
24753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24754 | { | |
24755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24756 | { | |
24757 | wxFont &_result_ref = (arg1)->GetFont(); | |
24758 | result = (wxFont *) &_result_ref; | |
24759 | } | |
24760 | ||
24761 | wxPyEndAllowThreads(__tstate); | |
24762 | if (PyErr_Occurred()) SWIG_fail; | |
24763 | } | |
24764 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
24765 | return resultobj; | |
24766 | fail: | |
24767 | return NULL; | |
24768 | } | |
24769 | ||
24770 | ||
24771 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24772 | PyObject *resultobj; | |
24773 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24774 | wxCaret *arg2 = (wxCaret *) 0 ; | |
24775 | PyObject * obj0 = 0 ; | |
24776 | PyObject * obj1 = 0 ; | |
24777 | char *kwnames[] = { | |
24778 | (char *) "self",(char *) "caret", NULL | |
24779 | }; | |
24780 | ||
24781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
24782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24783 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24784 | { | |
24785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24786 | (arg1)->SetCaret(arg2); | |
24787 | ||
24788 | wxPyEndAllowThreads(__tstate); | |
24789 | if (PyErr_Occurred()) SWIG_fail; | |
24790 | } | |
24791 | Py_INCREF(Py_None); resultobj = Py_None; | |
24792 | return resultobj; | |
24793 | fail: | |
24794 | return NULL; | |
24795 | } | |
24796 | ||
24797 | ||
24798 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24799 | PyObject *resultobj; | |
24800 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24801 | wxCaret *result; | |
24802 | PyObject * obj0 = 0 ; | |
24803 | char *kwnames[] = { | |
24804 | (char *) "self", NULL | |
24805 | }; | |
24806 | ||
24807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
24808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24809 | { | |
24810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24811 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
24812 | ||
24813 | wxPyEndAllowThreads(__tstate); | |
24814 | if (PyErr_Occurred()) SWIG_fail; | |
24815 | } | |
24816 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 0); | |
24817 | return resultobj; | |
24818 | fail: | |
24819 | return NULL; | |
24820 | } | |
24821 | ||
24822 | ||
24823 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24824 | PyObject *resultobj; | |
24825 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24826 | int result; | |
24827 | PyObject * obj0 = 0 ; | |
24828 | char *kwnames[] = { | |
24829 | (char *) "self", NULL | |
24830 | }; | |
24831 | ||
24832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
24833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24834 | { | |
24835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24836 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
24837 | ||
24838 | wxPyEndAllowThreads(__tstate); | |
24839 | if (PyErr_Occurred()) SWIG_fail; | |
24840 | } | |
994141e6 | 24841 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
24842 | return resultobj; |
24843 | fail: | |
24844 | return NULL; | |
24845 | } | |
24846 | ||
24847 | ||
24848 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24849 | PyObject *resultobj; | |
24850 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24851 | int result; | |
24852 | PyObject * obj0 = 0 ; | |
24853 | char *kwnames[] = { | |
24854 | (char *) "self", NULL | |
24855 | }; | |
24856 | ||
24857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
24858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24859 | { | |
24860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24861 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
24862 | ||
24863 | wxPyEndAllowThreads(__tstate); | |
24864 | if (PyErr_Occurred()) SWIG_fail; | |
24865 | } | |
994141e6 | 24866 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
24867 | return resultobj; |
24868 | fail: | |
24869 | return NULL; | |
24870 | } | |
24871 | ||
24872 | ||
24873 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24874 | PyObject *resultobj; | |
24875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24876 | wxString *arg2 = 0 ; | |
24877 | int *arg3 = (int *) 0 ; | |
24878 | int *arg4 = (int *) 0 ; | |
e811c8ce | 24879 | bool temp2 = False ; |
d14a1e28 RD |
24880 | int temp3 ; |
24881 | int temp4 ; | |
24882 | PyObject * obj0 = 0 ; | |
24883 | PyObject * obj1 = 0 ; | |
24884 | char *kwnames[] = { | |
24885 | (char *) "self",(char *) "string", NULL | |
24886 | }; | |
24887 | ||
24888 | arg3 = &temp3; | |
24889 | arg4 = &temp4; | |
24890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
24891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24892 | { | |
24893 | arg2 = wxString_in_helper(obj1); | |
24894 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24895 | temp2 = True; |
d14a1e28 RD |
24896 | } |
24897 | { | |
24898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24899 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
24900 | ||
24901 | wxPyEndAllowThreads(__tstate); | |
24902 | if (PyErr_Occurred()) SWIG_fail; | |
24903 | } | |
24904 | Py_INCREF(Py_None); resultobj = Py_None; | |
24905 | { | |
24906 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24907 | resultobj = t_output_helper(resultobj,o); | |
24908 | } | |
24909 | { | |
24910 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
24911 | resultobj = t_output_helper(resultobj,o); | |
24912 | } | |
24913 | { | |
24914 | if (temp2) | |
24915 | delete arg2; | |
24916 | } | |
24917 | return resultobj; | |
24918 | fail: | |
24919 | { | |
24920 | if (temp2) | |
24921 | delete arg2; | |
24922 | } | |
24923 | return NULL; | |
24924 | } | |
24925 | ||
24926 | ||
24927 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24928 | PyObject *resultobj; | |
24929 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24930 | wxString *arg2 = 0 ; | |
24931 | int *arg3 = (int *) 0 ; | |
24932 | int *arg4 = (int *) 0 ; | |
24933 | int *arg5 = (int *) 0 ; | |
24934 | int *arg6 = (int *) 0 ; | |
24935 | wxFont *arg7 = (wxFont *) NULL ; | |
e811c8ce | 24936 | bool temp2 = False ; |
d14a1e28 RD |
24937 | int temp3 ; |
24938 | int temp4 ; | |
24939 | int temp5 ; | |
24940 | int temp6 ; | |
24941 | PyObject * obj0 = 0 ; | |
24942 | PyObject * obj1 = 0 ; | |
24943 | PyObject * obj2 = 0 ; | |
24944 | char *kwnames[] = { | |
24945 | (char *) "self",(char *) "string",(char *) "font", NULL | |
24946 | }; | |
24947 | ||
24948 | arg3 = &temp3; | |
24949 | arg4 = &temp4; | |
24950 | arg5 = &temp5; | |
24951 | arg6 = &temp6; | |
24952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24954 | { | |
24955 | arg2 = wxString_in_helper(obj1); | |
24956 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24957 | temp2 = True; |
d14a1e28 RD |
24958 | } |
24959 | if (obj2) { | |
24960 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24961 | } | |
24962 | { | |
24963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24964 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
24965 | ||
24966 | wxPyEndAllowThreads(__tstate); | |
24967 | if (PyErr_Occurred()) SWIG_fail; | |
24968 | } | |
24969 | Py_INCREF(Py_None); resultobj = Py_None; | |
24970 | { | |
24971 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24972 | resultobj = t_output_helper(resultobj,o); | |
24973 | } | |
24974 | { | |
24975 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
24976 | resultobj = t_output_helper(resultobj,o); | |
24977 | } | |
24978 | { | |
24979 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
24980 | resultobj = t_output_helper(resultobj,o); | |
24981 | } | |
24982 | { | |
24983 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
24984 | resultobj = t_output_helper(resultobj,o); | |
24985 | } | |
24986 | { | |
24987 | if (temp2) | |
24988 | delete arg2; | |
24989 | } | |
24990 | return resultobj; | |
24991 | fail: | |
24992 | { | |
24993 | if (temp2) | |
24994 | delete arg2; | |
24995 | } | |
24996 | return NULL; | |
24997 | } | |
24998 | ||
24999 | ||
25000 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25001 | PyObject *resultobj; | |
25002 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25003 | int *arg2 = (int *) 0 ; | |
25004 | int *arg3 = (int *) 0 ; | |
25005 | int temp2 ; | |
25006 | int temp3 ; | |
25007 | PyObject * obj0 = 0 ; | |
25008 | PyObject * obj1 = 0 ; | |
25009 | PyObject * obj2 = 0 ; | |
25010 | char *kwnames[] = { | |
25011 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25012 | }; | |
25013 | ||
25014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25016 | { | |
25017 | temp2 = PyInt_AsLong(obj1); | |
25018 | if (PyErr_Occurred()) SWIG_fail; | |
25019 | arg2 = &temp2; | |
25020 | } | |
25021 | { | |
25022 | temp3 = PyInt_AsLong(obj2); | |
25023 | if (PyErr_Occurred()) SWIG_fail; | |
25024 | arg3 = &temp3; | |
25025 | } | |
25026 | { | |
25027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25028 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
25029 | ||
25030 | wxPyEndAllowThreads(__tstate); | |
25031 | if (PyErr_Occurred()) SWIG_fail; | |
25032 | } | |
25033 | Py_INCREF(Py_None); resultobj = Py_None; | |
25034 | { | |
25035 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25036 | resultobj = t_output_helper(resultobj,o); | |
25037 | } | |
25038 | { | |
25039 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25040 | resultobj = t_output_helper(resultobj,o); | |
25041 | } | |
25042 | return resultobj; | |
25043 | fail: | |
25044 | return NULL; | |
25045 | } | |
25046 | ||
25047 | ||
25048 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25049 | PyObject *resultobj; | |
25050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25051 | int *arg2 = (int *) 0 ; | |
25052 | int *arg3 = (int *) 0 ; | |
25053 | int temp2 ; | |
25054 | int temp3 ; | |
25055 | PyObject * obj0 = 0 ; | |
25056 | PyObject * obj1 = 0 ; | |
25057 | PyObject * obj2 = 0 ; | |
25058 | char *kwnames[] = { | |
25059 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25060 | }; | |
25061 | ||
25062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25064 | { | |
25065 | temp2 = PyInt_AsLong(obj1); | |
25066 | if (PyErr_Occurred()) SWIG_fail; | |
25067 | arg2 = &temp2; | |
25068 | } | |
25069 | { | |
25070 | temp3 = PyInt_AsLong(obj2); | |
25071 | if (PyErr_Occurred()) SWIG_fail; | |
25072 | arg3 = &temp3; | |
25073 | } | |
25074 | { | |
25075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25076 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
25077 | ||
25078 | wxPyEndAllowThreads(__tstate); | |
25079 | if (PyErr_Occurred()) SWIG_fail; | |
25080 | } | |
25081 | Py_INCREF(Py_None); resultobj = Py_None; | |
25082 | { | |
25083 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25084 | resultobj = t_output_helper(resultobj,o); | |
25085 | } | |
25086 | { | |
25087 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25088 | resultobj = t_output_helper(resultobj,o); | |
25089 | } | |
25090 | return resultobj; | |
25091 | fail: | |
25092 | return NULL; | |
25093 | } | |
25094 | ||
25095 | ||
25096 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25097 | PyObject *resultobj; | |
25098 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25099 | wxPoint *arg2 = 0 ; | |
25100 | wxPoint result; | |
25101 | wxPoint temp2 ; | |
25102 | PyObject * obj0 = 0 ; | |
25103 | PyObject * obj1 = 0 ; | |
25104 | char *kwnames[] = { | |
25105 | (char *) "self",(char *) "pt", NULL | |
25106 | }; | |
25107 | ||
25108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
25109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25110 | { | |
25111 | arg2 = &temp2; | |
25112 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25113 | } | |
25114 | { | |
25115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25116 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
25117 | ||
25118 | wxPyEndAllowThreads(__tstate); | |
25119 | if (PyErr_Occurred()) SWIG_fail; | |
25120 | } | |
25121 | { | |
25122 | wxPoint * resultptr; | |
25123 | resultptr = new wxPoint((wxPoint &) result); | |
25124 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
25125 | } | |
25126 | return resultobj; | |
25127 | fail: | |
25128 | return NULL; | |
25129 | } | |
25130 | ||
25131 | ||
25132 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25133 | PyObject *resultobj; | |
25134 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25135 | wxPoint *arg2 = 0 ; | |
25136 | wxPoint result; | |
25137 | wxPoint temp2 ; | |
25138 | PyObject * obj0 = 0 ; | |
25139 | PyObject * obj1 = 0 ; | |
25140 | char *kwnames[] = { | |
25141 | (char *) "self",(char *) "pt", NULL | |
25142 | }; | |
25143 | ||
25144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
25145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25146 | { | |
25147 | arg2 = &temp2; | |
25148 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25149 | } | |
25150 | { | |
25151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25152 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
25153 | ||
25154 | wxPyEndAllowThreads(__tstate); | |
25155 | if (PyErr_Occurred()) SWIG_fail; | |
25156 | } | |
25157 | { | |
25158 | wxPoint * resultptr; | |
25159 | resultptr = new wxPoint((wxPoint &) result); | |
25160 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
25161 | } | |
25162 | return resultobj; | |
25163 | fail: | |
25164 | return NULL; | |
25165 | } | |
25166 | ||
25167 | ||
25168 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25169 | PyObject *resultobj; | |
25170 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce RD |
25171 | int arg2 ; |
25172 | int arg3 ; | |
d14a1e28 RD |
25173 | int result; |
25174 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25175 | PyObject * obj1 = 0 ; |
25176 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25177 | char *kwnames[] = { |
25178 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25179 | }; | |
25180 | ||
994141e6 | 25181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 25182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25183 | { |
25184 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25185 | if (PyErr_Occurred()) SWIG_fail; | |
25186 | } | |
25187 | { | |
25188 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25189 | if (PyErr_Occurred()) SWIG_fail; | |
25190 | } | |
d14a1e28 RD |
25191 | { |
25192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25193 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
25194 | ||
25195 | wxPyEndAllowThreads(__tstate); | |
25196 | if (PyErr_Occurred()) SWIG_fail; | |
25197 | } | |
994141e6 | 25198 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25199 | return resultobj; |
25200 | fail: | |
25201 | return NULL; | |
25202 | } | |
25203 | ||
25204 | ||
25205 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25206 | PyObject *resultobj; | |
25207 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25208 | wxPoint *arg2 = 0 ; | |
25209 | int result; | |
25210 | wxPoint temp2 ; | |
25211 | PyObject * obj0 = 0 ; | |
25212 | PyObject * obj1 = 0 ; | |
25213 | char *kwnames[] = { | |
25214 | (char *) "self",(char *) "pt", NULL | |
25215 | }; | |
25216 | ||
25217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
25218 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25219 | { | |
25220 | arg2 = &temp2; | |
25221 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25222 | } | |
25223 | { | |
25224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25225 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
25226 | ||
25227 | wxPyEndAllowThreads(__tstate); | |
25228 | if (PyErr_Occurred()) SWIG_fail; | |
25229 | } | |
994141e6 | 25230 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25231 | return resultobj; |
25232 | fail: | |
25233 | return NULL; | |
25234 | } | |
25235 | ||
25236 | ||
25237 | static PyObject *_wrap_Window_GetBorderFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25238 | PyObject *resultobj; | |
25239 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25240 | long arg2 ; | |
25241 | int result; | |
25242 | PyObject * obj0 = 0 ; | |
994141e6 | 25243 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25244 | char *kwnames[] = { |
25245 | (char *) "self",(char *) "flags", NULL | |
25246 | }; | |
25247 | ||
994141e6 | 25248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetBorderFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25250 | { |
25251 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
25252 | if (PyErr_Occurred()) SWIG_fail; | |
25253 | } | |
d14a1e28 RD |
25254 | { |
25255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25256 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
25257 | ||
25258 | wxPyEndAllowThreads(__tstate); | |
25259 | if (PyErr_Occurred()) SWIG_fail; | |
25260 | } | |
994141e6 | 25261 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25262 | return resultobj; |
25263 | fail: | |
25264 | return NULL; | |
25265 | } | |
25266 | ||
25267 | ||
25268 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25269 | PyObject *resultobj; | |
25270 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25271 | int result; | |
25272 | PyObject * obj0 = 0 ; | |
25273 | char *kwnames[] = { | |
25274 | (char *) "self", NULL | |
25275 | }; | |
25276 | ||
25277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBorder",kwnames,&obj0)) goto fail; | |
25278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25279 | { | |
25280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25281 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
25282 | ||
25283 | wxPyEndAllowThreads(__tstate); | |
25284 | if (PyErr_Occurred()) SWIG_fail; | |
25285 | } | |
994141e6 | 25286 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25287 | return resultobj; |
25288 | fail: | |
25289 | return NULL; | |
25290 | } | |
25291 | ||
25292 | ||
25293 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25294 | PyObject *resultobj; | |
25295 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25296 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
25297 | PyObject * obj0 = 0 ; | |
994141e6 | 25298 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25299 | char *kwnames[] = { |
25300 | (char *) "self",(char *) "flags", NULL | |
25301 | }; | |
25302 | ||
994141e6 | 25303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25305 | if (obj1) { |
25306 | { | |
25307 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
25308 | if (PyErr_Occurred()) SWIG_fail; | |
25309 | } | |
25310 | } | |
d14a1e28 RD |
25311 | { |
25312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25313 | (arg1)->UpdateWindowUI(arg2); | |
25314 | ||
25315 | wxPyEndAllowThreads(__tstate); | |
25316 | if (PyErr_Occurred()) SWIG_fail; | |
25317 | } | |
25318 | Py_INCREF(Py_None); resultobj = Py_None; | |
25319 | return resultobj; | |
25320 | fail: | |
25321 | return NULL; | |
25322 | } | |
25323 | ||
25324 | ||
25325 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25326 | PyObject *resultobj; | |
25327 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25328 | wxMenu *arg2 = (wxMenu *) 0 ; | |
25329 | int arg3 ; | |
25330 | int arg4 ; | |
25331 | bool result; | |
25332 | PyObject * obj0 = 0 ; | |
25333 | PyObject * obj1 = 0 ; | |
994141e6 RD |
25334 | PyObject * obj2 = 0 ; |
25335 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25336 | char *kwnames[] = { |
25337 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
25338 | }; | |
25339 | ||
994141e6 | 25340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
25341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25342 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
25343 | { |
25344 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25345 | if (PyErr_Occurred()) SWIG_fail; | |
25346 | } | |
25347 | { | |
25348 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25349 | if (PyErr_Occurred()) SWIG_fail; | |
25350 | } | |
d14a1e28 RD |
25351 | { |
25352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25353 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
25354 | ||
25355 | wxPyEndAllowThreads(__tstate); | |
25356 | if (PyErr_Occurred()) SWIG_fail; | |
25357 | } | |
4d5c3d91 | 25358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25359 | return resultobj; |
25360 | fail: | |
25361 | return NULL; | |
25362 | } | |
25363 | ||
25364 | ||
25365 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25366 | PyObject *resultobj; | |
25367 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25368 | wxMenu *arg2 = (wxMenu *) 0 ; | |
25369 | wxPoint *arg3 = 0 ; | |
25370 | bool result; | |
25371 | wxPoint temp3 ; | |
25372 | PyObject * obj0 = 0 ; | |
25373 | PyObject * obj1 = 0 ; | |
25374 | PyObject * obj2 = 0 ; | |
25375 | char *kwnames[] = { | |
25376 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
25377 | }; | |
25378 | ||
25379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25381 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25382 | { | |
25383 | arg3 = &temp3; | |
25384 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25385 | } | |
25386 | { | |
25387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25388 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
25389 | ||
25390 | wxPyEndAllowThreads(__tstate); | |
25391 | if (PyErr_Occurred()) SWIG_fail; | |
25392 | } | |
4d5c3d91 | 25393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25394 | return resultobj; |
25395 | fail: | |
25396 | return NULL; | |
25397 | } | |
25398 | ||
25399 | ||
25400 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25401 | PyObject *resultobj; | |
25402 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25403 | long result; | |
25404 | PyObject * obj0 = 0 ; | |
25405 | char *kwnames[] = { | |
25406 | (char *) "self", NULL | |
25407 | }; | |
25408 | ||
25409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
25410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25411 | { | |
25412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25413 | result = (long)wxWindow_GetHandle(arg1); | |
25414 | ||
25415 | wxPyEndAllowThreads(__tstate); | |
25416 | if (PyErr_Occurred()) SWIG_fail; | |
25417 | } | |
994141e6 | 25418 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
25419 | return resultobj; |
25420 | fail: | |
25421 | return NULL; | |
25422 | } | |
25423 | ||
25424 | ||
25425 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25426 | PyObject *resultobj; | |
25427 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25428 | int arg2 ; | |
25429 | bool result; | |
25430 | PyObject * obj0 = 0 ; | |
994141e6 | 25431 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25432 | char *kwnames[] = { |
25433 | (char *) "self",(char *) "orient", NULL | |
25434 | }; | |
25435 | ||
994141e6 | 25436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25438 | { |
25439 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25440 | if (PyErr_Occurred()) SWIG_fail; | |
25441 | } | |
d14a1e28 RD |
25442 | { |
25443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25444 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
25445 | ||
25446 | wxPyEndAllowThreads(__tstate); | |
25447 | if (PyErr_Occurred()) SWIG_fail; | |
25448 | } | |
4d5c3d91 | 25449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25450 | return resultobj; |
25451 | fail: | |
25452 | return NULL; | |
25453 | } | |
25454 | ||
25455 | ||
25456 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25457 | PyObject *resultobj; | |
25458 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25459 | int arg2 ; | |
25460 | int arg3 ; | |
25461 | int arg4 ; | |
25462 | int arg5 ; | |
e811c8ce | 25463 | bool arg6 = (bool) True ; |
d14a1e28 | 25464 | PyObject * obj0 = 0 ; |
994141e6 RD |
25465 | PyObject * obj1 = 0 ; |
25466 | PyObject * obj2 = 0 ; | |
25467 | PyObject * obj3 = 0 ; | |
25468 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25469 | PyObject * obj5 = 0 ; |
25470 | char *kwnames[] = { | |
25471 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL | |
25472 | }; | |
25473 | ||
994141e6 | 25474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 25475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25476 | { |
25477 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25478 | if (PyErr_Occurred()) SWIG_fail; | |
25479 | } | |
25480 | { | |
25481 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25482 | if (PyErr_Occurred()) SWIG_fail; | |
25483 | } | |
25484 | { | |
25485 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25486 | if (PyErr_Occurred()) SWIG_fail; | |
25487 | } | |
25488 | { | |
25489 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25490 | if (PyErr_Occurred()) SWIG_fail; | |
25491 | } | |
d14a1e28 | 25492 | if (obj5) { |
a41e16b6 | 25493 | { |
994141e6 | 25494 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
a41e16b6 RD |
25495 | if (PyErr_Occurred()) SWIG_fail; |
25496 | } | |
d14a1e28 RD |
25497 | } |
25498 | { | |
25499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25500 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
25501 | ||
25502 | wxPyEndAllowThreads(__tstate); | |
25503 | if (PyErr_Occurred()) SWIG_fail; | |
25504 | } | |
25505 | Py_INCREF(Py_None); resultobj = Py_None; | |
25506 | return resultobj; | |
25507 | fail: | |
25508 | return NULL; | |
25509 | } | |
25510 | ||
25511 | ||
25512 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25513 | PyObject *resultobj; | |
25514 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25515 | int arg2 ; | |
25516 | int arg3 ; | |
e811c8ce | 25517 | bool arg4 = (bool) True ; |
d14a1e28 | 25518 | PyObject * obj0 = 0 ; |
994141e6 RD |
25519 | PyObject * obj1 = 0 ; |
25520 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25521 | PyObject * obj3 = 0 ; |
25522 | char *kwnames[] = { | |
25523 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "refresh", NULL | |
25524 | }; | |
25525 | ||
994141e6 | 25526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25528 | { |
25529 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25530 | if (PyErr_Occurred()) SWIG_fail; | |
25531 | } | |
25532 | { | |
25533 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25534 | if (PyErr_Occurred()) SWIG_fail; | |
25535 | } | |
d14a1e28 | 25536 | if (obj3) { |
a41e16b6 | 25537 | { |
994141e6 | 25538 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
a41e16b6 RD |
25539 | if (PyErr_Occurred()) SWIG_fail; |
25540 | } | |
d14a1e28 RD |
25541 | } |
25542 | { | |
25543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25544 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
25545 | ||
25546 | wxPyEndAllowThreads(__tstate); | |
25547 | if (PyErr_Occurred()) SWIG_fail; | |
25548 | } | |
25549 | Py_INCREF(Py_None); resultobj = Py_None; | |
25550 | return resultobj; | |
25551 | fail: | |
25552 | return NULL; | |
25553 | } | |
25554 | ||
25555 | ||
25556 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25557 | PyObject *resultobj; | |
25558 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25559 | int arg2 ; | |
25560 | int result; | |
25561 | PyObject * obj0 = 0 ; | |
994141e6 | 25562 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25563 | char *kwnames[] = { |
25564 | (char *) "self",(char *) "orient", NULL | |
25565 | }; | |
25566 | ||
994141e6 | 25567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25569 | { |
25570 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25571 | if (PyErr_Occurred()) SWIG_fail; | |
25572 | } | |
d14a1e28 RD |
25573 | { |
25574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25575 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
25576 | ||
25577 | wxPyEndAllowThreads(__tstate); | |
25578 | if (PyErr_Occurred()) SWIG_fail; | |
25579 | } | |
994141e6 | 25580 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25581 | return resultobj; |
25582 | fail: | |
25583 | return NULL; | |
25584 | } | |
25585 | ||
25586 | ||
25587 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25588 | PyObject *resultobj; | |
25589 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25590 | int arg2 ; | |
25591 | int result; | |
25592 | PyObject * obj0 = 0 ; | |
994141e6 | 25593 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25594 | char *kwnames[] = { |
25595 | (char *) "self",(char *) "orient", NULL | |
25596 | }; | |
25597 | ||
994141e6 | 25598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25600 | { |
25601 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25602 | if (PyErr_Occurred()) SWIG_fail; | |
25603 | } | |
d14a1e28 RD |
25604 | { |
25605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25606 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
25607 | ||
25608 | wxPyEndAllowThreads(__tstate); | |
25609 | if (PyErr_Occurred()) SWIG_fail; | |
25610 | } | |
994141e6 | 25611 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25612 | return resultobj; |
25613 | fail: | |
25614 | return NULL; | |
25615 | } | |
25616 | ||
25617 | ||
25618 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25619 | PyObject *resultobj; | |
25620 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25621 | int arg2 ; | |
25622 | int result; | |
25623 | PyObject * obj0 = 0 ; | |
994141e6 | 25624 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25625 | char *kwnames[] = { |
25626 | (char *) "self",(char *) "orient", NULL | |
25627 | }; | |
25628 | ||
994141e6 | 25629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25631 | { |
25632 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25633 | if (PyErr_Occurred()) SWIG_fail; | |
25634 | } | |
d14a1e28 RD |
25635 | { |
25636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25637 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
25638 | ||
25639 | wxPyEndAllowThreads(__tstate); | |
25640 | if (PyErr_Occurred()) SWIG_fail; | |
25641 | } | |
994141e6 | 25642 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25643 | return resultobj; |
25644 | fail: | |
25645 | return NULL; | |
25646 | } | |
25647 | ||
25648 | ||
25649 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25650 | PyObject *resultobj; | |
25651 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25652 | int arg2 ; | |
25653 | int arg3 ; | |
25654 | wxRect *arg4 = (wxRect *) NULL ; | |
25655 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25656 | PyObject * obj1 = 0 ; |
25657 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25658 | PyObject * obj3 = 0 ; |
25659 | char *kwnames[] = { | |
25660 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
25661 | }; | |
25662 | ||
994141e6 | 25663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25665 | { |
25666 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25667 | if (PyErr_Occurred()) SWIG_fail; | |
25668 | } | |
25669 | { | |
25670 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25671 | if (PyErr_Occurred()) SWIG_fail; | |
25672 | } | |
d14a1e28 RD |
25673 | if (obj3) { |
25674 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25675 | } | |
25676 | { | |
25677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25678 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
25679 | ||
25680 | wxPyEndAllowThreads(__tstate); | |
25681 | if (PyErr_Occurred()) SWIG_fail; | |
25682 | } | |
25683 | Py_INCREF(Py_None); resultobj = Py_None; | |
25684 | return resultobj; | |
25685 | fail: | |
25686 | return NULL; | |
25687 | } | |
25688 | ||
25689 | ||
25690 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25691 | PyObject *resultobj; | |
25692 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25693 | int arg2 ; | |
25694 | bool result; | |
25695 | PyObject * obj0 = 0 ; | |
994141e6 | 25696 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25697 | char *kwnames[] = { |
25698 | (char *) "self",(char *) "lines", NULL | |
25699 | }; | |
25700 | ||
994141e6 | 25701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25703 | { |
25704 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25705 | if (PyErr_Occurred()) SWIG_fail; | |
25706 | } | |
d14a1e28 RD |
25707 | { |
25708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25709 | result = (bool)(arg1)->ScrollLines(arg2); | |
25710 | ||
25711 | wxPyEndAllowThreads(__tstate); | |
25712 | if (PyErr_Occurred()) SWIG_fail; | |
25713 | } | |
4d5c3d91 | 25714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25715 | return resultobj; |
25716 | fail: | |
25717 | return NULL; | |
25718 | } | |
25719 | ||
25720 | ||
25721 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25722 | PyObject *resultobj; | |
25723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25724 | int arg2 ; | |
25725 | bool result; | |
25726 | PyObject * obj0 = 0 ; | |
994141e6 | 25727 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25728 | char *kwnames[] = { |
25729 | (char *) "self",(char *) "pages", NULL | |
25730 | }; | |
25731 | ||
994141e6 | 25732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
25734 | { |
25735 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25736 | if (PyErr_Occurred()) SWIG_fail; | |
25737 | } | |
d14a1e28 RD |
25738 | { |
25739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25740 | result = (bool)(arg1)->ScrollPages(arg2); | |
25741 | ||
25742 | wxPyEndAllowThreads(__tstate); | |
25743 | if (PyErr_Occurred()) SWIG_fail; | |
25744 | } | |
4d5c3d91 | 25745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25746 | return resultobj; |
25747 | fail: | |
25748 | return NULL; | |
25749 | } | |
25750 | ||
25751 | ||
25752 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25753 | PyObject *resultobj; | |
25754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25755 | bool result; | |
25756 | PyObject * obj0 = 0 ; | |
25757 | char *kwnames[] = { | |
25758 | (char *) "self", NULL | |
25759 | }; | |
25760 | ||
25761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
25762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25763 | { | |
25764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25765 | result = (bool)(arg1)->LineUp(); | |
25766 | ||
25767 | wxPyEndAllowThreads(__tstate); | |
25768 | if (PyErr_Occurred()) SWIG_fail; | |
25769 | } | |
4d5c3d91 | 25770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25771 | return resultobj; |
25772 | fail: | |
25773 | return NULL; | |
25774 | } | |
25775 | ||
25776 | ||
25777 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25778 | PyObject *resultobj; | |
25779 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25780 | bool result; | |
25781 | PyObject * obj0 = 0 ; | |
25782 | char *kwnames[] = { | |
25783 | (char *) "self", NULL | |
25784 | }; | |
25785 | ||
25786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
25787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25788 | { | |
25789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25790 | result = (bool)(arg1)->LineDown(); | |
25791 | ||
25792 | wxPyEndAllowThreads(__tstate); | |
25793 | if (PyErr_Occurred()) SWIG_fail; | |
25794 | } | |
4d5c3d91 | 25795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25796 | return resultobj; |
25797 | fail: | |
25798 | return NULL; | |
25799 | } | |
25800 | ||
25801 | ||
25802 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25803 | PyObject *resultobj; | |
25804 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25805 | bool result; | |
25806 | PyObject * obj0 = 0 ; | |
25807 | char *kwnames[] = { | |
25808 | (char *) "self", NULL | |
25809 | }; | |
25810 | ||
25811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
25812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25813 | { | |
25814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25815 | result = (bool)(arg1)->PageUp(); | |
25816 | ||
25817 | wxPyEndAllowThreads(__tstate); | |
25818 | if (PyErr_Occurred()) SWIG_fail; | |
25819 | } | |
4d5c3d91 | 25820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25821 | return resultobj; |
25822 | fail: | |
25823 | return NULL; | |
25824 | } | |
25825 | ||
25826 | ||
25827 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25828 | PyObject *resultobj; | |
25829 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25830 | bool result; | |
25831 | PyObject * obj0 = 0 ; | |
25832 | char *kwnames[] = { | |
25833 | (char *) "self", NULL | |
25834 | }; | |
25835 | ||
25836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
25837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25838 | { | |
25839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25840 | result = (bool)(arg1)->PageDown(); | |
25841 | ||
25842 | wxPyEndAllowThreads(__tstate); | |
25843 | if (PyErr_Occurred()) SWIG_fail; | |
25844 | } | |
4d5c3d91 | 25845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25846 | return resultobj; |
25847 | fail: | |
25848 | return NULL; | |
25849 | } | |
25850 | ||
25851 | ||
25852 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25853 | PyObject *resultobj; | |
25854 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25855 | wxString *arg2 = 0 ; | |
e811c8ce | 25856 | bool temp2 = False ; |
d14a1e28 RD |
25857 | PyObject * obj0 = 0 ; |
25858 | PyObject * obj1 = 0 ; | |
25859 | char *kwnames[] = { | |
25860 | (char *) "self",(char *) "text", NULL | |
25861 | }; | |
25862 | ||
25863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
25864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25865 | { | |
25866 | arg2 = wxString_in_helper(obj1); | |
25867 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25868 | temp2 = True; |
d14a1e28 RD |
25869 | } |
25870 | { | |
25871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25872 | (arg1)->SetHelpText((wxString const &)*arg2); | |
25873 | ||
25874 | wxPyEndAllowThreads(__tstate); | |
25875 | if (PyErr_Occurred()) SWIG_fail; | |
25876 | } | |
25877 | Py_INCREF(Py_None); resultobj = Py_None; | |
25878 | { | |
25879 | if (temp2) | |
25880 | delete arg2; | |
25881 | } | |
25882 | return resultobj; | |
25883 | fail: | |
25884 | { | |
25885 | if (temp2) | |
25886 | delete arg2; | |
25887 | } | |
25888 | return NULL; | |
25889 | } | |
25890 | ||
25891 | ||
25892 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25893 | PyObject *resultobj; | |
25894 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25895 | wxString *arg2 = 0 ; | |
e811c8ce | 25896 | bool temp2 = False ; |
d14a1e28 RD |
25897 | PyObject * obj0 = 0 ; |
25898 | PyObject * obj1 = 0 ; | |
25899 | char *kwnames[] = { | |
25900 | (char *) "self",(char *) "text", NULL | |
25901 | }; | |
25902 | ||
25903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
25904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25905 | { | |
25906 | arg2 = wxString_in_helper(obj1); | |
25907 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25908 | temp2 = True; |
d14a1e28 RD |
25909 | } |
25910 | { | |
25911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25912 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
25913 | ||
25914 | wxPyEndAllowThreads(__tstate); | |
25915 | if (PyErr_Occurred()) SWIG_fail; | |
25916 | } | |
25917 | Py_INCREF(Py_None); resultobj = Py_None; | |
25918 | { | |
25919 | if (temp2) | |
25920 | delete arg2; | |
25921 | } | |
25922 | return resultobj; | |
25923 | fail: | |
25924 | { | |
25925 | if (temp2) | |
25926 | delete arg2; | |
25927 | } | |
25928 | return NULL; | |
25929 | } | |
25930 | ||
25931 | ||
25932 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25933 | PyObject *resultobj; | |
25934 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25935 | wxString result; | |
25936 | PyObject * obj0 = 0 ; | |
25937 | char *kwnames[] = { | |
25938 | (char *) "self", NULL | |
25939 | }; | |
25940 | ||
25941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
25942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25943 | { | |
25944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25945 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
25946 | ||
25947 | wxPyEndAllowThreads(__tstate); | |
25948 | if (PyErr_Occurred()) SWIG_fail; | |
25949 | } | |
25950 | { | |
25951 | #if wxUSE_UNICODE | |
25952 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25953 | #else | |
25954 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25955 | #endif | |
25956 | } | |
25957 | return resultobj; | |
25958 | fail: | |
25959 | return NULL; | |
25960 | } | |
25961 | ||
25962 | ||
25963 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25964 | PyObject *resultobj; | |
25965 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25966 | wxString *arg2 = 0 ; | |
e811c8ce | 25967 | bool temp2 = False ; |
d14a1e28 RD |
25968 | PyObject * obj0 = 0 ; |
25969 | PyObject * obj1 = 0 ; | |
25970 | char *kwnames[] = { | |
25971 | (char *) "self",(char *) "tip", NULL | |
25972 | }; | |
25973 | ||
25974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
25975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25976 | { | |
25977 | arg2 = wxString_in_helper(obj1); | |
25978 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25979 | temp2 = True; |
d14a1e28 RD |
25980 | } |
25981 | { | |
25982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25983 | (arg1)->SetToolTip((wxString const &)*arg2); | |
25984 | ||
25985 | wxPyEndAllowThreads(__tstate); | |
25986 | if (PyErr_Occurred()) SWIG_fail; | |
25987 | } | |
25988 | Py_INCREF(Py_None); resultobj = Py_None; | |
25989 | { | |
25990 | if (temp2) | |
25991 | delete arg2; | |
25992 | } | |
25993 | return resultobj; | |
25994 | fail: | |
25995 | { | |
25996 | if (temp2) | |
25997 | delete arg2; | |
25998 | } | |
25999 | return NULL; | |
26000 | } | |
26001 | ||
26002 | ||
26003 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26004 | PyObject *resultobj; | |
26005 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26006 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
26007 | PyObject * obj0 = 0 ; | |
26008 | PyObject * obj1 = 0 ; | |
26009 | char *kwnames[] = { | |
26010 | (char *) "self",(char *) "tip", NULL | |
26011 | }; | |
26012 | ||
26013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
26014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26015 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26016 | { | |
26017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26018 | (arg1)->SetToolTip(arg2); | |
26019 | ||
26020 | wxPyEndAllowThreads(__tstate); | |
26021 | if (PyErr_Occurred()) SWIG_fail; | |
26022 | } | |
26023 | Py_INCREF(Py_None); resultobj = Py_None; | |
26024 | return resultobj; | |
26025 | fail: | |
26026 | return NULL; | |
26027 | } | |
26028 | ||
26029 | ||
26030 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26031 | PyObject *resultobj; | |
26032 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26033 | wxToolTip *result; | |
26034 | PyObject * obj0 = 0 ; | |
26035 | char *kwnames[] = { | |
26036 | (char *) "self", NULL | |
26037 | }; | |
26038 | ||
26039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
26040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26041 | { | |
26042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26043 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
26044 | ||
26045 | wxPyEndAllowThreads(__tstate); | |
26046 | if (PyErr_Occurred()) SWIG_fail; | |
26047 | } | |
26048 | { | |
26049 | resultobj = wxPyMake_wxObject(result); | |
26050 | } | |
26051 | return resultobj; | |
26052 | fail: | |
26053 | return NULL; | |
26054 | } | |
26055 | ||
26056 | ||
26057 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26058 | PyObject *resultobj; | |
26059 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 26060 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
26061 | PyObject * obj0 = 0 ; |
26062 | PyObject * obj1 = 0 ; | |
26063 | char *kwnames[] = { | |
26064 | (char *) "self",(char *) "dropTarget", NULL | |
26065 | }; | |
26066 | ||
26067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
26068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 26069 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
26070 | { |
26071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26072 | (arg1)->SetDropTarget(arg2); | |
26073 | ||
26074 | wxPyEndAllowThreads(__tstate); | |
26075 | if (PyErr_Occurred()) SWIG_fail; | |
26076 | } | |
26077 | Py_INCREF(Py_None); resultobj = Py_None; | |
26078 | return resultobj; | |
26079 | fail: | |
26080 | return NULL; | |
26081 | } | |
26082 | ||
26083 | ||
26084 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26085 | PyObject *resultobj; | |
26086 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 26087 | wxPyDropTarget *result; |
d14a1e28 RD |
26088 | PyObject * obj0 = 0 ; |
26089 | char *kwnames[] = { | |
26090 | (char *) "self", NULL | |
26091 | }; | |
26092 | ||
26093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
26094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26095 | { | |
26096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7722248d | 26097 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
26098 | |
26099 | wxPyEndAllowThreads(__tstate); | |
26100 | if (PyErr_Occurred()) SWIG_fail; | |
26101 | } | |
7722248d | 26102 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
26103 | return resultobj; |
26104 | fail: | |
26105 | return NULL; | |
26106 | } | |
26107 | ||
26108 | ||
26109 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26110 | PyObject *resultobj; | |
26111 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26112 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
26113 | PyObject * obj0 = 0 ; | |
26114 | PyObject * obj1 = 0 ; | |
26115 | char *kwnames[] = { | |
26116 | (char *) "self",(char *) "constraints", NULL | |
26117 | }; | |
26118 | ||
26119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
26120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26121 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26122 | { | |
26123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26124 | (arg1)->SetConstraints(arg2); | |
26125 | ||
26126 | wxPyEndAllowThreads(__tstate); | |
26127 | if (PyErr_Occurred()) SWIG_fail; | |
26128 | } | |
26129 | Py_INCREF(Py_None); resultobj = Py_None; | |
26130 | return resultobj; | |
26131 | fail: | |
26132 | return NULL; | |
26133 | } | |
26134 | ||
26135 | ||
26136 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26137 | PyObject *resultobj; | |
26138 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26139 | wxLayoutConstraints *result; | |
26140 | PyObject * obj0 = 0 ; | |
26141 | char *kwnames[] = { | |
26142 | (char *) "self", NULL | |
26143 | }; | |
26144 | ||
26145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
26146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26147 | { | |
26148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26149 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
26150 | ||
26151 | wxPyEndAllowThreads(__tstate); | |
26152 | if (PyErr_Occurred()) SWIG_fail; | |
26153 | } | |
26154 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 0); | |
26155 | return resultobj; | |
26156 | fail: | |
26157 | return NULL; | |
26158 | } | |
26159 | ||
26160 | ||
26161 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26162 | PyObject *resultobj; | |
26163 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26164 | bool arg2 ; | |
26165 | PyObject * obj0 = 0 ; | |
26166 | PyObject * obj1 = 0 ; | |
26167 | char *kwnames[] = { | |
26168 | (char *) "self",(char *) "autoLayout", NULL | |
26169 | }; | |
26170 | ||
26171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
26172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 26173 | { |
994141e6 | 26174 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
26175 | if (PyErr_Occurred()) SWIG_fail; |
26176 | } | |
d14a1e28 RD |
26177 | { |
26178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26179 | (arg1)->SetAutoLayout(arg2); | |
26180 | ||
26181 | wxPyEndAllowThreads(__tstate); | |
26182 | if (PyErr_Occurred()) SWIG_fail; | |
26183 | } | |
26184 | Py_INCREF(Py_None); resultobj = Py_None; | |
26185 | return resultobj; | |
26186 | fail: | |
26187 | return NULL; | |
26188 | } | |
26189 | ||
26190 | ||
26191 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26192 | PyObject *resultobj; | |
26193 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26194 | bool result; | |
26195 | PyObject * obj0 = 0 ; | |
26196 | char *kwnames[] = { | |
26197 | (char *) "self", NULL | |
26198 | }; | |
26199 | ||
26200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
26201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26202 | { | |
26203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26204 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
26205 | ||
26206 | wxPyEndAllowThreads(__tstate); | |
26207 | if (PyErr_Occurred()) SWIG_fail; | |
26208 | } | |
4d5c3d91 | 26209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26210 | return resultobj; |
26211 | fail: | |
26212 | return NULL; | |
26213 | } | |
26214 | ||
26215 | ||
26216 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26217 | PyObject *resultobj; | |
26218 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26219 | bool result; | |
26220 | PyObject * obj0 = 0 ; | |
26221 | char *kwnames[] = { | |
26222 | (char *) "self", NULL | |
26223 | }; | |
26224 | ||
26225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
26226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26227 | { | |
26228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26229 | result = (bool)(arg1)->Layout(); | |
26230 | ||
26231 | wxPyEndAllowThreads(__tstate); | |
26232 | if (PyErr_Occurred()) SWIG_fail; | |
26233 | } | |
4d5c3d91 | 26234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26235 | return resultobj; |
26236 | fail: | |
26237 | return NULL; | |
26238 | } | |
26239 | ||
26240 | ||
26241 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26242 | PyObject *resultobj; | |
26243 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26244 | wxSizer *arg2 = (wxSizer *) 0 ; | |
e811c8ce | 26245 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26246 | PyObject * obj0 = 0 ; |
26247 | PyObject * obj1 = 0 ; | |
26248 | PyObject * obj2 = 0 ; | |
26249 | char *kwnames[] = { | |
26250 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
26251 | }; | |
26252 | ||
26253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26255 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26256 | if (obj2) { | |
a41e16b6 | 26257 | { |
994141e6 | 26258 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
26259 | if (PyErr_Occurred()) SWIG_fail; |
26260 | } | |
d14a1e28 RD |
26261 | } |
26262 | { | |
26263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26264 | (arg1)->SetSizer(arg2,arg3); | |
26265 | ||
26266 | wxPyEndAllowThreads(__tstate); | |
26267 | if (PyErr_Occurred()) SWIG_fail; | |
26268 | } | |
26269 | Py_INCREF(Py_None); resultobj = Py_None; | |
26270 | return resultobj; | |
26271 | fail: | |
26272 | return NULL; | |
26273 | } | |
26274 | ||
26275 | ||
26276 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26277 | PyObject *resultobj; | |
26278 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26279 | wxSizer *arg2 = (wxSizer *) 0 ; | |
e811c8ce | 26280 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26281 | PyObject * obj0 = 0 ; |
26282 | PyObject * obj1 = 0 ; | |
26283 | PyObject * obj2 = 0 ; | |
26284 | char *kwnames[] = { | |
26285 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
26286 | }; | |
26287 | ||
26288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26290 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26291 | if (obj2) { | |
a41e16b6 | 26292 | { |
994141e6 | 26293 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
26294 | if (PyErr_Occurred()) SWIG_fail; |
26295 | } | |
d14a1e28 RD |
26296 | } |
26297 | { | |
26298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26299 | (arg1)->SetSizerAndFit(arg2,arg3); | |
26300 | ||
26301 | wxPyEndAllowThreads(__tstate); | |
26302 | if (PyErr_Occurred()) SWIG_fail; | |
26303 | } | |
26304 | Py_INCREF(Py_None); resultobj = Py_None; | |
26305 | return resultobj; | |
26306 | fail: | |
26307 | return NULL; | |
26308 | } | |
26309 | ||
26310 | ||
26311 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26312 | PyObject *resultobj; | |
26313 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26314 | wxSizer *result; | |
26315 | PyObject * obj0 = 0 ; | |
26316 | char *kwnames[] = { | |
26317 | (char *) "self", NULL | |
26318 | }; | |
26319 | ||
26320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
26321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26322 | { | |
26323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26324 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
26325 | ||
26326 | wxPyEndAllowThreads(__tstate); | |
26327 | if (PyErr_Occurred()) SWIG_fail; | |
26328 | } | |
26329 | { | |
26330 | resultobj = wxPyMake_wxSizer(result); | |
26331 | } | |
26332 | return resultobj; | |
26333 | fail: | |
26334 | return NULL; | |
26335 | } | |
26336 | ||
26337 | ||
26338 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26339 | PyObject *resultobj; | |
26340 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26341 | wxSizer *arg2 = (wxSizer *) 0 ; | |
26342 | PyObject * obj0 = 0 ; | |
26343 | PyObject * obj1 = 0 ; | |
26344 | char *kwnames[] = { | |
26345 | (char *) "self",(char *) "sizer", NULL | |
26346 | }; | |
26347 | ||
26348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
26349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26350 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26351 | { | |
26352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26353 | (arg1)->SetContainingSizer(arg2); | |
26354 | ||
26355 | wxPyEndAllowThreads(__tstate); | |
26356 | if (PyErr_Occurred()) SWIG_fail; | |
26357 | } | |
26358 | Py_INCREF(Py_None); resultobj = Py_None; | |
26359 | return resultobj; | |
26360 | fail: | |
26361 | return NULL; | |
26362 | } | |
26363 | ||
26364 | ||
26365 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26366 | PyObject *resultobj; | |
26367 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26368 | wxSizer *result; | |
26369 | PyObject * obj0 = 0 ; | |
26370 | char *kwnames[] = { | |
26371 | (char *) "self", NULL | |
26372 | }; | |
26373 | ||
26374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
26375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26376 | { | |
26377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26378 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
26379 | ||
26380 | wxPyEndAllowThreads(__tstate); | |
26381 | if (PyErr_Occurred()) SWIG_fail; | |
26382 | } | |
26383 | { | |
26384 | resultobj = wxPyMake_wxSizer(result); | |
26385 | } | |
26386 | return resultobj; | |
26387 | fail: | |
26388 | return NULL; | |
26389 | } | |
26390 | ||
26391 | ||
26392 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
26393 | PyObject *obj; | |
26394 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26395 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
26396 | Py_INCREF(obj); | |
26397 | return Py_BuildValue((char *)""); | |
26398 | } | |
26399 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26400 | PyObject *resultobj; | |
26401 | long arg1 ; | |
26402 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26403 | wxWindow *result; | |
994141e6 | 26404 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
26405 | PyObject * obj1 = 0 ; |
26406 | char *kwnames[] = { | |
26407 | (char *) "id",(char *) "parent", NULL | |
26408 | }; | |
26409 | ||
994141e6 RD |
26410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
26411 | { | |
26412 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
26413 | if (PyErr_Occurred()) SWIG_fail; | |
26414 | } | |
d14a1e28 RD |
26415 | if (obj1) { |
26416 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26417 | } | |
26418 | { | |
26419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26420 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
26421 | ||
26422 | wxPyEndAllowThreads(__tstate); | |
26423 | if (PyErr_Occurred()) SWIG_fail; | |
26424 | } | |
26425 | { | |
26426 | resultobj = wxPyMake_wxObject(result); | |
26427 | } | |
26428 | return resultobj; | |
26429 | fail: | |
26430 | return NULL; | |
26431 | } | |
26432 | ||
26433 | ||
26434 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26435 | PyObject *resultobj; | |
26436 | wxString *arg1 = 0 ; | |
26437 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26438 | wxWindow *result; | |
e811c8ce | 26439 | bool temp1 = False ; |
d14a1e28 RD |
26440 | PyObject * obj0 = 0 ; |
26441 | PyObject * obj1 = 0 ; | |
26442 | char *kwnames[] = { | |
26443 | (char *) "name",(char *) "parent", NULL | |
26444 | }; | |
26445 | ||
26446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
26447 | { | |
26448 | arg1 = wxString_in_helper(obj0); | |
26449 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 26450 | temp1 = True; |
d14a1e28 RD |
26451 | } |
26452 | if (obj1) { | |
26453 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26454 | } | |
26455 | { | |
26456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26457 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
26458 | ||
26459 | wxPyEndAllowThreads(__tstate); | |
26460 | if (PyErr_Occurred()) SWIG_fail; | |
26461 | } | |
26462 | { | |
26463 | resultobj = wxPyMake_wxObject(result); | |
26464 | } | |
26465 | { | |
26466 | if (temp1) | |
26467 | delete arg1; | |
26468 | } | |
26469 | return resultobj; | |
26470 | fail: | |
26471 | { | |
26472 | if (temp1) | |
26473 | delete arg1; | |
26474 | } | |
26475 | return NULL; | |
26476 | } | |
26477 | ||
26478 | ||
26479 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26480 | PyObject *resultobj; | |
26481 | wxString *arg1 = 0 ; | |
26482 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26483 | wxWindow *result; | |
e811c8ce | 26484 | bool temp1 = False ; |
d14a1e28 RD |
26485 | PyObject * obj0 = 0 ; |
26486 | PyObject * obj1 = 0 ; | |
26487 | char *kwnames[] = { | |
26488 | (char *) "label",(char *) "parent", NULL | |
26489 | }; | |
26490 | ||
26491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
26492 | { | |
26493 | arg1 = wxString_in_helper(obj0); | |
26494 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 26495 | temp1 = True; |
d14a1e28 RD |
26496 | } |
26497 | if (obj1) { | |
26498 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26499 | } | |
26500 | { | |
26501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26502 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
26503 | ||
26504 | wxPyEndAllowThreads(__tstate); | |
26505 | if (PyErr_Occurred()) SWIG_fail; | |
26506 | } | |
26507 | { | |
26508 | resultobj = wxPyMake_wxObject(result); | |
26509 | } | |
26510 | { | |
26511 | if (temp1) | |
26512 | delete arg1; | |
26513 | } | |
26514 | return resultobj; | |
26515 | fail: | |
26516 | { | |
26517 | if (temp1) | |
26518 | delete arg1; | |
26519 | } | |
26520 | return NULL; | |
26521 | } | |
26522 | ||
26523 | ||
26524 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26525 | PyObject *resultobj; | |
26526 | unsigned long arg1 ; | |
26527 | wxWindow *result; | |
26528 | PyObject * obj0 = 0 ; | |
26529 | char *kwnames[] = { | |
26530 | (char *) "hWnd", NULL | |
26531 | }; | |
26532 | ||
26533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FromHWND",kwnames,&obj0)) goto fail; | |
a41e16b6 | 26534 | { |
994141e6 | 26535 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
a41e16b6 RD |
26536 | if (PyErr_Occurred()) SWIG_fail; |
26537 | } | |
d14a1e28 RD |
26538 | { |
26539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26540 | result = (wxWindow *)wxWindow_FromHWND(arg1); | |
26541 | ||
26542 | wxPyEndAllowThreads(__tstate); | |
26543 | if (PyErr_Occurred()) SWIG_fail; | |
26544 | } | |
26545 | { | |
26546 | resultobj = wxPyMake_wxObject(result); | |
26547 | } | |
26548 | return resultobj; | |
26549 | fail: | |
26550 | return NULL; | |
26551 | } | |
26552 | ||
26553 | ||
26554 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26555 | PyObject *resultobj; | |
26556 | wxValidator *result; | |
26557 | char *kwnames[] = { | |
26558 | NULL | |
26559 | }; | |
26560 | ||
26561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
26562 | { | |
26563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26564 | result = (wxValidator *)new wxValidator(); | |
26565 | ||
26566 | wxPyEndAllowThreads(__tstate); | |
26567 | if (PyErr_Occurred()) SWIG_fail; | |
26568 | } | |
26569 | { | |
26570 | resultobj = wxPyMake_wxObject(result); | |
26571 | } | |
26572 | return resultobj; | |
26573 | fail: | |
26574 | return NULL; | |
26575 | } | |
26576 | ||
26577 | ||
26578 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26579 | PyObject *resultobj; | |
26580 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26581 | wxValidator *result; | |
26582 | PyObject * obj0 = 0 ; | |
26583 | char *kwnames[] = { | |
26584 | (char *) "self", NULL | |
26585 | }; | |
26586 | ||
26587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
26588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26589 | { | |
26590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26591 | result = (wxValidator *)(arg1)->Clone(); | |
26592 | ||
26593 | wxPyEndAllowThreads(__tstate); | |
26594 | if (PyErr_Occurred()) SWIG_fail; | |
26595 | } | |
26596 | { | |
26597 | resultobj = wxPyMake_wxObject(result); | |
26598 | } | |
26599 | return resultobj; | |
26600 | fail: | |
26601 | return NULL; | |
26602 | } | |
26603 | ||
26604 | ||
26605 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26606 | PyObject *resultobj; | |
26607 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26608 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26609 | bool result; | |
26610 | PyObject * obj0 = 0 ; | |
26611 | PyObject * obj1 = 0 ; | |
26612 | char *kwnames[] = { | |
26613 | (char *) "self",(char *) "parent", NULL | |
26614 | }; | |
26615 | ||
26616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
26617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26618 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26619 | { | |
26620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26621 | result = (bool)(arg1)->Validate(arg2); | |
26622 | ||
26623 | wxPyEndAllowThreads(__tstate); | |
26624 | if (PyErr_Occurred()) SWIG_fail; | |
26625 | } | |
4d5c3d91 | 26626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26627 | return resultobj; |
26628 | fail: | |
26629 | return NULL; | |
26630 | } | |
26631 | ||
26632 | ||
26633 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26634 | PyObject *resultobj; | |
26635 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26636 | bool result; | |
26637 | PyObject * obj0 = 0 ; | |
26638 | char *kwnames[] = { | |
26639 | (char *) "self", NULL | |
26640 | }; | |
26641 | ||
26642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
26643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26644 | { | |
26645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26646 | result = (bool)(arg1)->TransferToWindow(); | |
26647 | ||
26648 | wxPyEndAllowThreads(__tstate); | |
26649 | if (PyErr_Occurred()) SWIG_fail; | |
26650 | } | |
4d5c3d91 | 26651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26652 | return resultobj; |
26653 | fail: | |
26654 | return NULL; | |
26655 | } | |
26656 | ||
26657 | ||
26658 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26659 | PyObject *resultobj; | |
26660 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26661 | bool result; | |
26662 | PyObject * obj0 = 0 ; | |
26663 | char *kwnames[] = { | |
26664 | (char *) "self", NULL | |
26665 | }; | |
26666 | ||
26667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
26668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26669 | { | |
26670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26671 | result = (bool)(arg1)->TransferFromWindow(); | |
26672 | ||
26673 | wxPyEndAllowThreads(__tstate); | |
26674 | if (PyErr_Occurred()) SWIG_fail; | |
26675 | } | |
4d5c3d91 | 26676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26677 | return resultobj; |
26678 | fail: | |
26679 | return NULL; | |
26680 | } | |
26681 | ||
26682 | ||
26683 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26684 | PyObject *resultobj; | |
26685 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26686 | wxWindow *result; | |
26687 | PyObject * obj0 = 0 ; | |
26688 | char *kwnames[] = { | |
26689 | (char *) "self", NULL | |
26690 | }; | |
26691 | ||
26692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
26693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26694 | { | |
26695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26696 | result = (wxWindow *)(arg1)->GetWindow(); | |
26697 | ||
26698 | wxPyEndAllowThreads(__tstate); | |
26699 | if (PyErr_Occurred()) SWIG_fail; | |
26700 | } | |
26701 | { | |
26702 | resultobj = wxPyMake_wxObject(result); | |
26703 | } | |
26704 | return resultobj; | |
26705 | fail: | |
26706 | return NULL; | |
26707 | } | |
26708 | ||
26709 | ||
26710 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26711 | PyObject *resultobj; | |
26712 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26713 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26714 | PyObject * obj0 = 0 ; | |
26715 | PyObject * obj1 = 0 ; | |
26716 | char *kwnames[] = { | |
26717 | (char *) "self",(char *) "window", NULL | |
26718 | }; | |
26719 | ||
26720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
26721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26722 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26723 | { | |
26724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26725 | (arg1)->SetWindow(arg2); | |
26726 | ||
26727 | wxPyEndAllowThreads(__tstate); | |
26728 | if (PyErr_Occurred()) SWIG_fail; | |
26729 | } | |
26730 | Py_INCREF(Py_None); resultobj = Py_None; | |
26731 | return resultobj; | |
26732 | fail: | |
26733 | return NULL; | |
26734 | } | |
26735 | ||
26736 | ||
26737 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26738 | PyObject *resultobj; | |
26739 | bool result; | |
26740 | char *kwnames[] = { | |
26741 | NULL | |
26742 | }; | |
26743 | ||
26744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
26745 | { | |
26746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26747 | result = (bool)wxValidator::IsSilent(); | |
26748 | ||
26749 | wxPyEndAllowThreads(__tstate); | |
26750 | if (PyErr_Occurred()) SWIG_fail; | |
26751 | } | |
4d5c3d91 | 26752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26753 | return resultobj; |
26754 | fail: | |
26755 | return NULL; | |
26756 | } | |
26757 | ||
26758 | ||
26759 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26760 | PyObject *resultobj; | |
e811c8ce | 26761 | int arg1 = (int) True ; |
994141e6 | 26762 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
26763 | char *kwnames[] = { |
26764 | (char *) "doIt", NULL | |
26765 | }; | |
26766 | ||
994141e6 RD |
26767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; |
26768 | if (obj0) { | |
26769 | { | |
26770 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
26771 | if (PyErr_Occurred()) SWIG_fail; | |
26772 | } | |
26773 | } | |
d14a1e28 RD |
26774 | { |
26775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26776 | wxValidator::SetBellOnError(arg1); | |
26777 | ||
26778 | wxPyEndAllowThreads(__tstate); | |
26779 | if (PyErr_Occurred()) SWIG_fail; | |
26780 | } | |
26781 | Py_INCREF(Py_None); resultobj = Py_None; | |
26782 | return resultobj; | |
26783 | fail: | |
26784 | return NULL; | |
26785 | } | |
26786 | ||
26787 | ||
26788 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
26789 | PyObject *obj; | |
26790 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26791 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
26792 | Py_INCREF(obj); | |
26793 | return Py_BuildValue((char *)""); | |
26794 | } | |
26795 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26796 | PyObject *resultobj; | |
26797 | wxPyValidator *result; | |
26798 | char *kwnames[] = { | |
26799 | NULL | |
26800 | }; | |
26801 | ||
26802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
26803 | { | |
26804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26805 | result = (wxPyValidator *)new wxPyValidator(); | |
26806 | ||
26807 | wxPyEndAllowThreads(__tstate); | |
26808 | if (PyErr_Occurred()) SWIG_fail; | |
26809 | } | |
26810 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyValidator, 1); | |
26811 | return resultobj; | |
26812 | fail: | |
26813 | return NULL; | |
26814 | } | |
26815 | ||
26816 | ||
26817 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26818 | PyObject *resultobj; | |
26819 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
26820 | PyObject *arg2 = (PyObject *) 0 ; | |
26821 | PyObject *arg3 = (PyObject *) 0 ; | |
e811c8ce | 26822 | int arg4 = (int) True ; |
d14a1e28 RD |
26823 | PyObject * obj0 = 0 ; |
26824 | PyObject * obj1 = 0 ; | |
26825 | PyObject * obj2 = 0 ; | |
994141e6 | 26826 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
26827 | char *kwnames[] = { |
26828 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
26829 | }; | |
26830 | ||
994141e6 | 26831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
26832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26833 | arg2 = obj1; | |
26834 | arg3 = obj2; | |
994141e6 RD |
26835 | if (obj3) { |
26836 | { | |
26837 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
26838 | if (PyErr_Occurred()) SWIG_fail; | |
26839 | } | |
26840 | } | |
d14a1e28 RD |
26841 | { |
26842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26843 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
26844 | ||
26845 | wxPyEndAllowThreads(__tstate); | |
26846 | if (PyErr_Occurred()) SWIG_fail; | |
26847 | } | |
26848 | Py_INCREF(Py_None); resultobj = Py_None; | |
26849 | return resultobj; | |
26850 | fail: | |
26851 | return NULL; | |
26852 | } | |
26853 | ||
26854 | ||
26855 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
26856 | PyObject *obj; | |
26857 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26858 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
26859 | Py_INCREF(obj); | |
26860 | return Py_BuildValue((char *)""); | |
26861 | } | |
26862 | static int _wrap_DefaultValidator_set(PyObject *_val) { | |
26863 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); | |
26864 | return 1; | |
26865 | } | |
26866 | ||
26867 | ||
26868 | static PyObject *_wrap_DefaultValidator_get() { | |
26869 | PyObject *pyobj; | |
26870 | ||
26871 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultValidator, SWIGTYPE_p_wxValidator, 0); | |
26872 | return pyobj; | |
26873 | } | |
26874 | ||
26875 | ||
26876 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26877 | PyObject *resultobj; | |
26878 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
26879 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
26880 | long arg2 = (long) 0 ; | |
26881 | wxMenu *result; | |
e811c8ce | 26882 | bool temp1 = False ; |
d14a1e28 | 26883 | PyObject * obj0 = 0 ; |
994141e6 | 26884 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26885 | char *kwnames[] = { |
26886 | (char *) "title",(char *) "style", NULL | |
26887 | }; | |
26888 | ||
994141e6 | 26889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
26890 | if (obj0) { |
26891 | { | |
26892 | arg1 = wxString_in_helper(obj0); | |
26893 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 26894 | temp1 = True; |
d14a1e28 RD |
26895 | } |
26896 | } | |
994141e6 RD |
26897 | if (obj1) { |
26898 | { | |
26899 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
26900 | if (PyErr_Occurred()) SWIG_fail; | |
26901 | } | |
26902 | } | |
d14a1e28 RD |
26903 | { |
26904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26905 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
26906 | ||
26907 | wxPyEndAllowThreads(__tstate); | |
26908 | if (PyErr_Occurred()) SWIG_fail; | |
26909 | } | |
26910 | { | |
26911 | resultobj = wxPyMake_wxObject(result); | |
26912 | } | |
26913 | { | |
26914 | if (temp1) | |
26915 | delete arg1; | |
26916 | } | |
26917 | return resultobj; | |
26918 | fail: | |
26919 | { | |
26920 | if (temp1) | |
26921 | delete arg1; | |
26922 | } | |
26923 | return NULL; | |
26924 | } | |
26925 | ||
26926 | ||
26927 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26928 | PyObject *resultobj; | |
26929 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26930 | int arg2 ; | |
26931 | wxString *arg3 = 0 ; | |
26932 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
26933 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
26934 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 26935 | wxMenuItem *result; |
e811c8ce RD |
26936 | bool temp3 = False ; |
26937 | bool temp4 = False ; | |
d14a1e28 | 26938 | PyObject * obj0 = 0 ; |
994141e6 | 26939 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26940 | PyObject * obj2 = 0 ; |
26941 | PyObject * obj3 = 0 ; | |
994141e6 | 26942 | PyObject * obj4 = 0 ; |
d14a1e28 | 26943 | char *kwnames[] = { |
242b7b46 | 26944 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
26945 | }; |
26946 | ||
994141e6 | 26947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 26948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
26949 | { |
26950 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
26951 | if (PyErr_Occurred()) SWIG_fail; | |
26952 | } | |
d14a1e28 RD |
26953 | { |
26954 | arg3 = wxString_in_helper(obj2); | |
26955 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26956 | temp3 = True; |
d14a1e28 RD |
26957 | } |
26958 | if (obj3) { | |
26959 | { | |
26960 | arg4 = wxString_in_helper(obj3); | |
26961 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 26962 | temp4 = True; |
d14a1e28 RD |
26963 | } |
26964 | } | |
994141e6 RD |
26965 | if (obj4) { |
26966 | { | |
26967 | arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4); | |
26968 | if (PyErr_Occurred()) SWIG_fail; | |
26969 | } | |
26970 | } | |
d14a1e28 RD |
26971 | { |
26972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 26973 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
26974 | |
26975 | wxPyEndAllowThreads(__tstate); | |
26976 | if (PyErr_Occurred()) SWIG_fail; | |
26977 | } | |
a41e16b6 RD |
26978 | { |
26979 | resultobj = wxPyMake_wxObject(result); | |
26980 | } | |
d14a1e28 RD |
26981 | { |
26982 | if (temp3) | |
26983 | delete arg3; | |
26984 | } | |
26985 | { | |
26986 | if (temp4) | |
26987 | delete arg4; | |
26988 | } | |
26989 | return resultobj; | |
26990 | fail: | |
26991 | { | |
26992 | if (temp3) | |
26993 | delete arg3; | |
26994 | } | |
26995 | { | |
26996 | if (temp4) | |
26997 | delete arg4; | |
26998 | } | |
26999 | return NULL; | |
27000 | } | |
27001 | ||
27002 | ||
27003 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27004 | PyObject *resultobj; | |
27005 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 27006 | wxMenuItem *result; |
d14a1e28 RD |
27007 | PyObject * obj0 = 0 ; |
27008 | char *kwnames[] = { | |
27009 | (char *) "self", NULL | |
27010 | }; | |
27011 | ||
27012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
27013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27014 | { | |
27015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27016 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
27017 | |
27018 | wxPyEndAllowThreads(__tstate); | |
27019 | if (PyErr_Occurred()) SWIG_fail; | |
27020 | } | |
a41e16b6 RD |
27021 | { |
27022 | resultobj = wxPyMake_wxObject(result); | |
27023 | } | |
d14a1e28 RD |
27024 | return resultobj; |
27025 | fail: | |
27026 | return NULL; | |
27027 | } | |
27028 | ||
27029 | ||
27030 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27031 | PyObject *resultobj; | |
27032 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27033 | int arg2 ; | |
27034 | wxString *arg3 = 0 ; | |
27035 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27036 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 27037 | wxMenuItem *result; |
e811c8ce RD |
27038 | bool temp3 = False ; |
27039 | bool temp4 = False ; | |
d14a1e28 | 27040 | PyObject * obj0 = 0 ; |
994141e6 | 27041 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27042 | PyObject * obj2 = 0 ; |
27043 | PyObject * obj3 = 0 ; | |
27044 | char *kwnames[] = { | |
242b7b46 | 27045 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27046 | }; |
27047 | ||
994141e6 | 27048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 27049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
27050 | { |
27051 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27052 | if (PyErr_Occurred()) SWIG_fail; | |
27053 | } | |
d14a1e28 RD |
27054 | { |
27055 | arg3 = wxString_in_helper(obj2); | |
27056 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27057 | temp3 = True; |
d14a1e28 RD |
27058 | } |
27059 | if (obj3) { | |
27060 | { | |
27061 | arg4 = wxString_in_helper(obj3); | |
27062 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27063 | temp4 = True; |
d14a1e28 RD |
27064 | } |
27065 | } | |
27066 | { | |
27067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27068 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27069 | |
27070 | wxPyEndAllowThreads(__tstate); | |
27071 | if (PyErr_Occurred()) SWIG_fail; | |
27072 | } | |
a41e16b6 RD |
27073 | { |
27074 | resultobj = wxPyMake_wxObject(result); | |
27075 | } | |
d14a1e28 RD |
27076 | { |
27077 | if (temp3) | |
27078 | delete arg3; | |
27079 | } | |
27080 | { | |
27081 | if (temp4) | |
27082 | delete arg4; | |
27083 | } | |
27084 | return resultobj; | |
27085 | fail: | |
27086 | { | |
27087 | if (temp3) | |
27088 | delete arg3; | |
27089 | } | |
27090 | { | |
27091 | if (temp4) | |
27092 | delete arg4; | |
27093 | } | |
27094 | return NULL; | |
27095 | } | |
27096 | ||
27097 | ||
27098 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27099 | PyObject *resultobj; | |
27100 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27101 | int arg2 ; | |
27102 | wxString *arg3 = 0 ; | |
27103 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27104 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 27105 | wxMenuItem *result; |
e811c8ce RD |
27106 | bool temp3 = False ; |
27107 | bool temp4 = False ; | |
d14a1e28 | 27108 | PyObject * obj0 = 0 ; |
994141e6 | 27109 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27110 | PyObject * obj2 = 0 ; |
27111 | PyObject * obj3 = 0 ; | |
27112 | char *kwnames[] = { | |
242b7b46 | 27113 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27114 | }; |
27115 | ||
994141e6 | 27116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 27117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
27118 | { |
27119 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27120 | if (PyErr_Occurred()) SWIG_fail; | |
27121 | } | |
d14a1e28 RD |
27122 | { |
27123 | arg3 = wxString_in_helper(obj2); | |
27124 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27125 | temp3 = True; |
d14a1e28 RD |
27126 | } |
27127 | if (obj3) { | |
27128 | { | |
27129 | arg4 = wxString_in_helper(obj3); | |
27130 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27131 | temp4 = True; |
d14a1e28 RD |
27132 | } |
27133 | } | |
27134 | { | |
27135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27136 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27137 | |
27138 | wxPyEndAllowThreads(__tstate); | |
27139 | if (PyErr_Occurred()) SWIG_fail; | |
27140 | } | |
a41e16b6 RD |
27141 | { |
27142 | resultobj = wxPyMake_wxObject(result); | |
27143 | } | |
d14a1e28 RD |
27144 | { |
27145 | if (temp3) | |
27146 | delete arg3; | |
27147 | } | |
27148 | { | |
27149 | if (temp4) | |
27150 | delete arg4; | |
27151 | } | |
27152 | return resultobj; | |
27153 | fail: | |
27154 | { | |
27155 | if (temp3) | |
27156 | delete arg3; | |
27157 | } | |
27158 | { | |
27159 | if (temp4) | |
27160 | delete arg4; | |
27161 | } | |
27162 | return NULL; | |
27163 | } | |
27164 | ||
27165 | ||
27166 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27167 | PyObject *resultobj; | |
27168 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27169 | int arg2 ; | |
27170 | wxString *arg3 = 0 ; | |
27171 | wxMenu *arg4 = (wxMenu *) 0 ; | |
27172 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27173 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 27174 | wxMenuItem *result; |
e811c8ce RD |
27175 | bool temp3 = False ; |
27176 | bool temp5 = False ; | |
d14a1e28 | 27177 | PyObject * obj0 = 0 ; |
994141e6 | 27178 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27179 | PyObject * obj2 = 0 ; |
27180 | PyObject * obj3 = 0 ; | |
27181 | PyObject * obj4 = 0 ; | |
27182 | char *kwnames[] = { | |
242b7b46 | 27183 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
27184 | }; |
27185 | ||
994141e6 | 27186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
27188 | { |
27189 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27190 | if (PyErr_Occurred()) SWIG_fail; | |
27191 | } | |
d14a1e28 RD |
27192 | { |
27193 | arg3 = wxString_in_helper(obj2); | |
27194 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27195 | temp3 = True; |
d14a1e28 RD |
27196 | } |
27197 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27198 | if (obj4) { | |
27199 | { | |
27200 | arg5 = wxString_in_helper(obj4); | |
27201 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 27202 | temp5 = True; |
d14a1e28 RD |
27203 | } |
27204 | } | |
27205 | { | |
27206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27207 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27208 | |
27209 | wxPyEndAllowThreads(__tstate); | |
27210 | if (PyErr_Occurred()) SWIG_fail; | |
27211 | } | |
a41e16b6 RD |
27212 | { |
27213 | resultobj = wxPyMake_wxObject(result); | |
27214 | } | |
d14a1e28 RD |
27215 | { |
27216 | if (temp3) | |
27217 | delete arg3; | |
27218 | } | |
27219 | { | |
27220 | if (temp5) | |
27221 | delete arg5; | |
27222 | } | |
27223 | return resultobj; | |
27224 | fail: | |
27225 | { | |
27226 | if (temp3) | |
27227 | delete arg3; | |
27228 | } | |
27229 | { | |
27230 | if (temp5) | |
27231 | delete arg5; | |
27232 | } | |
27233 | return NULL; | |
27234 | } | |
27235 | ||
27236 | ||
27237 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27238 | PyObject *resultobj; | |
27239 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27240 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 27241 | wxMenuItem *result; |
d14a1e28 RD |
27242 | PyObject * obj0 = 0 ; |
27243 | PyObject * obj1 = 0 ; | |
27244 | char *kwnames[] = { | |
27245 | (char *) "self",(char *) "item", NULL | |
27246 | }; | |
27247 | ||
27248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
27249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27250 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27251 | { | |
27252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27253 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
27254 | |
27255 | wxPyEndAllowThreads(__tstate); | |
27256 | if (PyErr_Occurred()) SWIG_fail; | |
27257 | } | |
a41e16b6 RD |
27258 | { |
27259 | resultobj = wxPyMake_wxObject(result); | |
27260 | } | |
d14a1e28 RD |
27261 | return resultobj; |
27262 | fail: | |
27263 | return NULL; | |
27264 | } | |
27265 | ||
27266 | ||
27267 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27268 | PyObject *resultobj; | |
27269 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27270 | PyObject * obj0 = 0 ; | |
27271 | char *kwnames[] = { | |
27272 | (char *) "self", NULL | |
27273 | }; | |
27274 | ||
27275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
27276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27277 | { | |
27278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27279 | (arg1)->Break(); | |
27280 | ||
27281 | wxPyEndAllowThreads(__tstate); | |
27282 | if (PyErr_Occurred()) SWIG_fail; | |
27283 | } | |
27284 | Py_INCREF(Py_None); resultobj = Py_None; | |
27285 | return resultobj; | |
27286 | fail: | |
27287 | return NULL; | |
27288 | } | |
27289 | ||
27290 | ||
27291 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27292 | PyObject *resultobj; | |
27293 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27294 | size_t arg2 ; | |
27295 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
a41e16b6 | 27296 | wxMenuItem *result; |
d14a1e28 RD |
27297 | PyObject * obj0 = 0 ; |
27298 | PyObject * obj1 = 0 ; | |
27299 | PyObject * obj2 = 0 ; | |
27300 | char *kwnames[] = { | |
27301 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
27302 | }; | |
27303 | ||
27304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 27306 | { |
994141e6 | 27307 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
27308 | if (PyErr_Occurred()) SWIG_fail; |
27309 | } | |
d14a1e28 RD |
27310 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27311 | { | |
27312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27313 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
27314 | |
27315 | wxPyEndAllowThreads(__tstate); | |
27316 | if (PyErr_Occurred()) SWIG_fail; | |
27317 | } | |
a41e16b6 RD |
27318 | { |
27319 | resultobj = wxPyMake_wxObject(result); | |
27320 | } | |
d14a1e28 RD |
27321 | return resultobj; |
27322 | fail: | |
27323 | return NULL; | |
27324 | } | |
27325 | ||
27326 | ||
27327 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27328 | PyObject *resultobj; | |
27329 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27330 | size_t arg2 ; | |
27331 | int arg3 ; | |
27332 | wxString *arg4 = 0 ; | |
27333 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27334 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
27335 | int arg6 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 27336 | wxMenuItem *result; |
e811c8ce RD |
27337 | bool temp4 = False ; |
27338 | bool temp5 = False ; | |
d14a1e28 RD |
27339 | PyObject * obj0 = 0 ; |
27340 | PyObject * obj1 = 0 ; | |
994141e6 | 27341 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27342 | PyObject * obj3 = 0 ; |
27343 | PyObject * obj4 = 0 ; | |
994141e6 | 27344 | PyObject * obj5 = 0 ; |
d14a1e28 | 27345 | char *kwnames[] = { |
242b7b46 | 27346 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27347 | }; |
27348 | ||
994141e6 | 27349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 27350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 27351 | { |
994141e6 RD |
27352 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
27353 | if (PyErr_Occurred()) SWIG_fail; | |
27354 | } | |
27355 | { | |
27356 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
a41e16b6 RD |
27357 | if (PyErr_Occurred()) SWIG_fail; |
27358 | } | |
d14a1e28 RD |
27359 | { |
27360 | arg4 = wxString_in_helper(obj3); | |
27361 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27362 | temp4 = True; |
d14a1e28 RD |
27363 | } |
27364 | if (obj4) { | |
27365 | { | |
27366 | arg5 = wxString_in_helper(obj4); | |
27367 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 27368 | temp5 = True; |
d14a1e28 RD |
27369 | } |
27370 | } | |
994141e6 RD |
27371 | if (obj5) { |
27372 | { | |
27373 | arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5); | |
27374 | if (PyErr_Occurred()) SWIG_fail; | |
27375 | } | |
27376 | } | |
d14a1e28 RD |
27377 | { |
27378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27379 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
27380 | |
27381 | wxPyEndAllowThreads(__tstate); | |
27382 | if (PyErr_Occurred()) SWIG_fail; | |
27383 | } | |
a41e16b6 RD |
27384 | { |
27385 | resultobj = wxPyMake_wxObject(result); | |
27386 | } | |
d14a1e28 RD |
27387 | { |
27388 | if (temp4) | |
27389 | delete arg4; | |
27390 | } | |
27391 | { | |
27392 | if (temp5) | |
27393 | delete arg5; | |
27394 | } | |
27395 | return resultobj; | |
27396 | fail: | |
27397 | { | |
27398 | if (temp4) | |
27399 | delete arg4; | |
27400 | } | |
27401 | { | |
27402 | if (temp5) | |
27403 | delete arg5; | |
27404 | } | |
27405 | return NULL; | |
27406 | } | |
27407 | ||
27408 | ||
27409 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27410 | PyObject *resultobj; | |
27411 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27412 | size_t arg2 ; | |
a41e16b6 | 27413 | wxMenuItem *result; |
d14a1e28 RD |
27414 | PyObject * obj0 = 0 ; |
27415 | PyObject * obj1 = 0 ; | |
27416 | char *kwnames[] = { | |
27417 | (char *) "self",(char *) "pos", NULL | |
27418 | }; | |
27419 | ||
27420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
27421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 27422 | { |
994141e6 | 27423 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
27424 | if (PyErr_Occurred()) SWIG_fail; |
27425 | } | |
d14a1e28 RD |
27426 | { |
27427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27428 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
27429 | |
27430 | wxPyEndAllowThreads(__tstate); | |
27431 | if (PyErr_Occurred()) SWIG_fail; | |
27432 | } | |
a41e16b6 RD |
27433 | { |
27434 | resultobj = wxPyMake_wxObject(result); | |
27435 | } | |
d14a1e28 RD |
27436 | return resultobj; |
27437 | fail: | |
27438 | return NULL; | |
27439 | } | |
27440 | ||
27441 | ||
27442 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27443 | PyObject *resultobj; | |
27444 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27445 | size_t arg2 ; | |
27446 | int arg3 ; | |
27447 | wxString *arg4 = 0 ; | |
27448 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27449 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 27450 | wxMenuItem *result; |
e811c8ce RD |
27451 | bool temp4 = False ; |
27452 | bool temp5 = False ; | |
d14a1e28 RD |
27453 | PyObject * obj0 = 0 ; |
27454 | PyObject * obj1 = 0 ; | |
994141e6 | 27455 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27456 | PyObject * obj3 = 0 ; |
27457 | PyObject * obj4 = 0 ; | |
27458 | char *kwnames[] = { | |
242b7b46 | 27459 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27460 | }; |
27461 | ||
994141e6 | 27462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 27464 | { |
994141e6 RD |
27465 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
27466 | if (PyErr_Occurred()) SWIG_fail; | |
27467 | } | |
27468 | { | |
27469 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
a41e16b6 RD |
27470 | if (PyErr_Occurred()) SWIG_fail; |
27471 | } | |
d14a1e28 RD |
27472 | { |
27473 | arg4 = wxString_in_helper(obj3); | |
27474 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27475 | temp4 = True; |
d14a1e28 RD |
27476 | } |
27477 | if (obj4) { | |
27478 | { | |
27479 | arg5 = wxString_in_helper(obj4); | |
27480 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 27481 | temp5 = True; |
d14a1e28 RD |
27482 | } |
27483 | } | |
27484 | { | |
27485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27486 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27487 | |
27488 | wxPyEndAllowThreads(__tstate); | |
27489 | if (PyErr_Occurred()) SWIG_fail; | |
27490 | } | |
a41e16b6 RD |
27491 | { |
27492 | resultobj = wxPyMake_wxObject(result); | |
27493 | } | |
d14a1e28 RD |
27494 | { |
27495 | if (temp4) | |
27496 | delete arg4; | |
27497 | } | |
27498 | { | |
27499 | if (temp5) | |
27500 | delete arg5; | |
27501 | } | |
27502 | return resultobj; | |
27503 | fail: | |
27504 | { | |
27505 | if (temp4) | |
27506 | delete arg4; | |
27507 | } | |
27508 | { | |
27509 | if (temp5) | |
27510 | delete arg5; | |
27511 | } | |
27512 | return NULL; | |
27513 | } | |
27514 | ||
27515 | ||
27516 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27517 | PyObject *resultobj; | |
27518 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27519 | size_t arg2 ; | |
27520 | int arg3 ; | |
27521 | wxString *arg4 = 0 ; | |
27522 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27523 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 27524 | wxMenuItem *result; |
e811c8ce RD |
27525 | bool temp4 = False ; |
27526 | bool temp5 = False ; | |
d14a1e28 RD |
27527 | PyObject * obj0 = 0 ; |
27528 | PyObject * obj1 = 0 ; | |
994141e6 | 27529 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27530 | PyObject * obj3 = 0 ; |
27531 | PyObject * obj4 = 0 ; | |
27532 | char *kwnames[] = { | |
242b7b46 | 27533 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27534 | }; |
27535 | ||
994141e6 | 27536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 27538 | { |
994141e6 RD |
27539 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
27540 | if (PyErr_Occurred()) SWIG_fail; | |
27541 | } | |
27542 | { | |
27543 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
a41e16b6 RD |
27544 | if (PyErr_Occurred()) SWIG_fail; |
27545 | } | |
d14a1e28 RD |
27546 | { |
27547 | arg4 = wxString_in_helper(obj3); | |
27548 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27549 | temp4 = True; |
d14a1e28 RD |
27550 | } |
27551 | if (obj4) { | |
27552 | { | |
27553 | arg5 = wxString_in_helper(obj4); | |
27554 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 27555 | temp5 = True; |
d14a1e28 RD |
27556 | } |
27557 | } | |
27558 | { | |
27559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27560 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27561 | |
27562 | wxPyEndAllowThreads(__tstate); | |
27563 | if (PyErr_Occurred()) SWIG_fail; | |
27564 | } | |
a41e16b6 RD |
27565 | { |
27566 | resultobj = wxPyMake_wxObject(result); | |
27567 | } | |
d14a1e28 RD |
27568 | { |
27569 | if (temp4) | |
27570 | delete arg4; | |
27571 | } | |
27572 | { | |
27573 | if (temp5) | |
27574 | delete arg5; | |
27575 | } | |
27576 | return resultobj; | |
27577 | fail: | |
27578 | { | |
27579 | if (temp4) | |
27580 | delete arg4; | |
27581 | } | |
27582 | { | |
27583 | if (temp5) | |
27584 | delete arg5; | |
27585 | } | |
27586 | return NULL; | |
27587 | } | |
27588 | ||
27589 | ||
27590 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27591 | PyObject *resultobj; | |
27592 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27593 | size_t arg2 ; | |
27594 | int arg3 ; | |
27595 | wxString *arg4 = 0 ; | |
27596 | wxMenu *arg5 = (wxMenu *) 0 ; | |
27597 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
27598 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
a41e16b6 | 27599 | wxMenuItem *result; |
e811c8ce RD |
27600 | bool temp4 = False ; |
27601 | bool temp6 = False ; | |
d14a1e28 RD |
27602 | PyObject * obj0 = 0 ; |
27603 | PyObject * obj1 = 0 ; | |
994141e6 | 27604 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27605 | PyObject * obj3 = 0 ; |
27606 | PyObject * obj4 = 0 ; | |
27607 | PyObject * obj5 = 0 ; | |
27608 | char *kwnames[] = { | |
242b7b46 | 27609 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
27610 | }; |
27611 | ||
994141e6 | 27612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 27613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 27614 | { |
994141e6 RD |
27615 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
27616 | if (PyErr_Occurred()) SWIG_fail; | |
27617 | } | |
27618 | { | |
27619 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
a41e16b6 RD |
27620 | if (PyErr_Occurred()) SWIG_fail; |
27621 | } | |
d14a1e28 RD |
27622 | { |
27623 | arg4 = wxString_in_helper(obj3); | |
27624 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27625 | temp4 = True; |
d14a1e28 RD |
27626 | } |
27627 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27628 | if (obj5) { | |
27629 | { | |
27630 | arg6 = wxString_in_helper(obj5); | |
27631 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 27632 | temp6 = True; |
d14a1e28 RD |
27633 | } |
27634 | } | |
27635 | { | |
27636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27637 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
27638 | |
27639 | wxPyEndAllowThreads(__tstate); | |
27640 | if (PyErr_Occurred()) SWIG_fail; | |
27641 | } | |
a41e16b6 RD |
27642 | { |
27643 | resultobj = wxPyMake_wxObject(result); | |
27644 | } | |
d14a1e28 RD |
27645 | { |
27646 | if (temp4) | |
27647 | delete arg4; | |
27648 | } | |
27649 | { | |
27650 | if (temp6) | |
27651 | delete arg6; | |
27652 | } | |
27653 | return resultobj; | |
27654 | fail: | |
27655 | { | |
27656 | if (temp4) | |
27657 | delete arg4; | |
27658 | } | |
27659 | { | |
27660 | if (temp6) | |
27661 | delete arg6; | |
27662 | } | |
27663 | return NULL; | |
27664 | } | |
27665 | ||
27666 | ||
27667 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27668 | PyObject *resultobj; | |
27669 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27670 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 27671 | wxMenuItem *result; |
d14a1e28 RD |
27672 | PyObject * obj0 = 0 ; |
27673 | PyObject * obj1 = 0 ; | |
27674 | char *kwnames[] = { | |
27675 | (char *) "self",(char *) "item", NULL | |
27676 | }; | |
27677 | ||
27678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
27679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27680 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27681 | { | |
27682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27683 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
27684 | |
27685 | wxPyEndAllowThreads(__tstate); | |
27686 | if (PyErr_Occurred()) SWIG_fail; | |
27687 | } | |
a41e16b6 RD |
27688 | { |
27689 | resultobj = wxPyMake_wxObject(result); | |
27690 | } | |
d14a1e28 RD |
27691 | return resultobj; |
27692 | fail: | |
27693 | return NULL; | |
27694 | } | |
27695 | ||
27696 | ||
27697 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27698 | PyObject *resultobj; | |
27699 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27700 | int arg2 ; | |
27701 | wxString *arg3 = 0 ; | |
27702 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27703 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27704 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 27705 | wxMenuItem *result; |
e811c8ce RD |
27706 | bool temp3 = False ; |
27707 | bool temp4 = False ; | |
d14a1e28 | 27708 | PyObject * obj0 = 0 ; |
994141e6 | 27709 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27710 | PyObject * obj2 = 0 ; |
27711 | PyObject * obj3 = 0 ; | |
994141e6 | 27712 | PyObject * obj4 = 0 ; |
d14a1e28 | 27713 | char *kwnames[] = { |
242b7b46 | 27714 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27715 | }; |
27716 | ||
994141e6 | 27717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
27719 | { |
27720 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27721 | if (PyErr_Occurred()) SWIG_fail; | |
27722 | } | |
d14a1e28 RD |
27723 | { |
27724 | arg3 = wxString_in_helper(obj2); | |
27725 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27726 | temp3 = True; |
d14a1e28 RD |
27727 | } |
27728 | if (obj3) { | |
27729 | { | |
27730 | arg4 = wxString_in_helper(obj3); | |
27731 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27732 | temp4 = True; |
d14a1e28 RD |
27733 | } |
27734 | } | |
994141e6 RD |
27735 | if (obj4) { |
27736 | { | |
27737 | arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4); | |
27738 | if (PyErr_Occurred()) SWIG_fail; | |
27739 | } | |
27740 | } | |
d14a1e28 RD |
27741 | { |
27742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27743 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
27744 | |
27745 | wxPyEndAllowThreads(__tstate); | |
27746 | if (PyErr_Occurred()) SWIG_fail; | |
27747 | } | |
a41e16b6 RD |
27748 | { |
27749 | resultobj = wxPyMake_wxObject(result); | |
27750 | } | |
d14a1e28 RD |
27751 | { |
27752 | if (temp3) | |
27753 | delete arg3; | |
27754 | } | |
27755 | { | |
27756 | if (temp4) | |
27757 | delete arg4; | |
27758 | } | |
27759 | return resultobj; | |
27760 | fail: | |
27761 | { | |
27762 | if (temp3) | |
27763 | delete arg3; | |
27764 | } | |
27765 | { | |
27766 | if (temp4) | |
27767 | delete arg4; | |
27768 | } | |
27769 | return NULL; | |
27770 | } | |
27771 | ||
27772 | ||
27773 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27774 | PyObject *resultobj; | |
27775 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 27776 | wxMenuItem *result; |
d14a1e28 RD |
27777 | PyObject * obj0 = 0 ; |
27778 | char *kwnames[] = { | |
27779 | (char *) "self", NULL | |
27780 | }; | |
27781 | ||
27782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
27783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27784 | { | |
27785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27786 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
27787 | |
27788 | wxPyEndAllowThreads(__tstate); | |
27789 | if (PyErr_Occurred()) SWIG_fail; | |
27790 | } | |
a41e16b6 RD |
27791 | { |
27792 | resultobj = wxPyMake_wxObject(result); | |
27793 | } | |
d14a1e28 RD |
27794 | return resultobj; |
27795 | fail: | |
27796 | return NULL; | |
27797 | } | |
27798 | ||
27799 | ||
27800 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27801 | PyObject *resultobj; | |
27802 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27803 | int arg2 ; | |
27804 | wxString *arg3 = 0 ; | |
27805 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27806 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 27807 | wxMenuItem *result; |
e811c8ce RD |
27808 | bool temp3 = False ; |
27809 | bool temp4 = False ; | |
d14a1e28 | 27810 | PyObject * obj0 = 0 ; |
994141e6 | 27811 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27812 | PyObject * obj2 = 0 ; |
27813 | PyObject * obj3 = 0 ; | |
27814 | char *kwnames[] = { | |
242b7b46 | 27815 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27816 | }; |
27817 | ||
994141e6 | 27818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 27819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
27820 | { |
27821 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27822 | if (PyErr_Occurred()) SWIG_fail; | |
27823 | } | |
d14a1e28 RD |
27824 | { |
27825 | arg3 = wxString_in_helper(obj2); | |
27826 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27827 | temp3 = True; |
d14a1e28 RD |
27828 | } |
27829 | if (obj3) { | |
27830 | { | |
27831 | arg4 = wxString_in_helper(obj3); | |
27832 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27833 | temp4 = True; |
d14a1e28 RD |
27834 | } |
27835 | } | |
27836 | { | |
27837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27838 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27839 | |
27840 | wxPyEndAllowThreads(__tstate); | |
27841 | if (PyErr_Occurred()) SWIG_fail; | |
27842 | } | |
a41e16b6 RD |
27843 | { |
27844 | resultobj = wxPyMake_wxObject(result); | |
27845 | } | |
d14a1e28 RD |
27846 | { |
27847 | if (temp3) | |
27848 | delete arg3; | |
27849 | } | |
27850 | { | |
27851 | if (temp4) | |
27852 | delete arg4; | |
27853 | } | |
27854 | return resultobj; | |
27855 | fail: | |
27856 | { | |
27857 | if (temp3) | |
27858 | delete arg3; | |
27859 | } | |
27860 | { | |
27861 | if (temp4) | |
27862 | delete arg4; | |
27863 | } | |
27864 | return NULL; | |
27865 | } | |
27866 | ||
27867 | ||
27868 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27869 | PyObject *resultobj; | |
27870 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27871 | int arg2 ; | |
27872 | wxString *arg3 = 0 ; | |
27873 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27874 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 27875 | wxMenuItem *result; |
e811c8ce RD |
27876 | bool temp3 = False ; |
27877 | bool temp4 = False ; | |
d14a1e28 | 27878 | PyObject * obj0 = 0 ; |
994141e6 | 27879 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27880 | PyObject * obj2 = 0 ; |
27881 | PyObject * obj3 = 0 ; | |
27882 | char *kwnames[] = { | |
242b7b46 | 27883 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27884 | }; |
27885 | ||
994141e6 | 27886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 27887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
27888 | { |
27889 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27890 | if (PyErr_Occurred()) SWIG_fail; | |
27891 | } | |
d14a1e28 RD |
27892 | { |
27893 | arg3 = wxString_in_helper(obj2); | |
27894 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27895 | temp3 = True; |
d14a1e28 RD |
27896 | } |
27897 | if (obj3) { | |
27898 | { | |
27899 | arg4 = wxString_in_helper(obj3); | |
27900 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27901 | temp4 = True; |
d14a1e28 RD |
27902 | } |
27903 | } | |
27904 | { | |
27905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27906 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27907 | |
27908 | wxPyEndAllowThreads(__tstate); | |
27909 | if (PyErr_Occurred()) SWIG_fail; | |
27910 | } | |
a41e16b6 RD |
27911 | { |
27912 | resultobj = wxPyMake_wxObject(result); | |
27913 | } | |
d14a1e28 RD |
27914 | { |
27915 | if (temp3) | |
27916 | delete arg3; | |
27917 | } | |
27918 | { | |
27919 | if (temp4) | |
27920 | delete arg4; | |
27921 | } | |
27922 | return resultobj; | |
27923 | fail: | |
27924 | { | |
27925 | if (temp3) | |
27926 | delete arg3; | |
27927 | } | |
27928 | { | |
27929 | if (temp4) | |
27930 | delete arg4; | |
27931 | } | |
27932 | return NULL; | |
27933 | } | |
27934 | ||
27935 | ||
27936 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27937 | PyObject *resultobj; | |
27938 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27939 | int arg2 ; | |
27940 | wxString *arg3 = 0 ; | |
27941 | wxMenu *arg4 = (wxMenu *) 0 ; | |
27942 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27943 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 27944 | wxMenuItem *result; |
e811c8ce RD |
27945 | bool temp3 = False ; |
27946 | bool temp5 = False ; | |
d14a1e28 | 27947 | PyObject * obj0 = 0 ; |
994141e6 | 27948 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27949 | PyObject * obj2 = 0 ; |
27950 | PyObject * obj3 = 0 ; | |
27951 | PyObject * obj4 = 0 ; | |
27952 | char *kwnames[] = { | |
242b7b46 | 27953 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
27954 | }; |
27955 | ||
994141e6 | 27956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
27958 | { |
27959 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27960 | if (PyErr_Occurred()) SWIG_fail; | |
27961 | } | |
d14a1e28 RD |
27962 | { |
27963 | arg3 = wxString_in_helper(obj2); | |
27964 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27965 | temp3 = True; |
d14a1e28 RD |
27966 | } |
27967 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27968 | if (obj4) { | |
27969 | { | |
27970 | arg5 = wxString_in_helper(obj4); | |
27971 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 27972 | temp5 = True; |
d14a1e28 RD |
27973 | } |
27974 | } | |
27975 | { | |
27976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 27977 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27978 | |
27979 | wxPyEndAllowThreads(__tstate); | |
27980 | if (PyErr_Occurred()) SWIG_fail; | |
27981 | } | |
a41e16b6 RD |
27982 | { |
27983 | resultobj = wxPyMake_wxObject(result); | |
27984 | } | |
d14a1e28 RD |
27985 | { |
27986 | if (temp3) | |
27987 | delete arg3; | |
27988 | } | |
27989 | { | |
27990 | if (temp5) | |
27991 | delete arg5; | |
27992 | } | |
27993 | return resultobj; | |
27994 | fail: | |
27995 | { | |
27996 | if (temp3) | |
27997 | delete arg3; | |
27998 | } | |
27999 | { | |
28000 | if (temp5) | |
28001 | delete arg5; | |
28002 | } | |
28003 | return NULL; | |
28004 | } | |
28005 | ||
28006 | ||
28007 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28008 | PyObject *resultobj; | |
28009 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28010 | int arg2 ; | |
28011 | wxMenuItem *result; | |
28012 | PyObject * obj0 = 0 ; | |
994141e6 | 28013 | PyObject * obj1 = 0 ; |
d14a1e28 | 28014 | char *kwnames[] = { |
242b7b46 | 28015 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28016 | }; |
28017 | ||
994141e6 | 28018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
28020 | { |
28021 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28022 | if (PyErr_Occurred()) SWIG_fail; | |
28023 | } | |
d14a1e28 RD |
28024 | { |
28025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28026 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28027 | ||
28028 | wxPyEndAllowThreads(__tstate); | |
28029 | if (PyErr_Occurred()) SWIG_fail; | |
28030 | } | |
28031 | { | |
28032 | resultobj = wxPyMake_wxObject(result); | |
28033 | } | |
28034 | return resultobj; | |
28035 | fail: | |
28036 | return NULL; | |
28037 | } | |
28038 | ||
28039 | ||
28040 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28041 | PyObject *resultobj; | |
28042 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28043 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28044 | wxMenuItem *result; | |
28045 | PyObject * obj0 = 0 ; | |
28046 | PyObject * obj1 = 0 ; | |
28047 | char *kwnames[] = { | |
28048 | (char *) "self",(char *) "item", NULL | |
28049 | }; | |
28050 | ||
28051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
28052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28053 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28054 | { | |
28055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28056 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28057 | ||
28058 | wxPyEndAllowThreads(__tstate); | |
28059 | if (PyErr_Occurred()) SWIG_fail; | |
28060 | } | |
28061 | { | |
28062 | resultobj = wxPyMake_wxObject(result); | |
28063 | } | |
28064 | return resultobj; | |
28065 | fail: | |
28066 | return NULL; | |
28067 | } | |
28068 | ||
28069 | ||
28070 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28071 | PyObject *resultobj; | |
28072 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28073 | int arg2 ; | |
28074 | bool result; | |
28075 | PyObject * obj0 = 0 ; | |
994141e6 | 28076 | PyObject * obj1 = 0 ; |
d14a1e28 | 28077 | char *kwnames[] = { |
242b7b46 | 28078 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28079 | }; |
28080 | ||
994141e6 | 28081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
28083 | { |
28084 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28085 | if (PyErr_Occurred()) SWIG_fail; | |
28086 | } | |
d14a1e28 RD |
28087 | { |
28088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28089 | result = (bool)(arg1)->Delete(arg2); | |
28090 | ||
28091 | wxPyEndAllowThreads(__tstate); | |
28092 | if (PyErr_Occurred()) SWIG_fail; | |
28093 | } | |
4d5c3d91 | 28094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28095 | return resultobj; |
28096 | fail: | |
28097 | return NULL; | |
28098 | } | |
28099 | ||
28100 | ||
28101 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28102 | PyObject *resultobj; | |
28103 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28104 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28105 | bool result; | |
28106 | PyObject * obj0 = 0 ; | |
28107 | PyObject * obj1 = 0 ; | |
28108 | char *kwnames[] = { | |
28109 | (char *) "self",(char *) "item", NULL | |
28110 | }; | |
28111 | ||
28112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
28113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28114 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28115 | { | |
28116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28117 | result = (bool)(arg1)->Delete(arg2); | |
28118 | ||
28119 | wxPyEndAllowThreads(__tstate); | |
28120 | if (PyErr_Occurred()) SWIG_fail; | |
28121 | } | |
4d5c3d91 | 28122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28123 | return resultobj; |
28124 | fail: | |
28125 | return NULL; | |
28126 | } | |
28127 | ||
28128 | ||
28129 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28130 | PyObject *resultobj; | |
28131 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28132 | PyObject * obj0 = 0 ; | |
28133 | char *kwnames[] = { | |
28134 | (char *) "self", NULL | |
28135 | }; | |
28136 | ||
28137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
28138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28139 | { | |
28140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28141 | wxMenu_Destroy(arg1); | |
28142 | ||
28143 | wxPyEndAllowThreads(__tstate); | |
28144 | if (PyErr_Occurred()) SWIG_fail; | |
28145 | } | |
28146 | Py_INCREF(Py_None); resultobj = Py_None; | |
28147 | return resultobj; | |
28148 | fail: | |
28149 | return NULL; | |
28150 | } | |
28151 | ||
28152 | ||
28153 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28154 | PyObject *resultobj; | |
28155 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28156 | int arg2 ; | |
28157 | bool result; | |
28158 | PyObject * obj0 = 0 ; | |
994141e6 | 28159 | PyObject * obj1 = 0 ; |
d14a1e28 | 28160 | char *kwnames[] = { |
242b7b46 | 28161 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28162 | }; |
28163 | ||
994141e6 | 28164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
28166 | { |
28167 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28168 | if (PyErr_Occurred()) SWIG_fail; | |
28169 | } | |
d14a1e28 RD |
28170 | { |
28171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28172 | result = (bool)(arg1)->Destroy(arg2); | |
28173 | ||
28174 | wxPyEndAllowThreads(__tstate); | |
28175 | if (PyErr_Occurred()) SWIG_fail; | |
28176 | } | |
4d5c3d91 | 28177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28178 | return resultobj; |
28179 | fail: | |
28180 | return NULL; | |
28181 | } | |
28182 | ||
28183 | ||
28184 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28185 | PyObject *resultobj; | |
28186 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28187 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28188 | bool result; | |
28189 | PyObject * obj0 = 0 ; | |
28190 | PyObject * obj1 = 0 ; | |
28191 | char *kwnames[] = { | |
28192 | (char *) "self",(char *) "item", NULL | |
28193 | }; | |
28194 | ||
28195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
28196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28197 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28198 | { | |
28199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28200 | result = (bool)(arg1)->Destroy(arg2); | |
28201 | ||
28202 | wxPyEndAllowThreads(__tstate); | |
28203 | if (PyErr_Occurred()) SWIG_fail; | |
28204 | } | |
4d5c3d91 | 28205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28206 | return resultobj; |
28207 | fail: | |
28208 | return NULL; | |
28209 | } | |
28210 | ||
28211 | ||
28212 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28213 | PyObject *resultobj; | |
28214 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28215 | size_t result; | |
28216 | PyObject * obj0 = 0 ; | |
28217 | char *kwnames[] = { | |
28218 | (char *) "self", NULL | |
28219 | }; | |
28220 | ||
28221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
28222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28223 | { | |
28224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28225 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
28226 | ||
28227 | wxPyEndAllowThreads(__tstate); | |
28228 | if (PyErr_Occurred()) SWIG_fail; | |
28229 | } | |
994141e6 | 28230 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
28231 | return resultobj; |
28232 | fail: | |
28233 | return NULL; | |
28234 | } | |
28235 | ||
28236 | ||
28237 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28238 | PyObject *resultobj; | |
28239 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28240 | PyObject *result; | |
28241 | PyObject * obj0 = 0 ; | |
28242 | char *kwnames[] = { | |
28243 | (char *) "self", NULL | |
28244 | }; | |
28245 | ||
28246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
28247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28248 | { | |
28249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28250 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
28251 | ||
28252 | wxPyEndAllowThreads(__tstate); | |
28253 | if (PyErr_Occurred()) SWIG_fail; | |
28254 | } | |
28255 | resultobj = result; | |
28256 | return resultobj; | |
28257 | fail: | |
28258 | return NULL; | |
28259 | } | |
28260 | ||
28261 | ||
28262 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28263 | PyObject *resultobj; | |
28264 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28265 | wxString *arg2 = 0 ; | |
28266 | int result; | |
e811c8ce | 28267 | bool temp2 = False ; |
d14a1e28 RD |
28268 | PyObject * obj0 = 0 ; |
28269 | PyObject * obj1 = 0 ; | |
28270 | char *kwnames[] = { | |
28271 | (char *) "self",(char *) "item", NULL | |
28272 | }; | |
28273 | ||
28274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
28275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28276 | { | |
28277 | arg2 = wxString_in_helper(obj1); | |
28278 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28279 | temp2 = True; |
d14a1e28 RD |
28280 | } |
28281 | { | |
28282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28283 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
28284 | ||
28285 | wxPyEndAllowThreads(__tstate); | |
28286 | if (PyErr_Occurred()) SWIG_fail; | |
28287 | } | |
994141e6 | 28288 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
28289 | { |
28290 | if (temp2) | |
28291 | delete arg2; | |
28292 | } | |
28293 | return resultobj; | |
28294 | fail: | |
28295 | { | |
28296 | if (temp2) | |
28297 | delete arg2; | |
28298 | } | |
28299 | return NULL; | |
28300 | } | |
28301 | ||
28302 | ||
28303 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28304 | PyObject *resultobj; | |
28305 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28306 | int arg2 ; | |
28307 | wxMenuItem *result; | |
28308 | PyObject * obj0 = 0 ; | |
994141e6 | 28309 | PyObject * obj1 = 0 ; |
d14a1e28 | 28310 | char *kwnames[] = { |
242b7b46 | 28311 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28312 | }; |
28313 | ||
994141e6 | 28314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
28316 | { |
28317 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28318 | if (PyErr_Occurred()) SWIG_fail; | |
28319 | } | |
d14a1e28 RD |
28320 | { |
28321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28322 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
28323 | ||
28324 | wxPyEndAllowThreads(__tstate); | |
28325 | if (PyErr_Occurred()) SWIG_fail; | |
28326 | } | |
28327 | { | |
28328 | resultobj = wxPyMake_wxObject(result); | |
28329 | } | |
28330 | return resultobj; | |
28331 | fail: | |
28332 | return NULL; | |
28333 | } | |
28334 | ||
28335 | ||
28336 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28337 | PyObject *resultobj; | |
28338 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28339 | size_t arg2 ; | |
28340 | wxMenuItem *result; | |
28341 | PyObject * obj0 = 0 ; | |
28342 | PyObject * obj1 = 0 ; | |
28343 | char *kwnames[] = { | |
28344 | (char *) "self",(char *) "position", NULL | |
28345 | }; | |
28346 | ||
28347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
28348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 28349 | { |
994141e6 | 28350 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
28351 | if (PyErr_Occurred()) SWIG_fail; |
28352 | } | |
d14a1e28 RD |
28353 | { |
28354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28355 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
28356 | ||
28357 | wxPyEndAllowThreads(__tstate); | |
28358 | if (PyErr_Occurred()) SWIG_fail; | |
28359 | } | |
28360 | { | |
28361 | resultobj = wxPyMake_wxObject(result); | |
28362 | } | |
28363 | return resultobj; | |
28364 | fail: | |
28365 | return NULL; | |
28366 | } | |
28367 | ||
28368 | ||
28369 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28370 | PyObject *resultobj; | |
28371 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28372 | int arg2 ; | |
28373 | bool arg3 ; | |
28374 | PyObject * obj0 = 0 ; | |
994141e6 | 28375 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28376 | PyObject * obj2 = 0 ; |
28377 | char *kwnames[] = { | |
242b7b46 | 28378 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
28379 | }; |
28380 | ||
994141e6 | 28381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 28383 | { |
994141e6 RD |
28384 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
28385 | if (PyErr_Occurred()) SWIG_fail; | |
28386 | } | |
28387 | { | |
28388 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
a41e16b6 RD |
28389 | if (PyErr_Occurred()) SWIG_fail; |
28390 | } | |
d14a1e28 RD |
28391 | { |
28392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28393 | (arg1)->Enable(arg2,arg3); | |
28394 | ||
28395 | wxPyEndAllowThreads(__tstate); | |
28396 | if (PyErr_Occurred()) SWIG_fail; | |
28397 | } | |
28398 | Py_INCREF(Py_None); resultobj = Py_None; | |
28399 | return resultobj; | |
28400 | fail: | |
28401 | return NULL; | |
28402 | } | |
28403 | ||
28404 | ||
28405 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28406 | PyObject *resultobj; | |
28407 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28408 | int arg2 ; | |
28409 | bool result; | |
28410 | PyObject * obj0 = 0 ; | |
994141e6 | 28411 | PyObject * obj1 = 0 ; |
d14a1e28 | 28412 | char *kwnames[] = { |
242b7b46 | 28413 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28414 | }; |
28415 | ||
994141e6 | 28416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
28418 | { |
28419 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28420 | if (PyErr_Occurred()) SWIG_fail; | |
28421 | } | |
d14a1e28 RD |
28422 | { |
28423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28424 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
28425 | ||
28426 | wxPyEndAllowThreads(__tstate); | |
28427 | if (PyErr_Occurred()) SWIG_fail; | |
28428 | } | |
4d5c3d91 | 28429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28430 | return resultobj; |
28431 | fail: | |
28432 | return NULL; | |
28433 | } | |
28434 | ||
28435 | ||
28436 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28437 | PyObject *resultobj; | |
28438 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28439 | int arg2 ; | |
28440 | bool arg3 ; | |
28441 | PyObject * obj0 = 0 ; | |
994141e6 | 28442 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28443 | PyObject * obj2 = 0 ; |
28444 | char *kwnames[] = { | |
242b7b46 | 28445 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
28446 | }; |
28447 | ||
994141e6 | 28448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 28450 | { |
994141e6 RD |
28451 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
28452 | if (PyErr_Occurred()) SWIG_fail; | |
28453 | } | |
28454 | { | |
28455 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
a41e16b6 RD |
28456 | if (PyErr_Occurred()) SWIG_fail; |
28457 | } | |
d14a1e28 RD |
28458 | { |
28459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28460 | (arg1)->Check(arg2,arg3); | |
28461 | ||
28462 | wxPyEndAllowThreads(__tstate); | |
28463 | if (PyErr_Occurred()) SWIG_fail; | |
28464 | } | |
28465 | Py_INCREF(Py_None); resultobj = Py_None; | |
28466 | return resultobj; | |
28467 | fail: | |
28468 | return NULL; | |
28469 | } | |
28470 | ||
28471 | ||
28472 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28473 | PyObject *resultobj; | |
28474 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28475 | int arg2 ; | |
28476 | bool result; | |
28477 | PyObject * obj0 = 0 ; | |
994141e6 | 28478 | PyObject * obj1 = 0 ; |
d14a1e28 | 28479 | char *kwnames[] = { |
242b7b46 | 28480 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28481 | }; |
28482 | ||
994141e6 | 28483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
28485 | { |
28486 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28487 | if (PyErr_Occurred()) SWIG_fail; | |
28488 | } | |
d14a1e28 RD |
28489 | { |
28490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28491 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
28492 | ||
28493 | wxPyEndAllowThreads(__tstate); | |
28494 | if (PyErr_Occurred()) SWIG_fail; | |
28495 | } | |
4d5c3d91 | 28496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28497 | return resultobj; |
28498 | fail: | |
28499 | return NULL; | |
28500 | } | |
28501 | ||
28502 | ||
28503 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28504 | PyObject *resultobj; | |
28505 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28506 | int arg2 ; | |
28507 | wxString *arg3 = 0 ; | |
e811c8ce | 28508 | bool temp3 = False ; |
d14a1e28 | 28509 | PyObject * obj0 = 0 ; |
994141e6 | 28510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28511 | PyObject * obj2 = 0 ; |
28512 | char *kwnames[] = { | |
242b7b46 | 28513 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
28514 | }; |
28515 | ||
994141e6 | 28516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
28518 | { |
28519 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28520 | if (PyErr_Occurred()) SWIG_fail; | |
28521 | } | |
d14a1e28 RD |
28522 | { |
28523 | arg3 = wxString_in_helper(obj2); | |
28524 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28525 | temp3 = True; |
d14a1e28 RD |
28526 | } |
28527 | { | |
28528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28529 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
28530 | ||
28531 | wxPyEndAllowThreads(__tstate); | |
28532 | if (PyErr_Occurred()) SWIG_fail; | |
28533 | } | |
28534 | Py_INCREF(Py_None); resultobj = Py_None; | |
28535 | { | |
28536 | if (temp3) | |
28537 | delete arg3; | |
28538 | } | |
28539 | return resultobj; | |
28540 | fail: | |
28541 | { | |
28542 | if (temp3) | |
28543 | delete arg3; | |
28544 | } | |
28545 | return NULL; | |
28546 | } | |
28547 | ||
28548 | ||
28549 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28550 | PyObject *resultobj; | |
28551 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28552 | int arg2 ; | |
28553 | wxString result; | |
28554 | PyObject * obj0 = 0 ; | |
994141e6 | 28555 | PyObject * obj1 = 0 ; |
d14a1e28 | 28556 | char *kwnames[] = { |
242b7b46 | 28557 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28558 | }; |
28559 | ||
994141e6 | 28560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
28562 | { |
28563 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28564 | if (PyErr_Occurred()) SWIG_fail; | |
28565 | } | |
d14a1e28 RD |
28566 | { |
28567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28568 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
28569 | ||
28570 | wxPyEndAllowThreads(__tstate); | |
28571 | if (PyErr_Occurred()) SWIG_fail; | |
28572 | } | |
28573 | { | |
28574 | #if wxUSE_UNICODE | |
28575 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28576 | #else | |
28577 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28578 | #endif | |
28579 | } | |
28580 | return resultobj; | |
28581 | fail: | |
28582 | return NULL; | |
28583 | } | |
28584 | ||
28585 | ||
28586 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28587 | PyObject *resultobj; | |
28588 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28589 | int arg2 ; | |
28590 | wxString *arg3 = 0 ; | |
e811c8ce | 28591 | bool temp3 = False ; |
d14a1e28 | 28592 | PyObject * obj0 = 0 ; |
994141e6 | 28593 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28594 | PyObject * obj2 = 0 ; |
28595 | char *kwnames[] = { | |
242b7b46 | 28596 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
28597 | }; |
28598 | ||
994141e6 | 28599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
28601 | { |
28602 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28603 | if (PyErr_Occurred()) SWIG_fail; | |
28604 | } | |
d14a1e28 RD |
28605 | { |
28606 | arg3 = wxString_in_helper(obj2); | |
28607 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28608 | temp3 = True; |
d14a1e28 RD |
28609 | } |
28610 | { | |
28611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28612 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
28613 | ||
28614 | wxPyEndAllowThreads(__tstate); | |
28615 | if (PyErr_Occurred()) SWIG_fail; | |
28616 | } | |
28617 | Py_INCREF(Py_None); resultobj = Py_None; | |
28618 | { | |
28619 | if (temp3) | |
28620 | delete arg3; | |
28621 | } | |
28622 | return resultobj; | |
28623 | fail: | |
28624 | { | |
28625 | if (temp3) | |
28626 | delete arg3; | |
28627 | } | |
28628 | return NULL; | |
28629 | } | |
28630 | ||
28631 | ||
28632 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28633 | PyObject *resultobj; | |
28634 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28635 | int arg2 ; | |
28636 | wxString result; | |
28637 | PyObject * obj0 = 0 ; | |
994141e6 | 28638 | PyObject * obj1 = 0 ; |
d14a1e28 | 28639 | char *kwnames[] = { |
242b7b46 | 28640 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28641 | }; |
28642 | ||
994141e6 | 28643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
28645 | { |
28646 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28647 | if (PyErr_Occurred()) SWIG_fail; | |
28648 | } | |
d14a1e28 RD |
28649 | { |
28650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28651 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
28652 | ||
28653 | wxPyEndAllowThreads(__tstate); | |
28654 | if (PyErr_Occurred()) SWIG_fail; | |
28655 | } | |
28656 | { | |
28657 | #if wxUSE_UNICODE | |
28658 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28659 | #else | |
28660 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28661 | #endif | |
28662 | } | |
28663 | return resultobj; | |
28664 | fail: | |
28665 | return NULL; | |
28666 | } | |
28667 | ||
28668 | ||
28669 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28670 | PyObject *resultobj; | |
28671 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28672 | wxString *arg2 = 0 ; | |
e811c8ce | 28673 | bool temp2 = False ; |
d14a1e28 RD |
28674 | PyObject * obj0 = 0 ; |
28675 | PyObject * obj1 = 0 ; | |
28676 | char *kwnames[] = { | |
28677 | (char *) "self",(char *) "title", NULL | |
28678 | }; | |
28679 | ||
28680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
28681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28682 | { | |
28683 | arg2 = wxString_in_helper(obj1); | |
28684 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28685 | temp2 = True; |
d14a1e28 RD |
28686 | } |
28687 | { | |
28688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28689 | (arg1)->SetTitle((wxString const &)*arg2); | |
28690 | ||
28691 | wxPyEndAllowThreads(__tstate); | |
28692 | if (PyErr_Occurred()) SWIG_fail; | |
28693 | } | |
28694 | Py_INCREF(Py_None); resultobj = Py_None; | |
28695 | { | |
28696 | if (temp2) | |
28697 | delete arg2; | |
28698 | } | |
28699 | return resultobj; | |
28700 | fail: | |
28701 | { | |
28702 | if (temp2) | |
28703 | delete arg2; | |
28704 | } | |
28705 | return NULL; | |
28706 | } | |
28707 | ||
28708 | ||
28709 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28710 | PyObject *resultobj; | |
28711 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28712 | wxString result; | |
28713 | PyObject * obj0 = 0 ; | |
28714 | char *kwnames[] = { | |
28715 | (char *) "self", NULL | |
28716 | }; | |
28717 | ||
28718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
28719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28720 | { | |
28721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28722 | result = ((wxMenu const *)arg1)->GetTitle(); | |
28723 | ||
28724 | wxPyEndAllowThreads(__tstate); | |
28725 | if (PyErr_Occurred()) SWIG_fail; | |
28726 | } | |
28727 | { | |
28728 | #if wxUSE_UNICODE | |
28729 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28730 | #else | |
28731 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28732 | #endif | |
28733 | } | |
28734 | return resultobj; | |
28735 | fail: | |
28736 | return NULL; | |
28737 | } | |
28738 | ||
28739 | ||
28740 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28741 | PyObject *resultobj; | |
28742 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28743 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
28744 | PyObject * obj0 = 0 ; | |
28745 | PyObject * obj1 = 0 ; | |
28746 | char *kwnames[] = { | |
28747 | (char *) "self",(char *) "handler", NULL | |
28748 | }; | |
28749 | ||
28750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
28751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28752 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28753 | { | |
28754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28755 | (arg1)->SetEventHandler(arg2); | |
28756 | ||
28757 | wxPyEndAllowThreads(__tstate); | |
28758 | if (PyErr_Occurred()) SWIG_fail; | |
28759 | } | |
28760 | Py_INCREF(Py_None); resultobj = Py_None; | |
28761 | return resultobj; | |
28762 | fail: | |
28763 | return NULL; | |
28764 | } | |
28765 | ||
28766 | ||
28767 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28768 | PyObject *resultobj; | |
28769 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28770 | wxEvtHandler *result; | |
28771 | PyObject * obj0 = 0 ; | |
28772 | char *kwnames[] = { | |
28773 | (char *) "self", NULL | |
28774 | }; | |
28775 | ||
28776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
28777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28778 | { | |
28779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28780 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
28781 | ||
28782 | wxPyEndAllowThreads(__tstate); | |
28783 | if (PyErr_Occurred()) SWIG_fail; | |
28784 | } | |
28785 | { | |
28786 | resultobj = wxPyMake_wxObject(result); | |
28787 | } | |
28788 | return resultobj; | |
28789 | fail: | |
28790 | return NULL; | |
28791 | } | |
28792 | ||
28793 | ||
28794 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28795 | PyObject *resultobj; | |
28796 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28797 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28798 | PyObject * obj0 = 0 ; | |
28799 | PyObject * obj1 = 0 ; | |
28800 | char *kwnames[] = { | |
28801 | (char *) "self",(char *) "win", NULL | |
28802 | }; | |
28803 | ||
28804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
28805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28806 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28807 | { | |
28808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28809 | (arg1)->SetInvokingWindow(arg2); | |
28810 | ||
28811 | wxPyEndAllowThreads(__tstate); | |
28812 | if (PyErr_Occurred()) SWIG_fail; | |
28813 | } | |
28814 | Py_INCREF(Py_None); resultobj = Py_None; | |
28815 | return resultobj; | |
28816 | fail: | |
28817 | return NULL; | |
28818 | } | |
28819 | ||
28820 | ||
28821 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28822 | PyObject *resultobj; | |
28823 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28824 | wxWindow *result; | |
28825 | PyObject * obj0 = 0 ; | |
28826 | char *kwnames[] = { | |
28827 | (char *) "self", NULL | |
28828 | }; | |
28829 | ||
28830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
28831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28832 | { | |
28833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28834 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
28835 | ||
28836 | wxPyEndAllowThreads(__tstate); | |
28837 | if (PyErr_Occurred()) SWIG_fail; | |
28838 | } | |
28839 | { | |
28840 | resultobj = wxPyMake_wxObject(result); | |
28841 | } | |
28842 | return resultobj; | |
28843 | fail: | |
28844 | return NULL; | |
28845 | } | |
28846 | ||
28847 | ||
28848 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28849 | PyObject *resultobj; | |
28850 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28851 | long result; | |
28852 | PyObject * obj0 = 0 ; | |
28853 | char *kwnames[] = { | |
28854 | (char *) "self", NULL | |
28855 | }; | |
28856 | ||
28857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
28858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28859 | { | |
28860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28861 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
28862 | ||
28863 | wxPyEndAllowThreads(__tstate); | |
28864 | if (PyErr_Occurred()) SWIG_fail; | |
28865 | } | |
994141e6 | 28866 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
28867 | return resultobj; |
28868 | fail: | |
28869 | return NULL; | |
28870 | } | |
28871 | ||
28872 | ||
28873 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28874 | PyObject *resultobj; | |
28875 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28876 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
28877 | PyObject * obj0 = 0 ; | |
28878 | PyObject * obj1 = 0 ; | |
28879 | char *kwnames[] = { | |
28880 | (char *) "self",(char *) "source", NULL | |
28881 | }; | |
28882 | ||
28883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
28884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28885 | if (obj1) { | |
28886 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28887 | } | |
28888 | { | |
28889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28890 | (arg1)->UpdateUI(arg2); | |
28891 | ||
28892 | wxPyEndAllowThreads(__tstate); | |
28893 | if (PyErr_Occurred()) SWIG_fail; | |
28894 | } | |
28895 | Py_INCREF(Py_None); resultobj = Py_None; | |
28896 | return resultobj; | |
28897 | fail: | |
28898 | return NULL; | |
28899 | } | |
28900 | ||
28901 | ||
28902 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28903 | PyObject *resultobj; | |
28904 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28905 | wxMenuBar *result; | |
28906 | PyObject * obj0 = 0 ; | |
28907 | char *kwnames[] = { | |
28908 | (char *) "self", NULL | |
28909 | }; | |
28910 | ||
28911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
28912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28913 | { | |
28914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28915 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
28916 | ||
28917 | wxPyEndAllowThreads(__tstate); | |
28918 | if (PyErr_Occurred()) SWIG_fail; | |
28919 | } | |
28920 | { | |
28921 | resultobj = wxPyMake_wxObject(result); | |
28922 | } | |
28923 | return resultobj; | |
28924 | fail: | |
28925 | return NULL; | |
28926 | } | |
28927 | ||
28928 | ||
28929 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28930 | PyObject *resultobj; | |
28931 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28932 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
28933 | PyObject * obj0 = 0 ; | |
28934 | PyObject * obj1 = 0 ; | |
28935 | char *kwnames[] = { | |
28936 | (char *) "self",(char *) "menubar", NULL | |
28937 | }; | |
28938 | ||
28939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
28940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28941 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28942 | { | |
28943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28944 | (arg1)->Attach(arg2); | |
28945 | ||
28946 | wxPyEndAllowThreads(__tstate); | |
28947 | if (PyErr_Occurred()) SWIG_fail; | |
28948 | } | |
28949 | Py_INCREF(Py_None); resultobj = Py_None; | |
28950 | return resultobj; | |
28951 | fail: | |
28952 | return NULL; | |
28953 | } | |
28954 | ||
28955 | ||
28956 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28957 | PyObject *resultobj; | |
28958 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28959 | PyObject * obj0 = 0 ; | |
28960 | char *kwnames[] = { | |
28961 | (char *) "self", NULL | |
28962 | }; | |
28963 | ||
28964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
28965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28966 | { | |
28967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28968 | (arg1)->Detach(); | |
28969 | ||
28970 | wxPyEndAllowThreads(__tstate); | |
28971 | if (PyErr_Occurred()) SWIG_fail; | |
28972 | } | |
28973 | Py_INCREF(Py_None); resultobj = Py_None; | |
28974 | return resultobj; | |
28975 | fail: | |
28976 | return NULL; | |
28977 | } | |
28978 | ||
28979 | ||
28980 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28981 | PyObject *resultobj; | |
28982 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28983 | bool result; | |
28984 | PyObject * obj0 = 0 ; | |
28985 | char *kwnames[] = { | |
28986 | (char *) "self", NULL | |
28987 | }; | |
28988 | ||
28989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
28990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28991 | { | |
28992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28993 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
28994 | ||
28995 | wxPyEndAllowThreads(__tstate); | |
28996 | if (PyErr_Occurred()) SWIG_fail; | |
28997 | } | |
4d5c3d91 | 28998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28999 | return resultobj; |
29000 | fail: | |
29001 | return NULL; | |
29002 | } | |
29003 | ||
29004 | ||
29005 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29006 | PyObject *resultobj; | |
29007 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29008 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29009 | PyObject * obj0 = 0 ; | |
29010 | PyObject * obj1 = 0 ; | |
29011 | char *kwnames[] = { | |
29012 | (char *) "self",(char *) "parent", NULL | |
29013 | }; | |
29014 | ||
29015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
29016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29017 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29018 | { | |
29019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29020 | (arg1)->SetParent(arg2); | |
29021 | ||
29022 | wxPyEndAllowThreads(__tstate); | |
29023 | if (PyErr_Occurred()) SWIG_fail; | |
29024 | } | |
29025 | Py_INCREF(Py_None); resultobj = Py_None; | |
29026 | return resultobj; | |
29027 | fail: | |
29028 | return NULL; | |
29029 | } | |
29030 | ||
29031 | ||
29032 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29033 | PyObject *resultobj; | |
29034 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29035 | wxMenu *result; | |
29036 | PyObject * obj0 = 0 ; | |
29037 | char *kwnames[] = { | |
29038 | (char *) "self", NULL | |
29039 | }; | |
29040 | ||
29041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
29042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29043 | { | |
29044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29045 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
29046 | ||
29047 | wxPyEndAllowThreads(__tstate); | |
29048 | if (PyErr_Occurred()) SWIG_fail; | |
29049 | } | |
29050 | { | |
29051 | resultobj = wxPyMake_wxObject(result); | |
29052 | } | |
29053 | return resultobj; | |
29054 | fail: | |
29055 | return NULL; | |
29056 | } | |
29057 | ||
29058 | ||
29059 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
29060 | PyObject *obj; | |
29061 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29062 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
29063 | Py_INCREF(obj); | |
29064 | return Py_BuildValue((char *)""); | |
29065 | } | |
29066 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29067 | PyObject *resultobj; | |
29068 | long arg1 = (long) 0 ; | |
29069 | wxMenuBar *result; | |
994141e6 | 29070 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
29071 | char *kwnames[] = { |
29072 | (char *) "style", NULL | |
29073 | }; | |
29074 | ||
994141e6 RD |
29075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; |
29076 | if (obj0) { | |
29077 | { | |
29078 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
29079 | if (PyErr_Occurred()) SWIG_fail; | |
29080 | } | |
29081 | } | |
d14a1e28 RD |
29082 | { |
29083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29084 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
29085 | ||
29086 | wxPyEndAllowThreads(__tstate); | |
29087 | if (PyErr_Occurred()) SWIG_fail; | |
29088 | } | |
29089 | { | |
29090 | resultobj = wxPyMake_wxObject(result); | |
29091 | } | |
29092 | return resultobj; | |
29093 | fail: | |
29094 | return NULL; | |
29095 | } | |
29096 | ||
29097 | ||
29098 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29099 | PyObject *resultobj; | |
29100 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29101 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29102 | wxString *arg3 = 0 ; | |
29103 | bool result; | |
e811c8ce | 29104 | bool temp3 = False ; |
d14a1e28 RD |
29105 | PyObject * obj0 = 0 ; |
29106 | PyObject * obj1 = 0 ; | |
29107 | PyObject * obj2 = 0 ; | |
29108 | char *kwnames[] = { | |
29109 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
29110 | }; | |
29111 | ||
29112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29114 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29115 | { | |
29116 | arg3 = wxString_in_helper(obj2); | |
29117 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29118 | temp3 = True; |
d14a1e28 RD |
29119 | } |
29120 | { | |
29121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29122 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
29123 | ||
29124 | wxPyEndAllowThreads(__tstate); | |
29125 | if (PyErr_Occurred()) SWIG_fail; | |
29126 | } | |
4d5c3d91 | 29127 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29128 | { |
29129 | if (temp3) | |
29130 | delete arg3; | |
29131 | } | |
29132 | return resultobj; | |
29133 | fail: | |
29134 | { | |
29135 | if (temp3) | |
29136 | delete arg3; | |
29137 | } | |
29138 | return NULL; | |
29139 | } | |
29140 | ||
29141 | ||
29142 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29143 | PyObject *resultobj; | |
29144 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29145 | size_t arg2 ; | |
29146 | wxMenu *arg3 = (wxMenu *) 0 ; | |
29147 | wxString *arg4 = 0 ; | |
29148 | bool result; | |
e811c8ce | 29149 | bool temp4 = False ; |
d14a1e28 RD |
29150 | PyObject * obj0 = 0 ; |
29151 | PyObject * obj1 = 0 ; | |
29152 | PyObject * obj2 = 0 ; | |
29153 | PyObject * obj3 = 0 ; | |
29154 | char *kwnames[] = { | |
29155 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
29156 | }; | |
29157 | ||
29158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 29160 | { |
994141e6 | 29161 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
29162 | if (PyErr_Occurred()) SWIG_fail; |
29163 | } | |
d14a1e28 RD |
29164 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
29165 | { | |
29166 | arg4 = wxString_in_helper(obj3); | |
29167 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29168 | temp4 = True; |
d14a1e28 RD |
29169 | } |
29170 | { | |
29171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29172 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
29173 | ||
29174 | wxPyEndAllowThreads(__tstate); | |
29175 | if (PyErr_Occurred()) SWIG_fail; | |
29176 | } | |
4d5c3d91 | 29177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29178 | { |
29179 | if (temp4) | |
29180 | delete arg4; | |
29181 | } | |
29182 | return resultobj; | |
29183 | fail: | |
29184 | { | |
29185 | if (temp4) | |
29186 | delete arg4; | |
29187 | } | |
29188 | return NULL; | |
29189 | } | |
29190 | ||
29191 | ||
29192 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29193 | PyObject *resultobj; | |
29194 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29195 | size_t result; | |
29196 | PyObject * obj0 = 0 ; | |
29197 | char *kwnames[] = { | |
29198 | (char *) "self", NULL | |
29199 | }; | |
29200 | ||
29201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
29202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29203 | { | |
29204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29205 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
29206 | ||
29207 | wxPyEndAllowThreads(__tstate); | |
29208 | if (PyErr_Occurred()) SWIG_fail; | |
29209 | } | |
994141e6 | 29210 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
29211 | return resultobj; |
29212 | fail: | |
29213 | return NULL; | |
29214 | } | |
29215 | ||
29216 | ||
29217 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29218 | PyObject *resultobj; | |
29219 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29220 | size_t arg2 ; | |
29221 | wxMenu *result; | |
29222 | PyObject * obj0 = 0 ; | |
29223 | PyObject * obj1 = 0 ; | |
29224 | char *kwnames[] = { | |
29225 | (char *) "self",(char *) "pos", NULL | |
29226 | }; | |
29227 | ||
29228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
29229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 29230 | { |
994141e6 | 29231 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
29232 | if (PyErr_Occurred()) SWIG_fail; |
29233 | } | |
d14a1e28 RD |
29234 | { |
29235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29236 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
29237 | ||
29238 | wxPyEndAllowThreads(__tstate); | |
29239 | if (PyErr_Occurred()) SWIG_fail; | |
29240 | } | |
29241 | { | |
29242 | resultobj = wxPyMake_wxObject(result); | |
29243 | } | |
29244 | return resultobj; | |
29245 | fail: | |
29246 | return NULL; | |
29247 | } | |
29248 | ||
29249 | ||
29250 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29251 | PyObject *resultobj; | |
29252 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29253 | size_t arg2 ; | |
29254 | wxMenu *arg3 = (wxMenu *) 0 ; | |
29255 | wxString *arg4 = 0 ; | |
29256 | wxMenu *result; | |
e811c8ce | 29257 | bool temp4 = False ; |
d14a1e28 RD |
29258 | PyObject * obj0 = 0 ; |
29259 | PyObject * obj1 = 0 ; | |
29260 | PyObject * obj2 = 0 ; | |
29261 | PyObject * obj3 = 0 ; | |
29262 | char *kwnames[] = { | |
29263 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
29264 | }; | |
29265 | ||
29266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 29268 | { |
994141e6 | 29269 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
29270 | if (PyErr_Occurred()) SWIG_fail; |
29271 | } | |
d14a1e28 RD |
29272 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
29273 | { | |
29274 | arg4 = wxString_in_helper(obj3); | |
29275 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29276 | temp4 = True; |
d14a1e28 RD |
29277 | } |
29278 | { | |
29279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29280 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
29281 | ||
29282 | wxPyEndAllowThreads(__tstate); | |
29283 | if (PyErr_Occurred()) SWIG_fail; | |
29284 | } | |
29285 | { | |
29286 | resultobj = wxPyMake_wxObject(result); | |
29287 | } | |
29288 | { | |
29289 | if (temp4) | |
29290 | delete arg4; | |
29291 | } | |
29292 | return resultobj; | |
29293 | fail: | |
29294 | { | |
29295 | if (temp4) | |
29296 | delete arg4; | |
29297 | } | |
29298 | return NULL; | |
29299 | } | |
29300 | ||
29301 | ||
29302 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29303 | PyObject *resultobj; | |
29304 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29305 | size_t arg2 ; | |
29306 | wxMenu *result; | |
29307 | PyObject * obj0 = 0 ; | |
29308 | PyObject * obj1 = 0 ; | |
29309 | char *kwnames[] = { | |
29310 | (char *) "self",(char *) "pos", NULL | |
29311 | }; | |
29312 | ||
29313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
29314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 29315 | { |
994141e6 | 29316 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
29317 | if (PyErr_Occurred()) SWIG_fail; |
29318 | } | |
d14a1e28 RD |
29319 | { |
29320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29321 | result = (wxMenu *)(arg1)->Remove(arg2); | |
29322 | ||
29323 | wxPyEndAllowThreads(__tstate); | |
29324 | if (PyErr_Occurred()) SWIG_fail; | |
29325 | } | |
29326 | { | |
29327 | resultobj = wxPyMake_wxObject(result); | |
29328 | } | |
29329 | return resultobj; | |
29330 | fail: | |
29331 | return NULL; | |
29332 | } | |
29333 | ||
29334 | ||
29335 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29336 | PyObject *resultobj; | |
29337 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29338 | size_t arg2 ; | |
29339 | bool arg3 ; | |
29340 | PyObject * obj0 = 0 ; | |
29341 | PyObject * obj1 = 0 ; | |
29342 | PyObject * obj2 = 0 ; | |
29343 | char *kwnames[] = { | |
29344 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
29345 | }; | |
29346 | ||
29347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29348 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 29349 | { |
994141e6 | 29350 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
29351 | if (PyErr_Occurred()) SWIG_fail; |
29352 | } | |
29353 | { | |
994141e6 | 29354 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
29355 | if (PyErr_Occurred()) SWIG_fail; |
29356 | } | |
d14a1e28 RD |
29357 | { |
29358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29359 | (arg1)->EnableTop(arg2,arg3); | |
29360 | ||
29361 | wxPyEndAllowThreads(__tstate); | |
29362 | if (PyErr_Occurred()) SWIG_fail; | |
29363 | } | |
29364 | Py_INCREF(Py_None); resultobj = Py_None; | |
29365 | return resultobj; | |
29366 | fail: | |
29367 | return NULL; | |
29368 | } | |
29369 | ||
29370 | ||
29371 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29372 | PyObject *resultobj; | |
29373 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29374 | size_t arg2 ; | |
29375 | bool result; | |
29376 | PyObject * obj0 = 0 ; | |
29377 | PyObject * obj1 = 0 ; | |
29378 | char *kwnames[] = { | |
29379 | (char *) "self",(char *) "pos", NULL | |
29380 | }; | |
29381 | ||
29382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
29383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 29384 | { |
994141e6 | 29385 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
29386 | if (PyErr_Occurred()) SWIG_fail; |
29387 | } | |
d14a1e28 RD |
29388 | { |
29389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29390 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
29391 | ||
29392 | wxPyEndAllowThreads(__tstate); | |
29393 | if (PyErr_Occurred()) SWIG_fail; | |
29394 | } | |
4d5c3d91 | 29395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29396 | return resultobj; |
29397 | fail: | |
29398 | return NULL; | |
29399 | } | |
29400 | ||
29401 | ||
29402 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29403 | PyObject *resultobj; | |
29404 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29405 | size_t arg2 ; | |
29406 | wxString *arg3 = 0 ; | |
e811c8ce | 29407 | bool temp3 = False ; |
d14a1e28 RD |
29408 | PyObject * obj0 = 0 ; |
29409 | PyObject * obj1 = 0 ; | |
29410 | PyObject * obj2 = 0 ; | |
29411 | char *kwnames[] = { | |
29412 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
29413 | }; | |
29414 | ||
29415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 29417 | { |
994141e6 | 29418 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
29419 | if (PyErr_Occurred()) SWIG_fail; |
29420 | } | |
d14a1e28 RD |
29421 | { |
29422 | arg3 = wxString_in_helper(obj2); | |
29423 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29424 | temp3 = True; |
d14a1e28 RD |
29425 | } |
29426 | { | |
29427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29428 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
29429 | ||
29430 | wxPyEndAllowThreads(__tstate); | |
29431 | if (PyErr_Occurred()) SWIG_fail; | |
29432 | } | |
29433 | Py_INCREF(Py_None); resultobj = Py_None; | |
29434 | { | |
29435 | if (temp3) | |
29436 | delete arg3; | |
29437 | } | |
29438 | return resultobj; | |
29439 | fail: | |
29440 | { | |
29441 | if (temp3) | |
29442 | delete arg3; | |
29443 | } | |
29444 | return NULL; | |
29445 | } | |
29446 | ||
29447 | ||
29448 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29449 | PyObject *resultobj; | |
29450 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29451 | size_t arg2 ; | |
29452 | wxString result; | |
29453 | PyObject * obj0 = 0 ; | |
29454 | PyObject * obj1 = 0 ; | |
29455 | char *kwnames[] = { | |
29456 | (char *) "self",(char *) "pos", NULL | |
29457 | }; | |
29458 | ||
29459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
29460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 29461 | { |
994141e6 | 29462 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
29463 | if (PyErr_Occurred()) SWIG_fail; |
29464 | } | |
d14a1e28 RD |
29465 | { |
29466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29467 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
29468 | ||
29469 | wxPyEndAllowThreads(__tstate); | |
29470 | if (PyErr_Occurred()) SWIG_fail; | |
29471 | } | |
29472 | { | |
29473 | #if wxUSE_UNICODE | |
29474 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29475 | #else | |
29476 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29477 | #endif | |
29478 | } | |
29479 | return resultobj; | |
29480 | fail: | |
29481 | return NULL; | |
29482 | } | |
29483 | ||
29484 | ||
29485 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29486 | PyObject *resultobj; | |
29487 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29488 | wxString *arg2 = 0 ; | |
29489 | wxString *arg3 = 0 ; | |
29490 | int result; | |
e811c8ce RD |
29491 | bool temp2 = False ; |
29492 | bool temp3 = False ; | |
d14a1e28 RD |
29493 | PyObject * obj0 = 0 ; |
29494 | PyObject * obj1 = 0 ; | |
29495 | PyObject * obj2 = 0 ; | |
29496 | char *kwnames[] = { | |
29497 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
29498 | }; | |
29499 | ||
29500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29502 | { | |
29503 | arg2 = wxString_in_helper(obj1); | |
29504 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29505 | temp2 = True; |
d14a1e28 RD |
29506 | } |
29507 | { | |
29508 | arg3 = wxString_in_helper(obj2); | |
29509 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29510 | temp3 = True; |
d14a1e28 RD |
29511 | } |
29512 | { | |
29513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29514 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
29515 | ||
29516 | wxPyEndAllowThreads(__tstate); | |
29517 | if (PyErr_Occurred()) SWIG_fail; | |
29518 | } | |
994141e6 | 29519 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
29520 | { |
29521 | if (temp2) | |
29522 | delete arg2; | |
29523 | } | |
29524 | { | |
29525 | if (temp3) | |
29526 | delete arg3; | |
29527 | } | |
29528 | return resultobj; | |
29529 | fail: | |
29530 | { | |
29531 | if (temp2) | |
29532 | delete arg2; | |
29533 | } | |
29534 | { | |
29535 | if (temp3) | |
29536 | delete arg3; | |
29537 | } | |
29538 | return NULL; | |
29539 | } | |
29540 | ||
29541 | ||
29542 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29543 | PyObject *resultobj; | |
29544 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29545 | int arg2 ; | |
29546 | wxMenuItem *result; | |
29547 | PyObject * obj0 = 0 ; | |
994141e6 | 29548 | PyObject * obj1 = 0 ; |
d14a1e28 | 29549 | char *kwnames[] = { |
242b7b46 | 29550 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29551 | }; |
29552 | ||
994141e6 | 29553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
29555 | { |
29556 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29557 | if (PyErr_Occurred()) SWIG_fail; | |
29558 | } | |
d14a1e28 RD |
29559 | { |
29560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29561 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
29562 | ||
29563 | wxPyEndAllowThreads(__tstate); | |
29564 | if (PyErr_Occurred()) SWIG_fail; | |
29565 | } | |
29566 | { | |
29567 | resultobj = wxPyMake_wxObject(result); | |
29568 | } | |
29569 | return resultobj; | |
29570 | fail: | |
29571 | return NULL; | |
29572 | } | |
29573 | ||
29574 | ||
29575 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29576 | PyObject *resultobj; | |
29577 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29578 | wxString *arg2 = 0 ; | |
29579 | int result; | |
e811c8ce | 29580 | bool temp2 = False ; |
d14a1e28 RD |
29581 | PyObject * obj0 = 0 ; |
29582 | PyObject * obj1 = 0 ; | |
29583 | char *kwnames[] = { | |
29584 | (char *) "self",(char *) "title", NULL | |
29585 | }; | |
29586 | ||
29587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
29588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29589 | { | |
29590 | arg2 = wxString_in_helper(obj1); | |
29591 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29592 | temp2 = True; |
d14a1e28 RD |
29593 | } |
29594 | { | |
29595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29596 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
29597 | ||
29598 | wxPyEndAllowThreads(__tstate); | |
29599 | if (PyErr_Occurred()) SWIG_fail; | |
29600 | } | |
994141e6 | 29601 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
29602 | { |
29603 | if (temp2) | |
29604 | delete arg2; | |
29605 | } | |
29606 | return resultobj; | |
29607 | fail: | |
29608 | { | |
29609 | if (temp2) | |
29610 | delete arg2; | |
29611 | } | |
29612 | return NULL; | |
29613 | } | |
29614 | ||
29615 | ||
29616 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29617 | PyObject *resultobj; | |
29618 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29619 | int arg2 ; | |
29620 | bool arg3 ; | |
29621 | PyObject * obj0 = 0 ; | |
994141e6 | 29622 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29623 | PyObject * obj2 = 0 ; |
29624 | char *kwnames[] = { | |
242b7b46 | 29625 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
29626 | }; |
29627 | ||
994141e6 | 29628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 29629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 29630 | { |
994141e6 RD |
29631 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
29632 | if (PyErr_Occurred()) SWIG_fail; | |
29633 | } | |
29634 | { | |
29635 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
a41e16b6 RD |
29636 | if (PyErr_Occurred()) SWIG_fail; |
29637 | } | |
d14a1e28 RD |
29638 | { |
29639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29640 | (arg1)->Enable(arg2,arg3); | |
29641 | ||
29642 | wxPyEndAllowThreads(__tstate); | |
29643 | if (PyErr_Occurred()) SWIG_fail; | |
29644 | } | |
29645 | Py_INCREF(Py_None); resultobj = Py_None; | |
29646 | return resultobj; | |
29647 | fail: | |
29648 | return NULL; | |
29649 | } | |
29650 | ||
29651 | ||
29652 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29653 | PyObject *resultobj; | |
29654 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29655 | int arg2 ; | |
29656 | bool arg3 ; | |
29657 | PyObject * obj0 = 0 ; | |
994141e6 | 29658 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29659 | PyObject * obj2 = 0 ; |
29660 | char *kwnames[] = { | |
242b7b46 | 29661 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
29662 | }; |
29663 | ||
994141e6 | 29664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 29665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 29666 | { |
994141e6 RD |
29667 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
29668 | if (PyErr_Occurred()) SWIG_fail; | |
29669 | } | |
29670 | { | |
29671 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
a41e16b6 RD |
29672 | if (PyErr_Occurred()) SWIG_fail; |
29673 | } | |
d14a1e28 RD |
29674 | { |
29675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29676 | (arg1)->Check(arg2,arg3); | |
29677 | ||
29678 | wxPyEndAllowThreads(__tstate); | |
29679 | if (PyErr_Occurred()) SWIG_fail; | |
29680 | } | |
29681 | Py_INCREF(Py_None); resultobj = Py_None; | |
29682 | return resultobj; | |
29683 | fail: | |
29684 | return NULL; | |
29685 | } | |
29686 | ||
29687 | ||
29688 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29689 | PyObject *resultobj; | |
29690 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29691 | int arg2 ; | |
29692 | bool result; | |
29693 | PyObject * obj0 = 0 ; | |
994141e6 | 29694 | PyObject * obj1 = 0 ; |
d14a1e28 | 29695 | char *kwnames[] = { |
242b7b46 | 29696 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29697 | }; |
29698 | ||
994141e6 | 29699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
29701 | { |
29702 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29703 | if (PyErr_Occurred()) SWIG_fail; | |
29704 | } | |
d14a1e28 RD |
29705 | { |
29706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29707 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
29708 | ||
29709 | wxPyEndAllowThreads(__tstate); | |
29710 | if (PyErr_Occurred()) SWIG_fail; | |
29711 | } | |
4d5c3d91 | 29712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29713 | return resultobj; |
29714 | fail: | |
29715 | return NULL; | |
29716 | } | |
29717 | ||
29718 | ||
29719 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29720 | PyObject *resultobj; | |
29721 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29722 | int arg2 ; | |
29723 | bool result; | |
29724 | PyObject * obj0 = 0 ; | |
994141e6 | 29725 | PyObject * obj1 = 0 ; |
d14a1e28 | 29726 | char *kwnames[] = { |
242b7b46 | 29727 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29728 | }; |
29729 | ||
994141e6 | 29730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
29732 | { |
29733 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29734 | if (PyErr_Occurred()) SWIG_fail; | |
29735 | } | |
d14a1e28 RD |
29736 | { |
29737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29738 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
29739 | ||
29740 | wxPyEndAllowThreads(__tstate); | |
29741 | if (PyErr_Occurred()) SWIG_fail; | |
29742 | } | |
4d5c3d91 | 29743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29744 | return resultobj; |
29745 | fail: | |
29746 | return NULL; | |
29747 | } | |
29748 | ||
29749 | ||
29750 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29751 | PyObject *resultobj; | |
29752 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29753 | int arg2 ; | |
29754 | wxString *arg3 = 0 ; | |
e811c8ce | 29755 | bool temp3 = False ; |
d14a1e28 | 29756 | PyObject * obj0 = 0 ; |
994141e6 | 29757 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29758 | PyObject * obj2 = 0 ; |
29759 | char *kwnames[] = { | |
242b7b46 | 29760 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
29761 | }; |
29762 | ||
994141e6 | 29763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 29764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
29765 | { |
29766 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29767 | if (PyErr_Occurred()) SWIG_fail; | |
29768 | } | |
d14a1e28 RD |
29769 | { |
29770 | arg3 = wxString_in_helper(obj2); | |
29771 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29772 | temp3 = True; |
d14a1e28 RD |
29773 | } |
29774 | { | |
29775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29776 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
29777 | ||
29778 | wxPyEndAllowThreads(__tstate); | |
29779 | if (PyErr_Occurred()) SWIG_fail; | |
29780 | } | |
29781 | Py_INCREF(Py_None); resultobj = Py_None; | |
29782 | { | |
29783 | if (temp3) | |
29784 | delete arg3; | |
29785 | } | |
29786 | return resultobj; | |
29787 | fail: | |
29788 | { | |
29789 | if (temp3) | |
29790 | delete arg3; | |
29791 | } | |
29792 | return NULL; | |
29793 | } | |
29794 | ||
29795 | ||
29796 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29797 | PyObject *resultobj; | |
29798 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29799 | int arg2 ; | |
29800 | wxString result; | |
29801 | PyObject * obj0 = 0 ; | |
994141e6 | 29802 | PyObject * obj1 = 0 ; |
d14a1e28 | 29803 | char *kwnames[] = { |
242b7b46 | 29804 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29805 | }; |
29806 | ||
994141e6 | 29807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
29809 | { |
29810 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29811 | if (PyErr_Occurred()) SWIG_fail; | |
29812 | } | |
d14a1e28 RD |
29813 | { |
29814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29815 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
29816 | ||
29817 | wxPyEndAllowThreads(__tstate); | |
29818 | if (PyErr_Occurred()) SWIG_fail; | |
29819 | } | |
29820 | { | |
29821 | #if wxUSE_UNICODE | |
29822 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29823 | #else | |
29824 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29825 | #endif | |
29826 | } | |
29827 | return resultobj; | |
29828 | fail: | |
29829 | return NULL; | |
29830 | } | |
29831 | ||
29832 | ||
29833 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29834 | PyObject *resultobj; | |
29835 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29836 | int arg2 ; | |
29837 | wxString *arg3 = 0 ; | |
e811c8ce | 29838 | bool temp3 = False ; |
d14a1e28 | 29839 | PyObject * obj0 = 0 ; |
994141e6 | 29840 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29841 | PyObject * obj2 = 0 ; |
29842 | char *kwnames[] = { | |
242b7b46 | 29843 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
29844 | }; |
29845 | ||
994141e6 | 29846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 29847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
29848 | { |
29849 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29850 | if (PyErr_Occurred()) SWIG_fail; | |
29851 | } | |
d14a1e28 RD |
29852 | { |
29853 | arg3 = wxString_in_helper(obj2); | |
29854 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29855 | temp3 = True; |
d14a1e28 RD |
29856 | } |
29857 | { | |
29858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29859 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
29860 | ||
29861 | wxPyEndAllowThreads(__tstate); | |
29862 | if (PyErr_Occurred()) SWIG_fail; | |
29863 | } | |
29864 | Py_INCREF(Py_None); resultobj = Py_None; | |
29865 | { | |
29866 | if (temp3) | |
29867 | delete arg3; | |
29868 | } | |
29869 | return resultobj; | |
29870 | fail: | |
29871 | { | |
29872 | if (temp3) | |
29873 | delete arg3; | |
29874 | } | |
29875 | return NULL; | |
29876 | } | |
29877 | ||
29878 | ||
29879 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29880 | PyObject *resultobj; | |
29881 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29882 | int arg2 ; | |
29883 | wxString result; | |
29884 | PyObject * obj0 = 0 ; | |
994141e6 | 29885 | PyObject * obj1 = 0 ; |
d14a1e28 | 29886 | char *kwnames[] = { |
242b7b46 | 29887 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29888 | }; |
29889 | ||
994141e6 | 29890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
29892 | { |
29893 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29894 | if (PyErr_Occurred()) SWIG_fail; | |
29895 | } | |
d14a1e28 RD |
29896 | { |
29897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29898 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
29899 | ||
29900 | wxPyEndAllowThreads(__tstate); | |
29901 | if (PyErr_Occurred()) SWIG_fail; | |
29902 | } | |
29903 | { | |
29904 | #if wxUSE_UNICODE | |
29905 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29906 | #else | |
29907 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29908 | #endif | |
29909 | } | |
29910 | return resultobj; | |
29911 | fail: | |
29912 | return NULL; | |
29913 | } | |
29914 | ||
29915 | ||
29916 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29917 | PyObject *resultobj; | |
29918 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29919 | wxFrame *result; | |
29920 | PyObject * obj0 = 0 ; | |
29921 | char *kwnames[] = { | |
29922 | (char *) "self", NULL | |
29923 | }; | |
29924 | ||
29925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
29926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29927 | { | |
29928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29929 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
29930 | ||
29931 | wxPyEndAllowThreads(__tstate); | |
29932 | if (PyErr_Occurred()) SWIG_fail; | |
29933 | } | |
29934 | { | |
29935 | resultobj = wxPyMake_wxObject(result); | |
29936 | } | |
29937 | return resultobj; | |
29938 | fail: | |
29939 | return NULL; | |
29940 | } | |
29941 | ||
29942 | ||
29943 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29944 | PyObject *resultobj; | |
29945 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29946 | bool result; | |
29947 | PyObject * obj0 = 0 ; | |
29948 | char *kwnames[] = { | |
29949 | (char *) "self", NULL | |
29950 | }; | |
29951 | ||
29952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
29953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29954 | { | |
29955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29956 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
29957 | ||
29958 | wxPyEndAllowThreads(__tstate); | |
29959 | if (PyErr_Occurred()) SWIG_fail; | |
29960 | } | |
4d5c3d91 | 29961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29962 | return resultobj; |
29963 | fail: | |
29964 | return NULL; | |
29965 | } | |
29966 | ||
29967 | ||
29968 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29969 | PyObject *resultobj; | |
29970 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29971 | wxFrame *arg2 = (wxFrame *) 0 ; | |
29972 | PyObject * obj0 = 0 ; | |
29973 | PyObject * obj1 = 0 ; | |
29974 | char *kwnames[] = { | |
29975 | (char *) "self",(char *) "frame", NULL | |
29976 | }; | |
29977 | ||
29978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
29979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29980 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29981 | { | |
29982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29983 | (arg1)->Attach(arg2); | |
29984 | ||
29985 | wxPyEndAllowThreads(__tstate); | |
29986 | if (PyErr_Occurred()) SWIG_fail; | |
29987 | } | |
29988 | Py_INCREF(Py_None); resultobj = Py_None; | |
29989 | return resultobj; | |
29990 | fail: | |
29991 | return NULL; | |
29992 | } | |
29993 | ||
29994 | ||
29995 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29996 | PyObject *resultobj; | |
29997 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29998 | PyObject * obj0 = 0 ; | |
29999 | char *kwnames[] = { | |
30000 | (char *) "self", NULL | |
30001 | }; | |
30002 | ||
30003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
30004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30005 | { | |
30006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30007 | (arg1)->Detach(); | |
30008 | ||
30009 | wxPyEndAllowThreads(__tstate); | |
30010 | if (PyErr_Occurred()) SWIG_fail; | |
30011 | } | |
30012 | Py_INCREF(Py_None); resultobj = Py_None; | |
30013 | return resultobj; | |
30014 | fail: | |
30015 | return NULL; | |
30016 | } | |
30017 | ||
30018 | ||
30019 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
30020 | PyObject *obj; | |
30021 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30022 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
30023 | Py_INCREF(obj); | |
30024 | return Py_BuildValue((char *)""); | |
30025 | } | |
30026 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30027 | PyObject *resultobj; | |
30028 | wxMenu *arg1 = (wxMenu *) NULL ; | |
30029 | int arg2 = (int) wxID_SEPARATOR ; | |
30030 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
30031 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
30032 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30033 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30034 | int arg5 = (int) wxITEM_NORMAL ; | |
30035 | wxMenu *arg6 = (wxMenu *) NULL ; | |
30036 | wxMenuItem *result; | |
e811c8ce RD |
30037 | bool temp3 = False ; |
30038 | bool temp4 = False ; | |
d14a1e28 | 30039 | PyObject * obj0 = 0 ; |
994141e6 | 30040 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30041 | PyObject * obj2 = 0 ; |
30042 | PyObject * obj3 = 0 ; | |
994141e6 | 30043 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30044 | PyObject * obj5 = 0 ; |
30045 | char *kwnames[] = { | |
30046 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
30047 | }; | |
30048 | ||
994141e6 | 30049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
30050 | if (obj0) { |
30051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30052 | } | |
994141e6 RD |
30053 | if (obj1) { |
30054 | { | |
30055 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
30056 | if (PyErr_Occurred()) SWIG_fail; | |
30057 | } | |
30058 | } | |
d14a1e28 RD |
30059 | if (obj2) { |
30060 | { | |
30061 | arg3 = wxString_in_helper(obj2); | |
30062 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30063 | temp3 = True; |
d14a1e28 RD |
30064 | } |
30065 | } | |
30066 | if (obj3) { | |
30067 | { | |
30068 | arg4 = wxString_in_helper(obj3); | |
30069 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 30070 | temp4 = True; |
d14a1e28 RD |
30071 | } |
30072 | } | |
994141e6 RD |
30073 | if (obj4) { |
30074 | { | |
30075 | arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4); | |
30076 | if (PyErr_Occurred()) SWIG_fail; | |
30077 | } | |
30078 | } | |
d14a1e28 RD |
30079 | if (obj5) { |
30080 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30081 | } | |
30082 | { | |
30083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30084 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
30085 | ||
30086 | wxPyEndAllowThreads(__tstate); | |
30087 | if (PyErr_Occurred()) SWIG_fail; | |
30088 | } | |
30089 | { | |
30090 | resultobj = wxPyMake_wxObject(result); | |
30091 | } | |
30092 | { | |
30093 | if (temp3) | |
30094 | delete arg3; | |
30095 | } | |
30096 | { | |
30097 | if (temp4) | |
30098 | delete arg4; | |
30099 | } | |
30100 | return resultobj; | |
30101 | fail: | |
30102 | { | |
30103 | if (temp3) | |
30104 | delete arg3; | |
30105 | } | |
30106 | { | |
30107 | if (temp4) | |
30108 | delete arg4; | |
30109 | } | |
30110 | return NULL; | |
30111 | } | |
30112 | ||
30113 | ||
30114 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30115 | PyObject *resultobj; | |
30116 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30117 | wxMenu *result; | |
30118 | PyObject * obj0 = 0 ; | |
30119 | char *kwnames[] = { | |
30120 | (char *) "self", NULL | |
30121 | }; | |
30122 | ||
30123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
30124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30125 | { | |
30126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30127 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
30128 | ||
30129 | wxPyEndAllowThreads(__tstate); | |
30130 | if (PyErr_Occurred()) SWIG_fail; | |
30131 | } | |
30132 | { | |
30133 | resultobj = wxPyMake_wxObject(result); | |
30134 | } | |
30135 | return resultobj; | |
30136 | fail: | |
30137 | return NULL; | |
30138 | } | |
30139 | ||
30140 | ||
30141 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30142 | PyObject *resultobj; | |
30143 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30144 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30145 | PyObject * obj0 = 0 ; | |
30146 | PyObject * obj1 = 0 ; | |
30147 | char *kwnames[] = { | |
30148 | (char *) "self",(char *) "menu", NULL | |
30149 | }; | |
30150 | ||
30151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
30152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30153 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30154 | { | |
30155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30156 | (arg1)->SetMenu(arg2); | |
30157 | ||
30158 | wxPyEndAllowThreads(__tstate); | |
30159 | if (PyErr_Occurred()) SWIG_fail; | |
30160 | } | |
30161 | Py_INCREF(Py_None); resultobj = Py_None; | |
30162 | return resultobj; | |
30163 | fail: | |
30164 | return NULL; | |
30165 | } | |
30166 | ||
30167 | ||
30168 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30169 | PyObject *resultobj; | |
30170 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30171 | int arg2 ; | |
30172 | PyObject * obj0 = 0 ; | |
994141e6 | 30173 | PyObject * obj1 = 0 ; |
d14a1e28 | 30174 | char *kwnames[] = { |
242b7b46 | 30175 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30176 | }; |
30177 | ||
994141e6 | 30178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 30179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
30180 | { |
30181 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
30182 | if (PyErr_Occurred()) SWIG_fail; | |
30183 | } | |
d14a1e28 RD |
30184 | { |
30185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30186 | (arg1)->SetId(arg2); | |
30187 | ||
30188 | wxPyEndAllowThreads(__tstate); | |
30189 | if (PyErr_Occurred()) SWIG_fail; | |
30190 | } | |
30191 | Py_INCREF(Py_None); resultobj = Py_None; | |
30192 | return resultobj; | |
30193 | fail: | |
30194 | return NULL; | |
30195 | } | |
30196 | ||
30197 | ||
30198 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30199 | PyObject *resultobj; | |
30200 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30201 | int result; | |
30202 | PyObject * obj0 = 0 ; | |
30203 | char *kwnames[] = { | |
30204 | (char *) "self", NULL | |
30205 | }; | |
30206 | ||
30207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
30208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30209 | { | |
30210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30211 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
30212 | ||
30213 | wxPyEndAllowThreads(__tstate); | |
30214 | if (PyErr_Occurred()) SWIG_fail; | |
30215 | } | |
994141e6 | 30216 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
30217 | return resultobj; |
30218 | fail: | |
30219 | return NULL; | |
30220 | } | |
30221 | ||
30222 | ||
30223 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30224 | PyObject *resultobj; | |
30225 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30226 | bool result; | |
30227 | PyObject * obj0 = 0 ; | |
30228 | char *kwnames[] = { | |
30229 | (char *) "self", NULL | |
30230 | }; | |
30231 | ||
30232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
30233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30234 | { | |
30235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30236 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
30237 | ||
30238 | wxPyEndAllowThreads(__tstate); | |
30239 | if (PyErr_Occurred()) SWIG_fail; | |
30240 | } | |
4d5c3d91 | 30241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30242 | return resultobj; |
30243 | fail: | |
30244 | return NULL; | |
30245 | } | |
30246 | ||
30247 | ||
30248 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30249 | PyObject *resultobj; | |
30250 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30251 | wxString *arg2 = 0 ; | |
e811c8ce | 30252 | bool temp2 = False ; |
d14a1e28 RD |
30253 | PyObject * obj0 = 0 ; |
30254 | PyObject * obj1 = 0 ; | |
30255 | char *kwnames[] = { | |
30256 | (char *) "self",(char *) "str", NULL | |
30257 | }; | |
30258 | ||
30259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
30260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30261 | { | |
30262 | arg2 = wxString_in_helper(obj1); | |
30263 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 30264 | temp2 = True; |
d14a1e28 RD |
30265 | } |
30266 | { | |
30267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30268 | (arg1)->SetText((wxString const &)*arg2); | |
30269 | ||
30270 | wxPyEndAllowThreads(__tstate); | |
30271 | if (PyErr_Occurred()) SWIG_fail; | |
30272 | } | |
30273 | Py_INCREF(Py_None); resultobj = Py_None; | |
30274 | { | |
30275 | if (temp2) | |
30276 | delete arg2; | |
30277 | } | |
30278 | return resultobj; | |
30279 | fail: | |
30280 | { | |
30281 | if (temp2) | |
30282 | delete arg2; | |
30283 | } | |
30284 | return NULL; | |
30285 | } | |
30286 | ||
30287 | ||
30288 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30289 | PyObject *resultobj; | |
30290 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30291 | wxString result; | |
30292 | PyObject * obj0 = 0 ; | |
30293 | char *kwnames[] = { | |
30294 | (char *) "self", NULL | |
30295 | }; | |
30296 | ||
30297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
30298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30299 | { | |
30300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30301 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
30302 | ||
30303 | wxPyEndAllowThreads(__tstate); | |
30304 | if (PyErr_Occurred()) SWIG_fail; | |
30305 | } | |
30306 | { | |
30307 | #if wxUSE_UNICODE | |
30308 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30309 | #else | |
30310 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30311 | #endif | |
30312 | } | |
30313 | return resultobj; | |
30314 | fail: | |
30315 | return NULL; | |
30316 | } | |
30317 | ||
30318 | ||
30319 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30320 | PyObject *resultobj; | |
30321 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30322 | wxString *result; | |
30323 | PyObject * obj0 = 0 ; | |
30324 | char *kwnames[] = { | |
30325 | (char *) "self", NULL | |
30326 | }; | |
30327 | ||
30328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
30329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30330 | { | |
30331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30332 | { | |
30333 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
30334 | result = (wxString *) &_result_ref; | |
30335 | } | |
30336 | ||
30337 | wxPyEndAllowThreads(__tstate); | |
30338 | if (PyErr_Occurred()) SWIG_fail; | |
30339 | } | |
cc6dd355 RD |
30340 | { |
30341 | #if wxUSE_UNICODE | |
30342 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30343 | #else | |
30344 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30345 | #endif | |
30346 | } | |
d14a1e28 RD |
30347 | return resultobj; |
30348 | fail: | |
30349 | return NULL; | |
30350 | } | |
30351 | ||
30352 | ||
30353 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30354 | PyObject *resultobj; | |
30355 | wxString *arg1 = 0 ; | |
30356 | wxString result; | |
e811c8ce | 30357 | bool temp1 = False ; |
d14a1e28 RD |
30358 | PyObject * obj0 = 0 ; |
30359 | char *kwnames[] = { | |
30360 | (char *) "text", NULL | |
30361 | }; | |
30362 | ||
30363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
30364 | { | |
30365 | arg1 = wxString_in_helper(obj0); | |
30366 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 30367 | temp1 = True; |
d14a1e28 RD |
30368 | } |
30369 | { | |
30370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30371 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
30372 | ||
30373 | wxPyEndAllowThreads(__tstate); | |
30374 | if (PyErr_Occurred()) SWIG_fail; | |
30375 | } | |
30376 | { | |
30377 | #if wxUSE_UNICODE | |
30378 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30379 | #else | |
30380 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30381 | #endif | |
30382 | } | |
30383 | { | |
30384 | if (temp1) | |
30385 | delete arg1; | |
30386 | } | |
30387 | return resultobj; | |
30388 | fail: | |
30389 | { | |
30390 | if (temp1) | |
30391 | delete arg1; | |
30392 | } | |
30393 | return NULL; | |
30394 | } | |
30395 | ||
30396 | ||
30397 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30398 | PyObject *resultobj; | |
30399 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30400 | int result; | |
30401 | PyObject * obj0 = 0 ; | |
30402 | char *kwnames[] = { | |
30403 | (char *) "self", NULL | |
30404 | }; | |
30405 | ||
30406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
30407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30408 | { | |
30409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30410 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
30411 | ||
30412 | wxPyEndAllowThreads(__tstate); | |
30413 | if (PyErr_Occurred()) SWIG_fail; | |
30414 | } | |
994141e6 | 30415 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
30416 | return resultobj; |
30417 | fail: | |
30418 | return NULL; | |
30419 | } | |
30420 | ||
30421 | ||
30422 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30423 | PyObject *resultobj; | |
30424 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30425 | bool arg2 ; | |
30426 | PyObject * obj0 = 0 ; | |
30427 | PyObject * obj1 = 0 ; | |
30428 | char *kwnames[] = { | |
30429 | (char *) "self",(char *) "checkable", NULL | |
30430 | }; | |
30431 | ||
30432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
30433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 30434 | { |
994141e6 | 30435 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
30436 | if (PyErr_Occurred()) SWIG_fail; |
30437 | } | |
d14a1e28 RD |
30438 | { |
30439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30440 | (arg1)->SetCheckable(arg2); | |
30441 | ||
30442 | wxPyEndAllowThreads(__tstate); | |
30443 | if (PyErr_Occurred()) SWIG_fail; | |
30444 | } | |
30445 | Py_INCREF(Py_None); resultobj = Py_None; | |
30446 | return resultobj; | |
30447 | fail: | |
30448 | return NULL; | |
30449 | } | |
30450 | ||
30451 | ||
30452 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30453 | PyObject *resultobj; | |
30454 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30455 | bool result; | |
30456 | PyObject * obj0 = 0 ; | |
30457 | char *kwnames[] = { | |
30458 | (char *) "self", NULL | |
30459 | }; | |
30460 | ||
30461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
30462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30463 | { | |
30464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30465 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
30466 | ||
30467 | wxPyEndAllowThreads(__tstate); | |
30468 | if (PyErr_Occurred()) SWIG_fail; | |
30469 | } | |
4d5c3d91 | 30470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30471 | return resultobj; |
30472 | fail: | |
30473 | return NULL; | |
30474 | } | |
30475 | ||
30476 | ||
30477 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30478 | PyObject *resultobj; | |
30479 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30480 | bool result; | |
30481 | PyObject * obj0 = 0 ; | |
30482 | char *kwnames[] = { | |
30483 | (char *) "self", NULL | |
30484 | }; | |
30485 | ||
30486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
30487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30488 | { | |
30489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30490 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
30491 | ||
30492 | wxPyEndAllowThreads(__tstate); | |
30493 | if (PyErr_Occurred()) SWIG_fail; | |
30494 | } | |
4d5c3d91 | 30495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30496 | return resultobj; |
30497 | fail: | |
30498 | return NULL; | |
30499 | } | |
30500 | ||
30501 | ||
30502 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30503 | PyObject *resultobj; | |
30504 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30505 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30506 | PyObject * obj0 = 0 ; | |
30507 | PyObject * obj1 = 0 ; | |
30508 | char *kwnames[] = { | |
30509 | (char *) "self",(char *) "menu", NULL | |
30510 | }; | |
30511 | ||
30512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
30513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30514 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30515 | { | |
30516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30517 | (arg1)->SetSubMenu(arg2); | |
30518 | ||
30519 | wxPyEndAllowThreads(__tstate); | |
30520 | if (PyErr_Occurred()) SWIG_fail; | |
30521 | } | |
30522 | Py_INCREF(Py_None); resultobj = Py_None; | |
30523 | return resultobj; | |
30524 | fail: | |
30525 | return NULL; | |
30526 | } | |
30527 | ||
30528 | ||
30529 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30530 | PyObject *resultobj; | |
30531 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30532 | wxMenu *result; | |
30533 | PyObject * obj0 = 0 ; | |
30534 | char *kwnames[] = { | |
30535 | (char *) "self", NULL | |
30536 | }; | |
30537 | ||
30538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
30539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30540 | { | |
30541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30542 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
30543 | ||
30544 | wxPyEndAllowThreads(__tstate); | |
30545 | if (PyErr_Occurred()) SWIG_fail; | |
30546 | } | |
30547 | { | |
30548 | resultobj = wxPyMake_wxObject(result); | |
30549 | } | |
30550 | return resultobj; | |
30551 | fail: | |
30552 | return NULL; | |
30553 | } | |
30554 | ||
30555 | ||
30556 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30557 | PyObject *resultobj; | |
30558 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
e811c8ce | 30559 | bool arg2 = (bool) True ; |
d14a1e28 RD |
30560 | PyObject * obj0 = 0 ; |
30561 | PyObject * obj1 = 0 ; | |
30562 | char *kwnames[] = { | |
30563 | (char *) "self",(char *) "enable", NULL | |
30564 | }; | |
30565 | ||
30566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
30567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30568 | if (obj1) { | |
a41e16b6 | 30569 | { |
994141e6 | 30570 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
30571 | if (PyErr_Occurred()) SWIG_fail; |
30572 | } | |
d14a1e28 RD |
30573 | } |
30574 | { | |
30575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30576 | (arg1)->Enable(arg2); | |
30577 | ||
30578 | wxPyEndAllowThreads(__tstate); | |
30579 | if (PyErr_Occurred()) SWIG_fail; | |
30580 | } | |
30581 | Py_INCREF(Py_None); resultobj = Py_None; | |
30582 | return resultobj; | |
30583 | fail: | |
30584 | return NULL; | |
30585 | } | |
30586 | ||
30587 | ||
30588 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30589 | PyObject *resultobj; | |
30590 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30591 | bool result; | |
30592 | PyObject * obj0 = 0 ; | |
30593 | char *kwnames[] = { | |
30594 | (char *) "self", NULL | |
30595 | }; | |
30596 | ||
30597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
30598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30599 | { | |
30600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30601 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
30602 | ||
30603 | wxPyEndAllowThreads(__tstate); | |
30604 | if (PyErr_Occurred()) SWIG_fail; | |
30605 | } | |
4d5c3d91 | 30606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30607 | return resultobj; |
30608 | fail: | |
30609 | return NULL; | |
30610 | } | |
30611 | ||
30612 | ||
30613 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30614 | PyObject *resultobj; | |
30615 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
e811c8ce | 30616 | bool arg2 = (bool) True ; |
d14a1e28 RD |
30617 | PyObject * obj0 = 0 ; |
30618 | PyObject * obj1 = 0 ; | |
30619 | char *kwnames[] = { | |
30620 | (char *) "self",(char *) "check", NULL | |
30621 | }; | |
30622 | ||
30623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
30624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30625 | if (obj1) { | |
a41e16b6 | 30626 | { |
994141e6 | 30627 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
30628 | if (PyErr_Occurred()) SWIG_fail; |
30629 | } | |
d14a1e28 RD |
30630 | } |
30631 | { | |
30632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30633 | (arg1)->Check(arg2); | |
30634 | ||
30635 | wxPyEndAllowThreads(__tstate); | |
30636 | if (PyErr_Occurred()) SWIG_fail; | |
30637 | } | |
30638 | Py_INCREF(Py_None); resultobj = Py_None; | |
30639 | return resultobj; | |
30640 | fail: | |
30641 | return NULL; | |
30642 | } | |
30643 | ||
30644 | ||
30645 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30646 | PyObject *resultobj; | |
30647 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30648 | bool result; | |
30649 | PyObject * obj0 = 0 ; | |
30650 | char *kwnames[] = { | |
30651 | (char *) "self", NULL | |
30652 | }; | |
30653 | ||
30654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
30655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30656 | { | |
30657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30658 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
30659 | ||
30660 | wxPyEndAllowThreads(__tstate); | |
30661 | if (PyErr_Occurred()) SWIG_fail; | |
30662 | } | |
4d5c3d91 | 30663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30664 | return resultobj; |
30665 | fail: | |
30666 | return NULL; | |
30667 | } | |
30668 | ||
30669 | ||
30670 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30671 | PyObject *resultobj; | |
30672 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30673 | PyObject * obj0 = 0 ; | |
30674 | char *kwnames[] = { | |
30675 | (char *) "self", NULL | |
30676 | }; | |
30677 | ||
30678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
30679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30680 | { | |
30681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30682 | (arg1)->Toggle(); | |
30683 | ||
30684 | wxPyEndAllowThreads(__tstate); | |
30685 | if (PyErr_Occurred()) SWIG_fail; | |
30686 | } | |
30687 | Py_INCREF(Py_None); resultobj = Py_None; | |
30688 | return resultobj; | |
30689 | fail: | |
30690 | return NULL; | |
30691 | } | |
30692 | ||
30693 | ||
30694 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30695 | PyObject *resultobj; | |
30696 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30697 | wxString *arg2 = 0 ; | |
e811c8ce | 30698 | bool temp2 = False ; |
d14a1e28 RD |
30699 | PyObject * obj0 = 0 ; |
30700 | PyObject * obj1 = 0 ; | |
30701 | char *kwnames[] = { | |
30702 | (char *) "self",(char *) "str", NULL | |
30703 | }; | |
30704 | ||
30705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
30706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30707 | { | |
30708 | arg2 = wxString_in_helper(obj1); | |
30709 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 30710 | temp2 = True; |
d14a1e28 RD |
30711 | } |
30712 | { | |
30713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30714 | (arg1)->SetHelp((wxString const &)*arg2); | |
30715 | ||
30716 | wxPyEndAllowThreads(__tstate); | |
30717 | if (PyErr_Occurred()) SWIG_fail; | |
30718 | } | |
30719 | Py_INCREF(Py_None); resultobj = Py_None; | |
30720 | { | |
30721 | if (temp2) | |
30722 | delete arg2; | |
30723 | } | |
30724 | return resultobj; | |
30725 | fail: | |
30726 | { | |
30727 | if (temp2) | |
30728 | delete arg2; | |
30729 | } | |
30730 | return NULL; | |
30731 | } | |
30732 | ||
30733 | ||
30734 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30735 | PyObject *resultobj; | |
30736 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30737 | wxString *result; | |
30738 | PyObject * obj0 = 0 ; | |
30739 | char *kwnames[] = { | |
30740 | (char *) "self", NULL | |
30741 | }; | |
30742 | ||
30743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
30744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30745 | { | |
30746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30747 | { | |
30748 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
30749 | result = (wxString *) &_result_ref; | |
30750 | } | |
30751 | ||
30752 | wxPyEndAllowThreads(__tstate); | |
30753 | if (PyErr_Occurred()) SWIG_fail; | |
30754 | } | |
cc6dd355 RD |
30755 | { |
30756 | #if wxUSE_UNICODE | |
30757 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30758 | #else | |
30759 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30760 | #endif | |
30761 | } | |
d14a1e28 RD |
30762 | return resultobj; |
30763 | fail: | |
30764 | return NULL; | |
30765 | } | |
30766 | ||
30767 | ||
30768 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30769 | PyObject *resultobj; | |
30770 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30771 | wxAcceleratorEntry *result; | |
30772 | PyObject * obj0 = 0 ; | |
30773 | char *kwnames[] = { | |
30774 | (char *) "self", NULL | |
30775 | }; | |
30776 | ||
30777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
30778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30779 | { | |
30780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30781 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
30782 | ||
30783 | wxPyEndAllowThreads(__tstate); | |
30784 | if (PyErr_Occurred()) SWIG_fail; | |
30785 | } | |
30786 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0); | |
30787 | return resultobj; | |
30788 | fail: | |
30789 | return NULL; | |
30790 | } | |
30791 | ||
30792 | ||
30793 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30794 | PyObject *resultobj; | |
30795 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30796 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
30797 | PyObject * obj0 = 0 ; | |
30798 | PyObject * obj1 = 0 ; | |
30799 | char *kwnames[] = { | |
30800 | (char *) "self",(char *) "accel", NULL | |
30801 | }; | |
30802 | ||
30803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
30804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30805 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30806 | { | |
30807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30808 | (arg1)->SetAccel(arg2); | |
30809 | ||
30810 | wxPyEndAllowThreads(__tstate); | |
30811 | if (PyErr_Occurred()) SWIG_fail; | |
30812 | } | |
30813 | Py_INCREF(Py_None); resultobj = Py_None; | |
30814 | return resultobj; | |
30815 | fail: | |
30816 | return NULL; | |
30817 | } | |
30818 | ||
30819 | ||
30820 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30821 | PyObject *resultobj; | |
30822 | int result; | |
30823 | char *kwnames[] = { | |
30824 | NULL | |
30825 | }; | |
30826 | ||
30827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
30828 | { | |
30829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30830 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
30831 | ||
30832 | wxPyEndAllowThreads(__tstate); | |
30833 | if (PyErr_Occurred()) SWIG_fail; | |
30834 | } | |
994141e6 | 30835 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
30836 | return resultobj; |
30837 | fail: | |
30838 | return NULL; | |
30839 | } | |
30840 | ||
30841 | ||
30842 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30843 | PyObject *resultobj; | |
30844 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30845 | wxBitmap *arg2 = 0 ; | |
30846 | PyObject * obj0 = 0 ; | |
30847 | PyObject * obj1 = 0 ; | |
30848 | char *kwnames[] = { | |
30849 | (char *) "self",(char *) "bitmap", NULL | |
30850 | }; | |
30851 | ||
30852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
30853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30854 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30855 | if (arg2 == NULL) { | |
30856 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
30857 | } | |
30858 | { | |
30859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30860 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
30861 | ||
30862 | wxPyEndAllowThreads(__tstate); | |
30863 | if (PyErr_Occurred()) SWIG_fail; | |
30864 | } | |
30865 | Py_INCREF(Py_None); resultobj = Py_None; | |
30866 | return resultobj; | |
30867 | fail: | |
30868 | return NULL; | |
30869 | } | |
30870 | ||
30871 | ||
30872 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30873 | PyObject *resultobj; | |
30874 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30875 | wxBitmap *result; | |
30876 | PyObject * obj0 = 0 ; | |
30877 | char *kwnames[] = { | |
30878 | (char *) "self", NULL | |
30879 | }; | |
30880 | ||
30881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
30882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30883 | { | |
30884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30885 | { | |
30886 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
30887 | result = (wxBitmap *) &_result_ref; | |
30888 | } | |
30889 | ||
30890 | wxPyEndAllowThreads(__tstate); | |
30891 | if (PyErr_Occurred()) SWIG_fail; | |
30892 | } | |
30893 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
30894 | return resultobj; | |
30895 | fail: | |
30896 | return NULL; | |
30897 | } | |
30898 | ||
30899 | ||
30900 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
30901 | PyObject *obj; | |
30902 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30903 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
30904 | Py_INCREF(obj); | |
30905 | return Py_BuildValue((char *)""); | |
30906 | } | |
b2dc1044 RD |
30907 | static int _wrap_ControlNameStr_set(PyObject *_val) { |
30908 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); | |
30909 | return 1; | |
30910 | } | |
30911 | ||
30912 | ||
30913 | static PyObject *_wrap_ControlNameStr_get() { | |
30914 | PyObject *pyobj; | |
30915 | ||
30916 | { | |
30917 | #if wxUSE_UNICODE | |
30918 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
30919 | #else | |
30920 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
30921 | #endif | |
30922 | } | |
30923 | return pyobj; | |
30924 | } | |
30925 | ||
30926 | ||
d14a1e28 RD |
30927 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { |
30928 | PyObject *resultobj; | |
30929 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 30930 | int arg2 ; |
d14a1e28 RD |
30931 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
30932 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30933 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
30934 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
30935 | long arg5 = (long) 0 ; | |
30936 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
30937 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
30938 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
30939 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
30940 | wxControl *result; | |
30941 | wxPoint temp3 ; | |
30942 | wxSize temp4 ; | |
e811c8ce | 30943 | bool temp7 = False ; |
d14a1e28 | 30944 | PyObject * obj0 = 0 ; |
994141e6 | 30945 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30946 | PyObject * obj2 = 0 ; |
30947 | PyObject * obj3 = 0 ; | |
994141e6 | 30948 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30949 | PyObject * obj5 = 0 ; |
30950 | PyObject * obj6 = 0 ; | |
30951 | char *kwnames[] = { | |
30952 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
30953 | }; | |
30954 | ||
994141e6 | 30955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 30956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
30957 | { |
30958 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
30959 | if (PyErr_Occurred()) SWIG_fail; | |
30960 | } | |
d14a1e28 RD |
30961 | if (obj2) { |
30962 | { | |
30963 | arg3 = &temp3; | |
30964 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30965 | } | |
30966 | } | |
30967 | if (obj3) { | |
30968 | { | |
30969 | arg4 = &temp4; | |
30970 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
30971 | } | |
30972 | } | |
994141e6 RD |
30973 | if (obj4) { |
30974 | { | |
30975 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
30976 | if (PyErr_Occurred()) SWIG_fail; | |
30977 | } | |
30978 | } | |
d14a1e28 RD |
30979 | if (obj5) { |
30980 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30981 | if (arg6 == NULL) { | |
30982 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
30983 | } | |
30984 | } | |
30985 | if (obj6) { | |
30986 | { | |
30987 | arg7 = wxString_in_helper(obj6); | |
30988 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 30989 | temp7 = True; |
d14a1e28 RD |
30990 | } |
30991 | } | |
30992 | { | |
30993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30994 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
30995 | ||
30996 | wxPyEndAllowThreads(__tstate); | |
30997 | if (PyErr_Occurred()) SWIG_fail; | |
30998 | } | |
30999 | { | |
31000 | resultobj = wxPyMake_wxObject(result); | |
31001 | } | |
31002 | { | |
31003 | if (temp7) | |
31004 | delete arg7; | |
31005 | } | |
31006 | return resultobj; | |
31007 | fail: | |
31008 | { | |
31009 | if (temp7) | |
31010 | delete arg7; | |
31011 | } | |
31012 | return NULL; | |
31013 | } | |
31014 | ||
31015 | ||
31016 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31017 | PyObject *resultobj; | |
31018 | wxControl *result; | |
31019 | char *kwnames[] = { | |
31020 | NULL | |
31021 | }; | |
31022 | ||
31023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
31024 | { | |
31025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31026 | result = (wxControl *)new wxControl(); | |
31027 | ||
31028 | wxPyEndAllowThreads(__tstate); | |
31029 | if (PyErr_Occurred()) SWIG_fail; | |
31030 | } | |
31031 | { | |
31032 | resultobj = wxPyMake_wxObject(result); | |
31033 | } | |
31034 | return resultobj; | |
31035 | fail: | |
31036 | return NULL; | |
31037 | } | |
31038 | ||
31039 | ||
31040 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31041 | PyObject *resultobj; | |
31042 | wxControl *arg1 = (wxControl *) 0 ; | |
31043 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 31044 | int arg3 ; |
d14a1e28 RD |
31045 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
31046 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31047 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31048 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31049 | long arg6 = (long) 0 ; | |
31050 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
31051 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
31052 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
31053 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
31054 | bool result; | |
31055 | wxPoint temp4 ; | |
31056 | wxSize temp5 ; | |
e811c8ce | 31057 | bool temp8 = False ; |
d14a1e28 RD |
31058 | PyObject * obj0 = 0 ; |
31059 | PyObject * obj1 = 0 ; | |
994141e6 | 31060 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
31061 | PyObject * obj3 = 0 ; |
31062 | PyObject * obj4 = 0 ; | |
994141e6 | 31063 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
31064 | PyObject * obj6 = 0 ; |
31065 | PyObject * obj7 = 0 ; | |
31066 | char *kwnames[] = { | |
31067 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31068 | }; | |
31069 | ||
994141e6 | 31070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
31071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
31072 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
31073 | { |
31074 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
31075 | if (PyErr_Occurred()) SWIG_fail; | |
31076 | } | |
d14a1e28 RD |
31077 | if (obj3) { |
31078 | { | |
31079 | arg4 = &temp4; | |
31080 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
31081 | } | |
31082 | } | |
31083 | if (obj4) { | |
31084 | { | |
31085 | arg5 = &temp5; | |
31086 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
31087 | } | |
31088 | } | |
994141e6 RD |
31089 | if (obj5) { |
31090 | { | |
31091 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
31092 | if (PyErr_Occurred()) SWIG_fail; | |
31093 | } | |
31094 | } | |
d14a1e28 RD |
31095 | if (obj6) { |
31096 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31097 | if (arg7 == NULL) { | |
31098 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31099 | } | |
31100 | } | |
31101 | if (obj7) { | |
31102 | { | |
31103 | arg8 = wxString_in_helper(obj7); | |
31104 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 31105 | temp8 = True; |
d14a1e28 RD |
31106 | } |
31107 | } | |
31108 | { | |
31109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31110 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
31111 | ||
31112 | wxPyEndAllowThreads(__tstate); | |
31113 | if (PyErr_Occurred()) SWIG_fail; | |
31114 | } | |
4d5c3d91 | 31115 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
31116 | { |
31117 | if (temp8) | |
31118 | delete arg8; | |
31119 | } | |
31120 | return resultobj; | |
31121 | fail: | |
31122 | { | |
31123 | if (temp8) | |
31124 | delete arg8; | |
31125 | } | |
31126 | return NULL; | |
31127 | } | |
31128 | ||
31129 | ||
31130 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31131 | PyObject *resultobj; | |
31132 | wxControl *arg1 = (wxControl *) 0 ; | |
31133 | wxCommandEvent *arg2 = 0 ; | |
31134 | PyObject * obj0 = 0 ; | |
31135 | PyObject * obj1 = 0 ; | |
31136 | char *kwnames[] = { | |
31137 | (char *) "self",(char *) "event", NULL | |
31138 | }; | |
31139 | ||
31140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
31141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31142 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31143 | if (arg2 == NULL) { | |
31144 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31145 | } | |
31146 | { | |
31147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31148 | (arg1)->Command(*arg2); | |
31149 | ||
31150 | wxPyEndAllowThreads(__tstate); | |
31151 | if (PyErr_Occurred()) SWIG_fail; | |
31152 | } | |
31153 | Py_INCREF(Py_None); resultobj = Py_None; | |
31154 | return resultobj; | |
31155 | fail: | |
31156 | return NULL; | |
31157 | } | |
31158 | ||
31159 | ||
31160 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31161 | PyObject *resultobj; | |
31162 | wxControl *arg1 = (wxControl *) 0 ; | |
31163 | wxString result; | |
31164 | PyObject * obj0 = 0 ; | |
31165 | char *kwnames[] = { | |
31166 | (char *) "self", NULL | |
31167 | }; | |
31168 | ||
31169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
31170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31171 | { | |
31172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31173 | result = (arg1)->GetLabel(); | |
31174 | ||
31175 | wxPyEndAllowThreads(__tstate); | |
31176 | if (PyErr_Occurred()) SWIG_fail; | |
31177 | } | |
31178 | { | |
31179 | #if wxUSE_UNICODE | |
31180 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31181 | #else | |
31182 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31183 | #endif | |
31184 | } | |
31185 | return resultobj; | |
31186 | fail: | |
31187 | return NULL; | |
31188 | } | |
31189 | ||
31190 | ||
31191 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31192 | PyObject *resultobj; | |
31193 | wxControl *arg1 = (wxControl *) 0 ; | |
31194 | wxString *arg2 = 0 ; | |
e811c8ce | 31195 | bool temp2 = False ; |
d14a1e28 RD |
31196 | PyObject * obj0 = 0 ; |
31197 | PyObject * obj1 = 0 ; | |
31198 | char *kwnames[] = { | |
31199 | (char *) "self",(char *) "label", NULL | |
31200 | }; | |
31201 | ||
31202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31204 | { | |
31205 | arg2 = wxString_in_helper(obj1); | |
31206 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31207 | temp2 = True; |
d14a1e28 RD |
31208 | } |
31209 | { | |
31210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31211 | (arg1)->SetLabel((wxString const &)*arg2); | |
31212 | ||
31213 | wxPyEndAllowThreads(__tstate); | |
31214 | if (PyErr_Occurred()) SWIG_fail; | |
31215 | } | |
31216 | Py_INCREF(Py_None); resultobj = Py_None; | |
31217 | { | |
31218 | if (temp2) | |
31219 | delete arg2; | |
31220 | } | |
31221 | return resultobj; | |
31222 | fail: | |
31223 | { | |
31224 | if (temp2) | |
31225 | delete arg2; | |
31226 | } | |
31227 | return NULL; | |
31228 | } | |
31229 | ||
31230 | ||
31231 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
31232 | PyObject *obj; | |
31233 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31234 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
31235 | Py_INCREF(obj); | |
31236 | return Py_BuildValue((char *)""); | |
31237 | } | |
31238 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31239 | PyObject *resultobj; | |
31240 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31241 | wxString *arg2 = 0 ; | |
31242 | PyObject *arg3 = (PyObject *) NULL ; | |
31243 | int result; | |
e811c8ce | 31244 | bool temp2 = False ; |
d14a1e28 RD |
31245 | PyObject * obj0 = 0 ; |
31246 | PyObject * obj1 = 0 ; | |
31247 | PyObject * obj2 = 0 ; | |
31248 | char *kwnames[] = { | |
31249 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
31250 | }; | |
31251 | ||
31252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31254 | { | |
31255 | arg2 = wxString_in_helper(obj1); | |
31256 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31257 | temp2 = True; |
d14a1e28 RD |
31258 | } |
31259 | if (obj2) { | |
31260 | arg3 = obj2; | |
31261 | } | |
31262 | { | |
31263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31264 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
31265 | ||
31266 | wxPyEndAllowThreads(__tstate); | |
31267 | if (PyErr_Occurred()) SWIG_fail; | |
31268 | } | |
994141e6 | 31269 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31270 | { |
31271 | if (temp2) | |
31272 | delete arg2; | |
31273 | } | |
31274 | return resultobj; | |
31275 | fail: | |
31276 | { | |
31277 | if (temp2) | |
31278 | delete arg2; | |
31279 | } | |
31280 | return NULL; | |
31281 | } | |
31282 | ||
31283 | ||
31284 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31285 | PyObject *resultobj; | |
31286 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31287 | wxArrayString *arg2 = 0 ; | |
3adfb63b | 31288 | bool temp2 = False ; |
d14a1e28 RD |
31289 | PyObject * obj0 = 0 ; |
31290 | PyObject * obj1 = 0 ; | |
31291 | char *kwnames[] = { | |
31292 | (char *) "self",(char *) "strings", NULL | |
31293 | }; | |
31294 | ||
31295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
31296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31297 | { | |
31298 | if (! PySequence_Check(obj1)) { | |
31299 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
31300 | SWIG_fail; | |
31301 | } | |
31302 | arg2 = new wxArrayString; | |
3adfb63b | 31303 | temp2 = True; |
d14a1e28 RD |
31304 | int i, len=PySequence_Length(obj1); |
31305 | for (i=0; i<len; i++) { | |
31306 | PyObject* item = PySequence_GetItem(obj1, i); | |
31307 | #if wxUSE_UNICODE | |
31308 | PyObject* str = PyObject_Unicode(item); | |
31309 | #else | |
31310 | PyObject* str = PyObject_Str(item); | |
31311 | #endif | |
31312 | arg2->Add(Py2wxString(str)); | |
31313 | Py_DECREF(item); | |
31314 | Py_DECREF(str); | |
31315 | } | |
31316 | } | |
31317 | { | |
31318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31319 | (arg1)->Append((wxArrayString const &)*arg2); | |
31320 | ||
31321 | wxPyEndAllowThreads(__tstate); | |
31322 | if (PyErr_Occurred()) SWIG_fail; | |
31323 | } | |
31324 | Py_INCREF(Py_None); resultobj = Py_None; | |
31325 | { | |
3adfb63b | 31326 | if (temp2) delete arg2; |
d14a1e28 RD |
31327 | } |
31328 | return resultobj; | |
31329 | fail: | |
31330 | { | |
3adfb63b | 31331 | if (temp2) delete arg2; |
d14a1e28 RD |
31332 | } |
31333 | return NULL; | |
31334 | } | |
31335 | ||
31336 | ||
31337 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31338 | PyObject *resultobj; | |
31339 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31340 | wxString *arg2 = 0 ; | |
31341 | int arg3 ; | |
31342 | PyObject *arg4 = (PyObject *) NULL ; | |
31343 | int result; | |
e811c8ce | 31344 | bool temp2 = False ; |
d14a1e28 RD |
31345 | PyObject * obj0 = 0 ; |
31346 | PyObject * obj1 = 0 ; | |
994141e6 | 31347 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
31348 | PyObject * obj3 = 0 ; |
31349 | char *kwnames[] = { | |
31350 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
31351 | }; | |
31352 | ||
994141e6 | 31353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
31354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
31355 | { | |
31356 | arg2 = wxString_in_helper(obj1); | |
31357 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31358 | temp2 = True; |
d14a1e28 | 31359 | } |
994141e6 RD |
31360 | { |
31361 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
31362 | if (PyErr_Occurred()) SWIG_fail; | |
31363 | } | |
d14a1e28 RD |
31364 | if (obj3) { |
31365 | arg4 = obj3; | |
31366 | } | |
31367 | { | |
31368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31369 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
31370 | ||
31371 | wxPyEndAllowThreads(__tstate); | |
31372 | if (PyErr_Occurred()) SWIG_fail; | |
31373 | } | |
994141e6 | 31374 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31375 | { |
31376 | if (temp2) | |
31377 | delete arg2; | |
31378 | } | |
31379 | return resultobj; | |
31380 | fail: | |
31381 | { | |
31382 | if (temp2) | |
31383 | delete arg2; | |
31384 | } | |
31385 | return NULL; | |
31386 | } | |
31387 | ||
31388 | ||
31389 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31390 | PyObject *resultobj; | |
31391 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31392 | PyObject * obj0 = 0 ; | |
31393 | char *kwnames[] = { | |
31394 | (char *) "self", NULL | |
31395 | }; | |
31396 | ||
31397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
31398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31399 | { | |
31400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31401 | (arg1)->Clear(); | |
31402 | ||
31403 | wxPyEndAllowThreads(__tstate); | |
31404 | if (PyErr_Occurred()) SWIG_fail; | |
31405 | } | |
31406 | Py_INCREF(Py_None); resultobj = Py_None; | |
31407 | return resultobj; | |
31408 | fail: | |
31409 | return NULL; | |
31410 | } | |
31411 | ||
31412 | ||
31413 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31414 | PyObject *resultobj; | |
31415 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31416 | int arg2 ; | |
31417 | PyObject * obj0 = 0 ; | |
994141e6 | 31418 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31419 | char *kwnames[] = { |
31420 | (char *) "self",(char *) "n", NULL | |
31421 | }; | |
31422 | ||
994141e6 | 31423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 31424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
31425 | { |
31426 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31427 | if (PyErr_Occurred()) SWIG_fail; | |
31428 | } | |
d14a1e28 RD |
31429 | { |
31430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31431 | (arg1)->Delete(arg2); | |
31432 | ||
31433 | wxPyEndAllowThreads(__tstate); | |
31434 | if (PyErr_Occurred()) SWIG_fail; | |
31435 | } | |
31436 | Py_INCREF(Py_None); resultobj = Py_None; | |
31437 | return resultobj; | |
31438 | fail: | |
31439 | return NULL; | |
31440 | } | |
31441 | ||
31442 | ||
31443 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31444 | PyObject *resultobj; | |
31445 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31446 | int result; | |
31447 | PyObject * obj0 = 0 ; | |
31448 | char *kwnames[] = { | |
31449 | (char *) "self", NULL | |
31450 | }; | |
31451 | ||
31452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
31453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31454 | { | |
31455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31456 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
31457 | ||
31458 | wxPyEndAllowThreads(__tstate); | |
31459 | if (PyErr_Occurred()) SWIG_fail; | |
31460 | } | |
994141e6 | 31461 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31462 | return resultobj; |
31463 | fail: | |
31464 | return NULL; | |
31465 | } | |
31466 | ||
31467 | ||
31468 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31469 | PyObject *resultobj; | |
31470 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31471 | bool result; | |
31472 | PyObject * obj0 = 0 ; | |
31473 | char *kwnames[] = { | |
31474 | (char *) "self", NULL | |
31475 | }; | |
31476 | ||
31477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
31478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31479 | { | |
31480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31481 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
31482 | ||
31483 | wxPyEndAllowThreads(__tstate); | |
31484 | if (PyErr_Occurred()) SWIG_fail; | |
31485 | } | |
4d5c3d91 | 31486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
31487 | return resultobj; |
31488 | fail: | |
31489 | return NULL; | |
31490 | } | |
31491 | ||
31492 | ||
31493 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31494 | PyObject *resultobj; | |
31495 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31496 | int arg2 ; | |
31497 | wxString result; | |
31498 | PyObject * obj0 = 0 ; | |
994141e6 | 31499 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31500 | char *kwnames[] = { |
31501 | (char *) "self",(char *) "n", NULL | |
31502 | }; | |
31503 | ||
994141e6 | 31504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 31505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
31506 | { |
31507 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31508 | if (PyErr_Occurred()) SWIG_fail; | |
31509 | } | |
d14a1e28 RD |
31510 | { |
31511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31512 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
31513 | ||
31514 | wxPyEndAllowThreads(__tstate); | |
31515 | if (PyErr_Occurred()) SWIG_fail; | |
31516 | } | |
31517 | { | |
31518 | #if wxUSE_UNICODE | |
31519 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31520 | #else | |
31521 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31522 | #endif | |
31523 | } | |
31524 | return resultobj; | |
31525 | fail: | |
31526 | return NULL; | |
31527 | } | |
31528 | ||
31529 | ||
31530 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31531 | PyObject *resultobj; | |
31532 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31533 | wxArrayString result; | |
31534 | PyObject * obj0 = 0 ; | |
31535 | char *kwnames[] = { | |
31536 | (char *) "self", NULL | |
31537 | }; | |
31538 | ||
31539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
31540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31541 | { | |
31542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31543 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
31544 | ||
31545 | wxPyEndAllowThreads(__tstate); | |
31546 | if (PyErr_Occurred()) SWIG_fail; | |
31547 | } | |
31548 | { | |
31549 | resultobj = wxArrayString2PyList_helper(result); | |
31550 | } | |
31551 | return resultobj; | |
31552 | fail: | |
31553 | return NULL; | |
31554 | } | |
31555 | ||
31556 | ||
31557 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31558 | PyObject *resultobj; | |
31559 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31560 | int arg2 ; | |
31561 | wxString *arg3 = 0 ; | |
e811c8ce | 31562 | bool temp3 = False ; |
d14a1e28 | 31563 | PyObject * obj0 = 0 ; |
994141e6 | 31564 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31565 | PyObject * obj2 = 0 ; |
31566 | char *kwnames[] = { | |
31567 | (char *) "self",(char *) "n",(char *) "s", NULL | |
31568 | }; | |
31569 | ||
994141e6 | 31570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 31571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
31572 | { |
31573 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31574 | if (PyErr_Occurred()) SWIG_fail; | |
31575 | } | |
d14a1e28 RD |
31576 | { |
31577 | arg3 = wxString_in_helper(obj2); | |
31578 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31579 | temp3 = True; |
d14a1e28 RD |
31580 | } |
31581 | { | |
31582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31583 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
31584 | ||
31585 | wxPyEndAllowThreads(__tstate); | |
31586 | if (PyErr_Occurred()) SWIG_fail; | |
31587 | } | |
31588 | Py_INCREF(Py_None); resultobj = Py_None; | |
31589 | { | |
31590 | if (temp3) | |
31591 | delete arg3; | |
31592 | } | |
31593 | return resultobj; | |
31594 | fail: | |
31595 | { | |
31596 | if (temp3) | |
31597 | delete arg3; | |
31598 | } | |
31599 | return NULL; | |
31600 | } | |
31601 | ||
31602 | ||
31603 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31604 | PyObject *resultobj; | |
31605 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31606 | wxString *arg2 = 0 ; | |
31607 | int result; | |
e811c8ce | 31608 | bool temp2 = False ; |
d14a1e28 RD |
31609 | PyObject * obj0 = 0 ; |
31610 | PyObject * obj1 = 0 ; | |
31611 | char *kwnames[] = { | |
31612 | (char *) "self",(char *) "s", NULL | |
31613 | }; | |
31614 | ||
31615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
31616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31617 | { | |
31618 | arg2 = wxString_in_helper(obj1); | |
31619 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31620 | temp2 = True; |
d14a1e28 RD |
31621 | } |
31622 | { | |
31623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31624 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
31625 | ||
31626 | wxPyEndAllowThreads(__tstate); | |
31627 | if (PyErr_Occurred()) SWIG_fail; | |
31628 | } | |
994141e6 | 31629 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31630 | { |
31631 | if (temp2) | |
31632 | delete arg2; | |
31633 | } | |
31634 | return resultobj; | |
31635 | fail: | |
31636 | { | |
31637 | if (temp2) | |
31638 | delete arg2; | |
31639 | } | |
31640 | return NULL; | |
31641 | } | |
31642 | ||
31643 | ||
31644 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31645 | PyObject *resultobj; | |
31646 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31647 | int arg2 ; | |
31648 | PyObject * obj0 = 0 ; | |
994141e6 | 31649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31650 | char *kwnames[] = { |
31651 | (char *) "self",(char *) "n", NULL | |
31652 | }; | |
31653 | ||
994141e6 | 31654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 31655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
31656 | { |
31657 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31658 | if (PyErr_Occurred()) SWIG_fail; | |
31659 | } | |
d14a1e28 RD |
31660 | { |
31661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31662 | (arg1)->Select(arg2); | |
31663 | ||
31664 | wxPyEndAllowThreads(__tstate); | |
31665 | if (PyErr_Occurred()) SWIG_fail; | |
31666 | } | |
31667 | Py_INCREF(Py_None); resultobj = Py_None; | |
31668 | return resultobj; | |
31669 | fail: | |
31670 | return NULL; | |
31671 | } | |
31672 | ||
31673 | ||
31674 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31675 | PyObject *resultobj; | |
31676 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31677 | int result; | |
31678 | PyObject * obj0 = 0 ; | |
31679 | char *kwnames[] = { | |
31680 | (char *) "self", NULL | |
31681 | }; | |
31682 | ||
31683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
31684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31685 | { | |
31686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31687 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
31688 | ||
31689 | wxPyEndAllowThreads(__tstate); | |
31690 | if (PyErr_Occurred()) SWIG_fail; | |
31691 | } | |
994141e6 | 31692 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31693 | return resultobj; |
31694 | fail: | |
31695 | return NULL; | |
31696 | } | |
31697 | ||
31698 | ||
31699 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31700 | PyObject *resultobj; | |
31701 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31702 | wxString result; | |
31703 | PyObject * obj0 = 0 ; | |
31704 | char *kwnames[] = { | |
31705 | (char *) "self", NULL | |
31706 | }; | |
31707 | ||
31708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
31709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31710 | { | |
31711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31712 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
31713 | ||
31714 | wxPyEndAllowThreads(__tstate); | |
31715 | if (PyErr_Occurred()) SWIG_fail; | |
31716 | } | |
31717 | { | |
31718 | #if wxUSE_UNICODE | |
31719 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31720 | #else | |
31721 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31722 | #endif | |
31723 | } | |
31724 | return resultobj; | |
31725 | fail: | |
31726 | return NULL; | |
31727 | } | |
31728 | ||
31729 | ||
31730 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31731 | PyObject *resultobj; | |
31732 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31733 | int arg2 ; | |
31734 | PyObject *result; | |
31735 | PyObject * obj0 = 0 ; | |
994141e6 | 31736 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31737 | char *kwnames[] = { |
31738 | (char *) "self",(char *) "n", NULL | |
31739 | }; | |
31740 | ||
994141e6 | 31741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 31742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
31743 | { |
31744 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31745 | if (PyErr_Occurred()) SWIG_fail; | |
31746 | } | |
d14a1e28 RD |
31747 | { |
31748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31749 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
31750 | ||
31751 | wxPyEndAllowThreads(__tstate); | |
31752 | if (PyErr_Occurred()) SWIG_fail; | |
31753 | } | |
31754 | resultobj = result; | |
31755 | return resultobj; | |
31756 | fail: | |
31757 | return NULL; | |
31758 | } | |
31759 | ||
31760 | ||
31761 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31762 | PyObject *resultobj; | |
31763 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31764 | int arg2 ; | |
31765 | PyObject *arg3 = (PyObject *) 0 ; | |
31766 | PyObject * obj0 = 0 ; | |
994141e6 | 31767 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31768 | PyObject * obj2 = 0 ; |
31769 | char *kwnames[] = { | |
31770 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
31771 | }; | |
31772 | ||
994141e6 | 31773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 31774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
31775 | { |
31776 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31777 | if (PyErr_Occurred()) SWIG_fail; | |
31778 | } | |
d14a1e28 RD |
31779 | arg3 = obj2; |
31780 | { | |
31781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31782 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
31783 | ||
31784 | wxPyEndAllowThreads(__tstate); | |
31785 | if (PyErr_Occurred()) SWIG_fail; | |
31786 | } | |
31787 | Py_INCREF(Py_None); resultobj = Py_None; | |
31788 | return resultobj; | |
31789 | fail: | |
31790 | return NULL; | |
31791 | } | |
31792 | ||
31793 | ||
31794 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
31795 | PyObject *obj; | |
31796 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31797 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
31798 | Py_INCREF(obj); | |
31799 | return Py_BuildValue((char *)""); | |
31800 | } | |
31801 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
31802 | PyObject *obj; | |
31803 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31804 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
31805 | Py_INCREF(obj); | |
31806 | return Py_BuildValue((char *)""); | |
31807 | } | |
31808 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31809 | PyObject *resultobj; | |
31810 | wxSizerItem *result; | |
31811 | char *kwnames[] = { | |
31812 | NULL | |
31813 | }; | |
31814 | ||
31815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
31816 | { | |
31817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31818 | result = (wxSizerItem *)new wxSizerItem(); | |
31819 | ||
31820 | wxPyEndAllowThreads(__tstate); | |
31821 | if (PyErr_Occurred()) SWIG_fail; | |
31822 | } | |
31823 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
31824 | return resultobj; | |
31825 | fail: | |
31826 | return NULL; | |
31827 | } | |
31828 | ||
31829 | ||
31830 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31831 | PyObject *resultobj; | |
31832 | int arg1 ; | |
31833 | int arg2 ; | |
31834 | int arg3 ; | |
31835 | int arg4 ; | |
31836 | int arg5 ; | |
31837 | wxObject *arg6 = (wxObject *) 0 ; | |
31838 | wxSizerItem *result; | |
994141e6 RD |
31839 | PyObject * obj0 = 0 ; |
31840 | PyObject * obj1 = 0 ; | |
31841 | PyObject * obj2 = 0 ; | |
31842 | PyObject * obj3 = 0 ; | |
31843 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
31844 | PyObject * obj5 = 0 ; |
31845 | char *kwnames[] = { | |
31846 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
31847 | }; | |
31848 | ||
994141e6 RD |
31849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
31850 | { | |
31851 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
31852 | if (PyErr_Occurred()) SWIG_fail; | |
31853 | } | |
31854 | { | |
31855 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31856 | if (PyErr_Occurred()) SWIG_fail; | |
31857 | } | |
31858 | { | |
31859 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
31860 | if (PyErr_Occurred()) SWIG_fail; | |
31861 | } | |
31862 | { | |
31863 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
31864 | if (PyErr_Occurred()) SWIG_fail; | |
31865 | } | |
31866 | { | |
31867 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
31868 | if (PyErr_Occurred()) SWIG_fail; | |
31869 | } | |
d14a1e28 RD |
31870 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
31871 | { | |
31872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31873 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
31874 | ||
31875 | wxPyEndAllowThreads(__tstate); | |
31876 | if (PyErr_Occurred()) SWIG_fail; | |
31877 | } | |
31878 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
31879 | return resultobj; | |
31880 | fail: | |
31881 | return NULL; | |
31882 | } | |
31883 | ||
31884 | ||
31885 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31886 | PyObject *resultobj; | |
31887 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31888 | int arg2 ; | |
31889 | int arg3 ; | |
31890 | int arg4 ; | |
31891 | wxObject *arg5 = (wxObject *) 0 ; | |
31892 | wxSizerItem *result; | |
31893 | PyObject * obj0 = 0 ; | |
994141e6 RD |
31894 | PyObject * obj1 = 0 ; |
31895 | PyObject * obj2 = 0 ; | |
31896 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
31897 | PyObject * obj4 = 0 ; |
31898 | char *kwnames[] = { | |
31899 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
31900 | }; | |
31901 | ||
994141e6 | 31902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 31903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
31904 | { |
31905 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31906 | if (PyErr_Occurred()) SWIG_fail; | |
31907 | } | |
31908 | { | |
31909 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
31910 | if (PyErr_Occurred()) SWIG_fail; | |
31911 | } | |
31912 | { | |
31913 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
31914 | if (PyErr_Occurred()) SWIG_fail; | |
31915 | } | |
d14a1e28 RD |
31916 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
31917 | { | |
31918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31919 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
31920 | ||
31921 | wxPyEndAllowThreads(__tstate); | |
31922 | if (PyErr_Occurred()) SWIG_fail; | |
31923 | } | |
31924 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
31925 | return resultobj; | |
31926 | fail: | |
31927 | return NULL; | |
31928 | } | |
31929 | ||
31930 | ||
31931 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31932 | PyObject *resultobj; | |
31933 | wxSizer *arg1 = (wxSizer *) 0 ; | |
31934 | int arg2 ; | |
31935 | int arg3 ; | |
31936 | int arg4 ; | |
31937 | wxObject *arg5 = (wxObject *) 0 ; | |
31938 | wxSizerItem *result; | |
31939 | PyObject * obj0 = 0 ; | |
994141e6 RD |
31940 | PyObject * obj1 = 0 ; |
31941 | PyObject * obj2 = 0 ; | |
31942 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
31943 | PyObject * obj4 = 0 ; |
31944 | char *kwnames[] = { | |
31945 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
31946 | }; | |
31947 | ||
994141e6 | 31948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 31949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
31950 | { |
31951 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31952 | if (PyErr_Occurred()) SWIG_fail; | |
31953 | } | |
31954 | { | |
31955 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
31956 | if (PyErr_Occurred()) SWIG_fail; | |
31957 | } | |
31958 | { | |
31959 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
31960 | if (PyErr_Occurred()) SWIG_fail; | |
31961 | } | |
d14a1e28 RD |
31962 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
31963 | { | |
31964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31965 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
31966 | ||
31967 | wxPyEndAllowThreads(__tstate); | |
31968 | if (PyErr_Occurred()) SWIG_fail; | |
31969 | } | |
31970 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
31971 | return resultobj; | |
31972 | fail: | |
31973 | return NULL; | |
31974 | } | |
31975 | ||
31976 | ||
31977 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31978 | PyObject *resultobj; | |
31979 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
31980 | PyObject * obj0 = 0 ; | |
31981 | char *kwnames[] = { | |
31982 | (char *) "self", NULL | |
31983 | }; | |
31984 | ||
31985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
31986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31987 | { | |
31988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31989 | (arg1)->DeleteWindows(); | |
31990 | ||
31991 | wxPyEndAllowThreads(__tstate); | |
31992 | if (PyErr_Occurred()) SWIG_fail; | |
31993 | } | |
31994 | Py_INCREF(Py_None); resultobj = Py_None; | |
31995 | return resultobj; | |
31996 | fail: | |
31997 | return NULL; | |
31998 | } | |
31999 | ||
32000 | ||
32001 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32002 | PyObject *resultobj; | |
32003 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32004 | PyObject * obj0 = 0 ; | |
32005 | char *kwnames[] = { | |
32006 | (char *) "self", NULL | |
32007 | }; | |
32008 | ||
32009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
32010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32011 | { | |
32012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32013 | (arg1)->DetachSizer(); | |
32014 | ||
32015 | wxPyEndAllowThreads(__tstate); | |
32016 | if (PyErr_Occurred()) SWIG_fail; | |
32017 | } | |
32018 | Py_INCREF(Py_None); resultobj = Py_None; | |
32019 | return resultobj; | |
32020 | fail: | |
32021 | return NULL; | |
32022 | } | |
32023 | ||
32024 | ||
32025 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32026 | PyObject *resultobj; | |
32027 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32028 | wxSize result; | |
32029 | PyObject * obj0 = 0 ; | |
32030 | char *kwnames[] = { | |
32031 | (char *) "self", NULL | |
32032 | }; | |
32033 | ||
32034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
32035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32036 | { | |
32037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32038 | result = (arg1)->GetSize(); | |
32039 | ||
32040 | wxPyEndAllowThreads(__tstate); | |
32041 | if (PyErr_Occurred()) SWIG_fail; | |
32042 | } | |
32043 | { | |
32044 | wxSize * resultptr; | |
32045 | resultptr = new wxSize((wxSize &) result); | |
32046 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
32047 | } | |
32048 | return resultobj; | |
32049 | fail: | |
32050 | return NULL; | |
32051 | } | |
32052 | ||
32053 | ||
32054 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32055 | PyObject *resultobj; | |
32056 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32057 | wxSize result; | |
32058 | PyObject * obj0 = 0 ; | |
32059 | char *kwnames[] = { | |
32060 | (char *) "self", NULL | |
32061 | }; | |
32062 | ||
32063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
32064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32065 | { | |
32066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32067 | result = (arg1)->CalcMin(); | |
32068 | ||
32069 | wxPyEndAllowThreads(__tstate); | |
32070 | if (PyErr_Occurred()) SWIG_fail; | |
32071 | } | |
32072 | { | |
32073 | wxSize * resultptr; | |
32074 | resultptr = new wxSize((wxSize &) result); | |
32075 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
32076 | } | |
32077 | return resultobj; | |
32078 | fail: | |
32079 | return NULL; | |
32080 | } | |
32081 | ||
32082 | ||
32083 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32084 | PyObject *resultobj; | |
32085 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32086 | wxPoint arg2 ; | |
32087 | wxSize arg3 ; | |
32088 | wxPoint *argp2 ; | |
32089 | wxSize *argp3 ; | |
32090 | PyObject * obj0 = 0 ; | |
32091 | PyObject * obj1 = 0 ; | |
32092 | PyObject * obj2 = 0 ; | |
32093 | char *kwnames[] = { | |
32094 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
32095 | }; | |
32096 | ||
32097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32099 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32100 | arg2 = *argp2; | |
32101 | if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32102 | arg3 = *argp3; | |
32103 | { | |
32104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32105 | (arg1)->SetDimension(arg2,arg3); | |
32106 | ||
32107 | wxPyEndAllowThreads(__tstate); | |
32108 | if (PyErr_Occurred()) SWIG_fail; | |
32109 | } | |
32110 | Py_INCREF(Py_None); resultobj = Py_None; | |
32111 | return resultobj; | |
32112 | fail: | |
32113 | return NULL; | |
32114 | } | |
32115 | ||
32116 | ||
32117 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32118 | PyObject *resultobj; | |
32119 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32120 | wxSize result; | |
32121 | PyObject * obj0 = 0 ; | |
32122 | char *kwnames[] = { | |
32123 | (char *) "self", NULL | |
32124 | }; | |
32125 | ||
32126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
32127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32128 | { | |
32129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32130 | result = (arg1)->GetMinSize(); | |
32131 | ||
32132 | wxPyEndAllowThreads(__tstate); | |
32133 | if (PyErr_Occurred()) SWIG_fail; | |
32134 | } | |
32135 | { | |
32136 | wxSize * resultptr; | |
32137 | resultptr = new wxSize((wxSize &) result); | |
32138 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
32139 | } | |
32140 | return resultobj; | |
32141 | fail: | |
32142 | return NULL; | |
32143 | } | |
32144 | ||
32145 | ||
32146 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32147 | PyObject *resultobj; | |
32148 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32149 | int arg2 ; | |
32150 | int arg3 ; | |
32151 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32152 | PyObject * obj1 = 0 ; |
32153 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32154 | char *kwnames[] = { |
32155 | (char *) "self",(char *) "x",(char *) "y", NULL | |
32156 | }; | |
32157 | ||
994141e6 | 32158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 32159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
32160 | { |
32161 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32162 | if (PyErr_Occurred()) SWIG_fail; | |
32163 | } | |
32164 | { | |
32165 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32166 | if (PyErr_Occurred()) SWIG_fail; | |
32167 | } | |
d14a1e28 RD |
32168 | { |
32169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32170 | (arg1)->SetInitSize(arg2,arg3); | |
32171 | ||
32172 | wxPyEndAllowThreads(__tstate); | |
32173 | if (PyErr_Occurred()) SWIG_fail; | |
32174 | } | |
32175 | Py_INCREF(Py_None); resultobj = Py_None; | |
32176 | return resultobj; | |
32177 | fail: | |
32178 | return NULL; | |
32179 | } | |
32180 | ||
32181 | ||
32182 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32183 | PyObject *resultobj; | |
32184 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32185 | int arg2 ; | |
32186 | int arg3 ; | |
32187 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32188 | PyObject * obj1 = 0 ; |
32189 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32190 | char *kwnames[] = { |
32191 | (char *) "self",(char *) "width",(char *) "height", NULL | |
32192 | }; | |
32193 | ||
994141e6 | 32194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 32195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
32196 | { |
32197 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32198 | if (PyErr_Occurred()) SWIG_fail; | |
32199 | } | |
32200 | { | |
32201 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32202 | if (PyErr_Occurred()) SWIG_fail; | |
32203 | } | |
d14a1e28 RD |
32204 | { |
32205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32206 | (arg1)->SetRatio(arg2,arg3); | |
32207 | ||
32208 | wxPyEndAllowThreads(__tstate); | |
32209 | if (PyErr_Occurred()) SWIG_fail; | |
32210 | } | |
32211 | Py_INCREF(Py_None); resultobj = Py_None; | |
32212 | return resultobj; | |
32213 | fail: | |
32214 | return NULL; | |
32215 | } | |
32216 | ||
32217 | ||
32218 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32219 | PyObject *resultobj; | |
32220 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32221 | wxSize arg2 ; | |
32222 | wxSize *argp2 ; | |
32223 | PyObject * obj0 = 0 ; | |
32224 | PyObject * obj1 = 0 ; | |
32225 | char *kwnames[] = { | |
32226 | (char *) "self",(char *) "size", NULL | |
32227 | }; | |
32228 | ||
32229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
32230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32231 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32232 | arg2 = *argp2; | |
32233 | { | |
32234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32235 | (arg1)->SetRatio(arg2); | |
32236 | ||
32237 | wxPyEndAllowThreads(__tstate); | |
32238 | if (PyErr_Occurred()) SWIG_fail; | |
32239 | } | |
32240 | Py_INCREF(Py_None); resultobj = Py_None; | |
32241 | return resultobj; | |
32242 | fail: | |
32243 | return NULL; | |
32244 | } | |
32245 | ||
32246 | ||
32247 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32248 | PyObject *resultobj; | |
32249 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32250 | float arg2 ; | |
32251 | PyObject * obj0 = 0 ; | |
994141e6 | 32252 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32253 | char *kwnames[] = { |
32254 | (char *) "self",(char *) "ratio", NULL | |
32255 | }; | |
32256 | ||
994141e6 | 32257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
32259 | { |
32260 | arg2 = (float) SWIG_PyObj_AsFloat(obj1); | |
32261 | if (PyErr_Occurred()) SWIG_fail; | |
32262 | } | |
d14a1e28 RD |
32263 | { |
32264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32265 | (arg1)->SetRatio(arg2); | |
32266 | ||
32267 | wxPyEndAllowThreads(__tstate); | |
32268 | if (PyErr_Occurred()) SWIG_fail; | |
32269 | } | |
32270 | Py_INCREF(Py_None); resultobj = Py_None; | |
32271 | return resultobj; | |
32272 | fail: | |
32273 | return NULL; | |
32274 | } | |
32275 | ||
32276 | ||
32277 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32278 | PyObject *resultobj; | |
32279 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32280 | float result; | |
32281 | PyObject * obj0 = 0 ; | |
32282 | char *kwnames[] = { | |
32283 | (char *) "self", NULL | |
32284 | }; | |
32285 | ||
32286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
32287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32288 | { | |
32289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32290 | result = (float)(arg1)->GetRatio(); | |
32291 | ||
32292 | wxPyEndAllowThreads(__tstate); | |
32293 | if (PyErr_Occurred()) SWIG_fail; | |
32294 | } | |
994141e6 | 32295 | resultobj = SWIG_PyObj_FromFloat((float)result); |
d14a1e28 RD |
32296 | return resultobj; |
32297 | fail: | |
32298 | return NULL; | |
32299 | } | |
32300 | ||
32301 | ||
32302 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32303 | PyObject *resultobj; | |
32304 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32305 | bool result; | |
32306 | PyObject * obj0 = 0 ; | |
32307 | char *kwnames[] = { | |
32308 | (char *) "self", NULL | |
32309 | }; | |
32310 | ||
32311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
32312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32313 | { | |
32314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32315 | result = (bool)(arg1)->IsWindow(); | |
32316 | ||
32317 | wxPyEndAllowThreads(__tstate); | |
32318 | if (PyErr_Occurred()) SWIG_fail; | |
32319 | } | |
4d5c3d91 | 32320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
32321 | return resultobj; |
32322 | fail: | |
32323 | return NULL; | |
32324 | } | |
32325 | ||
32326 | ||
32327 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32328 | PyObject *resultobj; | |
32329 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32330 | bool result; | |
32331 | PyObject * obj0 = 0 ; | |
32332 | char *kwnames[] = { | |
32333 | (char *) "self", NULL | |
32334 | }; | |
32335 | ||
32336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
32337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32338 | { | |
32339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32340 | result = (bool)(arg1)->IsSizer(); | |
32341 | ||
32342 | wxPyEndAllowThreads(__tstate); | |
32343 | if (PyErr_Occurred()) SWIG_fail; | |
32344 | } | |
4d5c3d91 | 32345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
32346 | return resultobj; |
32347 | fail: | |
32348 | return NULL; | |
32349 | } | |
32350 | ||
32351 | ||
32352 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32353 | PyObject *resultobj; | |
32354 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32355 | bool result; | |
32356 | PyObject * obj0 = 0 ; | |
32357 | char *kwnames[] = { | |
32358 | (char *) "self", NULL | |
32359 | }; | |
32360 | ||
32361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
32362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32363 | { | |
32364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32365 | result = (bool)(arg1)->IsSpacer(); | |
32366 | ||
32367 | wxPyEndAllowThreads(__tstate); | |
32368 | if (PyErr_Occurred()) SWIG_fail; | |
32369 | } | |
4d5c3d91 | 32370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
32371 | return resultobj; |
32372 | fail: | |
32373 | return NULL; | |
32374 | } | |
32375 | ||
32376 | ||
32377 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32378 | PyObject *resultobj; | |
32379 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32380 | int arg2 ; | |
32381 | PyObject * obj0 = 0 ; | |
994141e6 | 32382 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32383 | char *kwnames[] = { |
32384 | (char *) "self",(char *) "proportion", NULL | |
32385 | }; | |
32386 | ||
994141e6 | 32387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
32389 | { |
32390 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32391 | if (PyErr_Occurred()) SWIG_fail; | |
32392 | } | |
d14a1e28 RD |
32393 | { |
32394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32395 | (arg1)->SetProportion(arg2); | |
32396 | ||
32397 | wxPyEndAllowThreads(__tstate); | |
32398 | if (PyErr_Occurred()) SWIG_fail; | |
32399 | } | |
32400 | Py_INCREF(Py_None); resultobj = Py_None; | |
32401 | return resultobj; | |
32402 | fail: | |
32403 | return NULL; | |
32404 | } | |
32405 | ||
32406 | ||
32407 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32408 | PyObject *resultobj; | |
32409 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32410 | int result; | |
32411 | PyObject * obj0 = 0 ; | |
32412 | char *kwnames[] = { | |
32413 | (char *) "self", NULL | |
32414 | }; | |
32415 | ||
32416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
32417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32418 | { | |
32419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32420 | result = (int)(arg1)->GetProportion(); | |
32421 | ||
32422 | wxPyEndAllowThreads(__tstate); | |
32423 | if (PyErr_Occurred()) SWIG_fail; | |
32424 | } | |
994141e6 | 32425 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
32426 | return resultobj; |
32427 | fail: | |
32428 | return NULL; | |
32429 | } | |
32430 | ||
32431 | ||
32432 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32433 | PyObject *resultobj; | |
32434 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32435 | int arg2 ; | |
32436 | PyObject * obj0 = 0 ; | |
994141e6 | 32437 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32438 | char *kwnames[] = { |
32439 | (char *) "self",(char *) "flag", NULL | |
32440 | }; | |
32441 | ||
994141e6 | 32442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
32444 | { |
32445 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32446 | if (PyErr_Occurred()) SWIG_fail; | |
32447 | } | |
d14a1e28 RD |
32448 | { |
32449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32450 | (arg1)->SetFlag(arg2); | |
32451 | ||
32452 | wxPyEndAllowThreads(__tstate); | |
32453 | if (PyErr_Occurred()) SWIG_fail; | |
32454 | } | |
32455 | Py_INCREF(Py_None); resultobj = Py_None; | |
32456 | return resultobj; | |
32457 | fail: | |
32458 | return NULL; | |
32459 | } | |
32460 | ||
32461 | ||
32462 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32463 | PyObject *resultobj; | |
32464 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32465 | int result; | |
32466 | PyObject * obj0 = 0 ; | |
32467 | char *kwnames[] = { | |
32468 | (char *) "self", NULL | |
32469 | }; | |
32470 | ||
32471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
32472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32473 | { | |
32474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32475 | result = (int)(arg1)->GetFlag(); | |
32476 | ||
32477 | wxPyEndAllowThreads(__tstate); | |
32478 | if (PyErr_Occurred()) SWIG_fail; | |
32479 | } | |
994141e6 | 32480 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
32481 | return resultobj; |
32482 | fail: | |
32483 | return NULL; | |
32484 | } | |
32485 | ||
32486 | ||
32487 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32488 | PyObject *resultobj; | |
32489 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32490 | int arg2 ; | |
32491 | PyObject * obj0 = 0 ; | |
994141e6 | 32492 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32493 | char *kwnames[] = { |
32494 | (char *) "self",(char *) "border", NULL | |
32495 | }; | |
32496 | ||
994141e6 | 32497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
32499 | { |
32500 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32501 | if (PyErr_Occurred()) SWIG_fail; | |
32502 | } | |
d14a1e28 RD |
32503 | { |
32504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32505 | (arg1)->SetBorder(arg2); | |
32506 | ||
32507 | wxPyEndAllowThreads(__tstate); | |
32508 | if (PyErr_Occurred()) SWIG_fail; | |
32509 | } | |
32510 | Py_INCREF(Py_None); resultobj = Py_None; | |
32511 | return resultobj; | |
32512 | fail: | |
32513 | return NULL; | |
32514 | } | |
32515 | ||
32516 | ||
32517 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32518 | PyObject *resultobj; | |
32519 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32520 | int result; | |
32521 | PyObject * obj0 = 0 ; | |
32522 | char *kwnames[] = { | |
32523 | (char *) "self", NULL | |
32524 | }; | |
32525 | ||
32526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
32527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32528 | { | |
32529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32530 | result = (int)(arg1)->GetBorder(); | |
32531 | ||
32532 | wxPyEndAllowThreads(__tstate); | |
32533 | if (PyErr_Occurred()) SWIG_fail; | |
32534 | } | |
994141e6 | 32535 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
32536 | return resultobj; |
32537 | fail: | |
32538 | return NULL; | |
32539 | } | |
32540 | ||
32541 | ||
32542 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32543 | PyObject *resultobj; | |
32544 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32545 | wxWindow *result; | |
32546 | PyObject * obj0 = 0 ; | |
32547 | char *kwnames[] = { | |
32548 | (char *) "self", NULL | |
32549 | }; | |
32550 | ||
32551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
32552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32553 | { | |
32554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32555 | result = (wxWindow *)(arg1)->GetWindow(); | |
32556 | ||
32557 | wxPyEndAllowThreads(__tstate); | |
32558 | if (PyErr_Occurred()) SWIG_fail; | |
32559 | } | |
32560 | { | |
32561 | resultobj = wxPyMake_wxObject(result); | |
32562 | } | |
32563 | return resultobj; | |
32564 | fail: | |
32565 | return NULL; | |
32566 | } | |
32567 | ||
32568 | ||
32569 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32570 | PyObject *resultobj; | |
32571 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32572 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32573 | PyObject * obj0 = 0 ; | |
32574 | PyObject * obj1 = 0 ; | |
32575 | char *kwnames[] = { | |
32576 | (char *) "self",(char *) "window", NULL | |
32577 | }; | |
32578 | ||
32579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
32580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32581 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32582 | { | |
32583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32584 | (arg1)->SetWindow(arg2); | |
32585 | ||
32586 | wxPyEndAllowThreads(__tstate); | |
32587 | if (PyErr_Occurred()) SWIG_fail; | |
32588 | } | |
32589 | Py_INCREF(Py_None); resultobj = Py_None; | |
32590 | return resultobj; | |
32591 | fail: | |
32592 | return NULL; | |
32593 | } | |
32594 | ||
32595 | ||
32596 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32597 | PyObject *resultobj; | |
32598 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32599 | wxSizer *result; | |
32600 | PyObject * obj0 = 0 ; | |
32601 | char *kwnames[] = { | |
32602 | (char *) "self", NULL | |
32603 | }; | |
32604 | ||
32605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
32606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32607 | { | |
32608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32609 | result = (wxSizer *)(arg1)->GetSizer(); | |
32610 | ||
32611 | wxPyEndAllowThreads(__tstate); | |
32612 | if (PyErr_Occurred()) SWIG_fail; | |
32613 | } | |
32614 | { | |
32615 | resultobj = wxPyMake_wxSizer(result); | |
32616 | } | |
32617 | return resultobj; | |
32618 | fail: | |
32619 | return NULL; | |
32620 | } | |
32621 | ||
32622 | ||
32623 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32624 | PyObject *resultobj; | |
32625 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32626 | wxSizer *arg2 = (wxSizer *) 0 ; | |
32627 | PyObject * obj0 = 0 ; | |
32628 | PyObject * obj1 = 0 ; | |
32629 | char *kwnames[] = { | |
32630 | (char *) "self",(char *) "sizer", NULL | |
32631 | }; | |
32632 | ||
32633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
32634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32635 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32636 | { | |
32637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32638 | (arg1)->SetSizer(arg2); | |
32639 | ||
32640 | wxPyEndAllowThreads(__tstate); | |
32641 | if (PyErr_Occurred()) SWIG_fail; | |
32642 | } | |
32643 | Py_INCREF(Py_None); resultobj = Py_None; | |
32644 | return resultobj; | |
32645 | fail: | |
32646 | return NULL; | |
32647 | } | |
32648 | ||
32649 | ||
32650 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32651 | PyObject *resultobj; | |
32652 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32653 | wxSize *result; | |
32654 | PyObject * obj0 = 0 ; | |
32655 | char *kwnames[] = { | |
32656 | (char *) "self", NULL | |
32657 | }; | |
32658 | ||
32659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
32660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32661 | { | |
32662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32663 | { | |
32664 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
32665 | result = (wxSize *) &_result_ref; | |
32666 | } | |
32667 | ||
32668 | wxPyEndAllowThreads(__tstate); | |
32669 | if (PyErr_Occurred()) SWIG_fail; | |
32670 | } | |
32671 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
32672 | return resultobj; | |
32673 | fail: | |
32674 | return NULL; | |
32675 | } | |
32676 | ||
32677 | ||
32678 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32679 | PyObject *resultobj; | |
32680 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32681 | wxSize *arg2 = 0 ; | |
32682 | wxSize temp2 ; | |
32683 | PyObject * obj0 = 0 ; | |
32684 | PyObject * obj1 = 0 ; | |
32685 | char *kwnames[] = { | |
32686 | (char *) "self",(char *) "size", NULL | |
32687 | }; | |
32688 | ||
32689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
32690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32691 | { | |
32692 | arg2 = &temp2; | |
32693 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
32694 | } | |
32695 | { | |
32696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32697 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
32698 | ||
32699 | wxPyEndAllowThreads(__tstate); | |
32700 | if (PyErr_Occurred()) SWIG_fail; | |
32701 | } | |
32702 | Py_INCREF(Py_None); resultobj = Py_None; | |
32703 | return resultobj; | |
32704 | fail: | |
32705 | return NULL; | |
32706 | } | |
32707 | ||
32708 | ||
32709 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32710 | PyObject *resultobj; | |
32711 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32712 | bool arg2 ; | |
32713 | PyObject * obj0 = 0 ; | |
32714 | PyObject * obj1 = 0 ; | |
32715 | char *kwnames[] = { | |
32716 | (char *) "self",(char *) "show", NULL | |
32717 | }; | |
32718 | ||
32719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
32720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 32721 | { |
994141e6 | 32722 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
32723 | if (PyErr_Occurred()) SWIG_fail; |
32724 | } | |
d14a1e28 RD |
32725 | { |
32726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32727 | (arg1)->Show(arg2); | |
32728 | ||
32729 | wxPyEndAllowThreads(__tstate); | |
32730 | if (PyErr_Occurred()) SWIG_fail; | |
32731 | } | |
32732 | Py_INCREF(Py_None); resultobj = Py_None; | |
32733 | return resultobj; | |
32734 | fail: | |
32735 | return NULL; | |
32736 | } | |
32737 | ||
32738 | ||
32739 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32740 | PyObject *resultobj; | |
32741 | wxSizerItem *arg1 = (wxSizerItem *) 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:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
32749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32750 | { | |
32751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32752 | result = (bool)(arg1)->IsShown(); | |
32753 | ||
32754 | wxPyEndAllowThreads(__tstate); | |
32755 | if (PyErr_Occurred()) SWIG_fail; | |
32756 | } | |
4d5c3d91 | 32757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
32758 | return resultobj; |
32759 | fail: | |
32760 | return NULL; | |
32761 | } | |
32762 | ||
32763 | ||
32764 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32765 | PyObject *resultobj; | |
32766 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32767 | wxPoint result; | |
32768 | PyObject * obj0 = 0 ; | |
32769 | char *kwnames[] = { | |
32770 | (char *) "self", NULL | |
32771 | }; | |
32772 | ||
32773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
32774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32775 | { | |
32776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32777 | result = (arg1)->GetPosition(); | |
32778 | ||
32779 | wxPyEndAllowThreads(__tstate); | |
32780 | if (PyErr_Occurred()) SWIG_fail; | |
32781 | } | |
32782 | { | |
32783 | wxPoint * resultptr; | |
32784 | resultptr = new wxPoint((wxPoint &) result); | |
32785 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
32786 | } | |
32787 | return resultobj; | |
32788 | fail: | |
32789 | return NULL; | |
32790 | } | |
32791 | ||
32792 | ||
32793 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32794 | PyObject *resultobj; | |
32795 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32796 | PyObject *result; | |
32797 | PyObject * obj0 = 0 ; | |
32798 | char *kwnames[] = { | |
32799 | (char *) "self", NULL | |
32800 | }; | |
32801 | ||
32802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
32803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32804 | { | |
32805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32806 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
32807 | ||
32808 | wxPyEndAllowThreads(__tstate); | |
32809 | if (PyErr_Occurred()) SWIG_fail; | |
32810 | } | |
32811 | resultobj = result; | |
32812 | return resultobj; | |
32813 | fail: | |
32814 | return NULL; | |
32815 | } | |
32816 | ||
32817 | ||
32818 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
32819 | PyObject *obj; | |
32820 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32821 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
32822 | Py_INCREF(obj); | |
32823 | return Py_BuildValue((char *)""); | |
32824 | } | |
32825 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32826 | PyObject *resultobj; | |
32827 | wxSizer *arg1 = (wxSizer *) 0 ; | |
32828 | PyObject *arg2 = (PyObject *) 0 ; | |
32829 | PyObject * obj0 = 0 ; | |
32830 | PyObject * obj1 = 0 ; | |
32831 | char *kwnames[] = { | |
32832 | (char *) "self",(char *) "_self", NULL | |
32833 | }; | |
32834 | ||
32835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
32836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32837 | arg2 = obj1; | |
32838 | { | |
32839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32840 | wxSizer__setOORInfo(arg1,arg2); | |
32841 | ||
32842 | wxPyEndAllowThreads(__tstate); | |
32843 | if (PyErr_Occurred()) SWIG_fail; | |
32844 | } | |
32845 | Py_INCREF(Py_None); resultobj = Py_None; | |
32846 | return resultobj; | |
32847 | fail: | |
32848 | return NULL; | |
32849 | } | |
32850 | ||
32851 | ||
32852 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32853 | PyObject *resultobj; | |
32854 | wxSizer *arg1 = (wxSizer *) 0 ; | |
32855 | PyObject *arg2 = (PyObject *) 0 ; | |
32856 | int arg3 = (int) 0 ; | |
32857 | int arg4 = (int) 0 ; | |
32858 | int arg5 = (int) 0 ; | |
32859 | PyObject *arg6 = (PyObject *) NULL ; | |
32860 | PyObject * obj0 = 0 ; | |
32861 | PyObject * obj1 = 0 ; | |
994141e6 RD |
32862 | PyObject * obj2 = 0 ; |
32863 | PyObject * obj3 = 0 ; | |
32864 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
32865 | PyObject * obj5 = 0 ; |
32866 | char *kwnames[] = { | |
32867 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32868 | }; | |
32869 | ||
994141e6 | 32870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
32871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
32872 | arg2 = obj1; | |
994141e6 RD |
32873 | if (obj2) { |
32874 | { | |
32875 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32876 | if (PyErr_Occurred()) SWIG_fail; | |
32877 | } | |
32878 | } | |
32879 | if (obj3) { | |
32880 | { | |
32881 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
32882 | if (PyErr_Occurred()) SWIG_fail; | |
32883 | } | |
32884 | } | |
32885 | if (obj4) { | |
32886 | { | |
32887 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
32888 | if (PyErr_Occurred()) SWIG_fail; | |
32889 | } | |
32890 | } | |
d14a1e28 RD |
32891 | if (obj5) { |
32892 | arg6 = obj5; | |
32893 | } | |
32894 | { | |
32895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32896 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
32897 | ||
32898 | wxPyEndAllowThreads(__tstate); | |
32899 | if (PyErr_Occurred()) SWIG_fail; | |
32900 | } | |
32901 | Py_INCREF(Py_None); resultobj = Py_None; | |
32902 | return resultobj; | |
32903 | fail: | |
32904 | return NULL; | |
32905 | } | |
32906 | ||
32907 | ||
32908 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32909 | PyObject *resultobj; | |
32910 | wxSizer *arg1 = (wxSizer *) 0 ; | |
32911 | int arg2 ; | |
32912 | PyObject *arg3 = (PyObject *) 0 ; | |
32913 | int arg4 = (int) 0 ; | |
32914 | int arg5 = (int) 0 ; | |
32915 | int arg6 = (int) 0 ; | |
32916 | PyObject *arg7 = (PyObject *) NULL ; | |
32917 | PyObject * obj0 = 0 ; | |
994141e6 | 32918 | PyObject * obj1 = 0 ; |
d14a1e28 | 32919 | PyObject * obj2 = 0 ; |
994141e6 RD |
32920 | PyObject * obj3 = 0 ; |
32921 | PyObject * obj4 = 0 ; | |
32922 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
32923 | PyObject * obj6 = 0 ; |
32924 | char *kwnames[] = { | |
32925 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32926 | }; | |
32927 | ||
994141e6 | 32928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 32929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
32930 | { |
32931 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32932 | if (PyErr_Occurred()) SWIG_fail; | |
32933 | } | |
d14a1e28 | 32934 | arg3 = obj2; |
994141e6 RD |
32935 | if (obj3) { |
32936 | { | |
32937 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
32938 | if (PyErr_Occurred()) SWIG_fail; | |
32939 | } | |
32940 | } | |
32941 | if (obj4) { | |
32942 | { | |
32943 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
32944 | if (PyErr_Occurred()) SWIG_fail; | |
32945 | } | |
32946 | } | |
32947 | if (obj5) { | |
32948 | { | |
32949 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
32950 | if (PyErr_Occurred()) SWIG_fail; | |
32951 | } | |
32952 | } | |
d14a1e28 RD |
32953 | if (obj6) { |
32954 | arg7 = obj6; | |
32955 | } | |
32956 | { | |
32957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32958 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
32959 | ||
32960 | wxPyEndAllowThreads(__tstate); | |
32961 | if (PyErr_Occurred()) SWIG_fail; | |
32962 | } | |
32963 | Py_INCREF(Py_None); resultobj = Py_None; | |
32964 | return resultobj; | |
32965 | fail: | |
32966 | return NULL; | |
32967 | } | |
32968 | ||
32969 | ||
32970 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32971 | PyObject *resultobj; | |
32972 | wxSizer *arg1 = (wxSizer *) 0 ; | |
32973 | PyObject *arg2 = (PyObject *) 0 ; | |
32974 | int arg3 = (int) 0 ; | |
32975 | int arg4 = (int) 0 ; | |
32976 | int arg5 = (int) 0 ; | |
32977 | PyObject *arg6 = (PyObject *) NULL ; | |
32978 | PyObject * obj0 = 0 ; | |
32979 | PyObject * obj1 = 0 ; | |
994141e6 RD |
32980 | PyObject * obj2 = 0 ; |
32981 | PyObject * obj3 = 0 ; | |
32982 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
32983 | PyObject * obj5 = 0 ; |
32984 | char *kwnames[] = { | |
32985 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32986 | }; | |
32987 | ||
994141e6 | 32988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
32989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
32990 | arg2 = obj1; | |
994141e6 RD |
32991 | if (obj2) { |
32992 | { | |
32993 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32994 | if (PyErr_Occurred()) SWIG_fail; | |
32995 | } | |
32996 | } | |
32997 | if (obj3) { | |
32998 | { | |
32999 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
33000 | if (PyErr_Occurred()) SWIG_fail; | |
33001 | } | |
33002 | } | |
33003 | if (obj4) { | |
33004 | { | |
33005 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
33006 | if (PyErr_Occurred()) SWIG_fail; | |
33007 | } | |
33008 | } | |
d14a1e28 RD |
33009 | if (obj5) { |
33010 | arg6 = obj5; | |
33011 | } | |
33012 | { | |
33013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33014 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
33015 | ||
33016 | wxPyEndAllowThreads(__tstate); | |
33017 | if (PyErr_Occurred()) SWIG_fail; | |
33018 | } | |
33019 | Py_INCREF(Py_None); resultobj = Py_None; | |
33020 | return resultobj; | |
33021 | fail: | |
33022 | return NULL; | |
33023 | } | |
33024 | ||
33025 | ||
33026 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33027 | PyObject *resultobj; | |
33028 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33029 | PyObject *arg2 = (PyObject *) 0 ; | |
33030 | bool result; | |
33031 | PyObject * obj0 = 0 ; | |
33032 | PyObject * obj1 = 0 ; | |
33033 | char *kwnames[] = { | |
33034 | (char *) "self",(char *) "item", NULL | |
33035 | }; | |
33036 | ||
33037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
33038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33039 | arg2 = obj1; | |
33040 | { | |
33041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33042 | result = (bool)wxSizer_Remove(arg1,arg2); | |
33043 | ||
33044 | wxPyEndAllowThreads(__tstate); | |
33045 | if (PyErr_Occurred()) SWIG_fail; | |
33046 | } | |
4d5c3d91 | 33047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
33048 | return resultobj; |
33049 | fail: | |
33050 | return NULL; | |
33051 | } | |
33052 | ||
33053 | ||
33054 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33055 | PyObject *resultobj; | |
33056 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33057 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce RD |
33058 | wxSize *arg3 = 0 ; |
33059 | wxSize temp3 ; | |
d14a1e28 RD |
33060 | PyObject * obj0 = 0 ; |
33061 | PyObject * obj1 = 0 ; | |
33062 | PyObject * obj2 = 0 ; | |
33063 | char *kwnames[] = { | |
33064 | (char *) "self",(char *) "item",(char *) "size", NULL | |
33065 | }; | |
33066 | ||
33067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33069 | arg2 = obj1; | |
e811c8ce RD |
33070 | { |
33071 | arg3 = &temp3; | |
33072 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
33073 | } | |
d14a1e28 RD |
33074 | { |
33075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 33076 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
33077 | |
33078 | wxPyEndAllowThreads(__tstate); | |
33079 | if (PyErr_Occurred()) SWIG_fail; | |
33080 | } | |
33081 | Py_INCREF(Py_None); resultobj = Py_None; | |
33082 | return resultobj; | |
33083 | fail: | |
33084 | return NULL; | |
33085 | } | |
33086 | ||
33087 | ||
33088 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33089 | PyObject *resultobj; | |
33090 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33091 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
33092 | PyObject * obj0 = 0 ; | |
33093 | PyObject * obj1 = 0 ; | |
33094 | char *kwnames[] = { | |
33095 | (char *) "self",(char *) "item", NULL | |
33096 | }; | |
33097 | ||
33098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
33099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33100 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33101 | { | |
33102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33103 | (arg1)->Add(arg2); | |
33104 | ||
33105 | wxPyEndAllowThreads(__tstate); | |
33106 | if (PyErr_Occurred()) SWIG_fail; | |
33107 | } | |
33108 | Py_INCREF(Py_None); resultobj = Py_None; | |
33109 | return resultobj; | |
33110 | fail: | |
33111 | return NULL; | |
33112 | } | |
33113 | ||
33114 | ||
33115 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33116 | PyObject *resultobj; | |
33117 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33118 | size_t arg2 ; | |
33119 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
33120 | PyObject * obj0 = 0 ; | |
33121 | PyObject * obj1 = 0 ; | |
33122 | PyObject * obj2 = 0 ; | |
33123 | char *kwnames[] = { | |
33124 | (char *) "self",(char *) "index",(char *) "item", NULL | |
33125 | }; | |
33126 | ||
33127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 33129 | { |
994141e6 | 33130 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
33131 | if (PyErr_Occurred()) SWIG_fail; |
33132 | } | |
d14a1e28 RD |
33133 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
33134 | { | |
33135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33136 | (arg1)->Insert(arg2,arg3); | |
33137 | ||
33138 | wxPyEndAllowThreads(__tstate); | |
33139 | if (PyErr_Occurred()) SWIG_fail; | |
33140 | } | |
33141 | Py_INCREF(Py_None); resultobj = Py_None; | |
33142 | return resultobj; | |
33143 | fail: | |
33144 | return NULL; | |
33145 | } | |
33146 | ||
33147 | ||
33148 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33149 | PyObject *resultobj; | |
33150 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33151 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
33152 | PyObject * obj0 = 0 ; | |
33153 | PyObject * obj1 = 0 ; | |
33154 | char *kwnames[] = { | |
33155 | (char *) "self",(char *) "item", NULL | |
33156 | }; | |
33157 | ||
33158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
33159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33160 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33161 | { | |
33162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33163 | (arg1)->Prepend(arg2); | |
33164 | ||
33165 | wxPyEndAllowThreads(__tstate); | |
33166 | if (PyErr_Occurred()) SWIG_fail; | |
33167 | } | |
33168 | Py_INCREF(Py_None); resultobj = Py_None; | |
33169 | return resultobj; | |
33170 | fail: | |
33171 | return NULL; | |
33172 | } | |
33173 | ||
33174 | ||
33175 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33176 | PyObject *resultobj; | |
33177 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33178 | int arg2 ; | |
33179 | int arg3 ; | |
33180 | int arg4 ; | |
33181 | int arg5 ; | |
33182 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33183 | PyObject * obj1 = 0 ; |
33184 | PyObject * obj2 = 0 ; | |
33185 | PyObject * obj3 = 0 ; | |
33186 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33187 | char *kwnames[] = { |
33188 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
33189 | }; | |
33190 | ||
994141e6 | 33191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 33192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
33193 | { |
33194 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
33195 | if (PyErr_Occurred()) SWIG_fail; | |
33196 | } | |
33197 | { | |
33198 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
33199 | if (PyErr_Occurred()) SWIG_fail; | |
33200 | } | |
33201 | { | |
33202 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
33203 | if (PyErr_Occurred()) SWIG_fail; | |
33204 | } | |
33205 | { | |
33206 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
33207 | if (PyErr_Occurred()) SWIG_fail; | |
33208 | } | |
d14a1e28 RD |
33209 | { |
33210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33211 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
33212 | ||
33213 | wxPyEndAllowThreads(__tstate); | |
33214 | if (PyErr_Occurred()) SWIG_fail; | |
33215 | } | |
33216 | Py_INCREF(Py_None); resultobj = Py_None; | |
33217 | return resultobj; | |
33218 | fail: | |
33219 | return NULL; | |
33220 | } | |
33221 | ||
33222 | ||
33223 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33224 | PyObject *resultobj; | |
33225 | wxSizer *arg1 = (wxSizer *) 0 ; | |
1fc9204a RD |
33226 | wxSize *arg2 = 0 ; |
33227 | wxSize temp2 ; | |
d14a1e28 RD |
33228 | PyObject * obj0 = 0 ; |
33229 | PyObject * obj1 = 0 ; | |
33230 | char *kwnames[] = { | |
33231 | (char *) "self",(char *) "size", NULL | |
33232 | }; | |
33233 | ||
33234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
33235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1fc9204a RD |
33236 | { |
33237 | arg2 = &temp2; | |
33238 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33239 | } | |
d14a1e28 RD |
33240 | { |
33241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1fc9204a | 33242 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
33243 | |
33244 | wxPyEndAllowThreads(__tstate); | |
33245 | if (PyErr_Occurred()) SWIG_fail; | |
33246 | } | |
33247 | Py_INCREF(Py_None); resultobj = Py_None; | |
33248 | return resultobj; | |
33249 | fail: | |
33250 | return NULL; | |
33251 | } | |
33252 | ||
33253 | ||
33254 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33255 | PyObject *resultobj; | |
33256 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33257 | wxSize result; | |
33258 | PyObject * obj0 = 0 ; | |
33259 | char *kwnames[] = { | |
33260 | (char *) "self", NULL | |
33261 | }; | |
33262 | ||
33263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
33264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33265 | { | |
33266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33267 | result = (arg1)->GetSize(); | |
33268 | ||
33269 | wxPyEndAllowThreads(__tstate); | |
33270 | if (PyErr_Occurred()) SWIG_fail; | |
33271 | } | |
33272 | { | |
33273 | wxSize * resultptr; | |
33274 | resultptr = new wxSize((wxSize &) result); | |
33275 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33276 | } | |
33277 | return resultobj; | |
33278 | fail: | |
33279 | return NULL; | |
33280 | } | |
33281 | ||
33282 | ||
33283 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33284 | PyObject *resultobj; | |
33285 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33286 | wxPoint result; | |
33287 | PyObject * obj0 = 0 ; | |
33288 | char *kwnames[] = { | |
33289 | (char *) "self", NULL | |
33290 | }; | |
33291 | ||
33292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
33293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33294 | { | |
33295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33296 | result = (arg1)->GetPosition(); | |
33297 | ||
33298 | wxPyEndAllowThreads(__tstate); | |
33299 | if (PyErr_Occurred()) SWIG_fail; | |
33300 | } | |
33301 | { | |
33302 | wxPoint * resultptr; | |
33303 | resultptr = new wxPoint((wxPoint &) result); | |
33304 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
33305 | } | |
33306 | return resultobj; | |
33307 | fail: | |
33308 | return NULL; | |
33309 | } | |
33310 | ||
33311 | ||
33312 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33313 | PyObject *resultobj; | |
33314 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33315 | wxSize result; | |
33316 | PyObject * obj0 = 0 ; | |
33317 | char *kwnames[] = { | |
33318 | (char *) "self", NULL | |
33319 | }; | |
33320 | ||
33321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
33322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33323 | { | |
33324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33325 | result = (arg1)->GetMinSize(); | |
33326 | ||
33327 | wxPyEndAllowThreads(__tstate); | |
33328 | if (PyErr_Occurred()) SWIG_fail; | |
33329 | } | |
33330 | { | |
33331 | wxSize * resultptr; | |
33332 | resultptr = new wxSize((wxSize &) result); | |
33333 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33334 | } | |
33335 | return resultobj; | |
33336 | fail: | |
33337 | return NULL; | |
33338 | } | |
33339 | ||
33340 | ||
33341 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33342 | PyObject *resultobj; | |
33343 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33344 | PyObject * obj0 = 0 ; | |
33345 | char *kwnames[] = { | |
33346 | (char *) "self", NULL | |
33347 | }; | |
33348 | ||
33349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
33350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33351 | { | |
33352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33353 | (arg1)->RecalcSizes(); | |
33354 | ||
33355 | wxPyEndAllowThreads(__tstate); | |
33356 | if (PyErr_Occurred()) SWIG_fail; | |
33357 | } | |
33358 | Py_INCREF(Py_None); resultobj = Py_None; | |
33359 | return resultobj; | |
33360 | fail: | |
33361 | return NULL; | |
33362 | } | |
33363 | ||
33364 | ||
33365 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33366 | PyObject *resultobj; | |
33367 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33368 | wxSize result; | |
33369 | PyObject * obj0 = 0 ; | |
33370 | char *kwnames[] = { | |
33371 | (char *) "self", NULL | |
33372 | }; | |
33373 | ||
33374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
33375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33376 | { | |
33377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33378 | result = (arg1)->CalcMin(); | |
33379 | ||
33380 | wxPyEndAllowThreads(__tstate); | |
33381 | if (PyErr_Occurred()) SWIG_fail; | |
33382 | } | |
33383 | { | |
33384 | wxSize * resultptr; | |
33385 | resultptr = new wxSize((wxSize &) result); | |
33386 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33387 | } | |
33388 | return resultobj; | |
33389 | fail: | |
33390 | return NULL; | |
33391 | } | |
33392 | ||
33393 | ||
33394 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33395 | PyObject *resultobj; | |
33396 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33397 | PyObject * obj0 = 0 ; | |
33398 | char *kwnames[] = { | |
33399 | (char *) "self", NULL | |
33400 | }; | |
33401 | ||
33402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
33403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33404 | { | |
33405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33406 | (arg1)->Layout(); | |
33407 | ||
33408 | wxPyEndAllowThreads(__tstate); | |
33409 | if (PyErr_Occurred()) SWIG_fail; | |
33410 | } | |
33411 | Py_INCREF(Py_None); resultobj = Py_None; | |
33412 | return resultobj; | |
33413 | fail: | |
33414 | return NULL; | |
33415 | } | |
33416 | ||
33417 | ||
33418 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33419 | PyObject *resultobj; | |
33420 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33421 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33422 | wxSize result; | |
33423 | PyObject * obj0 = 0 ; | |
33424 | PyObject * obj1 = 0 ; | |
33425 | char *kwnames[] = { | |
33426 | (char *) "self",(char *) "window", NULL | |
33427 | }; | |
33428 | ||
33429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
33430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33431 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33432 | { | |
33433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33434 | result = (arg1)->Fit(arg2); | |
33435 | ||
33436 | wxPyEndAllowThreads(__tstate); | |
33437 | if (PyErr_Occurred()) SWIG_fail; | |
33438 | } | |
33439 | { | |
33440 | wxSize * resultptr; | |
33441 | resultptr = new wxSize((wxSize &) result); | |
33442 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33443 | } | |
33444 | return resultobj; | |
33445 | fail: | |
33446 | return NULL; | |
33447 | } | |
33448 | ||
33449 | ||
33450 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33451 | PyObject *resultobj; | |
33452 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33453 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33454 | PyObject * obj0 = 0 ; | |
33455 | PyObject * obj1 = 0 ; | |
33456 | char *kwnames[] = { | |
33457 | (char *) "self",(char *) "window", NULL | |
33458 | }; | |
33459 | ||
33460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
33461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33462 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33463 | { | |
33464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33465 | (arg1)->FitInside(arg2); | |
33466 | ||
33467 | wxPyEndAllowThreads(__tstate); | |
33468 | if (PyErr_Occurred()) SWIG_fail; | |
33469 | } | |
33470 | Py_INCREF(Py_None); resultobj = Py_None; | |
33471 | return resultobj; | |
33472 | fail: | |
33473 | return NULL; | |
33474 | } | |
33475 | ||
33476 | ||
33477 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33478 | PyObject *resultobj; | |
33479 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33480 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33481 | PyObject * obj0 = 0 ; | |
33482 | PyObject * obj1 = 0 ; | |
33483 | char *kwnames[] = { | |
33484 | (char *) "self",(char *) "window", NULL | |
33485 | }; | |
33486 | ||
33487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
33488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33489 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33490 | { | |
33491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33492 | (arg1)->SetSizeHints(arg2); | |
33493 | ||
33494 | wxPyEndAllowThreads(__tstate); | |
33495 | if (PyErr_Occurred()) SWIG_fail; | |
33496 | } | |
33497 | Py_INCREF(Py_None); resultobj = Py_None; | |
33498 | return resultobj; | |
33499 | fail: | |
33500 | return NULL; | |
33501 | } | |
33502 | ||
33503 | ||
33504 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33505 | PyObject *resultobj; | |
33506 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33507 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33508 | PyObject * obj0 = 0 ; | |
33509 | PyObject * obj1 = 0 ; | |
33510 | char *kwnames[] = { | |
33511 | (char *) "self",(char *) "window", NULL | |
33512 | }; | |
33513 | ||
33514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
33515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33516 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33517 | { | |
33518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33519 | (arg1)->SetVirtualSizeHints(arg2); | |
33520 | ||
33521 | wxPyEndAllowThreads(__tstate); | |
33522 | if (PyErr_Occurred()) SWIG_fail; | |
33523 | } | |
33524 | Py_INCREF(Py_None); resultobj = Py_None; | |
33525 | return resultobj; | |
33526 | fail: | |
33527 | return NULL; | |
33528 | } | |
33529 | ||
33530 | ||
33531 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33532 | PyObject *resultobj; | |
33533 | wxSizer *arg1 = (wxSizer *) 0 ; | |
e811c8ce | 33534 | bool arg2 = (bool) False ; |
d14a1e28 RD |
33535 | PyObject * obj0 = 0 ; |
33536 | PyObject * obj1 = 0 ; | |
33537 | char *kwnames[] = { | |
33538 | (char *) "self",(char *) "delete_windows", NULL | |
33539 | }; | |
33540 | ||
33541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
33542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33543 | if (obj1) { | |
a41e16b6 | 33544 | { |
994141e6 | 33545 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
33546 | if (PyErr_Occurred()) SWIG_fail; |
33547 | } | |
d14a1e28 RD |
33548 | } |
33549 | { | |
33550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33551 | (arg1)->Clear(arg2); | |
33552 | ||
33553 | wxPyEndAllowThreads(__tstate); | |
33554 | if (PyErr_Occurred()) SWIG_fail; | |
33555 | } | |
33556 | Py_INCREF(Py_None); resultobj = Py_None; | |
33557 | return resultobj; | |
33558 | fail: | |
33559 | return NULL; | |
33560 | } | |
33561 | ||
33562 | ||
33563 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33564 | PyObject *resultobj; | |
33565 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33566 | PyObject * obj0 = 0 ; | |
33567 | char *kwnames[] = { | |
33568 | (char *) "self", NULL | |
33569 | }; | |
33570 | ||
33571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
33572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33573 | { | |
33574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33575 | (arg1)->DeleteWindows(); | |
33576 | ||
33577 | wxPyEndAllowThreads(__tstate); | |
33578 | if (PyErr_Occurred()) SWIG_fail; | |
33579 | } | |
33580 | Py_INCREF(Py_None); resultobj = Py_None; | |
33581 | return resultobj; | |
33582 | fail: | |
33583 | return NULL; | |
33584 | } | |
33585 | ||
33586 | ||
33587 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33588 | PyObject *resultobj; | |
33589 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33590 | PyObject *result; | |
33591 | PyObject * obj0 = 0 ; | |
33592 | char *kwnames[] = { | |
33593 | (char *) "self", NULL | |
33594 | }; | |
33595 | ||
33596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
33597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33598 | { | |
33599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33600 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
33601 | ||
33602 | wxPyEndAllowThreads(__tstate); | |
33603 | if (PyErr_Occurred()) SWIG_fail; | |
33604 | } | |
33605 | resultobj = result; | |
33606 | return resultobj; | |
33607 | fail: | |
33608 | return NULL; | |
33609 | } | |
33610 | ||
33611 | ||
33612 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33613 | PyObject *resultobj; | |
33614 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33615 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce | 33616 | bool arg3 = (bool) True ; |
d14a1e28 RD |
33617 | PyObject * obj0 = 0 ; |
33618 | PyObject * obj1 = 0 ; | |
33619 | PyObject * obj2 = 0 ; | |
33620 | char *kwnames[] = { | |
33621 | (char *) "self",(char *) "item",(char *) "show", NULL | |
33622 | }; | |
33623 | ||
33624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33626 | arg2 = obj1; | |
33627 | if (obj2) { | |
a41e16b6 | 33628 | { |
994141e6 | 33629 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
33630 | if (PyErr_Occurred()) SWIG_fail; |
33631 | } | |
d14a1e28 RD |
33632 | } |
33633 | { | |
33634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33635 | wxSizer_Show(arg1,arg2,arg3); | |
33636 | ||
33637 | wxPyEndAllowThreads(__tstate); | |
33638 | if (PyErr_Occurred()) SWIG_fail; | |
33639 | } | |
33640 | Py_INCREF(Py_None); resultobj = Py_None; | |
33641 | return resultobj; | |
33642 | fail: | |
33643 | return NULL; | |
33644 | } | |
33645 | ||
33646 | ||
33647 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33648 | PyObject *resultobj; | |
33649 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33650 | PyObject *arg2 = (PyObject *) 0 ; | |
33651 | PyObject * obj0 = 0 ; | |
33652 | PyObject * obj1 = 0 ; | |
33653 | char *kwnames[] = { | |
33654 | (char *) "self",(char *) "item", NULL | |
33655 | }; | |
33656 | ||
33657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
33658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33659 | arg2 = obj1; | |
33660 | { | |
33661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33662 | wxSizer_Hide(arg1,arg2); | |
33663 | ||
33664 | wxPyEndAllowThreads(__tstate); | |
33665 | if (PyErr_Occurred()) SWIG_fail; | |
33666 | } | |
33667 | Py_INCREF(Py_None); resultobj = Py_None; | |
33668 | return resultobj; | |
33669 | fail: | |
33670 | return NULL; | |
33671 | } | |
33672 | ||
33673 | ||
33674 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33675 | PyObject *resultobj; | |
33676 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33677 | PyObject *arg2 = (PyObject *) 0 ; | |
33678 | bool result; | |
33679 | PyObject * obj0 = 0 ; | |
33680 | PyObject * obj1 = 0 ; | |
33681 | char *kwnames[] = { | |
33682 | (char *) "self",(char *) "item", NULL | |
33683 | }; | |
33684 | ||
33685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
33686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33687 | arg2 = obj1; | |
33688 | { | |
33689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33690 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
33691 | ||
33692 | wxPyEndAllowThreads(__tstate); | |
33693 | if (PyErr_Occurred()) SWIG_fail; | |
33694 | } | |
4d5c3d91 | 33695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
33696 | return resultobj; |
33697 | fail: | |
33698 | return NULL; | |
33699 | } | |
33700 | ||
33701 | ||
33702 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33703 | PyObject *resultobj; | |
33704 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33705 | bool arg2 ; | |
33706 | PyObject * obj0 = 0 ; | |
33707 | PyObject * obj1 = 0 ; | |
33708 | char *kwnames[] = { | |
33709 | (char *) "self",(char *) "show", NULL | |
33710 | }; | |
33711 | ||
33712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
33713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 33714 | { |
994141e6 | 33715 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
33716 | if (PyErr_Occurred()) SWIG_fail; |
33717 | } | |
d14a1e28 RD |
33718 | { |
33719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33720 | (arg1)->ShowItems(arg2); | |
33721 | ||
33722 | wxPyEndAllowThreads(__tstate); | |
33723 | if (PyErr_Occurred()) SWIG_fail; | |
33724 | } | |
33725 | Py_INCREF(Py_None); resultobj = Py_None; | |
33726 | return resultobj; | |
33727 | fail: | |
33728 | return NULL; | |
33729 | } | |
33730 | ||
33731 | ||
33732 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
33733 | PyObject *obj; | |
33734 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33735 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
33736 | Py_INCREF(obj); | |
33737 | return Py_BuildValue((char *)""); | |
33738 | } | |
33739 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33740 | PyObject *resultobj; | |
33741 | wxPySizer *result; | |
33742 | char *kwnames[] = { | |
33743 | NULL | |
33744 | }; | |
33745 | ||
33746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
33747 | { | |
33748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33749 | result = (wxPySizer *)new wxPySizer(); | |
33750 | ||
33751 | wxPyEndAllowThreads(__tstate); | |
33752 | if (PyErr_Occurred()) SWIG_fail; | |
33753 | } | |
33754 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPySizer, 1); | |
33755 | return resultobj; | |
33756 | fail: | |
33757 | return NULL; | |
33758 | } | |
33759 | ||
33760 | ||
33761 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33762 | PyObject *resultobj; | |
33763 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
33764 | PyObject *arg2 = (PyObject *) 0 ; | |
33765 | PyObject *arg3 = (PyObject *) 0 ; | |
33766 | PyObject * obj0 = 0 ; | |
33767 | PyObject * obj1 = 0 ; | |
33768 | PyObject * obj2 = 0 ; | |
33769 | char *kwnames[] = { | |
33770 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
33771 | }; | |
33772 | ||
33773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPySizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33775 | arg2 = obj1; | |
33776 | arg3 = obj2; | |
33777 | { | |
33778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33779 | (arg1)->_setCallbackInfo(arg2,arg3); | |
33780 | ||
33781 | wxPyEndAllowThreads(__tstate); | |
33782 | if (PyErr_Occurred()) SWIG_fail; | |
33783 | } | |
33784 | Py_INCREF(Py_None); resultobj = Py_None; | |
33785 | return resultobj; | |
33786 | fail: | |
33787 | return NULL; | |
33788 | } | |
33789 | ||
33790 | ||
33791 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
33792 | PyObject *obj; | |
33793 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33794 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
33795 | Py_INCREF(obj); | |
33796 | return Py_BuildValue((char *)""); | |
33797 | } | |
33798 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33799 | PyObject *resultobj; | |
33800 | int arg1 = (int) wxHORIZONTAL ; | |
33801 | wxBoxSizer *result; | |
994141e6 | 33802 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
33803 | char *kwnames[] = { |
33804 | (char *) "orient", NULL | |
33805 | }; | |
33806 | ||
994141e6 RD |
33807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; |
33808 | if (obj0) { | |
33809 | { | |
33810 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
33811 | if (PyErr_Occurred()) SWIG_fail; | |
33812 | } | |
33813 | } | |
d14a1e28 RD |
33814 | { |
33815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33816 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
33817 | ||
33818 | wxPyEndAllowThreads(__tstate); | |
33819 | if (PyErr_Occurred()) SWIG_fail; | |
33820 | } | |
33821 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBoxSizer, 1); | |
33822 | return resultobj; | |
33823 | fail: | |
33824 | return NULL; | |
33825 | } | |
33826 | ||
33827 | ||
33828 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33829 | PyObject *resultobj; | |
33830 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
33831 | int result; | |
33832 | PyObject * obj0 = 0 ; | |
33833 | char *kwnames[] = { | |
33834 | (char *) "self", NULL | |
33835 | }; | |
33836 | ||
33837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
33838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33839 | { | |
33840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33841 | result = (int)(arg1)->GetOrientation(); | |
33842 | ||
33843 | wxPyEndAllowThreads(__tstate); | |
33844 | if (PyErr_Occurred()) SWIG_fail; | |
33845 | } | |
994141e6 | 33846 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
33847 | return resultobj; |
33848 | fail: | |
33849 | return NULL; | |
33850 | } | |
33851 | ||
33852 | ||
33853 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33854 | PyObject *resultobj; | |
33855 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
33856 | int arg2 ; | |
33857 | PyObject * obj0 = 0 ; | |
994141e6 | 33858 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33859 | char *kwnames[] = { |
33860 | (char *) "self",(char *) "orient", NULL | |
33861 | }; | |
33862 | ||
994141e6 | 33863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 33864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
33865 | { |
33866 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
33867 | if (PyErr_Occurred()) SWIG_fail; | |
33868 | } | |
d14a1e28 RD |
33869 | { |
33870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33871 | (arg1)->SetOrientation(arg2); | |
33872 | ||
33873 | wxPyEndAllowThreads(__tstate); | |
33874 | if (PyErr_Occurred()) SWIG_fail; | |
33875 | } | |
33876 | Py_INCREF(Py_None); resultobj = Py_None; | |
33877 | return resultobj; | |
33878 | fail: | |
33879 | return NULL; | |
33880 | } | |
33881 | ||
33882 | ||
33883 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33884 | PyObject *resultobj; | |
33885 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
33886 | PyObject * obj0 = 0 ; | |
33887 | char *kwnames[] = { | |
33888 | (char *) "self", NULL | |
33889 | }; | |
33890 | ||
33891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
33892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33893 | { | |
33894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33895 | (arg1)->RecalcSizes(); | |
33896 | ||
33897 | wxPyEndAllowThreads(__tstate); | |
33898 | if (PyErr_Occurred()) SWIG_fail; | |
33899 | } | |
33900 | Py_INCREF(Py_None); resultobj = Py_None; | |
33901 | return resultobj; | |
33902 | fail: | |
33903 | return NULL; | |
33904 | } | |
33905 | ||
33906 | ||
33907 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33908 | PyObject *resultobj; | |
33909 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
33910 | wxSize result; | |
33911 | PyObject * obj0 = 0 ; | |
33912 | char *kwnames[] = { | |
33913 | (char *) "self", NULL | |
33914 | }; | |
33915 | ||
33916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
33917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33918 | { | |
33919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33920 | result = (arg1)->CalcMin(); | |
33921 | ||
33922 | wxPyEndAllowThreads(__tstate); | |
33923 | if (PyErr_Occurred()) SWIG_fail; | |
33924 | } | |
33925 | { | |
33926 | wxSize * resultptr; | |
33927 | resultptr = new wxSize((wxSize &) result); | |
33928 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33929 | } | |
33930 | return resultobj; | |
33931 | fail: | |
33932 | return NULL; | |
33933 | } | |
33934 | ||
33935 | ||
33936 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
33937 | PyObject *obj; | |
33938 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33939 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
33940 | Py_INCREF(obj); | |
33941 | return Py_BuildValue((char *)""); | |
33942 | } | |
33943 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33944 | PyObject *resultobj; | |
33945 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
33946 | int arg2 = (int) wxHORIZONTAL ; | |
33947 | wxStaticBoxSizer *result; | |
33948 | PyObject * obj0 = 0 ; | |
994141e6 | 33949 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33950 | char *kwnames[] = { |
33951 | (char *) "box",(char *) "orient", NULL | |
33952 | }; | |
33953 | ||
994141e6 | 33954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 33955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
33956 | if (obj1) { |
33957 | { | |
33958 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
33959 | if (PyErr_Occurred()) SWIG_fail; | |
33960 | } | |
33961 | } | |
d14a1e28 RD |
33962 | { |
33963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33964 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
33965 | ||
33966 | wxPyEndAllowThreads(__tstate); | |
33967 | if (PyErr_Occurred()) SWIG_fail; | |
33968 | } | |
33969 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBoxSizer, 1); | |
33970 | return resultobj; | |
33971 | fail: | |
33972 | return NULL; | |
33973 | } | |
33974 | ||
33975 | ||
33976 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33977 | PyObject *resultobj; | |
33978 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
33979 | wxStaticBox *result; | |
33980 | PyObject * obj0 = 0 ; | |
33981 | char *kwnames[] = { | |
33982 | (char *) "self", NULL | |
33983 | }; | |
33984 | ||
33985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
33986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33987 | { | |
33988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33989 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
33990 | ||
33991 | wxPyEndAllowThreads(__tstate); | |
33992 | if (PyErr_Occurred()) SWIG_fail; | |
33993 | } | |
33994 | { | |
33995 | resultobj = wxPyMake_wxObject(result); | |
33996 | } | |
33997 | return resultobj; | |
33998 | fail: | |
33999 | return NULL; | |
34000 | } | |
34001 | ||
34002 | ||
34003 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34004 | PyObject *resultobj; | |
34005 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34006 | PyObject * obj0 = 0 ; | |
34007 | char *kwnames[] = { | |
34008 | (char *) "self", NULL | |
34009 | }; | |
34010 | ||
34011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34013 | { | |
34014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34015 | (arg1)->RecalcSizes(); | |
34016 | ||
34017 | wxPyEndAllowThreads(__tstate); | |
34018 | if (PyErr_Occurred()) SWIG_fail; | |
34019 | } | |
34020 | Py_INCREF(Py_None); resultobj = Py_None; | |
34021 | return resultobj; | |
34022 | fail: | |
34023 | return NULL; | |
34024 | } | |
34025 | ||
34026 | ||
34027 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34028 | PyObject *resultobj; | |
34029 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34030 | wxSize result; | |
34031 | PyObject * obj0 = 0 ; | |
34032 | char *kwnames[] = { | |
34033 | (char *) "self", NULL | |
34034 | }; | |
34035 | ||
34036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34038 | { | |
34039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34040 | result = (arg1)->CalcMin(); | |
34041 | ||
34042 | wxPyEndAllowThreads(__tstate); | |
34043 | if (PyErr_Occurred()) SWIG_fail; | |
34044 | } | |
34045 | { | |
34046 | wxSize * resultptr; | |
34047 | resultptr = new wxSize((wxSize &) result); | |
34048 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34049 | } | |
34050 | return resultobj; | |
34051 | fail: | |
34052 | return NULL; | |
34053 | } | |
34054 | ||
34055 | ||
34056 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
34057 | PyObject *obj; | |
34058 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34059 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
34060 | Py_INCREF(obj); | |
34061 | return Py_BuildValue((char *)""); | |
34062 | } | |
34063 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34064 | PyObject *resultobj; | |
34065 | int arg1 = (int) 1 ; | |
34066 | int arg2 = (int) 0 ; | |
34067 | int arg3 = (int) 0 ; | |
34068 | int arg4 = (int) 0 ; | |
34069 | wxGridSizer *result; | |
994141e6 RD |
34070 | PyObject * obj0 = 0 ; |
34071 | PyObject * obj1 = 0 ; | |
34072 | PyObject * obj2 = 0 ; | |
34073 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
34074 | char *kwnames[] = { |
34075 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
34076 | }; | |
34077 | ||
994141e6 RD |
34078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
34079 | if (obj0) { | |
34080 | { | |
34081 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
34082 | if (PyErr_Occurred()) SWIG_fail; | |
34083 | } | |
34084 | } | |
34085 | if (obj1) { | |
34086 | { | |
34087 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34088 | if (PyErr_Occurred()) SWIG_fail; | |
34089 | } | |
34090 | } | |
34091 | if (obj2) { | |
34092 | { | |
34093 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
34094 | if (PyErr_Occurred()) SWIG_fail; | |
34095 | } | |
34096 | } | |
34097 | if (obj3) { | |
34098 | { | |
34099 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
34100 | if (PyErr_Occurred()) SWIG_fail; | |
34101 | } | |
34102 | } | |
d14a1e28 RD |
34103 | { |
34104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34105 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
34106 | ||
34107 | wxPyEndAllowThreads(__tstate); | |
34108 | if (PyErr_Occurred()) SWIG_fail; | |
34109 | } | |
34110 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizer, 1); | |
34111 | return resultobj; | |
34112 | fail: | |
34113 | return NULL; | |
34114 | } | |
34115 | ||
34116 | ||
34117 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34118 | PyObject *resultobj; | |
34119 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34120 | PyObject * obj0 = 0 ; | |
34121 | char *kwnames[] = { | |
34122 | (char *) "self", NULL | |
34123 | }; | |
34124 | ||
34125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34127 | { | |
34128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34129 | (arg1)->RecalcSizes(); | |
34130 | ||
34131 | wxPyEndAllowThreads(__tstate); | |
34132 | if (PyErr_Occurred()) SWIG_fail; | |
34133 | } | |
34134 | Py_INCREF(Py_None); resultobj = Py_None; | |
34135 | return resultobj; | |
34136 | fail: | |
34137 | return NULL; | |
34138 | } | |
34139 | ||
34140 | ||
34141 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34142 | PyObject *resultobj; | |
34143 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34144 | wxSize result; | |
34145 | PyObject * obj0 = 0 ; | |
34146 | char *kwnames[] = { | |
34147 | (char *) "self", NULL | |
34148 | }; | |
34149 | ||
34150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34152 | { | |
34153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34154 | result = (arg1)->CalcMin(); | |
34155 | ||
34156 | wxPyEndAllowThreads(__tstate); | |
34157 | if (PyErr_Occurred()) SWIG_fail; | |
34158 | } | |
34159 | { | |
34160 | wxSize * resultptr; | |
34161 | resultptr = new wxSize((wxSize &) result); | |
34162 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34163 | } | |
34164 | return resultobj; | |
34165 | fail: | |
34166 | return NULL; | |
34167 | } | |
34168 | ||
34169 | ||
34170 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34171 | PyObject *resultobj; | |
34172 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34173 | int arg2 ; | |
34174 | PyObject * obj0 = 0 ; | |
994141e6 | 34175 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34176 | char *kwnames[] = { |
34177 | (char *) "self",(char *) "cols", NULL | |
34178 | }; | |
34179 | ||
994141e6 | 34180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
34182 | { |
34183 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34184 | if (PyErr_Occurred()) SWIG_fail; | |
34185 | } | |
d14a1e28 RD |
34186 | { |
34187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34188 | (arg1)->SetCols(arg2); | |
34189 | ||
34190 | wxPyEndAllowThreads(__tstate); | |
34191 | if (PyErr_Occurred()) SWIG_fail; | |
34192 | } | |
34193 | Py_INCREF(Py_None); resultobj = Py_None; | |
34194 | return resultobj; | |
34195 | fail: | |
34196 | return NULL; | |
34197 | } | |
34198 | ||
34199 | ||
34200 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34201 | PyObject *resultobj; | |
34202 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34203 | int arg2 ; | |
34204 | PyObject * obj0 = 0 ; | |
994141e6 | 34205 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34206 | char *kwnames[] = { |
34207 | (char *) "self",(char *) "rows", NULL | |
34208 | }; | |
34209 | ||
994141e6 | 34210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
34212 | { |
34213 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34214 | if (PyErr_Occurred()) SWIG_fail; | |
34215 | } | |
d14a1e28 RD |
34216 | { |
34217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34218 | (arg1)->SetRows(arg2); | |
34219 | ||
34220 | wxPyEndAllowThreads(__tstate); | |
34221 | if (PyErr_Occurred()) SWIG_fail; | |
34222 | } | |
34223 | Py_INCREF(Py_None); resultobj = Py_None; | |
34224 | return resultobj; | |
34225 | fail: | |
34226 | return NULL; | |
34227 | } | |
34228 | ||
34229 | ||
34230 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34231 | PyObject *resultobj; | |
34232 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34233 | int arg2 ; | |
34234 | PyObject * obj0 = 0 ; | |
994141e6 | 34235 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34236 | char *kwnames[] = { |
34237 | (char *) "self",(char *) "gap", NULL | |
34238 | }; | |
34239 | ||
994141e6 | 34240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
34242 | { |
34243 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34244 | if (PyErr_Occurred()) SWIG_fail; | |
34245 | } | |
d14a1e28 RD |
34246 | { |
34247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34248 | (arg1)->SetVGap(arg2); | |
34249 | ||
34250 | wxPyEndAllowThreads(__tstate); | |
34251 | if (PyErr_Occurred()) SWIG_fail; | |
34252 | } | |
34253 | Py_INCREF(Py_None); resultobj = Py_None; | |
34254 | return resultobj; | |
34255 | fail: | |
34256 | return NULL; | |
34257 | } | |
34258 | ||
34259 | ||
34260 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34261 | PyObject *resultobj; | |
34262 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34263 | int arg2 ; | |
34264 | PyObject * obj0 = 0 ; | |
994141e6 | 34265 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34266 | char *kwnames[] = { |
34267 | (char *) "self",(char *) "gap", NULL | |
34268 | }; | |
34269 | ||
994141e6 | 34270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
34272 | { |
34273 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34274 | if (PyErr_Occurred()) SWIG_fail; | |
34275 | } | |
d14a1e28 RD |
34276 | { |
34277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34278 | (arg1)->SetHGap(arg2); | |
34279 | ||
34280 | wxPyEndAllowThreads(__tstate); | |
34281 | if (PyErr_Occurred()) SWIG_fail; | |
34282 | } | |
34283 | Py_INCREF(Py_None); resultobj = Py_None; | |
34284 | return resultobj; | |
34285 | fail: | |
34286 | return NULL; | |
34287 | } | |
34288 | ||
34289 | ||
34290 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34291 | PyObject *resultobj; | |
34292 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34293 | int result; | |
34294 | PyObject * obj0 = 0 ; | |
34295 | char *kwnames[] = { | |
34296 | (char *) "self", NULL | |
34297 | }; | |
34298 | ||
34299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
34300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34301 | { | |
34302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34303 | result = (int)(arg1)->GetCols(); | |
34304 | ||
34305 | wxPyEndAllowThreads(__tstate); | |
34306 | if (PyErr_Occurred()) SWIG_fail; | |
34307 | } | |
994141e6 | 34308 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34309 | return resultobj; |
34310 | fail: | |
34311 | return NULL; | |
34312 | } | |
34313 | ||
34314 | ||
34315 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34316 | PyObject *resultobj; | |
34317 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34318 | int result; | |
34319 | PyObject * obj0 = 0 ; | |
34320 | char *kwnames[] = { | |
34321 | (char *) "self", NULL | |
34322 | }; | |
34323 | ||
34324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
34325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34326 | { | |
34327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34328 | result = (int)(arg1)->GetRows(); | |
34329 | ||
34330 | wxPyEndAllowThreads(__tstate); | |
34331 | if (PyErr_Occurred()) SWIG_fail; | |
34332 | } | |
994141e6 | 34333 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34334 | return resultobj; |
34335 | fail: | |
34336 | return NULL; | |
34337 | } | |
34338 | ||
34339 | ||
34340 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34341 | PyObject *resultobj; | |
34342 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34343 | int result; | |
34344 | PyObject * obj0 = 0 ; | |
34345 | char *kwnames[] = { | |
34346 | (char *) "self", NULL | |
34347 | }; | |
34348 | ||
34349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
34350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34351 | { | |
34352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34353 | result = (int)(arg1)->GetVGap(); | |
34354 | ||
34355 | wxPyEndAllowThreads(__tstate); | |
34356 | if (PyErr_Occurred()) SWIG_fail; | |
34357 | } | |
994141e6 | 34358 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34359 | return resultobj; |
34360 | fail: | |
34361 | return NULL; | |
34362 | } | |
34363 | ||
34364 | ||
34365 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34366 | PyObject *resultobj; | |
34367 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34368 | int result; | |
34369 | PyObject * obj0 = 0 ; | |
34370 | char *kwnames[] = { | |
34371 | (char *) "self", NULL | |
34372 | }; | |
34373 | ||
34374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
34375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34376 | { | |
34377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34378 | result = (int)(arg1)->GetHGap(); | |
34379 | ||
34380 | wxPyEndAllowThreads(__tstate); | |
34381 | if (PyErr_Occurred()) SWIG_fail; | |
34382 | } | |
994141e6 | 34383 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34384 | return resultobj; |
34385 | fail: | |
34386 | return NULL; | |
34387 | } | |
34388 | ||
34389 | ||
34390 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
34391 | PyObject *obj; | |
34392 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34393 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
34394 | Py_INCREF(obj); | |
34395 | return Py_BuildValue((char *)""); | |
34396 | } | |
34397 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34398 | PyObject *resultobj; | |
34399 | int arg1 = (int) 1 ; | |
34400 | int arg2 = (int) 0 ; | |
34401 | int arg3 = (int) 0 ; | |
34402 | int arg4 = (int) 0 ; | |
34403 | wxFlexGridSizer *result; | |
994141e6 RD |
34404 | PyObject * obj0 = 0 ; |
34405 | PyObject * obj1 = 0 ; | |
34406 | PyObject * obj2 = 0 ; | |
34407 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
34408 | char *kwnames[] = { |
34409 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
34410 | }; | |
34411 | ||
994141e6 RD |
34412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
34413 | if (obj0) { | |
34414 | { | |
34415 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
34416 | if (PyErr_Occurred()) SWIG_fail; | |
34417 | } | |
34418 | } | |
34419 | if (obj1) { | |
34420 | { | |
34421 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34422 | if (PyErr_Occurred()) SWIG_fail; | |
34423 | } | |
34424 | } | |
34425 | if (obj2) { | |
34426 | { | |
34427 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
34428 | if (PyErr_Occurred()) SWIG_fail; | |
34429 | } | |
34430 | } | |
34431 | if (obj3) { | |
34432 | { | |
34433 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
34434 | if (PyErr_Occurred()) SWIG_fail; | |
34435 | } | |
34436 | } | |
d14a1e28 RD |
34437 | { |
34438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34439 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
34440 | ||
34441 | wxPyEndAllowThreads(__tstate); | |
34442 | if (PyErr_Occurred()) SWIG_fail; | |
34443 | } | |
34444 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFlexGridSizer, 1); | |
34445 | return resultobj; | |
34446 | fail: | |
34447 | return NULL; | |
34448 | } | |
34449 | ||
34450 | ||
34451 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34452 | PyObject *resultobj; | |
34453 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34454 | PyObject * obj0 = 0 ; | |
34455 | char *kwnames[] = { | |
34456 | (char *) "self", NULL | |
34457 | }; | |
34458 | ||
34459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34461 | { | |
34462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34463 | (arg1)->RecalcSizes(); | |
34464 | ||
34465 | wxPyEndAllowThreads(__tstate); | |
34466 | if (PyErr_Occurred()) SWIG_fail; | |
34467 | } | |
34468 | Py_INCREF(Py_None); resultobj = Py_None; | |
34469 | return resultobj; | |
34470 | fail: | |
34471 | return NULL; | |
34472 | } | |
34473 | ||
34474 | ||
34475 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34476 | PyObject *resultobj; | |
34477 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34478 | wxSize result; | |
34479 | PyObject * obj0 = 0 ; | |
34480 | char *kwnames[] = { | |
34481 | (char *) "self", NULL | |
34482 | }; | |
34483 | ||
34484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34486 | { | |
34487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34488 | result = (arg1)->CalcMin(); | |
34489 | ||
34490 | wxPyEndAllowThreads(__tstate); | |
34491 | if (PyErr_Occurred()) SWIG_fail; | |
34492 | } | |
34493 | { | |
34494 | wxSize * resultptr; | |
34495 | resultptr = new wxSize((wxSize &) result); | |
34496 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34497 | } | |
34498 | return resultobj; | |
34499 | fail: | |
34500 | return NULL; | |
34501 | } | |
34502 | ||
34503 | ||
34504 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34505 | PyObject *resultobj; | |
34506 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34507 | size_t arg2 ; | |
34508 | int arg3 = (int) 0 ; | |
34509 | PyObject * obj0 = 0 ; | |
34510 | PyObject * obj1 = 0 ; | |
994141e6 | 34511 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
34512 | char *kwnames[] = { |
34513 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
34514 | }; | |
34515 | ||
994141e6 | 34516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 34517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 34518 | { |
994141e6 | 34519 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
34520 | if (PyErr_Occurred()) SWIG_fail; |
34521 | } | |
994141e6 RD |
34522 | if (obj2) { |
34523 | { | |
34524 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
34525 | if (PyErr_Occurred()) SWIG_fail; | |
34526 | } | |
34527 | } | |
d14a1e28 RD |
34528 | { |
34529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34530 | (arg1)->AddGrowableRow(arg2,arg3); | |
34531 | ||
34532 | wxPyEndAllowThreads(__tstate); | |
34533 | if (PyErr_Occurred()) SWIG_fail; | |
34534 | } | |
34535 | Py_INCREF(Py_None); resultobj = Py_None; | |
34536 | return resultobj; | |
34537 | fail: | |
34538 | return NULL; | |
34539 | } | |
34540 | ||
34541 | ||
34542 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34543 | PyObject *resultobj; | |
34544 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34545 | size_t arg2 ; | |
34546 | PyObject * obj0 = 0 ; | |
34547 | PyObject * obj1 = 0 ; | |
34548 | char *kwnames[] = { | |
34549 | (char *) "self",(char *) "idx", NULL | |
34550 | }; | |
34551 | ||
34552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
34553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 34554 | { |
994141e6 | 34555 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
34556 | if (PyErr_Occurred()) SWIG_fail; |
34557 | } | |
d14a1e28 RD |
34558 | { |
34559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34560 | (arg1)->RemoveGrowableRow(arg2); | |
34561 | ||
34562 | wxPyEndAllowThreads(__tstate); | |
34563 | if (PyErr_Occurred()) SWIG_fail; | |
34564 | } | |
34565 | Py_INCREF(Py_None); resultobj = Py_None; | |
34566 | return resultobj; | |
34567 | fail: | |
34568 | return NULL; | |
34569 | } | |
34570 | ||
34571 | ||
34572 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34573 | PyObject *resultobj; | |
34574 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34575 | size_t arg2 ; | |
34576 | int arg3 = (int) 0 ; | |
34577 | PyObject * obj0 = 0 ; | |
34578 | PyObject * obj1 = 0 ; | |
994141e6 | 34579 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
34580 | char *kwnames[] = { |
34581 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
34582 | }; | |
34583 | ||
994141e6 | 34584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 34585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 34586 | { |
994141e6 | 34587 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
34588 | if (PyErr_Occurred()) SWIG_fail; |
34589 | } | |
994141e6 RD |
34590 | if (obj2) { |
34591 | { | |
34592 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
34593 | if (PyErr_Occurred()) SWIG_fail; | |
34594 | } | |
34595 | } | |
d14a1e28 RD |
34596 | { |
34597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34598 | (arg1)->AddGrowableCol(arg2,arg3); | |
34599 | ||
34600 | wxPyEndAllowThreads(__tstate); | |
34601 | if (PyErr_Occurred()) SWIG_fail; | |
34602 | } | |
34603 | Py_INCREF(Py_None); resultobj = Py_None; | |
34604 | return resultobj; | |
34605 | fail: | |
34606 | return NULL; | |
34607 | } | |
34608 | ||
34609 | ||
34610 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34611 | PyObject *resultobj; | |
34612 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34613 | size_t arg2 ; | |
34614 | PyObject * obj0 = 0 ; | |
34615 | PyObject * obj1 = 0 ; | |
34616 | char *kwnames[] = { | |
34617 | (char *) "self",(char *) "idx", NULL | |
34618 | }; | |
34619 | ||
34620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
34621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 34622 | { |
994141e6 | 34623 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
34624 | if (PyErr_Occurred()) SWIG_fail; |
34625 | } | |
d14a1e28 RD |
34626 | { |
34627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34628 | (arg1)->RemoveGrowableCol(arg2); | |
34629 | ||
34630 | wxPyEndAllowThreads(__tstate); | |
34631 | if (PyErr_Occurred()) SWIG_fail; | |
34632 | } | |
34633 | Py_INCREF(Py_None); resultobj = Py_None; | |
34634 | return resultobj; | |
34635 | fail: | |
34636 | return NULL; | |
34637 | } | |
34638 | ||
34639 | ||
34640 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34641 | PyObject *resultobj; | |
34642 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34643 | int arg2 ; | |
34644 | PyObject * obj0 = 0 ; | |
994141e6 | 34645 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34646 | char *kwnames[] = { |
34647 | (char *) "self",(char *) "direction", NULL | |
34648 | }; | |
34649 | ||
994141e6 | 34650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
34652 | { |
34653 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34654 | if (PyErr_Occurred()) SWIG_fail; | |
34655 | } | |
d14a1e28 RD |
34656 | { |
34657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34658 | (arg1)->SetFlexibleDirection(arg2); | |
34659 | ||
34660 | wxPyEndAllowThreads(__tstate); | |
34661 | if (PyErr_Occurred()) SWIG_fail; | |
34662 | } | |
34663 | Py_INCREF(Py_None); resultobj = Py_None; | |
34664 | return resultobj; | |
34665 | fail: | |
34666 | return NULL; | |
34667 | } | |
34668 | ||
34669 | ||
34670 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34671 | PyObject *resultobj; | |
34672 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34673 | int result; | |
34674 | PyObject * obj0 = 0 ; | |
34675 | char *kwnames[] = { | |
34676 | (char *) "self", NULL | |
34677 | }; | |
34678 | ||
34679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
34680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34681 | { | |
34682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34683 | result = (int)(arg1)->GetFlexibleDirection(); | |
34684 | ||
34685 | wxPyEndAllowThreads(__tstate); | |
34686 | if (PyErr_Occurred()) SWIG_fail; | |
34687 | } | |
994141e6 | 34688 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34689 | return resultobj; |
34690 | fail: | |
34691 | return NULL; | |
34692 | } | |
34693 | ||
34694 | ||
34695 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34696 | PyObject *resultobj; | |
34697 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34698 | int arg2 ; | |
34699 | PyObject * obj0 = 0 ; | |
994141e6 | 34700 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34701 | char *kwnames[] = { |
34702 | (char *) "self",(char *) "mode", NULL | |
34703 | }; | |
34704 | ||
994141e6 | 34705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
34707 | { |
34708 | arg2 = (wxFlexSizerGrowMode) SWIG_PyObj_AsInt(obj1); | |
34709 | if (PyErr_Occurred()) SWIG_fail; | |
34710 | } | |
d14a1e28 RD |
34711 | { |
34712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34713 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
34714 | ||
34715 | wxPyEndAllowThreads(__tstate); | |
34716 | if (PyErr_Occurred()) SWIG_fail; | |
34717 | } | |
34718 | Py_INCREF(Py_None); resultobj = Py_None; | |
34719 | return resultobj; | |
34720 | fail: | |
34721 | return NULL; | |
34722 | } | |
34723 | ||
34724 | ||
34725 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34726 | PyObject *resultobj; | |
34727 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34728 | int result; | |
34729 | PyObject * obj0 = 0 ; | |
34730 | char *kwnames[] = { | |
34731 | (char *) "self", NULL | |
34732 | }; | |
34733 | ||
34734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
34735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34736 | { | |
34737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34738 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
34739 | ||
34740 | wxPyEndAllowThreads(__tstate); | |
34741 | if (PyErr_Occurred()) SWIG_fail; | |
34742 | } | |
994141e6 | 34743 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34744 | return resultobj; |
34745 | fail: | |
34746 | return NULL; | |
34747 | } | |
34748 | ||
34749 | ||
e811c8ce RD |
34750 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { |
34751 | PyObject *resultobj; | |
34752 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34753 | wxArrayInt *result; | |
34754 | PyObject * obj0 = 0 ; | |
34755 | char *kwnames[] = { | |
34756 | (char *) "self", NULL | |
34757 | }; | |
34758 | ||
34759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
34760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34761 | { | |
34762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34763 | { | |
34764 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
34765 | result = (wxArrayInt *) &_result_ref; | |
34766 | } | |
34767 | ||
34768 | wxPyEndAllowThreads(__tstate); | |
34769 | if (PyErr_Occurred()) SWIG_fail; | |
34770 | } | |
34771 | { | |
34772 | resultobj = PyList_New(0); | |
34773 | size_t idx; | |
34774 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
34775 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
34776 | PyList_Append(resultobj, val); | |
34777 | Py_DECREF(val); | |
34778 | } | |
34779 | } | |
34780 | return resultobj; | |
34781 | fail: | |
34782 | return NULL; | |
34783 | } | |
34784 | ||
34785 | ||
34786 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34787 | PyObject *resultobj; | |
34788 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34789 | wxArrayInt *result; | |
34790 | PyObject * obj0 = 0 ; | |
34791 | char *kwnames[] = { | |
34792 | (char *) "self", NULL | |
34793 | }; | |
34794 | ||
34795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
34796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34797 | { | |
34798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34799 | { | |
34800 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
34801 | result = (wxArrayInt *) &_result_ref; | |
34802 | } | |
34803 | ||
34804 | wxPyEndAllowThreads(__tstate); | |
34805 | if (PyErr_Occurred()) SWIG_fail; | |
34806 | } | |
34807 | { | |
34808 | resultobj = PyList_New(0); | |
34809 | size_t idx; | |
34810 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
34811 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
34812 | PyList_Append(resultobj, val); | |
34813 | Py_DECREF(val); | |
34814 | } | |
34815 | } | |
34816 | return resultobj; | |
34817 | fail: | |
34818 | return NULL; | |
34819 | } | |
34820 | ||
34821 | ||
d14a1e28 RD |
34822 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { |
34823 | PyObject *obj; | |
34824 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34825 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
34826 | Py_INCREF(obj); | |
34827 | return Py_BuildValue((char *)""); | |
34828 | } | |
34829 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34830 | PyObject *resultobj; | |
34831 | int arg1 = (int) 0 ; | |
34832 | int arg2 = (int) 0 ; | |
34833 | wxGBPosition *result; | |
994141e6 RD |
34834 | PyObject * obj0 = 0 ; |
34835 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
34836 | char *kwnames[] = { |
34837 | (char *) "row",(char *) "col", NULL | |
34838 | }; | |
34839 | ||
994141e6 RD |
34840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; |
34841 | if (obj0) { | |
34842 | { | |
34843 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
34844 | if (PyErr_Occurred()) SWIG_fail; | |
34845 | } | |
34846 | } | |
34847 | if (obj1) { | |
34848 | { | |
34849 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34850 | if (PyErr_Occurred()) SWIG_fail; | |
34851 | } | |
34852 | } | |
d14a1e28 RD |
34853 | { |
34854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34855 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
34856 | ||
34857 | wxPyEndAllowThreads(__tstate); | |
34858 | if (PyErr_Occurred()) SWIG_fail; | |
34859 | } | |
34860 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBPosition, 1); | |
34861 | return resultobj; | |
34862 | fail: | |
34863 | return NULL; | |
34864 | } | |
34865 | ||
34866 | ||
34867 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34868 | PyObject *resultobj; | |
34869 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
34870 | int result; | |
34871 | PyObject * obj0 = 0 ; | |
34872 | char *kwnames[] = { | |
34873 | (char *) "self", NULL | |
34874 | }; | |
34875 | ||
34876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
34877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34878 | { | |
34879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34880 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
34881 | ||
34882 | wxPyEndAllowThreads(__tstate); | |
34883 | if (PyErr_Occurred()) SWIG_fail; | |
34884 | } | |
994141e6 | 34885 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34886 | return resultobj; |
34887 | fail: | |
34888 | return NULL; | |
34889 | } | |
34890 | ||
34891 | ||
34892 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34893 | PyObject *resultobj; | |
34894 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
34895 | int result; | |
34896 | PyObject * obj0 = 0 ; | |
34897 | char *kwnames[] = { | |
34898 | (char *) "self", NULL | |
34899 | }; | |
34900 | ||
34901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
34902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34903 | { | |
34904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34905 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
34906 | ||
34907 | wxPyEndAllowThreads(__tstate); | |
34908 | if (PyErr_Occurred()) SWIG_fail; | |
34909 | } | |
994141e6 | 34910 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34911 | return resultobj; |
34912 | fail: | |
34913 | return NULL; | |
34914 | } | |
34915 | ||
34916 | ||
34917 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34918 | PyObject *resultobj; | |
34919 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
34920 | int arg2 ; | |
34921 | PyObject * obj0 = 0 ; | |
994141e6 | 34922 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34923 | char *kwnames[] = { |
34924 | (char *) "self",(char *) "row", NULL | |
34925 | }; | |
34926 | ||
994141e6 | 34927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
34929 | { |
34930 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34931 | if (PyErr_Occurred()) SWIG_fail; | |
34932 | } | |
d14a1e28 RD |
34933 | { |
34934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34935 | (arg1)->SetRow(arg2); | |
34936 | ||
34937 | wxPyEndAllowThreads(__tstate); | |
34938 | if (PyErr_Occurred()) SWIG_fail; | |
34939 | } | |
34940 | Py_INCREF(Py_None); resultobj = Py_None; | |
34941 | return resultobj; | |
34942 | fail: | |
34943 | return NULL; | |
34944 | } | |
34945 | ||
34946 | ||
34947 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34948 | PyObject *resultobj; | |
34949 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
34950 | int arg2 ; | |
34951 | PyObject * obj0 = 0 ; | |
994141e6 | 34952 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34953 | char *kwnames[] = { |
34954 | (char *) "self",(char *) "col", NULL | |
34955 | }; | |
34956 | ||
994141e6 | 34957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
34959 | { |
34960 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34961 | if (PyErr_Occurred()) SWIG_fail; | |
34962 | } | |
d14a1e28 RD |
34963 | { |
34964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34965 | (arg1)->SetCol(arg2); | |
34966 | ||
34967 | wxPyEndAllowThreads(__tstate); | |
34968 | if (PyErr_Occurred()) SWIG_fail; | |
34969 | } | |
34970 | Py_INCREF(Py_None); resultobj = Py_None; | |
34971 | return resultobj; | |
34972 | fail: | |
34973 | return NULL; | |
34974 | } | |
34975 | ||
34976 | ||
34977 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34978 | PyObject *resultobj; | |
34979 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
22faec7d | 34980 | wxGBPosition *arg2 = (wxGBPosition *) 0 ; |
d14a1e28 | 34981 | bool result; |
d14a1e28 RD |
34982 | PyObject * obj0 = 0 ; |
34983 | PyObject * obj1 = 0 ; | |
34984 | char *kwnames[] = { | |
22faec7d | 34985 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
34986 | }; |
34987 | ||
34988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
34989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22faec7d | 34990 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
34991 | { |
34992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 34993 | result = (bool)wxGBPosition___eq__(arg1,(wxGBPosition const *)arg2); |
d14a1e28 RD |
34994 | |
34995 | wxPyEndAllowThreads(__tstate); | |
34996 | if (PyErr_Occurred()) SWIG_fail; | |
34997 | } | |
4d5c3d91 | 34998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
34999 | return resultobj; |
35000 | fail: | |
35001 | return NULL; | |
35002 | } | |
35003 | ||
35004 | ||
35005 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35006 | PyObject *resultobj; | |
35007 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
22faec7d | 35008 | wxGBPosition *arg2 = (wxGBPosition *) 0 ; |
d14a1e28 | 35009 | bool result; |
d14a1e28 RD |
35010 | PyObject * obj0 = 0 ; |
35011 | PyObject * obj1 = 0 ; | |
35012 | char *kwnames[] = { | |
22faec7d | 35013 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
35014 | }; |
35015 | ||
35016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
35017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22faec7d | 35018 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
35019 | { |
35020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 35021 | result = (bool)wxGBPosition___ne__(arg1,(wxGBPosition const *)arg2); |
d14a1e28 RD |
35022 | |
35023 | wxPyEndAllowThreads(__tstate); | |
35024 | if (PyErr_Occurred()) SWIG_fail; | |
35025 | } | |
4d5c3d91 | 35026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35027 | return resultobj; |
35028 | fail: | |
35029 | return NULL; | |
35030 | } | |
35031 | ||
35032 | ||
e811c8ce RD |
35033 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
35034 | PyObject *resultobj; | |
35035 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35036 | int arg2 = (int) 0 ; | |
35037 | int arg3 = (int) 0 ; | |
35038 | PyObject * obj0 = 0 ; | |
994141e6 RD |
35039 | PyObject * obj1 = 0 ; |
35040 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
35041 | char *kwnames[] = { |
35042 | (char *) "self",(char *) "row",(char *) "col", NULL | |
35043 | }; | |
35044 | ||
994141e6 | 35045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
e811c8ce | 35046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
35047 | if (obj1) { |
35048 | { | |
35049 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35050 | if (PyErr_Occurred()) SWIG_fail; | |
35051 | } | |
35052 | } | |
35053 | if (obj2) { | |
35054 | { | |
35055 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
35056 | if (PyErr_Occurred()) SWIG_fail; | |
35057 | } | |
35058 | } | |
e811c8ce RD |
35059 | { |
35060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35061 | wxGBPosition_Set(arg1,arg2,arg3); | |
35062 | ||
35063 | wxPyEndAllowThreads(__tstate); | |
35064 | if (PyErr_Occurred()) SWIG_fail; | |
35065 | } | |
35066 | Py_INCREF(Py_None); resultobj = Py_None; | |
35067 | return resultobj; | |
35068 | fail: | |
35069 | return NULL; | |
35070 | } | |
35071 | ||
35072 | ||
35073 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
35074 | PyObject *resultobj; |
35075 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35076 | PyObject *result; | |
35077 | PyObject * obj0 = 0 ; | |
35078 | char *kwnames[] = { | |
35079 | (char *) "self", NULL | |
35080 | }; | |
35081 | ||
e811c8ce | 35082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
35083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35084 | { | |
35085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 35086 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
35087 | |
35088 | wxPyEndAllowThreads(__tstate); | |
35089 | if (PyErr_Occurred()) SWIG_fail; | |
35090 | } | |
35091 | resultobj = result; | |
35092 | return resultobj; | |
35093 | fail: | |
35094 | return NULL; | |
35095 | } | |
35096 | ||
35097 | ||
35098 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
35099 | PyObject *obj; | |
35100 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35101 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
35102 | Py_INCREF(obj); | |
35103 | return Py_BuildValue((char *)""); | |
35104 | } | |
35105 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35106 | PyObject *resultobj; | |
35107 | int arg1 = (int) 1 ; | |
35108 | int arg2 = (int) 1 ; | |
35109 | wxGBSpan *result; | |
994141e6 RD |
35110 | PyObject * obj0 = 0 ; |
35111 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
35112 | char *kwnames[] = { |
35113 | (char *) "rowspan",(char *) "colspan", NULL | |
35114 | }; | |
35115 | ||
994141e6 RD |
35116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; |
35117 | if (obj0) { | |
35118 | { | |
35119 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
35120 | if (PyErr_Occurred()) SWIG_fail; | |
35121 | } | |
35122 | } | |
35123 | if (obj1) { | |
35124 | { | |
35125 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35126 | if (PyErr_Occurred()) SWIG_fail; | |
35127 | } | |
35128 | } | |
d14a1e28 RD |
35129 | { |
35130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35131 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
35132 | ||
35133 | wxPyEndAllowThreads(__tstate); | |
35134 | if (PyErr_Occurred()) SWIG_fail; | |
35135 | } | |
35136 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSpan, 1); | |
35137 | return resultobj; | |
35138 | fail: | |
35139 | return NULL; | |
35140 | } | |
35141 | ||
35142 | ||
35143 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35144 | PyObject *resultobj; | |
35145 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35146 | int result; | |
35147 | PyObject * obj0 = 0 ; | |
35148 | char *kwnames[] = { | |
35149 | (char *) "self", NULL | |
35150 | }; | |
35151 | ||
35152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
35153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35154 | { | |
35155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35156 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
35157 | ||
35158 | wxPyEndAllowThreads(__tstate); | |
35159 | if (PyErr_Occurred()) SWIG_fail; | |
35160 | } | |
994141e6 | 35161 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35162 | return resultobj; |
35163 | fail: | |
35164 | return NULL; | |
35165 | } | |
35166 | ||
35167 | ||
35168 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35169 | PyObject *resultobj; | |
35170 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35171 | int result; | |
35172 | PyObject * obj0 = 0 ; | |
35173 | char *kwnames[] = { | |
35174 | (char *) "self", NULL | |
35175 | }; | |
35176 | ||
35177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
35178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35179 | { | |
35180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35181 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
35182 | ||
35183 | wxPyEndAllowThreads(__tstate); | |
35184 | if (PyErr_Occurred()) SWIG_fail; | |
35185 | } | |
994141e6 | 35186 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35187 | return resultobj; |
35188 | fail: | |
35189 | return NULL; | |
35190 | } | |
35191 | ||
35192 | ||
35193 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35194 | PyObject *resultobj; | |
35195 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35196 | int arg2 ; | |
35197 | PyObject * obj0 = 0 ; | |
994141e6 | 35198 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35199 | char *kwnames[] = { |
35200 | (char *) "self",(char *) "rowspan", NULL | |
35201 | }; | |
35202 | ||
994141e6 | 35203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
35205 | { |
35206 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35207 | if (PyErr_Occurred()) SWIG_fail; | |
35208 | } | |
d14a1e28 RD |
35209 | { |
35210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35211 | (arg1)->SetRowspan(arg2); | |
35212 | ||
35213 | wxPyEndAllowThreads(__tstate); | |
35214 | if (PyErr_Occurred()) SWIG_fail; | |
35215 | } | |
35216 | Py_INCREF(Py_None); resultobj = Py_None; | |
35217 | return resultobj; | |
35218 | fail: | |
35219 | return NULL; | |
35220 | } | |
35221 | ||
35222 | ||
35223 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35224 | PyObject *resultobj; | |
35225 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35226 | int arg2 ; | |
35227 | PyObject * obj0 = 0 ; | |
994141e6 | 35228 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35229 | char *kwnames[] = { |
35230 | (char *) "self",(char *) "colspan", NULL | |
35231 | }; | |
35232 | ||
994141e6 | 35233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
35235 | { |
35236 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35237 | if (PyErr_Occurred()) SWIG_fail; | |
35238 | } | |
d14a1e28 RD |
35239 | { |
35240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35241 | (arg1)->SetColspan(arg2); | |
35242 | ||
35243 | wxPyEndAllowThreads(__tstate); | |
35244 | if (PyErr_Occurred()) SWIG_fail; | |
35245 | } | |
35246 | Py_INCREF(Py_None); resultobj = Py_None; | |
35247 | return resultobj; | |
35248 | fail: | |
35249 | return NULL; | |
35250 | } | |
35251 | ||
35252 | ||
35253 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35254 | PyObject *resultobj; | |
35255 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
22faec7d | 35256 | wxGBSpan *arg2 = (wxGBSpan *) 0 ; |
d14a1e28 | 35257 | bool result; |
d14a1e28 RD |
35258 | PyObject * obj0 = 0 ; |
35259 | PyObject * obj1 = 0 ; | |
35260 | char *kwnames[] = { | |
22faec7d | 35261 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
35262 | }; |
35263 | ||
35264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
35265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22faec7d | 35266 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
35267 | { |
35268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 35269 | result = (bool)wxGBSpan___eq__(arg1,(wxGBSpan const *)arg2); |
d14a1e28 RD |
35270 | |
35271 | wxPyEndAllowThreads(__tstate); | |
35272 | if (PyErr_Occurred()) SWIG_fail; | |
35273 | } | |
4d5c3d91 | 35274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35275 | return resultobj; |
35276 | fail: | |
35277 | return NULL; | |
35278 | } | |
35279 | ||
35280 | ||
35281 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35282 | PyObject *resultobj; | |
35283 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
22faec7d | 35284 | wxGBSpan *arg2 = (wxGBSpan *) 0 ; |
d14a1e28 | 35285 | bool result; |
d14a1e28 RD |
35286 | PyObject * obj0 = 0 ; |
35287 | PyObject * obj1 = 0 ; | |
35288 | char *kwnames[] = { | |
22faec7d | 35289 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
35290 | }; |
35291 | ||
35292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
35293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22faec7d | 35294 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
35295 | { |
35296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 35297 | result = (bool)wxGBSpan___ne__(arg1,(wxGBSpan const *)arg2); |
d14a1e28 RD |
35298 | |
35299 | wxPyEndAllowThreads(__tstate); | |
35300 | if (PyErr_Occurred()) SWIG_fail; | |
35301 | } | |
4d5c3d91 | 35302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35303 | return resultobj; |
35304 | fail: | |
35305 | return NULL; | |
35306 | } | |
35307 | ||
35308 | ||
e811c8ce RD |
35309 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
35310 | PyObject *resultobj; | |
35311 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35312 | int arg2 = (int) 1 ; | |
35313 | int arg3 = (int) 1 ; | |
35314 | PyObject * obj0 = 0 ; | |
994141e6 RD |
35315 | PyObject * obj1 = 0 ; |
35316 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
35317 | char *kwnames[] = { |
35318 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
35319 | }; | |
35320 | ||
994141e6 | 35321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
e811c8ce | 35322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
35323 | if (obj1) { |
35324 | { | |
35325 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35326 | if (PyErr_Occurred()) SWIG_fail; | |
35327 | } | |
35328 | } | |
35329 | if (obj2) { | |
35330 | { | |
35331 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
35332 | if (PyErr_Occurred()) SWIG_fail; | |
35333 | } | |
35334 | } | |
e811c8ce RD |
35335 | { |
35336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35337 | wxGBSpan_Set(arg1,arg2,arg3); | |
35338 | ||
35339 | wxPyEndAllowThreads(__tstate); | |
35340 | if (PyErr_Occurred()) SWIG_fail; | |
35341 | } | |
35342 | Py_INCREF(Py_None); resultobj = Py_None; | |
35343 | return resultobj; | |
35344 | fail: | |
35345 | return NULL; | |
35346 | } | |
35347 | ||
35348 | ||
35349 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
35350 | PyObject *resultobj; |
35351 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35352 | PyObject *result; | |
35353 | PyObject * obj0 = 0 ; | |
35354 | char *kwnames[] = { | |
35355 | (char *) "self", NULL | |
35356 | }; | |
35357 | ||
e811c8ce | 35358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
35359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35360 | { | |
35361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 35362 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
35363 | |
35364 | wxPyEndAllowThreads(__tstate); | |
35365 | if (PyErr_Occurred()) SWIG_fail; | |
35366 | } | |
35367 | resultobj = result; | |
35368 | return resultobj; | |
35369 | fail: | |
35370 | return NULL; | |
35371 | } | |
35372 | ||
35373 | ||
35374 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
35375 | PyObject *obj; | |
35376 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35377 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
35378 | Py_INCREF(obj); | |
35379 | return Py_BuildValue((char *)""); | |
35380 | } | |
35381 | static int _wrap_DefaultSpan_set(PyObject *_val) { | |
35382 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); | |
35383 | return 1; | |
35384 | } | |
35385 | ||
35386 | ||
35387 | static PyObject *_wrap_DefaultSpan_get() { | |
35388 | PyObject *pyobj; | |
35389 | ||
35390 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSpan, SWIGTYPE_p_wxGBSpan, 0); | |
35391 | return pyobj; | |
35392 | } | |
35393 | ||
35394 | ||
35395 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35396 | PyObject *resultobj; | |
35397 | wxGBSizerItem *result; | |
35398 | char *kwnames[] = { | |
35399 | NULL | |
35400 | }; | |
35401 | ||
35402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
35403 | { | |
35404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35405 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
35406 | ||
35407 | wxPyEndAllowThreads(__tstate); | |
35408 | if (PyErr_Occurred()) SWIG_fail; | |
35409 | } | |
35410 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
35411 | return resultobj; | |
35412 | fail: | |
35413 | return NULL; | |
35414 | } | |
35415 | ||
35416 | ||
35417 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35418 | PyObject *resultobj; | |
35419 | wxWindow *arg1 = (wxWindow *) 0 ; | |
35420 | wxGBPosition *arg2 = 0 ; | |
35421 | wxGBSpan *arg3 = 0 ; | |
35422 | int arg4 ; | |
35423 | int arg5 ; | |
35424 | wxObject *arg6 = (wxObject *) 0 ; | |
35425 | wxGBSizerItem *result; | |
35426 | wxGBPosition temp2 ; | |
35427 | wxGBSpan temp3 ; | |
35428 | PyObject * obj0 = 0 ; | |
35429 | PyObject * obj1 = 0 ; | |
35430 | PyObject * obj2 = 0 ; | |
994141e6 RD |
35431 | PyObject * obj3 = 0 ; |
35432 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
35433 | PyObject * obj5 = 0 ; |
35434 | char *kwnames[] = { | |
35435 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35436 | }; | |
35437 | ||
994141e6 | 35438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
35439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35440 | { | |
35441 | arg2 = &temp2; | |
35442 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
35443 | } | |
35444 | { | |
35445 | arg3 = &temp3; | |
35446 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
35447 | } | |
994141e6 RD |
35448 | { |
35449 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
35450 | if (PyErr_Occurred()) SWIG_fail; | |
35451 | } | |
35452 | { | |
35453 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
35454 | if (PyErr_Occurred()) SWIG_fail; | |
35455 | } | |
d14a1e28 RD |
35456 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35457 | { | |
35458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35459 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
35460 | ||
35461 | wxPyEndAllowThreads(__tstate); | |
35462 | if (PyErr_Occurred()) SWIG_fail; | |
35463 | } | |
35464 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
35465 | return resultobj; | |
35466 | fail: | |
35467 | return NULL; | |
35468 | } | |
35469 | ||
35470 | ||
35471 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35472 | PyObject *resultobj; | |
35473 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35474 | wxGBPosition *arg2 = 0 ; | |
35475 | wxGBSpan *arg3 = 0 ; | |
35476 | int arg4 ; | |
35477 | int arg5 ; | |
35478 | wxObject *arg6 = (wxObject *) 0 ; | |
35479 | wxGBSizerItem *result; | |
35480 | wxGBPosition temp2 ; | |
35481 | wxGBSpan temp3 ; | |
35482 | PyObject * obj0 = 0 ; | |
35483 | PyObject * obj1 = 0 ; | |
35484 | PyObject * obj2 = 0 ; | |
994141e6 RD |
35485 | PyObject * obj3 = 0 ; |
35486 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
35487 | PyObject * obj5 = 0 ; |
35488 | char *kwnames[] = { | |
35489 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35490 | }; | |
35491 | ||
994141e6 | 35492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
35493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35494 | { | |
35495 | arg2 = &temp2; | |
35496 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
35497 | } | |
35498 | { | |
35499 | arg3 = &temp3; | |
35500 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
35501 | } | |
994141e6 RD |
35502 | { |
35503 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
35504 | if (PyErr_Occurred()) SWIG_fail; | |
35505 | } | |
35506 | { | |
35507 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
35508 | if (PyErr_Occurred()) SWIG_fail; | |
35509 | } | |
d14a1e28 RD |
35510 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35511 | { | |
35512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35513 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
35514 | ||
35515 | wxPyEndAllowThreads(__tstate); | |
35516 | if (PyErr_Occurred()) SWIG_fail; | |
35517 | } | |
35518 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
35519 | return resultobj; | |
35520 | fail: | |
35521 | return NULL; | |
35522 | } | |
35523 | ||
35524 | ||
35525 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35526 | PyObject *resultobj; | |
35527 | int arg1 ; | |
35528 | int arg2 ; | |
35529 | wxGBPosition *arg3 = 0 ; | |
35530 | wxGBSpan *arg4 = 0 ; | |
35531 | int arg5 ; | |
35532 | int arg6 ; | |
35533 | wxObject *arg7 = (wxObject *) 0 ; | |
35534 | wxGBSizerItem *result; | |
35535 | wxGBPosition temp3 ; | |
35536 | wxGBSpan temp4 ; | |
994141e6 RD |
35537 | PyObject * obj0 = 0 ; |
35538 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
35539 | PyObject * obj2 = 0 ; |
35540 | PyObject * obj3 = 0 ; | |
994141e6 RD |
35541 | PyObject * obj4 = 0 ; |
35542 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
35543 | PyObject * obj6 = 0 ; |
35544 | char *kwnames[] = { | |
35545 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35546 | }; | |
35547 | ||
994141e6 RD |
35548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
35549 | { | |
35550 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
35551 | if (PyErr_Occurred()) SWIG_fail; | |
35552 | } | |
35553 | { | |
35554 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35555 | if (PyErr_Occurred()) SWIG_fail; | |
35556 | } | |
d14a1e28 RD |
35557 | { |
35558 | arg3 = &temp3; | |
35559 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
35560 | } | |
35561 | { | |
35562 | arg4 = &temp4; | |
35563 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
35564 | } | |
994141e6 RD |
35565 | { |
35566 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
35567 | if (PyErr_Occurred()) SWIG_fail; | |
35568 | } | |
35569 | { | |
35570 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
35571 | if (PyErr_Occurred()) SWIG_fail; | |
35572 | } | |
d14a1e28 RD |
35573 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35574 | { | |
35575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35576 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
35577 | ||
35578 | wxPyEndAllowThreads(__tstate); | |
35579 | if (PyErr_Occurred()) SWIG_fail; | |
35580 | } | |
35581 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
35582 | return resultobj; | |
35583 | fail: | |
35584 | return NULL; | |
35585 | } | |
35586 | ||
35587 | ||
35588 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35589 | PyObject *resultobj; | |
35590 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35591 | wxGBPosition result; | |
35592 | PyObject * obj0 = 0 ; | |
35593 | char *kwnames[] = { | |
35594 | (char *) "self", NULL | |
35595 | }; | |
35596 | ||
35597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
35598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35599 | { | |
35600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35601 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
35602 | ||
35603 | wxPyEndAllowThreads(__tstate); | |
35604 | if (PyErr_Occurred()) SWIG_fail; | |
35605 | } | |
35606 | { | |
35607 | wxGBPosition * resultptr; | |
35608 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
35609 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
35610 | } | |
35611 | return resultobj; | |
35612 | fail: | |
35613 | return NULL; | |
35614 | } | |
35615 | ||
35616 | ||
35617 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35618 | PyObject *resultobj; | |
35619 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35620 | wxGBSpan result; | |
35621 | PyObject * obj0 = 0 ; | |
35622 | char *kwnames[] = { | |
35623 | (char *) "self", NULL | |
35624 | }; | |
35625 | ||
35626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
35627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35628 | { | |
35629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35630 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
35631 | ||
35632 | wxPyEndAllowThreads(__tstate); | |
35633 | if (PyErr_Occurred()) SWIG_fail; | |
35634 | } | |
35635 | { | |
35636 | wxGBSpan * resultptr; | |
35637 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
35638 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
35639 | } | |
35640 | return resultobj; | |
35641 | fail: | |
35642 | return NULL; | |
35643 | } | |
35644 | ||
35645 | ||
35646 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35647 | PyObject *resultobj; | |
35648 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35649 | wxGBPosition *arg2 = 0 ; | |
35650 | bool result; | |
35651 | wxGBPosition temp2 ; | |
35652 | PyObject * obj0 = 0 ; | |
35653 | PyObject * obj1 = 0 ; | |
35654 | char *kwnames[] = { | |
35655 | (char *) "self",(char *) "pos", NULL | |
35656 | }; | |
35657 | ||
35658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
35659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35660 | { | |
35661 | arg2 = &temp2; | |
35662 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
35663 | } | |
35664 | { | |
35665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35666 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
35667 | ||
35668 | wxPyEndAllowThreads(__tstate); | |
35669 | if (PyErr_Occurred()) SWIG_fail; | |
35670 | } | |
4d5c3d91 | 35671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35672 | return resultobj; |
35673 | fail: | |
35674 | return NULL; | |
35675 | } | |
35676 | ||
35677 | ||
35678 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35679 | PyObject *resultobj; | |
35680 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35681 | wxGBSpan *arg2 = 0 ; | |
35682 | bool result; | |
35683 | wxGBSpan temp2 ; | |
35684 | PyObject * obj0 = 0 ; | |
35685 | PyObject * obj1 = 0 ; | |
35686 | char *kwnames[] = { | |
35687 | (char *) "self",(char *) "span", NULL | |
35688 | }; | |
35689 | ||
35690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
35691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35692 | { | |
35693 | arg2 = &temp2; | |
35694 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
35695 | } | |
35696 | { | |
35697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35698 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
35699 | ||
35700 | wxPyEndAllowThreads(__tstate); | |
35701 | if (PyErr_Occurred()) SWIG_fail; | |
35702 | } | |
4d5c3d91 | 35703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35704 | return resultobj; |
35705 | fail: | |
35706 | return NULL; | |
35707 | } | |
35708 | ||
35709 | ||
35710 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
35711 | PyObject *resultobj; | |
35712 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35713 | wxGBSizerItem *arg2 = 0 ; | |
35714 | bool result; | |
35715 | PyObject * obj0 = 0 ; | |
35716 | PyObject * obj1 = 0 ; | |
35717 | ||
35718 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
35719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35720 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35721 | if (arg2 == NULL) { | |
35722 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
35723 | } | |
35724 | { | |
35725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35726 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
35727 | ||
35728 | wxPyEndAllowThreads(__tstate); | |
35729 | if (PyErr_Occurred()) SWIG_fail; | |
35730 | } | |
4d5c3d91 | 35731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35732 | return resultobj; |
35733 | fail: | |
35734 | return NULL; | |
35735 | } | |
35736 | ||
35737 | ||
35738 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
35739 | PyObject *resultobj; | |
35740 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35741 | wxGBPosition *arg2 = 0 ; | |
35742 | wxGBSpan *arg3 = 0 ; | |
35743 | bool result; | |
35744 | wxGBPosition temp2 ; | |
35745 | wxGBSpan temp3 ; | |
35746 | PyObject * obj0 = 0 ; | |
35747 | PyObject * obj1 = 0 ; | |
35748 | PyObject * obj2 = 0 ; | |
35749 | ||
35750 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
35751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35752 | { | |
35753 | arg2 = &temp2; | |
35754 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
35755 | } | |
35756 | { | |
35757 | arg3 = &temp3; | |
35758 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
35759 | } | |
35760 | { | |
35761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35762 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
35763 | ||
35764 | wxPyEndAllowThreads(__tstate); | |
35765 | if (PyErr_Occurred()) SWIG_fail; | |
35766 | } | |
4d5c3d91 | 35767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35768 | return resultobj; |
35769 | fail: | |
35770 | return NULL; | |
35771 | } | |
35772 | ||
35773 | ||
35774 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
35775 | int argc; | |
35776 | PyObject *argv[4]; | |
35777 | int ii; | |
35778 | ||
35779 | argc = PyObject_Length(args); | |
35780 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
35781 | argv[ii] = PyTuple_GetItem(args,ii); | |
35782 | } | |
35783 | if (argc == 2) { | |
35784 | int _v; | |
35785 | { | |
35786 | void *ptr; | |
35787 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
35788 | _v = 0; | |
35789 | PyErr_Clear(); | |
35790 | } else { | |
35791 | _v = 1; | |
35792 | } | |
35793 | } | |
35794 | if (_v) { | |
35795 | { | |
35796 | void *ptr; | |
35797 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
35798 | _v = 0; | |
35799 | PyErr_Clear(); | |
35800 | } else { | |
35801 | _v = 1; | |
35802 | } | |
35803 | } | |
35804 | if (_v) { | |
35805 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
35806 | } | |
35807 | } | |
35808 | } | |
35809 | if (argc == 3) { | |
35810 | int _v; | |
35811 | { | |
35812 | void *ptr; | |
35813 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
35814 | _v = 0; | |
35815 | PyErr_Clear(); | |
35816 | } else { | |
35817 | _v = 1; | |
35818 | } | |
35819 | } | |
35820 | if (_v) { | |
35821 | { | |
35822 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
35823 | } | |
35824 | if (_v) { | |
35825 | { | |
35826 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
35827 | } | |
35828 | if (_v) { | |
35829 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
35830 | } | |
35831 | } | |
35832 | } | |
35833 | } | |
35834 | ||
35835 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
35836 | return NULL; | |
35837 | } | |
35838 | ||
35839 | ||
35840 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35841 | PyObject *resultobj; | |
35842 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35843 | int *arg2 = 0 ; | |
35844 | int *arg3 = 0 ; | |
35845 | PyObject * obj0 = 0 ; | |
35846 | PyObject * obj1 = 0 ; | |
35847 | PyObject * obj2 = 0 ; | |
35848 | char *kwnames[] = { | |
35849 | (char *) "self",(char *) "row",(char *) "col", NULL | |
35850 | }; | |
35851 | ||
35852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35854 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35855 | if (arg2 == NULL) { | |
35856 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
35857 | } | |
35858 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35859 | if (arg3 == NULL) { | |
35860 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
35861 | } | |
35862 | { | |
35863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35864 | (arg1)->GetEndPos(*arg2,*arg3); | |
35865 | ||
35866 | wxPyEndAllowThreads(__tstate); | |
35867 | if (PyErr_Occurred()) SWIG_fail; | |
35868 | } | |
35869 | Py_INCREF(Py_None); resultobj = Py_None; | |
35870 | return resultobj; | |
35871 | fail: | |
35872 | return NULL; | |
35873 | } | |
35874 | ||
35875 | ||
35876 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35877 | PyObject *resultobj; | |
35878 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35879 | wxGridBagSizer *result; | |
35880 | PyObject * obj0 = 0 ; | |
35881 | char *kwnames[] = { | |
35882 | (char *) "self", NULL | |
35883 | }; | |
35884 | ||
35885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
35886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35887 | { | |
35888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35889 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
35890 | ||
35891 | wxPyEndAllowThreads(__tstate); | |
35892 | if (PyErr_Occurred()) SWIG_fail; | |
35893 | } | |
35894 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 0); | |
35895 | return resultobj; | |
35896 | fail: | |
35897 | return NULL; | |
35898 | } | |
35899 | ||
35900 | ||
35901 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35902 | PyObject *resultobj; | |
35903 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
35904 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
35905 | PyObject * obj0 = 0 ; | |
35906 | PyObject * obj1 = 0 ; | |
35907 | char *kwnames[] = { | |
35908 | (char *) "self",(char *) "sizer", NULL | |
35909 | }; | |
35910 | ||
35911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
35912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35913 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35914 | { | |
35915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35916 | (arg1)->SetGBSizer(arg2); | |
35917 | ||
35918 | wxPyEndAllowThreads(__tstate); | |
35919 | if (PyErr_Occurred()) SWIG_fail; | |
35920 | } | |
35921 | Py_INCREF(Py_None); resultobj = Py_None; | |
35922 | return resultobj; | |
35923 | fail: | |
35924 | return NULL; | |
35925 | } | |
35926 | ||
35927 | ||
35928 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
35929 | PyObject *obj; | |
35930 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35931 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
35932 | Py_INCREF(obj); | |
35933 | return Py_BuildValue((char *)""); | |
35934 | } | |
35935 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35936 | PyObject *resultobj; | |
35937 | int arg1 = (int) 0 ; | |
35938 | int arg2 = (int) 0 ; | |
35939 | wxGridBagSizer *result; | |
994141e6 RD |
35940 | PyObject * obj0 = 0 ; |
35941 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
35942 | char *kwnames[] = { |
35943 | (char *) "vgap",(char *) "hgap", NULL | |
35944 | }; | |
35945 | ||
994141e6 RD |
35946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; |
35947 | if (obj0) { | |
35948 | { | |
35949 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
35950 | if (PyErr_Occurred()) SWIG_fail; | |
35951 | } | |
35952 | } | |
35953 | if (obj1) { | |
35954 | { | |
35955 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35956 | if (PyErr_Occurred()) SWIG_fail; | |
35957 | } | |
35958 | } | |
d14a1e28 RD |
35959 | { |
35960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35961 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
35962 | ||
35963 | wxPyEndAllowThreads(__tstate); | |
35964 | if (PyErr_Occurred()) SWIG_fail; | |
35965 | } | |
35966 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 1); | |
35967 | return resultobj; | |
35968 | fail: | |
35969 | return NULL; | |
35970 | } | |
35971 | ||
35972 | ||
35973 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35974 | PyObject *resultobj; | |
35975 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
35976 | PyObject *arg2 = (PyObject *) 0 ; | |
35977 | wxGBPosition *arg3 = 0 ; | |
35978 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
35979 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
35980 | int arg5 = (int) 0 ; | |
35981 | int arg6 = (int) 0 ; | |
35982 | PyObject *arg7 = (PyObject *) NULL ; | |
35983 | bool result; | |
35984 | wxGBPosition temp3 ; | |
35985 | wxGBSpan temp4 ; | |
35986 | PyObject * obj0 = 0 ; | |
35987 | PyObject * obj1 = 0 ; | |
35988 | PyObject * obj2 = 0 ; | |
35989 | PyObject * obj3 = 0 ; | |
994141e6 RD |
35990 | PyObject * obj4 = 0 ; |
35991 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
35992 | PyObject * obj6 = 0 ; |
35993 | char *kwnames[] = { | |
35994 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35995 | }; | |
35996 | ||
994141e6 | 35997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
35998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35999 | arg2 = obj1; | |
36000 | { | |
36001 | arg3 = &temp3; | |
36002 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36003 | } | |
36004 | if (obj3) { | |
36005 | { | |
36006 | arg4 = &temp4; | |
36007 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
36008 | } | |
36009 | } | |
994141e6 RD |
36010 | if (obj4) { |
36011 | { | |
36012 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
36013 | if (PyErr_Occurred()) SWIG_fail; | |
36014 | } | |
36015 | } | |
36016 | if (obj5) { | |
36017 | { | |
36018 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
36019 | if (PyErr_Occurred()) SWIG_fail; | |
36020 | } | |
36021 | } | |
d14a1e28 RD |
36022 | if (obj6) { |
36023 | arg7 = obj6; | |
36024 | } | |
36025 | { | |
36026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36027 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
36028 | ||
36029 | wxPyEndAllowThreads(__tstate); | |
36030 | if (PyErr_Occurred()) SWIG_fail; | |
36031 | } | |
4d5c3d91 | 36032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36033 | return resultobj; |
36034 | fail: | |
36035 | return NULL; | |
36036 | } | |
36037 | ||
36038 | ||
36039 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36040 | PyObject *resultobj; | |
36041 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36042 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
36043 | bool result; | |
36044 | PyObject * obj0 = 0 ; | |
36045 | PyObject * obj1 = 0 ; | |
36046 | char *kwnames[] = { | |
36047 | (char *) "self",(char *) "item", NULL | |
36048 | }; | |
36049 | ||
36050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
36051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36052 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36053 | { | |
36054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36055 | result = (bool)(arg1)->Add(arg2); | |
36056 | ||
36057 | wxPyEndAllowThreads(__tstate); | |
36058 | if (PyErr_Occurred()) SWIG_fail; | |
36059 | } | |
4d5c3d91 | 36060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36061 | return resultobj; |
36062 | fail: | |
36063 | return NULL; | |
36064 | } | |
36065 | ||
36066 | ||
36067 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36068 | PyObject *resultobj; | |
36069 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36070 | wxSize result; | |
36071 | PyObject * obj0 = 0 ; | |
36072 | char *kwnames[] = { | |
36073 | (char *) "self", NULL | |
36074 | }; | |
36075 | ||
36076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
36077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36078 | { | |
36079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36080 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
36081 | ||
36082 | wxPyEndAllowThreads(__tstate); | |
36083 | if (PyErr_Occurred()) SWIG_fail; | |
36084 | } | |
36085 | { | |
36086 | wxSize * resultptr; | |
36087 | resultptr = new wxSize((wxSize &) result); | |
36088 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
36089 | } | |
36090 | return resultobj; | |
36091 | fail: | |
36092 | return NULL; | |
36093 | } | |
36094 | ||
36095 | ||
36096 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36097 | PyObject *resultobj; | |
36098 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36099 | wxSize *arg2 = 0 ; | |
36100 | wxSize temp2 ; | |
36101 | PyObject * obj0 = 0 ; | |
36102 | PyObject * obj1 = 0 ; | |
36103 | char *kwnames[] = { | |
36104 | (char *) "self",(char *) "sz", NULL | |
36105 | }; | |
36106 | ||
36107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
36108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36109 | { | |
36110 | arg2 = &temp2; | |
36111 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
36112 | } | |
36113 | { | |
36114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36115 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
36116 | ||
36117 | wxPyEndAllowThreads(__tstate); | |
36118 | if (PyErr_Occurred()) SWIG_fail; | |
36119 | } | |
36120 | Py_INCREF(Py_None); resultobj = Py_None; | |
36121 | return resultobj; | |
36122 | fail: | |
36123 | return NULL; | |
36124 | } | |
36125 | ||
36126 | ||
36127 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
36128 | PyObject *resultobj; | |
36129 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36130 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36131 | wxGBPosition result; | |
36132 | PyObject * obj0 = 0 ; | |
36133 | PyObject * obj1 = 0 ; | |
36134 | ||
36135 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
36136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36137 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36138 | { | |
36139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36140 | result = (arg1)->GetItemPosition(arg2); | |
36141 | ||
36142 | wxPyEndAllowThreads(__tstate); | |
36143 | if (PyErr_Occurred()) SWIG_fail; | |
36144 | } | |
36145 | { | |
36146 | wxGBPosition * resultptr; | |
36147 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
36148 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
36149 | } | |
36150 | return resultobj; | |
36151 | fail: | |
36152 | return NULL; | |
36153 | } | |
36154 | ||
36155 | ||
36156 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
36157 | PyObject *resultobj; | |
36158 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36159 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36160 | wxGBPosition result; | |
36161 | PyObject * obj0 = 0 ; | |
36162 | PyObject * obj1 = 0 ; | |
36163 | ||
36164 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
36165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36166 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36167 | { | |
36168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36169 | result = (arg1)->GetItemPosition(arg2); | |
36170 | ||
36171 | wxPyEndAllowThreads(__tstate); | |
36172 | if (PyErr_Occurred()) SWIG_fail; | |
36173 | } | |
36174 | { | |
36175 | wxGBPosition * resultptr; | |
36176 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
36177 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
36178 | } | |
36179 | return resultobj; | |
36180 | fail: | |
36181 | return NULL; | |
36182 | } | |
36183 | ||
36184 | ||
36185 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
36186 | PyObject *resultobj; | |
36187 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36188 | size_t arg2 ; | |
36189 | wxGBPosition result; | |
36190 | PyObject * obj0 = 0 ; | |
36191 | PyObject * obj1 = 0 ; | |
36192 | ||
36193 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
36194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 36195 | { |
994141e6 | 36196 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
36197 | if (PyErr_Occurred()) SWIG_fail; |
36198 | } | |
d14a1e28 RD |
36199 | { |
36200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36201 | result = (arg1)->GetItemPosition(arg2); | |
36202 | ||
36203 | wxPyEndAllowThreads(__tstate); | |
36204 | if (PyErr_Occurred()) SWIG_fail; | |
36205 | } | |
36206 | { | |
36207 | wxGBPosition * resultptr; | |
36208 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
36209 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
36210 | } | |
36211 | return resultobj; | |
36212 | fail: | |
36213 | return NULL; | |
36214 | } | |
36215 | ||
36216 | ||
36217 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
36218 | int argc; | |
36219 | PyObject *argv[3]; | |
36220 | int ii; | |
36221 | ||
36222 | argc = PyObject_Length(args); | |
36223 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
36224 | argv[ii] = PyTuple_GetItem(args,ii); | |
36225 | } | |
36226 | if (argc == 2) { | |
36227 | int _v; | |
36228 | { | |
36229 | void *ptr; | |
36230 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36231 | _v = 0; | |
36232 | PyErr_Clear(); | |
36233 | } else { | |
36234 | _v = 1; | |
36235 | } | |
36236 | } | |
36237 | if (_v) { | |
36238 | { | |
36239 | void *ptr; | |
36240 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
36241 | _v = 0; | |
36242 | PyErr_Clear(); | |
36243 | } else { | |
36244 | _v = 1; | |
36245 | } | |
36246 | } | |
36247 | if (_v) { | |
36248 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
36249 | } | |
36250 | } | |
36251 | } | |
36252 | if (argc == 2) { | |
36253 | int _v; | |
36254 | { | |
36255 | void *ptr; | |
36256 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36257 | _v = 0; | |
36258 | PyErr_Clear(); | |
36259 | } else { | |
36260 | _v = 1; | |
36261 | } | |
36262 | } | |
36263 | if (_v) { | |
36264 | { | |
36265 | void *ptr; | |
36266 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
36267 | _v = 0; | |
36268 | PyErr_Clear(); | |
36269 | } else { | |
36270 | _v = 1; | |
36271 | } | |
36272 | } | |
36273 | if (_v) { | |
36274 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
36275 | } | |
36276 | } | |
36277 | } | |
36278 | if (argc == 2) { | |
36279 | int _v; | |
36280 | { | |
36281 | void *ptr; | |
36282 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36283 | _v = 0; | |
36284 | PyErr_Clear(); | |
36285 | } else { | |
36286 | _v = 1; | |
36287 | } | |
36288 | } | |
36289 | if (_v) { | |
36290 | { | |
994141e6 | 36291 | SWIG_PyObj_AsUnsignedLong(argv[1]); |
a41e16b6 RD |
36292 | if (PyErr_Occurred()) { |
36293 | _v = 0; | |
36294 | PyErr_Clear(); | |
36295 | } else { | |
36296 | _v = 1; | |
36297 | } | |
d14a1e28 RD |
36298 | } |
36299 | if (_v) { | |
36300 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
36301 | } | |
36302 | } | |
36303 | } | |
36304 | ||
36305 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
36306 | return NULL; | |
36307 | } | |
36308 | ||
36309 | ||
36310 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
36311 | PyObject *resultobj; | |
36312 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36313 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36314 | wxGBPosition *arg3 = 0 ; | |
36315 | bool result; | |
36316 | wxGBPosition temp3 ; | |
36317 | PyObject * obj0 = 0 ; | |
36318 | PyObject * obj1 = 0 ; | |
36319 | PyObject * obj2 = 0 ; | |
36320 | ||
36321 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
36322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36323 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36324 | { | |
36325 | arg3 = &temp3; | |
36326 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36327 | } | |
36328 | { | |
36329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36330 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
36331 | ||
36332 | wxPyEndAllowThreads(__tstate); | |
36333 | if (PyErr_Occurred()) SWIG_fail; | |
36334 | } | |
4d5c3d91 | 36335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36336 | return resultobj; |
36337 | fail: | |
36338 | return NULL; | |
36339 | } | |
36340 | ||
36341 | ||
36342 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
36343 | PyObject *resultobj; | |
36344 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36345 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36346 | wxGBPosition *arg3 = 0 ; | |
36347 | bool result; | |
36348 | wxGBPosition temp3 ; | |
36349 | PyObject * obj0 = 0 ; | |
36350 | PyObject * obj1 = 0 ; | |
36351 | PyObject * obj2 = 0 ; | |
36352 | ||
36353 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
36354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36355 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36356 | { | |
36357 | arg3 = &temp3; | |
36358 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36359 | } | |
36360 | { | |
36361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36362 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
36363 | ||
36364 | wxPyEndAllowThreads(__tstate); | |
36365 | if (PyErr_Occurred()) SWIG_fail; | |
36366 | } | |
4d5c3d91 | 36367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36368 | return resultobj; |
36369 | fail: | |
36370 | return NULL; | |
36371 | } | |
36372 | ||
36373 | ||
36374 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
36375 | PyObject *resultobj; | |
36376 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36377 | size_t arg2 ; | |
36378 | wxGBPosition *arg3 = 0 ; | |
36379 | bool result; | |
36380 | wxGBPosition temp3 ; | |
36381 | PyObject * obj0 = 0 ; | |
36382 | PyObject * obj1 = 0 ; | |
36383 | PyObject * obj2 = 0 ; | |
36384 | ||
36385 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
36386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 36387 | { |
994141e6 | 36388 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
36389 | if (PyErr_Occurred()) SWIG_fail; |
36390 | } | |
d14a1e28 RD |
36391 | { |
36392 | arg3 = &temp3; | |
36393 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36394 | } | |
36395 | { | |
36396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36397 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
36398 | ||
36399 | wxPyEndAllowThreads(__tstate); | |
36400 | if (PyErr_Occurred()) SWIG_fail; | |
36401 | } | |
4d5c3d91 | 36402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36403 | return resultobj; |
36404 | fail: | |
36405 | return NULL; | |
36406 | } | |
36407 | ||
36408 | ||
36409 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
36410 | int argc; | |
36411 | PyObject *argv[4]; | |
36412 | int ii; | |
36413 | ||
36414 | argc = PyObject_Length(args); | |
36415 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
36416 | argv[ii] = PyTuple_GetItem(args,ii); | |
36417 | } | |
36418 | if (argc == 3) { | |
36419 | int _v; | |
36420 | { | |
36421 | void *ptr; | |
36422 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36423 | _v = 0; | |
36424 | PyErr_Clear(); | |
36425 | } else { | |
36426 | _v = 1; | |
36427 | } | |
36428 | } | |
36429 | if (_v) { | |
36430 | { | |
36431 | void *ptr; | |
36432 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
36433 | _v = 0; | |
36434 | PyErr_Clear(); | |
36435 | } else { | |
36436 | _v = 1; | |
36437 | } | |
36438 | } | |
36439 | if (_v) { | |
36440 | { | |
36441 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
36442 | } | |
36443 | if (_v) { | |
36444 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
36445 | } | |
36446 | } | |
36447 | } | |
36448 | } | |
36449 | if (argc == 3) { | |
36450 | int _v; | |
36451 | { | |
36452 | void *ptr; | |
36453 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36454 | _v = 0; | |
36455 | PyErr_Clear(); | |
36456 | } else { | |
36457 | _v = 1; | |
36458 | } | |
36459 | } | |
36460 | if (_v) { | |
36461 | { | |
36462 | void *ptr; | |
36463 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
36464 | _v = 0; | |
36465 | PyErr_Clear(); | |
36466 | } else { | |
36467 | _v = 1; | |
36468 | } | |
36469 | } | |
36470 | if (_v) { | |
36471 | { | |
36472 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
36473 | } | |
36474 | if (_v) { | |
36475 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
36476 | } | |
36477 | } | |
36478 | } | |
36479 | } | |
36480 | if (argc == 3) { | |
36481 | int _v; | |
36482 | { | |
36483 | void *ptr; | |
36484 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36485 | _v = 0; | |
36486 | PyErr_Clear(); | |
36487 | } else { | |
36488 | _v = 1; | |
36489 | } | |
36490 | } | |
36491 | if (_v) { | |
36492 | { | |
994141e6 | 36493 | SWIG_PyObj_AsUnsignedLong(argv[1]); |
a41e16b6 RD |
36494 | if (PyErr_Occurred()) { |
36495 | _v = 0; | |
36496 | PyErr_Clear(); | |
36497 | } else { | |
36498 | _v = 1; | |
36499 | } | |
d14a1e28 RD |
36500 | } |
36501 | if (_v) { | |
36502 | { | |
36503 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
36504 | } | |
36505 | if (_v) { | |
36506 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
36507 | } | |
36508 | } | |
36509 | } | |
36510 | } | |
36511 | ||
36512 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
36513 | return NULL; | |
36514 | } | |
36515 | ||
36516 | ||
36517 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
36518 | PyObject *resultobj; | |
36519 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36520 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36521 | wxGBSpan result; | |
36522 | PyObject * obj0 = 0 ; | |
36523 | PyObject * obj1 = 0 ; | |
36524 | ||
36525 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
36526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36527 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36528 | { | |
36529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36530 | result = (arg1)->GetItemSpan(arg2); | |
36531 | ||
36532 | wxPyEndAllowThreads(__tstate); | |
36533 | if (PyErr_Occurred()) SWIG_fail; | |
36534 | } | |
36535 | { | |
36536 | wxGBSpan * resultptr; | |
36537 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
36538 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
36539 | } | |
36540 | return resultobj; | |
36541 | fail: | |
36542 | return NULL; | |
36543 | } | |
36544 | ||
36545 | ||
36546 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
36547 | PyObject *resultobj; | |
36548 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36549 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36550 | wxGBSpan result; | |
36551 | PyObject * obj0 = 0 ; | |
36552 | PyObject * obj1 = 0 ; | |
36553 | ||
36554 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
36555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36556 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36557 | { | |
36558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36559 | result = (arg1)->GetItemSpan(arg2); | |
36560 | ||
36561 | wxPyEndAllowThreads(__tstate); | |
36562 | if (PyErr_Occurred()) SWIG_fail; | |
36563 | } | |
36564 | { | |
36565 | wxGBSpan * resultptr; | |
36566 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
36567 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
36568 | } | |
36569 | return resultobj; | |
36570 | fail: | |
36571 | return NULL; | |
36572 | } | |
36573 | ||
36574 | ||
36575 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
36576 | PyObject *resultobj; | |
36577 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36578 | size_t arg2 ; | |
36579 | wxGBSpan result; | |
36580 | PyObject * obj0 = 0 ; | |
36581 | PyObject * obj1 = 0 ; | |
36582 | ||
36583 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
36584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 36585 | { |
994141e6 | 36586 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
36587 | if (PyErr_Occurred()) SWIG_fail; |
36588 | } | |
d14a1e28 RD |
36589 | { |
36590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36591 | result = (arg1)->GetItemSpan(arg2); | |
36592 | ||
36593 | wxPyEndAllowThreads(__tstate); | |
36594 | if (PyErr_Occurred()) SWIG_fail; | |
36595 | } | |
36596 | { | |
36597 | wxGBSpan * resultptr; | |
36598 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
36599 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
36600 | } | |
36601 | return resultobj; | |
36602 | fail: | |
36603 | return NULL; | |
36604 | } | |
36605 | ||
36606 | ||
36607 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
36608 | int argc; | |
36609 | PyObject *argv[3]; | |
36610 | int ii; | |
36611 | ||
36612 | argc = PyObject_Length(args); | |
36613 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
36614 | argv[ii] = PyTuple_GetItem(args,ii); | |
36615 | } | |
36616 | if (argc == 2) { | |
36617 | int _v; | |
36618 | { | |
36619 | void *ptr; | |
36620 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36621 | _v = 0; | |
36622 | PyErr_Clear(); | |
36623 | } else { | |
36624 | _v = 1; | |
36625 | } | |
36626 | } | |
36627 | if (_v) { | |
36628 | { | |
36629 | void *ptr; | |
36630 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
36631 | _v = 0; | |
36632 | PyErr_Clear(); | |
36633 | } else { | |
36634 | _v = 1; | |
36635 | } | |
36636 | } | |
36637 | if (_v) { | |
36638 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
36639 | } | |
36640 | } | |
36641 | } | |
36642 | if (argc == 2) { | |
36643 | int _v; | |
36644 | { | |
36645 | void *ptr; | |
36646 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36647 | _v = 0; | |
36648 | PyErr_Clear(); | |
36649 | } else { | |
36650 | _v = 1; | |
36651 | } | |
36652 | } | |
36653 | if (_v) { | |
36654 | { | |
36655 | void *ptr; | |
36656 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
36657 | _v = 0; | |
36658 | PyErr_Clear(); | |
36659 | } else { | |
36660 | _v = 1; | |
36661 | } | |
36662 | } | |
36663 | if (_v) { | |
36664 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
36665 | } | |
36666 | } | |
36667 | } | |
36668 | if (argc == 2) { | |
36669 | int _v; | |
36670 | { | |
36671 | void *ptr; | |
36672 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36673 | _v = 0; | |
36674 | PyErr_Clear(); | |
36675 | } else { | |
36676 | _v = 1; | |
36677 | } | |
36678 | } | |
36679 | if (_v) { | |
36680 | { | |
994141e6 | 36681 | SWIG_PyObj_AsUnsignedLong(argv[1]); |
a41e16b6 RD |
36682 | if (PyErr_Occurred()) { |
36683 | _v = 0; | |
36684 | PyErr_Clear(); | |
36685 | } else { | |
36686 | _v = 1; | |
36687 | } | |
d14a1e28 RD |
36688 | } |
36689 | if (_v) { | |
36690 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
36691 | } | |
36692 | } | |
36693 | } | |
36694 | ||
36695 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
36696 | return NULL; | |
36697 | } | |
36698 | ||
36699 | ||
36700 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
36701 | PyObject *resultobj; | |
36702 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36703 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36704 | wxGBSpan *arg3 = 0 ; | |
36705 | bool result; | |
36706 | wxGBSpan temp3 ; | |
36707 | PyObject * obj0 = 0 ; | |
36708 | PyObject * obj1 = 0 ; | |
36709 | PyObject * obj2 = 0 ; | |
36710 | ||
36711 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
36712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36713 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36714 | { | |
36715 | arg3 = &temp3; | |
36716 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36717 | } | |
36718 | { | |
36719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36720 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
36721 | ||
36722 | wxPyEndAllowThreads(__tstate); | |
36723 | if (PyErr_Occurred()) SWIG_fail; | |
36724 | } | |
4d5c3d91 | 36725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36726 | return resultobj; |
36727 | fail: | |
36728 | return NULL; | |
36729 | } | |
36730 | ||
36731 | ||
36732 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
36733 | PyObject *resultobj; | |
36734 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36735 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36736 | wxGBSpan *arg3 = 0 ; | |
36737 | bool result; | |
36738 | wxGBSpan temp3 ; | |
36739 | PyObject * obj0 = 0 ; | |
36740 | PyObject * obj1 = 0 ; | |
36741 | PyObject * obj2 = 0 ; | |
36742 | ||
36743 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
36744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36745 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36746 | { | |
36747 | arg3 = &temp3; | |
36748 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36749 | } | |
36750 | { | |
36751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36752 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
36753 | ||
36754 | wxPyEndAllowThreads(__tstate); | |
36755 | if (PyErr_Occurred()) SWIG_fail; | |
36756 | } | |
4d5c3d91 | 36757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36758 | return resultobj; |
36759 | fail: | |
36760 | return NULL; | |
36761 | } | |
36762 | ||
36763 | ||
36764 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
36765 | PyObject *resultobj; | |
36766 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36767 | size_t arg2 ; | |
36768 | wxGBSpan *arg3 = 0 ; | |
36769 | bool result; | |
36770 | wxGBSpan temp3 ; | |
36771 | PyObject * obj0 = 0 ; | |
36772 | PyObject * obj1 = 0 ; | |
36773 | PyObject * obj2 = 0 ; | |
36774 | ||
36775 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
36776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 36777 | { |
994141e6 | 36778 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
36779 | if (PyErr_Occurred()) SWIG_fail; |
36780 | } | |
d14a1e28 RD |
36781 | { |
36782 | arg3 = &temp3; | |
36783 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36784 | } | |
36785 | { | |
36786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36787 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
36788 | ||
36789 | wxPyEndAllowThreads(__tstate); | |
36790 | if (PyErr_Occurred()) SWIG_fail; | |
36791 | } | |
4d5c3d91 | 36792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36793 | return resultobj; |
36794 | fail: | |
36795 | return NULL; | |
36796 | } | |
36797 | ||
36798 | ||
36799 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
36800 | int argc; | |
36801 | PyObject *argv[4]; | |
36802 | int ii; | |
36803 | ||
36804 | argc = PyObject_Length(args); | |
36805 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
36806 | argv[ii] = PyTuple_GetItem(args,ii); | |
36807 | } | |
36808 | if (argc == 3) { | |
36809 | int _v; | |
36810 | { | |
36811 | void *ptr; | |
36812 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36813 | _v = 0; | |
36814 | PyErr_Clear(); | |
36815 | } else { | |
36816 | _v = 1; | |
36817 | } | |
36818 | } | |
36819 | if (_v) { | |
36820 | { | |
36821 | void *ptr; | |
36822 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
36823 | _v = 0; | |
36824 | PyErr_Clear(); | |
36825 | } else { | |
36826 | _v = 1; | |
36827 | } | |
36828 | } | |
36829 | if (_v) { | |
36830 | { | |
36831 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
36832 | } | |
36833 | if (_v) { | |
36834 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
36835 | } | |
36836 | } | |
36837 | } | |
36838 | } | |
36839 | if (argc == 3) { | |
36840 | int _v; | |
36841 | { | |
36842 | void *ptr; | |
36843 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36844 | _v = 0; | |
36845 | PyErr_Clear(); | |
36846 | } else { | |
36847 | _v = 1; | |
36848 | } | |
36849 | } | |
36850 | if (_v) { | |
36851 | { | |
36852 | void *ptr; | |
36853 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
36854 | _v = 0; | |
36855 | PyErr_Clear(); | |
36856 | } else { | |
36857 | _v = 1; | |
36858 | } | |
36859 | } | |
36860 | if (_v) { | |
36861 | { | |
36862 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
36863 | } | |
36864 | if (_v) { | |
36865 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
36866 | } | |
36867 | } | |
36868 | } | |
36869 | } | |
36870 | if (argc == 3) { | |
36871 | int _v; | |
36872 | { | |
36873 | void *ptr; | |
36874 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36875 | _v = 0; | |
36876 | PyErr_Clear(); | |
36877 | } else { | |
36878 | _v = 1; | |
36879 | } | |
36880 | } | |
36881 | if (_v) { | |
36882 | { | |
994141e6 | 36883 | SWIG_PyObj_AsUnsignedLong(argv[1]); |
a41e16b6 RD |
36884 | if (PyErr_Occurred()) { |
36885 | _v = 0; | |
36886 | PyErr_Clear(); | |
36887 | } else { | |
36888 | _v = 1; | |
36889 | } | |
d14a1e28 RD |
36890 | } |
36891 | if (_v) { | |
36892 | { | |
36893 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
36894 | } | |
36895 | if (_v) { | |
36896 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
36897 | } | |
36898 | } | |
36899 | } | |
36900 | } | |
36901 | ||
36902 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
36903 | return NULL; | |
36904 | } | |
36905 | ||
36906 | ||
36907 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
36908 | PyObject *resultobj; | |
36909 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36910 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36911 | wxGBSizerItem *result; | |
36912 | PyObject * obj0 = 0 ; | |
36913 | PyObject * obj1 = 0 ; | |
36914 | ||
36915 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
36916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36917 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36918 | { | |
36919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36920 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
36921 | ||
36922 | wxPyEndAllowThreads(__tstate); | |
36923 | if (PyErr_Occurred()) SWIG_fail; | |
36924 | } | |
36925 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
36926 | return resultobj; | |
36927 | fail: | |
36928 | return NULL; | |
36929 | } | |
36930 | ||
36931 | ||
36932 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
36933 | PyObject *resultobj; | |
36934 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36935 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36936 | wxGBSizerItem *result; | |
36937 | PyObject * obj0 = 0 ; | |
36938 | PyObject * obj1 = 0 ; | |
36939 | ||
36940 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
36941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36942 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36943 | { | |
36944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36945 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
36946 | ||
36947 | wxPyEndAllowThreads(__tstate); | |
36948 | if (PyErr_Occurred()) SWIG_fail; | |
36949 | } | |
36950 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
36951 | return resultobj; | |
36952 | fail: | |
36953 | return NULL; | |
36954 | } | |
36955 | ||
36956 | ||
36957 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
36958 | int argc; | |
36959 | PyObject *argv[3]; | |
36960 | int ii; | |
36961 | ||
36962 | argc = PyObject_Length(args); | |
36963 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
36964 | argv[ii] = PyTuple_GetItem(args,ii); | |
36965 | } | |
36966 | if (argc == 2) { | |
36967 | int _v; | |
36968 | { | |
36969 | void *ptr; | |
36970 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36971 | _v = 0; | |
36972 | PyErr_Clear(); | |
36973 | } else { | |
36974 | _v = 1; | |
36975 | } | |
36976 | } | |
36977 | if (_v) { | |
36978 | { | |
36979 | void *ptr; | |
36980 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
36981 | _v = 0; | |
36982 | PyErr_Clear(); | |
36983 | } else { | |
36984 | _v = 1; | |
36985 | } | |
36986 | } | |
36987 | if (_v) { | |
36988 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
36989 | } | |
36990 | } | |
36991 | } | |
36992 | if (argc == 2) { | |
36993 | int _v; | |
36994 | { | |
36995 | void *ptr; | |
36996 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36997 | _v = 0; | |
36998 | PyErr_Clear(); | |
36999 | } else { | |
37000 | _v = 1; | |
37001 | } | |
37002 | } | |
37003 | if (_v) { | |
37004 | { | |
37005 | void *ptr; | |
37006 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
37007 | _v = 0; | |
37008 | PyErr_Clear(); | |
37009 | } else { | |
37010 | _v = 1; | |
37011 | } | |
37012 | } | |
37013 | if (_v) { | |
37014 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
37015 | } | |
37016 | } | |
37017 | } | |
37018 | ||
37019 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
37020 | return NULL; | |
37021 | } | |
37022 | ||
37023 | ||
37024 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37025 | PyObject *resultobj; | |
37026 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37027 | wxGBPosition *arg2 = 0 ; | |
37028 | wxGBSizerItem *result; | |
37029 | wxGBPosition temp2 ; | |
37030 | PyObject * obj0 = 0 ; | |
37031 | PyObject * obj1 = 0 ; | |
37032 | char *kwnames[] = { | |
37033 | (char *) "self",(char *) "pos", NULL | |
37034 | }; | |
37035 | ||
37036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
37037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37038 | { | |
37039 | arg2 = &temp2; | |
37040 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37041 | } | |
37042 | { | |
37043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37044 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
37045 | ||
37046 | wxPyEndAllowThreads(__tstate); | |
37047 | if (PyErr_Occurred()) SWIG_fail; | |
37048 | } | |
37049 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
37050 | return resultobj; | |
37051 | fail: | |
37052 | return NULL; | |
37053 | } | |
37054 | ||
37055 | ||
e811c8ce RD |
37056 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
37057 | PyObject *resultobj; | |
37058 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37059 | wxPoint *arg2 = 0 ; | |
37060 | wxGBSizerItem *result; | |
37061 | wxPoint temp2 ; | |
37062 | PyObject * obj0 = 0 ; | |
37063 | PyObject * obj1 = 0 ; | |
37064 | char *kwnames[] = { | |
37065 | (char *) "self",(char *) "pt", NULL | |
37066 | }; | |
37067 | ||
37068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
37069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37070 | { | |
37071 | arg2 = &temp2; | |
37072 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37073 | } | |
37074 | { | |
37075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37076 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
37077 | ||
37078 | wxPyEndAllowThreads(__tstate); | |
37079 | if (PyErr_Occurred()) SWIG_fail; | |
37080 | } | |
37081 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
37082 | return resultobj; | |
37083 | fail: | |
37084 | return NULL; | |
37085 | } | |
37086 | ||
37087 | ||
d14a1e28 RD |
37088 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { |
37089 | PyObject *resultobj; | |
37090 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37091 | wxObject *arg2 = (wxObject *) 0 ; | |
37092 | wxGBSizerItem *result; | |
37093 | PyObject * obj0 = 0 ; | |
37094 | PyObject * obj1 = 0 ; | |
37095 | char *kwnames[] = { | |
37096 | (char *) "self",(char *) "userData", NULL | |
37097 | }; | |
37098 | ||
37099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
37100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37101 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37102 | { | |
37103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37104 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
37105 | ||
37106 | wxPyEndAllowThreads(__tstate); | |
37107 | if (PyErr_Occurred()) SWIG_fail; | |
37108 | } | |
37109 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
37110 | return resultobj; | |
37111 | fail: | |
37112 | return NULL; | |
37113 | } | |
37114 | ||
37115 | ||
37116 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37117 | PyObject *resultobj; | |
37118 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37119 | PyObject * obj0 = 0 ; | |
37120 | char *kwnames[] = { | |
37121 | (char *) "self", NULL | |
37122 | }; | |
37123 | ||
37124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
37125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37126 | { | |
37127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37128 | (arg1)->RecalcSizes(); | |
37129 | ||
37130 | wxPyEndAllowThreads(__tstate); | |
37131 | if (PyErr_Occurred()) SWIG_fail; | |
37132 | } | |
37133 | Py_INCREF(Py_None); resultobj = Py_None; | |
37134 | return resultobj; | |
37135 | fail: | |
37136 | return NULL; | |
37137 | } | |
37138 | ||
37139 | ||
37140 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37141 | PyObject *resultobj; | |
37142 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37143 | wxSize result; | |
37144 | PyObject * obj0 = 0 ; | |
37145 | char *kwnames[] = { | |
37146 | (char *) "self", NULL | |
37147 | }; | |
37148 | ||
37149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
37150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37151 | { | |
37152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37153 | result = (arg1)->CalcMin(); | |
37154 | ||
37155 | wxPyEndAllowThreads(__tstate); | |
37156 | if (PyErr_Occurred()) SWIG_fail; | |
37157 | } | |
37158 | { | |
37159 | wxSize * resultptr; | |
37160 | resultptr = new wxSize((wxSize &) result); | |
37161 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
37162 | } | |
37163 | return resultobj; | |
37164 | fail: | |
37165 | return NULL; | |
37166 | } | |
37167 | ||
37168 | ||
37169 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
37170 | PyObject *resultobj; | |
37171 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37172 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
37173 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
37174 | bool result; | |
37175 | PyObject * obj0 = 0 ; | |
37176 | PyObject * obj1 = 0 ; | |
37177 | PyObject * obj2 = 0 ; | |
37178 | ||
37179 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
37180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37181 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37182 | if (obj2) { | |
37183 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37184 | } | |
37185 | { | |
37186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37187 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
37188 | ||
37189 | wxPyEndAllowThreads(__tstate); | |
37190 | if (PyErr_Occurred()) SWIG_fail; | |
37191 | } | |
4d5c3d91 | 37192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37193 | return resultobj; |
37194 | fail: | |
37195 | return NULL; | |
37196 | } | |
37197 | ||
37198 | ||
37199 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
37200 | PyObject *resultobj; | |
37201 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37202 | wxGBPosition *arg2 = 0 ; | |
37203 | wxGBSpan *arg3 = 0 ; | |
37204 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
37205 | bool result; | |
37206 | wxGBPosition temp2 ; | |
37207 | wxGBSpan temp3 ; | |
37208 | PyObject * obj0 = 0 ; | |
37209 | PyObject * obj1 = 0 ; | |
37210 | PyObject * obj2 = 0 ; | |
37211 | PyObject * obj3 = 0 ; | |
37212 | ||
37213 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
37214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37215 | { | |
37216 | arg2 = &temp2; | |
37217 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37218 | } | |
37219 | { | |
37220 | arg3 = &temp3; | |
37221 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37222 | } | |
37223 | if (obj3) { | |
37224 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37225 | } | |
37226 | { | |
37227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37228 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
37229 | ||
37230 | wxPyEndAllowThreads(__tstate); | |
37231 | if (PyErr_Occurred()) SWIG_fail; | |
37232 | } | |
4d5c3d91 | 37233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37234 | return resultobj; |
37235 | fail: | |
37236 | return NULL; | |
37237 | } | |
37238 | ||
37239 | ||
37240 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
37241 | int argc; | |
37242 | PyObject *argv[5]; | |
37243 | int ii; | |
37244 | ||
37245 | argc = PyObject_Length(args); | |
37246 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
37247 | argv[ii] = PyTuple_GetItem(args,ii); | |
37248 | } | |
37249 | if ((argc >= 2) && (argc <= 3)) { | |
37250 | int _v; | |
37251 | { | |
37252 | void *ptr; | |
37253 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37254 | _v = 0; | |
37255 | PyErr_Clear(); | |
37256 | } else { | |
37257 | _v = 1; | |
37258 | } | |
37259 | } | |
37260 | if (_v) { | |
37261 | { | |
37262 | void *ptr; | |
37263 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37264 | _v = 0; | |
37265 | PyErr_Clear(); | |
37266 | } else { | |
37267 | _v = 1; | |
37268 | } | |
37269 | } | |
37270 | if (_v) { | |
37271 | if (argc <= 2) { | |
37272 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
37273 | } | |
37274 | { | |
37275 | void *ptr; | |
37276 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37277 | _v = 0; | |
37278 | PyErr_Clear(); | |
37279 | } else { | |
37280 | _v = 1; | |
37281 | } | |
37282 | } | |
37283 | if (_v) { | |
37284 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
37285 | } | |
37286 | } | |
37287 | } | |
37288 | } | |
37289 | if ((argc >= 3) && (argc <= 4)) { | |
37290 | int _v; | |
37291 | { | |
37292 | void *ptr; | |
37293 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37294 | _v = 0; | |
37295 | PyErr_Clear(); | |
37296 | } else { | |
37297 | _v = 1; | |
37298 | } | |
37299 | } | |
37300 | if (_v) { | |
37301 | { | |
37302 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
37303 | } | |
37304 | if (_v) { | |
37305 | { | |
37306 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37307 | } | |
37308 | if (_v) { | |
37309 | if (argc <= 3) { | |
37310 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
37311 | } | |
37312 | { | |
37313 | void *ptr; | |
37314 | if (SWIG_ConvertPtr(argv[3], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37315 | _v = 0; | |
37316 | PyErr_Clear(); | |
37317 | } else { | |
37318 | _v = 1; | |
37319 | } | |
37320 | } | |
37321 | if (_v) { | |
37322 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
37323 | } | |
37324 | } | |
37325 | } | |
37326 | } | |
37327 | } | |
37328 | ||
37329 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
37330 | return NULL; | |
37331 | } | |
37332 | ||
37333 | ||
37334 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
37335 | PyObject *obj; | |
37336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37337 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
37338 | Py_INCREF(obj); | |
37339 | return Py_BuildValue((char *)""); | |
37340 | } | |
37341 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37342 | PyObject *resultobj; | |
37343 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37344 | int arg2 ; | |
37345 | wxWindow *arg3 = (wxWindow *) 0 ; | |
37346 | int arg4 ; | |
37347 | int arg5 = (int) 0 ; | |
37348 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
37349 | PyObject * obj0 = 0 ; | |
994141e6 | 37350 | PyObject * obj1 = 0 ; |
d14a1e28 | 37351 | PyObject * obj2 = 0 ; |
994141e6 RD |
37352 | PyObject * obj3 = 0 ; |
37353 | PyObject * obj4 = 0 ; | |
37354 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37355 | char *kwnames[] = { |
37356 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
37357 | }; | |
37358 | ||
994141e6 | 37359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 37360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
37361 | { |
37362 | arg2 = (wxRelationship) SWIG_PyObj_AsInt(obj1); | |
37363 | if (PyErr_Occurred()) SWIG_fail; | |
37364 | } | |
d14a1e28 | 37365 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
37366 | { |
37367 | arg4 = (wxEdge) SWIG_PyObj_AsInt(obj3); | |
37368 | if (PyErr_Occurred()) SWIG_fail; | |
37369 | } | |
37370 | if (obj4) { | |
37371 | { | |
37372 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
37373 | if (PyErr_Occurred()) SWIG_fail; | |
37374 | } | |
37375 | } | |
37376 | if (obj5) { | |
37377 | { | |
37378 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
37379 | if (PyErr_Occurred()) SWIG_fail; | |
37380 | } | |
37381 | } | |
d14a1e28 RD |
37382 | { |
37383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37384 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
37385 | ||
37386 | wxPyEndAllowThreads(__tstate); | |
37387 | if (PyErr_Occurred()) SWIG_fail; | |
37388 | } | |
37389 | Py_INCREF(Py_None); resultobj = Py_None; | |
37390 | return resultobj; | |
37391 | fail: | |
37392 | return NULL; | |
37393 | } | |
37394 | ||
37395 | ||
37396 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37397 | PyObject *resultobj; | |
37398 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37399 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37400 | int arg3 = (int) 0 ; | |
37401 | PyObject * obj0 = 0 ; | |
37402 | PyObject * obj1 = 0 ; | |
994141e6 | 37403 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37404 | char *kwnames[] = { |
37405 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37406 | }; | |
37407 | ||
994141e6 | 37408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
37409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
37410 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
37411 | if (obj2) { |
37412 | { | |
37413 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
37414 | if (PyErr_Occurred()) SWIG_fail; | |
37415 | } | |
37416 | } | |
d14a1e28 RD |
37417 | { |
37418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37419 | (arg1)->LeftOf(arg2,arg3); | |
37420 | ||
37421 | wxPyEndAllowThreads(__tstate); | |
37422 | if (PyErr_Occurred()) SWIG_fail; | |
37423 | } | |
37424 | Py_INCREF(Py_None); resultobj = Py_None; | |
37425 | return resultobj; | |
37426 | fail: | |
37427 | return NULL; | |
37428 | } | |
37429 | ||
37430 | ||
37431 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37432 | PyObject *resultobj; | |
37433 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37434 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37435 | int arg3 = (int) 0 ; | |
37436 | PyObject * obj0 = 0 ; | |
37437 | PyObject * obj1 = 0 ; | |
994141e6 | 37438 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37439 | char *kwnames[] = { |
37440 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37441 | }; | |
37442 | ||
994141e6 | 37443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
37444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
37445 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
37446 | if (obj2) { |
37447 | { | |
37448 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
37449 | if (PyErr_Occurred()) SWIG_fail; | |
37450 | } | |
37451 | } | |
d14a1e28 RD |
37452 | { |
37453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37454 | (arg1)->RightOf(arg2,arg3); | |
37455 | ||
37456 | wxPyEndAllowThreads(__tstate); | |
37457 | if (PyErr_Occurred()) SWIG_fail; | |
37458 | } | |
37459 | Py_INCREF(Py_None); resultobj = Py_None; | |
37460 | return resultobj; | |
37461 | fail: | |
37462 | return NULL; | |
37463 | } | |
37464 | ||
37465 | ||
37466 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37467 | PyObject *resultobj; | |
37468 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37469 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37470 | int arg3 = (int) 0 ; | |
37471 | PyObject * obj0 = 0 ; | |
37472 | PyObject * obj1 = 0 ; | |
994141e6 | 37473 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37474 | char *kwnames[] = { |
37475 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37476 | }; | |
37477 | ||
994141e6 | 37478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
37479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
37480 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
37481 | if (obj2) { |
37482 | { | |
37483 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
37484 | if (PyErr_Occurred()) SWIG_fail; | |
37485 | } | |
37486 | } | |
d14a1e28 RD |
37487 | { |
37488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37489 | (arg1)->Above(arg2,arg3); | |
37490 | ||
37491 | wxPyEndAllowThreads(__tstate); | |
37492 | if (PyErr_Occurred()) SWIG_fail; | |
37493 | } | |
37494 | Py_INCREF(Py_None); resultobj = Py_None; | |
37495 | return resultobj; | |
37496 | fail: | |
37497 | return NULL; | |
37498 | } | |
37499 | ||
37500 | ||
37501 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37502 | PyObject *resultobj; | |
37503 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37504 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37505 | int arg3 = (int) 0 ; | |
37506 | PyObject * obj0 = 0 ; | |
37507 | PyObject * obj1 = 0 ; | |
994141e6 | 37508 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37509 | char *kwnames[] = { |
37510 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37511 | }; | |
37512 | ||
994141e6 | 37513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
37514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
37515 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
37516 | if (obj2) { |
37517 | { | |
37518 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
37519 | if (PyErr_Occurred()) SWIG_fail; | |
37520 | } | |
37521 | } | |
d14a1e28 RD |
37522 | { |
37523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37524 | (arg1)->Below(arg2,arg3); | |
37525 | ||
37526 | wxPyEndAllowThreads(__tstate); | |
37527 | if (PyErr_Occurred()) SWIG_fail; | |
37528 | } | |
37529 | Py_INCREF(Py_None); resultobj = Py_None; | |
37530 | return resultobj; | |
37531 | fail: | |
37532 | return NULL; | |
37533 | } | |
37534 | ||
37535 | ||
37536 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37537 | PyObject *resultobj; | |
37538 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37539 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37540 | int arg3 ; | |
37541 | int arg4 = (int) 0 ; | |
37542 | PyObject * obj0 = 0 ; | |
37543 | PyObject * obj1 = 0 ; | |
994141e6 RD |
37544 | PyObject * obj2 = 0 ; |
37545 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
37546 | char *kwnames[] = { |
37547 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
37548 | }; | |
37549 | ||
994141e6 | 37550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
37551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
37552 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
37553 | { |
37554 | arg3 = (wxEdge) SWIG_PyObj_AsInt(obj2); | |
37555 | if (PyErr_Occurred()) SWIG_fail; | |
37556 | } | |
37557 | if (obj3) { | |
37558 | { | |
37559 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
37560 | if (PyErr_Occurred()) SWIG_fail; | |
37561 | } | |
37562 | } | |
d14a1e28 RD |
37563 | { |
37564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37565 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
37566 | ||
37567 | wxPyEndAllowThreads(__tstate); | |
37568 | if (PyErr_Occurred()) SWIG_fail; | |
37569 | } | |
37570 | Py_INCREF(Py_None); resultobj = Py_None; | |
37571 | return resultobj; | |
37572 | fail: | |
37573 | return NULL; | |
37574 | } | |
37575 | ||
37576 | ||
37577 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37578 | PyObject *resultobj; | |
37579 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37580 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37581 | int arg3 ; | |
37582 | int arg4 ; | |
37583 | PyObject * obj0 = 0 ; | |
37584 | PyObject * obj1 = 0 ; | |
994141e6 RD |
37585 | PyObject * obj2 = 0 ; |
37586 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
37587 | char *kwnames[] = { |
37588 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
37589 | }; | |
37590 | ||
994141e6 | 37591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
37592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
37593 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
37594 | { |
37595 | arg3 = (wxEdge) SWIG_PyObj_AsInt(obj2); | |
37596 | if (PyErr_Occurred()) SWIG_fail; | |
37597 | } | |
37598 | { | |
37599 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
37600 | if (PyErr_Occurred()) SWIG_fail; | |
37601 | } | |
d14a1e28 RD |
37602 | { |
37603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37604 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
37605 | ||
37606 | wxPyEndAllowThreads(__tstate); | |
37607 | if (PyErr_Occurred()) SWIG_fail; | |
37608 | } | |
37609 | Py_INCREF(Py_None); resultobj = Py_None; | |
37610 | return resultobj; | |
37611 | fail: | |
37612 | return NULL; | |
37613 | } | |
37614 | ||
37615 | ||
37616 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37617 | PyObject *resultobj; | |
37618 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37619 | int arg2 ; | |
37620 | PyObject * obj0 = 0 ; | |
994141e6 | 37621 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37622 | char *kwnames[] = { |
37623 | (char *) "self",(char *) "val", NULL | |
37624 | }; | |
37625 | ||
994141e6 | 37626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 37627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
37628 | { |
37629 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
37630 | if (PyErr_Occurred()) SWIG_fail; | |
37631 | } | |
d14a1e28 RD |
37632 | { |
37633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37634 | (arg1)->Absolute(arg2); | |
37635 | ||
37636 | wxPyEndAllowThreads(__tstate); | |
37637 | if (PyErr_Occurred()) SWIG_fail; | |
37638 | } | |
37639 | Py_INCREF(Py_None); resultobj = Py_None; | |
37640 | return resultobj; | |
37641 | fail: | |
37642 | return NULL; | |
37643 | } | |
37644 | ||
37645 | ||
37646 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37647 | PyObject *resultobj; | |
37648 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37649 | PyObject * obj0 = 0 ; | |
37650 | char *kwnames[] = { | |
37651 | (char *) "self", NULL | |
37652 | }; | |
37653 | ||
37654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
37655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37656 | { | |
37657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37658 | (arg1)->Unconstrained(); | |
37659 | ||
37660 | wxPyEndAllowThreads(__tstate); | |
37661 | if (PyErr_Occurred()) SWIG_fail; | |
37662 | } | |
37663 | Py_INCREF(Py_None); resultobj = Py_None; | |
37664 | return resultobj; | |
37665 | fail: | |
37666 | return NULL; | |
37667 | } | |
37668 | ||
37669 | ||
37670 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37671 | PyObject *resultobj; | |
37672 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37673 | PyObject * obj0 = 0 ; | |
37674 | char *kwnames[] = { | |
37675 | (char *) "self", NULL | |
37676 | }; | |
37677 | ||
37678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
37679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37680 | { | |
37681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37682 | (arg1)->AsIs(); | |
37683 | ||
37684 | wxPyEndAllowThreads(__tstate); | |
37685 | if (PyErr_Occurred()) SWIG_fail; | |
37686 | } | |
37687 | Py_INCREF(Py_None); resultobj = Py_None; | |
37688 | return resultobj; | |
37689 | fail: | |
37690 | return NULL; | |
37691 | } | |
37692 | ||
37693 | ||
37694 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37695 | PyObject *resultobj; | |
37696 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37697 | wxWindow *result; | |
37698 | PyObject * obj0 = 0 ; | |
37699 | char *kwnames[] = { | |
37700 | (char *) "self", NULL | |
37701 | }; | |
37702 | ||
37703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
37704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37705 | { | |
37706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37707 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
37708 | ||
37709 | wxPyEndAllowThreads(__tstate); | |
37710 | if (PyErr_Occurred()) SWIG_fail; | |
37711 | } | |
37712 | { | |
37713 | resultobj = wxPyMake_wxObject(result); | |
37714 | } | |
37715 | return resultobj; | |
37716 | fail: | |
37717 | return NULL; | |
37718 | } | |
37719 | ||
37720 | ||
37721 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37722 | PyObject *resultobj; | |
37723 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37724 | int result; | |
37725 | PyObject * obj0 = 0 ; | |
37726 | char *kwnames[] = { | |
37727 | (char *) "self", NULL | |
37728 | }; | |
37729 | ||
37730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
37731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37732 | { | |
37733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37734 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
37735 | ||
37736 | wxPyEndAllowThreads(__tstate); | |
37737 | if (PyErr_Occurred()) SWIG_fail; | |
37738 | } | |
994141e6 | 37739 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
37740 | return resultobj; |
37741 | fail: | |
37742 | return NULL; | |
37743 | } | |
37744 | ||
37745 | ||
37746 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37747 | PyObject *resultobj; | |
37748 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37749 | int arg2 ; | |
37750 | PyObject * obj0 = 0 ; | |
994141e6 | 37751 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37752 | char *kwnames[] = { |
37753 | (char *) "self",(char *) "which", NULL | |
37754 | }; | |
37755 | ||
994141e6 | 37756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 37757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
37758 | { |
37759 | arg2 = (wxEdge) SWIG_PyObj_AsInt(obj1); | |
37760 | if (PyErr_Occurred()) SWIG_fail; | |
37761 | } | |
d14a1e28 RD |
37762 | { |
37763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37764 | (arg1)->SetEdge((wxEdge )arg2); | |
37765 | ||
37766 | wxPyEndAllowThreads(__tstate); | |
37767 | if (PyErr_Occurred()) SWIG_fail; | |
37768 | } | |
37769 | Py_INCREF(Py_None); resultobj = Py_None; | |
37770 | return resultobj; | |
37771 | fail: | |
37772 | return NULL; | |
37773 | } | |
37774 | ||
37775 | ||
37776 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37777 | PyObject *resultobj; | |
37778 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37779 | int arg2 ; | |
37780 | PyObject * obj0 = 0 ; | |
994141e6 | 37781 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37782 | char *kwnames[] = { |
37783 | (char *) "self",(char *) "v", NULL | |
37784 | }; | |
37785 | ||
994141e6 | 37786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 37787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
37788 | { |
37789 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
37790 | if (PyErr_Occurred()) SWIG_fail; | |
37791 | } | |
d14a1e28 RD |
37792 | { |
37793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37794 | (arg1)->SetValue(arg2); | |
37795 | ||
37796 | wxPyEndAllowThreads(__tstate); | |
37797 | if (PyErr_Occurred()) SWIG_fail; | |
37798 | } | |
37799 | Py_INCREF(Py_None); resultobj = Py_None; | |
37800 | return resultobj; | |
37801 | fail: | |
37802 | return NULL; | |
37803 | } | |
37804 | ||
37805 | ||
37806 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37807 | PyObject *resultobj; | |
37808 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37809 | int result; | |
37810 | PyObject * obj0 = 0 ; | |
37811 | char *kwnames[] = { | |
37812 | (char *) "self", NULL | |
37813 | }; | |
37814 | ||
37815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
37816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37817 | { | |
37818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37819 | result = (int)(arg1)->GetMargin(); | |
37820 | ||
37821 | wxPyEndAllowThreads(__tstate); | |
37822 | if (PyErr_Occurred()) SWIG_fail; | |
37823 | } | |
994141e6 | 37824 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
37825 | return resultobj; |
37826 | fail: | |
37827 | return NULL; | |
37828 | } | |
37829 | ||
37830 | ||
37831 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37832 | PyObject *resultobj; | |
37833 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37834 | int arg2 ; | |
37835 | PyObject * obj0 = 0 ; | |
994141e6 | 37836 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37837 | char *kwnames[] = { |
37838 | (char *) "self",(char *) "m", NULL | |
37839 | }; | |
37840 | ||
994141e6 | 37841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 37842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
37843 | { |
37844 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
37845 | if (PyErr_Occurred()) SWIG_fail; | |
37846 | } | |
d14a1e28 RD |
37847 | { |
37848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37849 | (arg1)->SetMargin(arg2); | |
37850 | ||
37851 | wxPyEndAllowThreads(__tstate); | |
37852 | if (PyErr_Occurred()) SWIG_fail; | |
37853 | } | |
37854 | Py_INCREF(Py_None); resultobj = Py_None; | |
37855 | return resultobj; | |
37856 | fail: | |
37857 | return NULL; | |
37858 | } | |
37859 | ||
37860 | ||
37861 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37862 | PyObject *resultobj; | |
37863 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37864 | int result; | |
37865 | PyObject * obj0 = 0 ; | |
37866 | char *kwnames[] = { | |
37867 | (char *) "self", NULL | |
37868 | }; | |
37869 | ||
37870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
37871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37872 | { | |
37873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37874 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
37875 | ||
37876 | wxPyEndAllowThreads(__tstate); | |
37877 | if (PyErr_Occurred()) SWIG_fail; | |
37878 | } | |
994141e6 | 37879 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
37880 | return resultobj; |
37881 | fail: | |
37882 | return NULL; | |
37883 | } | |
37884 | ||
37885 | ||
37886 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37887 | PyObject *resultobj; | |
37888 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37889 | int result; | |
37890 | PyObject * obj0 = 0 ; | |
37891 | char *kwnames[] = { | |
37892 | (char *) "self", NULL | |
37893 | }; | |
37894 | ||
37895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
37896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37897 | { | |
37898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37899 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
37900 | ||
37901 | wxPyEndAllowThreads(__tstate); | |
37902 | if (PyErr_Occurred()) SWIG_fail; | |
37903 | } | |
994141e6 | 37904 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
37905 | return resultobj; |
37906 | fail: | |
37907 | return NULL; | |
37908 | } | |
37909 | ||
37910 | ||
37911 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37912 | PyObject *resultobj; | |
37913 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37914 | int result; | |
37915 | PyObject * obj0 = 0 ; | |
37916 | char *kwnames[] = { | |
37917 | (char *) "self", NULL | |
37918 | }; | |
37919 | ||
37920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
37921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37922 | { | |
37923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37924 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
37925 | ||
37926 | wxPyEndAllowThreads(__tstate); | |
37927 | if (PyErr_Occurred()) SWIG_fail; | |
37928 | } | |
994141e6 | 37929 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
37930 | return resultobj; |
37931 | fail: | |
37932 | return NULL; | |
37933 | } | |
37934 | ||
37935 | ||
37936 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37937 | PyObject *resultobj; | |
37938 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37939 | bool result; | |
37940 | PyObject * obj0 = 0 ; | |
37941 | char *kwnames[] = { | |
37942 | (char *) "self", NULL | |
37943 | }; | |
37944 | ||
37945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
37946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37947 | { | |
37948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37949 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
37950 | ||
37951 | wxPyEndAllowThreads(__tstate); | |
37952 | if (PyErr_Occurred()) SWIG_fail; | |
37953 | } | |
4d5c3d91 | 37954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37955 | return resultobj; |
37956 | fail: | |
37957 | return NULL; | |
37958 | } | |
37959 | ||
37960 | ||
37961 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37962 | PyObject *resultobj; | |
37963 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37964 | bool arg2 ; | |
37965 | PyObject * obj0 = 0 ; | |
37966 | PyObject * obj1 = 0 ; | |
37967 | char *kwnames[] = { | |
37968 | (char *) "self",(char *) "d", NULL | |
37969 | }; | |
37970 | ||
37971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
37972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 37973 | { |
994141e6 | 37974 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
37975 | if (PyErr_Occurred()) SWIG_fail; |
37976 | } | |
d14a1e28 RD |
37977 | { |
37978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37979 | (arg1)->SetDone(arg2); | |
37980 | ||
37981 | wxPyEndAllowThreads(__tstate); | |
37982 | if (PyErr_Occurred()) SWIG_fail; | |
37983 | } | |
37984 | Py_INCREF(Py_None); resultobj = Py_None; | |
37985 | return resultobj; | |
37986 | fail: | |
37987 | return NULL; | |
37988 | } | |
37989 | ||
37990 | ||
37991 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37992 | PyObject *resultobj; | |
37993 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37994 | int result; | |
37995 | PyObject * obj0 = 0 ; | |
37996 | char *kwnames[] = { | |
37997 | (char *) "self", NULL | |
37998 | }; | |
37999 | ||
38000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
38001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38002 | { | |
38003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38004 | result = (int)(arg1)->GetRelationship(); | |
38005 | ||
38006 | wxPyEndAllowThreads(__tstate); | |
38007 | if (PyErr_Occurred()) SWIG_fail; | |
38008 | } | |
994141e6 | 38009 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38010 | return resultobj; |
38011 | fail: | |
38012 | return NULL; | |
38013 | } | |
38014 | ||
38015 | ||
38016 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38017 | PyObject *resultobj; | |
38018 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38019 | int arg2 ; | |
38020 | PyObject * obj0 = 0 ; | |
994141e6 | 38021 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38022 | char *kwnames[] = { |
38023 | (char *) "self",(char *) "r", NULL | |
38024 | }; | |
38025 | ||
994141e6 | 38026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 38027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
38028 | { |
38029 | arg2 = (wxRelationship) SWIG_PyObj_AsInt(obj1); | |
38030 | if (PyErr_Occurred()) SWIG_fail; | |
38031 | } | |
d14a1e28 RD |
38032 | { |
38033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38034 | (arg1)->SetRelationship((wxRelationship )arg2); | |
38035 | ||
38036 | wxPyEndAllowThreads(__tstate); | |
38037 | if (PyErr_Occurred()) SWIG_fail; | |
38038 | } | |
38039 | Py_INCREF(Py_None); resultobj = Py_None; | |
38040 | return resultobj; | |
38041 | fail: | |
38042 | return NULL; | |
38043 | } | |
38044 | ||
38045 | ||
38046 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38047 | PyObject *resultobj; | |
38048 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38049 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38050 | bool result; | |
38051 | PyObject * obj0 = 0 ; | |
38052 | PyObject * obj1 = 0 ; | |
38053 | char *kwnames[] = { | |
38054 | (char *) "self",(char *) "otherW", NULL | |
38055 | }; | |
38056 | ||
38057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
38058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38059 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38060 | { | |
38061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38062 | result = (bool)(arg1)->ResetIfWin(arg2); | |
38063 | ||
38064 | wxPyEndAllowThreads(__tstate); | |
38065 | if (PyErr_Occurred()) SWIG_fail; | |
38066 | } | |
4d5c3d91 | 38067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38068 | return resultobj; |
38069 | fail: | |
38070 | return NULL; | |
38071 | } | |
38072 | ||
38073 | ||
38074 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38075 | PyObject *resultobj; | |
38076 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38077 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
38078 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38079 | bool result; | |
38080 | PyObject * obj0 = 0 ; | |
38081 | PyObject * obj1 = 0 ; | |
38082 | PyObject * obj2 = 0 ; | |
38083 | char *kwnames[] = { | |
38084 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
38085 | }; | |
38086 | ||
38087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38089 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38090 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38091 | { | |
38092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38093 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
38094 | ||
38095 | wxPyEndAllowThreads(__tstate); | |
38096 | if (PyErr_Occurred()) SWIG_fail; | |
38097 | } | |
4d5c3d91 | 38098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38099 | return resultobj; |
38100 | fail: | |
38101 | return NULL; | |
38102 | } | |
38103 | ||
38104 | ||
38105 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38106 | PyObject *resultobj; | |
38107 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38108 | int arg2 ; | |
38109 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38110 | wxWindow *arg4 = (wxWindow *) 0 ; | |
38111 | int result; | |
38112 | PyObject * obj0 = 0 ; | |
994141e6 | 38113 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38114 | PyObject * obj2 = 0 ; |
38115 | PyObject * obj3 = 0 ; | |
38116 | char *kwnames[] = { | |
38117 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
38118 | }; | |
38119 | ||
994141e6 | 38120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 38121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
38122 | { |
38123 | arg2 = (wxEdge) SWIG_PyObj_AsInt(obj1); | |
38124 | if (PyErr_Occurred()) SWIG_fail; | |
38125 | } | |
d14a1e28 RD |
38126 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
38127 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38128 | { | |
38129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38130 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
38131 | ||
38132 | wxPyEndAllowThreads(__tstate); | |
38133 | if (PyErr_Occurred()) SWIG_fail; | |
38134 | } | |
994141e6 | 38135 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38136 | return resultobj; |
38137 | fail: | |
38138 | return NULL; | |
38139 | } | |
38140 | ||
38141 | ||
38142 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
38143 | PyObject *obj; | |
38144 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38145 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
38146 | Py_INCREF(obj); | |
38147 | return Py_BuildValue((char *)""); | |
38148 | } | |
38149 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38150 | PyObject *resultobj; | |
38151 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38152 | wxIndividualLayoutConstraint *result; | |
38153 | PyObject * obj0 = 0 ; | |
38154 | char *kwnames[] = { | |
38155 | (char *) "self", NULL | |
38156 | }; | |
38157 | ||
38158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
38159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38160 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
38161 | ||
38162 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38163 | return resultobj; | |
38164 | fail: | |
38165 | return NULL; | |
38166 | } | |
38167 | ||
38168 | ||
38169 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38170 | PyObject *resultobj; | |
38171 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38172 | wxIndividualLayoutConstraint *result; | |
38173 | PyObject * obj0 = 0 ; | |
38174 | char *kwnames[] = { | |
38175 | (char *) "self", NULL | |
38176 | }; | |
38177 | ||
38178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
38179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38180 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
38181 | ||
38182 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38183 | return resultobj; | |
38184 | fail: | |
38185 | return NULL; | |
38186 | } | |
38187 | ||
38188 | ||
38189 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38190 | PyObject *resultobj; | |
38191 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38192 | wxIndividualLayoutConstraint *result; | |
38193 | PyObject * obj0 = 0 ; | |
38194 | char *kwnames[] = { | |
38195 | (char *) "self", NULL | |
38196 | }; | |
38197 | ||
38198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
38199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38200 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
38201 | ||
38202 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38203 | return resultobj; | |
38204 | fail: | |
38205 | return NULL; | |
38206 | } | |
38207 | ||
38208 | ||
38209 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38210 | PyObject *resultobj; | |
38211 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38212 | wxIndividualLayoutConstraint *result; | |
38213 | PyObject * obj0 = 0 ; | |
38214 | char *kwnames[] = { | |
38215 | (char *) "self", NULL | |
38216 | }; | |
38217 | ||
38218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
38219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38220 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
38221 | ||
38222 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38223 | return resultobj; | |
38224 | fail: | |
38225 | return NULL; | |
38226 | } | |
38227 | ||
38228 | ||
38229 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38230 | PyObject *resultobj; | |
38231 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38232 | wxIndividualLayoutConstraint *result; | |
38233 | PyObject * obj0 = 0 ; | |
38234 | char *kwnames[] = { | |
38235 | (char *) "self", NULL | |
38236 | }; | |
38237 | ||
38238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
38239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38240 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
38241 | ||
38242 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38243 | return resultobj; | |
38244 | fail: | |
38245 | return NULL; | |
38246 | } | |
38247 | ||
38248 | ||
38249 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38250 | PyObject *resultobj; | |
38251 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38252 | wxIndividualLayoutConstraint *result; | |
38253 | PyObject * obj0 = 0 ; | |
38254 | char *kwnames[] = { | |
38255 | (char *) "self", NULL | |
38256 | }; | |
38257 | ||
38258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
38259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38260 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
38261 | ||
38262 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38263 | return resultobj; | |
38264 | fail: | |
38265 | return NULL; | |
38266 | } | |
38267 | ||
38268 | ||
38269 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38270 | PyObject *resultobj; | |
38271 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38272 | wxIndividualLayoutConstraint *result; | |
38273 | PyObject * obj0 = 0 ; | |
38274 | char *kwnames[] = { | |
38275 | (char *) "self", NULL | |
38276 | }; | |
38277 | ||
38278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
38279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38280 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
38281 | ||
38282 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38283 | return resultobj; | |
38284 | fail: | |
38285 | return NULL; | |
38286 | } | |
38287 | ||
38288 | ||
38289 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38290 | PyObject *resultobj; | |
38291 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38292 | wxIndividualLayoutConstraint *result; | |
38293 | PyObject * obj0 = 0 ; | |
38294 | char *kwnames[] = { | |
38295 | (char *) "self", NULL | |
38296 | }; | |
38297 | ||
38298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
38299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38300 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
38301 | ||
38302 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38303 | return resultobj; | |
38304 | fail: | |
38305 | return NULL; | |
38306 | } | |
38307 | ||
38308 | ||
38309 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38310 | PyObject *resultobj; | |
38311 | wxLayoutConstraints *result; | |
38312 | char *kwnames[] = { | |
38313 | NULL | |
38314 | }; | |
38315 | ||
38316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
38317 | { | |
38318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38319 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
38320 | ||
38321 | wxPyEndAllowThreads(__tstate); | |
38322 | if (PyErr_Occurred()) SWIG_fail; | |
38323 | } | |
38324 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 1); | |
38325 | return resultobj; | |
38326 | fail: | |
38327 | return NULL; | |
38328 | } | |
38329 | ||
38330 | ||
38331 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38332 | PyObject *resultobj; | |
38333 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38334 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38335 | int *arg3 = (int *) 0 ; | |
38336 | bool result; | |
38337 | int temp3 ; | |
38338 | PyObject * obj0 = 0 ; | |
38339 | PyObject * obj1 = 0 ; | |
38340 | char *kwnames[] = { | |
38341 | (char *) "self",(char *) "win", NULL | |
38342 | }; | |
38343 | ||
38344 | arg3 = &temp3; | |
38345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
38346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38347 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38348 | { | |
38349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38350 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
38351 | ||
38352 | wxPyEndAllowThreads(__tstate); | |
38353 | if (PyErr_Occurred()) SWIG_fail; | |
38354 | } | |
4d5c3d91 | 38355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38356 | { |
38357 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
38358 | resultobj = t_output_helper(resultobj,o); | |
38359 | } | |
38360 | return resultobj; | |
38361 | fail: | |
38362 | return NULL; | |
38363 | } | |
38364 | ||
38365 | ||
38366 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38367 | PyObject *resultobj; | |
38368 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38369 | bool result; | |
38370 | PyObject * obj0 = 0 ; | |
38371 | char *kwnames[] = { | |
38372 | (char *) "self", NULL | |
38373 | }; | |
38374 | ||
38375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
38376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38377 | { | |
38378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38379 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
38380 | ||
38381 | wxPyEndAllowThreads(__tstate); | |
38382 | if (PyErr_Occurred()) SWIG_fail; | |
38383 | } | |
4d5c3d91 | 38384 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38385 | return resultobj; |
38386 | fail: | |
38387 | return NULL; | |
38388 | } | |
38389 | ||
38390 | ||
38391 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
38392 | PyObject *obj; | |
38393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38394 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
38395 | Py_INCREF(obj); | |
38396 | return Py_BuildValue((char *)""); | |
38397 | } | |
38398 | static PyMethodDef SwigMethods[] = { | |
38399 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
3a04f143 | 38400 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, |
d14a1e28 RD |
38401 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, |
38402 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
38403 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
38404 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
38405 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
38406 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
38407 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
38408 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
38409 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
38410 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
38411 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
38412 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
38413 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
38414 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
38415 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
38416 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
38417 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
38418 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
38419 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
38420 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 38421 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38422 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, |
38423 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
38424 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
38425 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
38426 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
38427 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
38428 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
38429 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, |
38430 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
38431 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, |
38432 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 38433 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce | 38434 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38435 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, |
38436 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
38437 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
38438 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
38439 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
38440 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
38441 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
38442 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
38443 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
38444 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
38445 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
38446 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
38447 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
38448 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 38449 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38450 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, |
38451 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
38452 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
38453 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
38454 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
38455 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
38456 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
38457 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
38458 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
38459 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
38460 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
38461 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
38462 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
38463 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38464 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38465 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
38466 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a RD |
38467 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, |
38468 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
38469 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
38470 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
38471 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, |
38472 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
38473 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
38474 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
38475 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
38476 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
38477 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
38478 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
38479 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
38480 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
38481 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
38482 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
38483 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
38484 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
38485 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
38486 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
38487 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
38488 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
38489 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
38490 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
38491 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
38492 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
38493 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
38494 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
38495 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
38496 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
38497 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
38498 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
38499 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 38500 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38501 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, |
38502 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
38503 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
38504 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
38505 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
38506 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
38507 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
38508 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
38509 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
38510 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
38511 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
38512 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
38513 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
38514 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
38515 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
38516 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
38517 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
38518 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
38519 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
38520 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
38521 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
38522 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
38523 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, |
38524 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
38525 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
38526 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
38527 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 38528 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38529 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, |
38530 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
38531 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
38532 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
38533 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
38534 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
38535 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
38536 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
38537 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
38538 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
38539 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
38540 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
38541 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
38542 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
38543 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
38544 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
38545 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
38546 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
38547 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
38548 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
38549 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
38550 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
38551 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
38552 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
38553 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
38554 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
38555 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
38556 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
38557 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
38558 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
38559 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
38560 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
38561 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
38562 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
38563 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
38564 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
38565 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
38566 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
38567 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
38568 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
38569 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
38570 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
38571 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
38572 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
38573 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
38574 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
38575 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
38576 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
38577 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
38578 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
38579 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
38580 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
38581 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
38582 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
38583 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
38584 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
38585 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
38586 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
38587 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
38588 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
38589 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
38590 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
38591 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
38592 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
38593 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
38594 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
38595 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
38596 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
38597 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
38598 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
38599 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
38600 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
38601 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
38602 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
38603 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
38604 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
38605 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
38606 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
38607 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
38608 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
38609 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
38610 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
38611 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
38612 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
38613 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
38614 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
38615 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
38616 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
38617 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
38618 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
38619 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
38620 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
38621 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
38622 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, | |
38623 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
38624 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
38625 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
38626 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
38627 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
38628 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
38629 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
38630 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
38631 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
38632 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
38633 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
38634 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
38635 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
38636 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
38637 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
38638 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
38639 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
38640 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
38641 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
38642 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
38643 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
38644 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
38645 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
38646 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
38647 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
38648 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
38649 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
38650 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
38651 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
38652 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
38653 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
38654 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
38655 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
38656 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
38657 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
38658 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
38659 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
38660 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
38661 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
38662 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
38663 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
38664 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
38665 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
38666 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
38667 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
38668 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
38669 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
38670 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
38671 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
38672 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
38673 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
38674 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
38675 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
38676 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
38677 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
38678 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
38679 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
38680 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
38681 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
38682 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
38683 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
38684 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
38685 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
38686 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
38687 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
38688 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
38689 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
38690 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
38691 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
38692 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
38693 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
38694 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
38695 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
38696 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
38697 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
38698 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
38699 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
38700 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
38701 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
38702 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
38703 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
38704 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
38705 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
38706 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
38707 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
38708 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
38709 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
38710 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
38711 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
38712 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
38713 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
38714 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
38715 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
38716 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
38717 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
38718 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
38719 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
38720 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
38721 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
38722 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
38723 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
38724 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
38725 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
38726 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
38727 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
38728 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
38729 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
38730 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
38731 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
38732 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
38733 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
38734 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
38735 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
38736 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
38737 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
38738 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
38739 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
38740 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
38741 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
38742 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
38743 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
38744 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
38745 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
38746 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
38747 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
38748 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
38749 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
38750 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
38751 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
38752 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
38753 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
38754 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
38755 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
38756 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
38757 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
38758 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
38759 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
38760 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
38761 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
38762 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
38763 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
38764 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
38765 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
38766 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
38767 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38768 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
38769 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38770 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
38771 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
38772 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
38773 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38774 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
38775 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38776 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
38777 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
38778 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
38779 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
38780 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
38781 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
38782 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
38783 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
38784 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
38785 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
38786 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
38787 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
38788 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
38789 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
38790 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
38791 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
38792 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
38793 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
38794 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
38795 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
38796 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
38797 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
38798 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
38799 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
38800 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
38801 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
38802 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
38803 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
38804 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
38805 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38806 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
38807 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
38808 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
38809 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
38810 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
38811 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
38812 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
38813 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
38814 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
38815 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
38816 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
38817 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
38818 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
38819 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
38820 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
38821 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
38822 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
38823 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
38824 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
38825 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
38826 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
38827 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
38828 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
38829 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
38830 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
38831 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
38832 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
38833 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
38834 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
38835 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
38836 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
38837 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
38838 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
38839 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
38840 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
38841 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
38842 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
38843 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
38844 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
38845 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
38846 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
38847 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
38848 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
38849 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
38850 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
38851 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
38852 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
38853 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
38854 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
38855 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
38856 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38857 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
38858 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
38859 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
38860 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
38861 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
38862 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
38863 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
38864 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
38865 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
38866 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
38867 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
38868 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
38869 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
38870 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
38871 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
38872 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
38873 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
38874 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
38875 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
38876 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
38877 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
38878 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
38879 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
38880 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
38881 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
38882 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
38883 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
38884 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
38885 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
38886 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
38887 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
38888 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
38889 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
38890 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
38891 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
38892 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38893 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
38894 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
38895 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38896 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
38897 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
38898 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
38899 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
38900 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
38901 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
38902 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
38903 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
38904 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
38905 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
38906 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
38907 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
38908 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
38909 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
38910 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
38911 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
38912 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
38913 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
38914 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
38915 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
38916 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
38917 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
38918 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
38919 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
38920 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
38921 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
38922 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
38923 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
38924 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
38925 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
38926 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
38927 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
38928 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
38929 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
38930 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
38931 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
38932 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
38933 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
38934 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
38935 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
38936 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
38937 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
38938 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
38939 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
38940 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
38941 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
38942 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38943 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
38944 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
38945 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
38946 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
38947 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
38948 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
38949 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
38950 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
38951 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
38952 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
38953 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
38954 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
38955 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
38956 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
38957 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
38958 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
38959 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
38960 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
38961 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
38962 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
38963 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
38964 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
38965 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
38966 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
38967 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
38968 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
38969 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
38970 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
38971 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
38972 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
38973 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
38974 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
38975 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
38976 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
38977 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
38978 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
38979 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
38980 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
38981 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
38982 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
38983 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
38984 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
38985 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
38986 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
38987 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
38988 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
38989 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
38990 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
38991 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
38992 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
38993 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38994 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38995 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
38996 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
38997 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
38998 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
38999 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
39000 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
39001 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
39002 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
39003 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39004 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39005 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39006 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39007 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
39008 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39009 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39010 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39011 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39012 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
39013 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
39014 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
39015 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39016 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
39017 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
39018 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
39019 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
39020 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
39021 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
39022 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
39023 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
39024 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
39025 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
39026 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
39027 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
39028 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
39029 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
39030 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
39031 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
39032 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39033 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, |
39034 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
39035 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
39036 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
39037 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
39038 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
39039 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
39040 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
39041 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 39042 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
6c3b4aae | 39043 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39044 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, |
39045 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39046 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39047 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39048 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
39049 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
39050 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39051 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39052 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39053 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
39054 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
39055 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
39056 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
39057 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
39058 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
39059 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
39060 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
39061 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
39062 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
39063 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
39064 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 RD |
39065 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, |
39066 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
39067 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
39068 | { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39069 | { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39070 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
39071 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
39072 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
39073 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
39074 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39075 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39076 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
39077 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
39078 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39079 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, |
39080 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
39081 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
39082 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
39083 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39084 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
39085 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
39086 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39087 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39088 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39089 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39090 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
39091 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
39092 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, | |
39093 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
39094 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
39095 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
39096 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
39097 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
39098 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
39099 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
39100 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
39101 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
39102 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
39103 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
39104 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
39105 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
39106 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
39107 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
39108 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39109 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
39110 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39111 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39112 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
39113 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
39114 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39115 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
39116 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
39117 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
39118 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39119 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
39120 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
39121 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
39122 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
39123 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
39124 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
39125 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39126 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39127 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, | |
39128 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
39129 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
39130 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
39131 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
39132 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
39133 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
39134 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
39135 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39136 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
39137 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
39138 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
39139 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39140 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
39141 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
39142 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39143 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
39144 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
39145 | { (char *)"Window_SetWindowStyle", (PyCFunction) _wrap_Window_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
39146 | { (char *)"Window_GetWindowStyle", (PyCFunction) _wrap_Window_GetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
39147 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
39148 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
39149 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
39150 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
39151 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
39152 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39153 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39154 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
39155 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
39156 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
39157 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
39158 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
39159 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
39160 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
39161 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
39162 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
39163 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
39164 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
39165 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
39166 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
39167 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
39168 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
39169 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
39170 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
39171 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
39172 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39173 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39174 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39175 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39176 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39177 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
39178 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
39179 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39180 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39181 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
39182 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
39183 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
39184 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
39185 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
39186 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
39187 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
39188 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
39189 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
39190 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
39191 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
39192 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
39193 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
39194 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
39195 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
39196 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
39197 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
39198 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
39199 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
39200 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
39201 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
39202 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
39203 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
39204 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
39205 | { (char *)"Window_isExposedRect", (PyCFunction) _wrap_Window_isExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
39206 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39207 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39208 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39209 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39210 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
39211 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
39212 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
39213 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
39214 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
39215 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
39216 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
39217 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
39218 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
39219 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
39220 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
39221 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
39222 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
39223 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
39224 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
39225 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
39226 | { (char *)"Window_GetBorderFlags", (PyCFunction) _wrap_Window_GetBorderFlags, METH_VARARGS | METH_KEYWORDS }, | |
39227 | { (char *)"Window_GetBorder", (PyCFunction) _wrap_Window_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
39228 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, | |
39229 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
39230 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
39231 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
39232 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
39233 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
39234 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
39235 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
39236 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
39237 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
39238 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
39239 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
39240 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
39241 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
39242 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
39243 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
39244 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
39245 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
39246 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
39247 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
39248 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
39249 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
39250 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
39251 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
39252 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
39253 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
39254 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
39255 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
39256 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
39257 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
39258 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
39259 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
39260 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
39261 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
39262 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
39263 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
39264 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
39265 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
39266 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
39267 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
39268 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
39269 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
39270 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
39271 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
39272 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
39273 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39274 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39275 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
39276 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
39277 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
39278 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
39279 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39280 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
39281 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
39282 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
39283 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
39284 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
39285 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
39286 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
39287 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
39288 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
39289 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
39290 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
39291 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
39292 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
39293 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
39294 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
39295 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
39296 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
39297 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
39298 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
39299 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
39300 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
39301 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
39302 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
39303 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
39304 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
39305 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39306 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
39307 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
39308 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
39309 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
39310 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
39311 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
39312 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
39313 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39314 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39315 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
39316 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
39317 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39318 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39319 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
39320 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
39321 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39322 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39323 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39324 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39325 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
39326 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
39327 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
39328 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
39329 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
39330 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
39331 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
39332 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
39333 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
39334 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
39335 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
39336 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
39337 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
39338 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
39339 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
39340 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
39341 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
39342 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
39343 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
39344 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
39345 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
39346 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
39347 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39348 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
39349 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
39350 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39351 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
39352 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
39353 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39354 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39355 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39356 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
39357 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
39358 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
39359 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
39360 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
39361 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
39362 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
39363 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39364 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
39365 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
39366 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
39367 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
39368 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
39369 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
39370 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39371 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
39372 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
39373 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
39374 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
39375 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
39376 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
39377 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
39378 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
39379 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39380 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39381 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
39382 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
39383 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
39384 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
39385 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
39386 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
39387 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
39388 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
39389 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39390 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39391 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
39392 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
39393 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
39394 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
39395 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
39396 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39397 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39398 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
39399 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
39400 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
39401 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
39402 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
39403 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
39404 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
39405 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
39406 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
39407 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
39408 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
39409 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
39410 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
39411 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
39412 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
39413 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
39414 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
39415 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
39416 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
39417 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
39418 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
39419 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
39420 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
39421 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
39422 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
39423 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39424 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39425 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
39426 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
39427 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
39428 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
39429 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
39430 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
39431 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
39432 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
39433 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
39434 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
39435 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
39436 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
39437 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
39438 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
39439 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
39440 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
39441 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39442 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39443 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
39444 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
39445 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
39446 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
39447 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
39448 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
39449 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39450 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
39451 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
39452 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
39453 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
39454 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
39455 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
39456 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
39457 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, | |
39458 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
39459 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
39460 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
39461 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
39462 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
39463 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39464 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39465 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
39466 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39467 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39468 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
39469 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
39470 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
39471 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39472 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39473 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
39474 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
39475 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
39476 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
39477 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
39478 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
39479 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
39480 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
39481 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
39482 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39483 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
39484 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
39485 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39486 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39487 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39488 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39489 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
39490 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
39491 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
39492 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39493 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39494 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
39495 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
39496 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39497 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39498 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
39499 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
39500 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
39501 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
39502 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
39503 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
39504 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
39505 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
39506 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
39507 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
39508 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39509 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39510 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
39511 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
39512 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
39513 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
39514 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
39515 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
39516 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
39517 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
39518 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, |
39519 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39520 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, |
39521 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
39522 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
39523 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
39524 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
39525 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
39526 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39527 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
39528 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, |
39529 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39530 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, |
39531 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
39532 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
39533 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
39534 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
39535 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
39536 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39537 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
39538 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, |
39539 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39540 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, |
39541 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
39542 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
39543 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
39544 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
39545 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
39546 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
39547 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
39548 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
39549 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
39550 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
39551 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
39552 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
39553 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
39554 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
39555 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
39556 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
39557 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
39558 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
39559 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
39560 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
39561 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
39562 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
39563 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
39564 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 39565 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39566 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, |
39567 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39568 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39569 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
39570 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
39571 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
39572 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
39573 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
39574 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
39575 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
39576 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
39577 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
39578 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
39579 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
39580 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
39581 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
39582 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
39583 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
39584 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
39585 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
39586 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
39587 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
39588 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
39589 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
39590 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
39591 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
39592 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
39593 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
39594 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
39595 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
39596 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
39597 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
39598 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
39599 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
39600 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
39601 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
39602 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
39603 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
39604 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
39605 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
39606 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
39607 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
39608 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
39609 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
39610 | { NULL, NULL } | |
39611 | }; | |
39612 | ||
39613 | ||
39614 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
39615 | ||
39616 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
39617 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
39618 | } | |
39619 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
39620 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
39621 | } | |
39622 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
39623 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
39624 | } | |
39625 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
39626 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
39627 | } | |
39628 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
39629 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
39630 | } | |
39631 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
39632 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
39633 | } | |
39634 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
39635 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
39636 | } | |
39637 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
39638 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
39639 | } | |
39640 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
39641 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
39642 | } | |
39643 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
39644 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
39645 | } | |
39646 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
39647 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
39648 | } | |
39649 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
39650 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
39651 | } | |
39652 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
39653 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
39654 | } | |
39655 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
39656 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
39657 | } | |
39658 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
39659 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
39660 | } | |
39661 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
39662 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
39663 | } | |
39664 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
39665 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
39666 | } | |
39667 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
39668 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
39669 | } | |
39670 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
39671 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
39672 | } | |
39673 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
39674 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
39675 | } | |
39676 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
39677 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
39678 | } | |
39679 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
39680 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
39681 | } | |
39682 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
39683 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
39684 | } | |
39685 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
39686 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
39687 | } | |
39688 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
39689 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
39690 | } | |
39691 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
39692 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
39693 | } | |
39694 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
39695 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
39696 | } | |
39697 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
39698 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
39699 | } | |
39700 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
39701 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
39702 | } | |
39703 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
39704 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
39705 | } | |
39706 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
39707 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
39708 | } | |
39709 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
39710 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
39711 | } | |
39712 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
39713 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
39714 | } | |
39715 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
39716 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
39717 | } | |
39718 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
39719 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
39720 | } | |
39721 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
39722 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
39723 | } | |
39724 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
39725 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
39726 | } | |
39727 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
39728 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
39729 | } | |
39730 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
39731 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
39732 | } | |
39733 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
39734 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
39735 | } | |
39736 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
39737 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
39738 | } | |
39739 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
39740 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
39741 | } | |
39742 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
39743 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
39744 | } | |
39745 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
39746 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
39747 | } | |
39748 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
39749 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
39750 | } | |
39751 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
39752 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
39753 | } | |
39754 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
39755 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
39756 | } | |
39757 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
39758 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
39759 | } | |
39760 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
39761 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
39762 | } | |
39763 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
39764 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
39765 | } | |
39766 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
39767 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
39768 | } | |
39769 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
39770 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
39771 | } | |
39772 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
39773 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
39774 | } | |
39775 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
39776 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
39777 | } | |
39778 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
39779 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
39780 | } | |
39781 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
39782 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
39783 | } | |
39784 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
39785 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
39786 | } | |
39787 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
39788 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
39789 | } | |
39790 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
39791 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
39792 | } | |
39793 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
39794 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
39795 | } | |
39796 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
39797 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
39798 | } | |
39799 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
39800 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
39801 | } | |
39802 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
39803 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
39804 | } | |
39805 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
39806 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
39807 | } | |
39808 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
39809 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
39810 | } | |
39811 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
39812 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
39813 | } | |
39814 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
39815 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
39816 | } | |
39817 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
39818 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
39819 | } | |
39820 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
39821 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
39822 | } | |
39823 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
39824 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
39825 | } | |
39826 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
39827 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
39828 | } | |
39829 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
39830 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
39831 | } | |
39832 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
39833 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
39834 | } | |
39835 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
39836 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
39837 | } | |
39838 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
39839 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
39840 | } | |
39841 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
39842 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
39843 | } | |
39844 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
39845 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
39846 | } | |
39847 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
39848 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
39849 | } | |
39850 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
39851 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
39852 | } | |
39853 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
39854 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
39855 | } | |
39856 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
39857 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
39858 | } | |
39859 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
39860 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
39861 | } | |
39862 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
39863 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
39864 | } | |
39865 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
39866 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
39867 | } | |
39868 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
39869 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
39870 | } | |
39871 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
39872 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
39873 | } | |
39874 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
39875 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
39876 | } | |
39877 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
39878 | return (void *)((wxObject *) ((wxSizer *) x)); | |
39879 | } | |
39880 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
39881 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
39882 | } | |
39883 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
39884 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
39885 | } | |
39886 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
39887 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
39888 | } | |
39889 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
39890 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
39891 | } | |
39892 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
39893 | return (void *)((wxObject *) ((wxImage *) x)); | |
39894 | } | |
39895 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
39896 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
39897 | } | |
39898 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
39899 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
39900 | } | |
39901 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
39902 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
39903 | } | |
39904 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
39905 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
39906 | } | |
39907 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
39908 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
39909 | } | |
1e0c8722 RD |
39910 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
39911 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
39912 | } | |
d14a1e28 RD |
39913 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
39914 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
39915 | } | |
39916 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
39917 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
39918 | } | |
39919 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
39920 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
39921 | } | |
39922 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
39923 | return (void *)((wxObject *) ((wxEvent *) x)); | |
39924 | } | |
39925 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
39926 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
39927 | } | |
39928 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
39929 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
39930 | } | |
39931 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
39932 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
39933 | } | |
39934 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
39935 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
39936 | } | |
39937 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
39938 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
39939 | } | |
39940 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
39941 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
39942 | } | |
39943 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
39944 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
39945 | } | |
39946 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
39947 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
39948 | } | |
39949 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
39950 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
39951 | } | |
39952 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
39953 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
39954 | } | |
39955 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
39956 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
39957 | } | |
39958 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
39959 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
39960 | } | |
39961 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
39962 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
39963 | } | |
39964 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
39965 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
39966 | } | |
39967 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
39968 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
39969 | } | |
39970 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
39971 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
39972 | } | |
39973 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
39974 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
39975 | } | |
39976 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
39977 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
39978 | } | |
39979 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
39980 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
39981 | } | |
39982 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
39983 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
39984 | } | |
39985 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
39986 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
39987 | } | |
39988 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
39989 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
39990 | } | |
39991 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
39992 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
39993 | } | |
39994 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
39995 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
39996 | } | |
39997 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
39998 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
39999 | } | |
40000 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
40001 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
40002 | } | |
40003 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
40004 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
40005 | } | |
40006 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
40007 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
40008 | } | |
40009 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
40010 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
40011 | } | |
40012 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
40013 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
40014 | } | |
40015 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
40016 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
40017 | } | |
40018 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
40019 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40020 | } | |
40021 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
40022 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
40023 | } | |
40024 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
40025 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
40026 | } | |
40027 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
40028 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
40029 | } | |
40030 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
40031 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
40032 | } | |
40033 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
40034 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
40035 | } | |
40036 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
40037 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
40038 | } | |
40039 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
40040 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
40041 | } | |
40042 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
40043 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40044 | } | |
40045 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
40046 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
40047 | } | |
40048 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
40049 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40050 | } | |
40051 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
40052 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40053 | } | |
40054 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
40055 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40056 | } | |
40057 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
40058 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
40059 | } | |
40060 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
40061 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
40062 | } | |
40063 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
40064 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
40065 | } | |
40066 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
40067 | return (void *)((wxWindow *) ((wxControl *) x)); | |
40068 | } | |
40069 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
40070 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
40071 | } | |
40072 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
40073 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
40074 | } | |
40075 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
40076 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40077 | } | |
40078 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
40079 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
40080 | } | |
40081 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
40082 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40083 | } | |
40084 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
40085 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40086 | } | |
40087 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
40088 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40089 | } | |
40090 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
40091 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40092 | } | |
40093 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
40094 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40095 | } | |
40096 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
40097 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40098 | } | |
40099 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
40100 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
40101 | } | |
40102 | static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0},{"_p_wxLayoutConstraints"},{0}}; | |
40103 | static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0},{"_p_wxRealPoint"},{0}}; | |
40104 | static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0},{"_p_wxSizerItem"},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem},{0}}; | |
40105 | static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0},{"_p_wxGBSizerItem"},{0}}; | |
40106 | static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0},{"_p_wxScrollEvent"},{0}}; | |
40107 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0},{"_p_wxIndividualLayoutConstraint"},{0}}; | |
40108 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0},{"_p_wxSizer"},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer},{0}}; | |
40109 | static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0},{"_p_wxBoxSizer"},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer},{0}}; | |
40110 | static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0},{"_p_wxStaticBoxSizer"},{0}}; | |
40111 | static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0},{"_p_wxGridBagSizer"},{0}}; | |
40112 | static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0},{"_p_wxAcceleratorEntry"},{0}}; | |
40113 | static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0},{"_p_wxUpdateUIEvent"},{0}}; | |
40114 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
40115 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}}; | |
40116 | static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer},{"_p_wxGridSizer"},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer},{0}}; | |
40117 | static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer},{"_p_wxFlexGridSizer"},{0}}; | |
40118 | static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0},{"_p_wxInitDialogEvent"},{0}}; | |
40119 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer},{"_p_wxItemContainer"},{0}}; | |
40120 | static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0},{"_p_wxNcPaintEvent"},{0}}; | |
40121 | static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0},{"_p_wxPaintEvent"},{0}}; | |
40122 | static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0},{"_p_wxSysColourChangedEvent"},{0}}; | |
40123 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0},{"_p_wxMouseCaptureChangedEvent"},{0}}; | |
40124 | static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0},{"_p_wxDisplayChangedEvent"},{0}}; | |
40125 | static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0},{"_p_wxPaletteChangedEvent"},{0}}; | |
40126 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}}; | |
40127 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
40128 | static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0},{"_p_wxMenuBarBase"},{0}}; | |
40129 | static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0},{"_p_wxSetCursorEvent"},{0}}; | |
40130 | static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0},{"_p_wxFSFile"},{0}}; | |
40131 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
40132 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
40133 | static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0},{"_p_wxPoint2D"},{0}}; | |
40134 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
40135 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
40136 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
40137 | static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0},{"_p_wxPySizer"},{0}}; | |
40138 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxNotifyEvent"},{0}}; | |
40139 | static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0},{"_p_wxPyEvent"},{0}}; | |
40140 | static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0},{"_p_wxPropagationDisabler"},{0}}; | |
40141 | static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0},{"_p_wxAppTraits"},{0}}; | |
40142 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
40143 | static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0},{"_p_wxShowEvent"},{0}}; | |
40144 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
4d5c3d91 | 40145 | static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0},{"_p_wxMaximizeEvent"},{0}}; |
d14a1e28 RD |
40146 | static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0},{"_p_wxIconizeEvent"},{0}}; |
40147 | static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0},{"_p_wxActivateEvent"},{0}}; | |
40148 | static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0},{"_p_wxMoveEvent"},{0}}; | |
40149 | static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0},{"_p_wxSizeEvent"},{0}}; | |
40150 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0},{"_p_wxQueryNewPaletteEvent"},{0}}; | |
40151 | static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0},{"_p_wxWindowCreateEvent"},{0}}; | |
40152 | static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0},{"_p_wxIdleEvent"},{0}}; | |
40153 | static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0},{"_p_wxMenuItem"},{0}}; | |
40154 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
40155 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
40156 | static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0},{"_p_wxTIFFHandler"},{0}}; | |
40157 | static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0},{"_p_wxXPMHandler"},{0}}; | |
40158 | static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0},{"_p_wxPNMHandler"},{0}}; | |
40159 | static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0},{"_p_wxJPEGHandler"},{0}}; | |
40160 | static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0},{"_p_wxPCXHandler"},{0}}; | |
40161 | static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0},{"_p_wxGIFHandler"},{0}}; | |
40162 | static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0},{"_p_wxPNGHandler"},{0}}; | |
40163 | static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0},{"_p_wxANIHandler"},{0}}; | |
40164 | static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0},{"_p_wxMemoryFSHandler"},{0}}; | |
40165 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{0}}; | |
40166 | static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0},{"_p_wxCURHandler"},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler},{0}}; | |
40167 | static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0},{"_p_wxICOHandler"},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler},{0}}; | |
40168 | static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0},{"_p_wxBMPHandler"},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler},{0}}; | |
40169 | static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0},{"_p_wxImageHandler"},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler},{0}}; | |
40170 | static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0},{"_p_wxFileSystemHandler"},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler},{0}}; | |
40171 | static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0},{"_p_wxPyFileSystemHandler"},{0}}; | |
40172 | static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0},{"_p_wxInternetFSHandler"},{0}}; | |
4d5c3d91 | 40173 | static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0},{"_p_wxZipFSHandler"},{0}}; |
d14a1e28 RD |
40174 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; |
40175 | static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0},{"_p_wxGBSpan"},{0}}; | |
40176 | static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0},{"_p_wxPropagateOnce"},{0}}; | |
40177 | static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0},{"_p_wxAcceleratorTable"},{0}}; | |
994141e6 | 40178 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
40179 | static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0},{"_p_wxGBPosition"},{0}}; |
40180 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
40181 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
40182 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0},{"_p_wxScrollWinEvent"},{0}}; | |
40183 | static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0},{"_p_wxImageHistogram"},{0}}; | |
40184 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
40185 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
40186 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
1e0c8722 | 40187 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}}; |
d14a1e28 RD |
40188 | static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0},{"_p_wxPyInputStream"},{0}}; |
40189 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; | |
40190 | static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}}; | |
40191 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
40192 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; | |
40193 | static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0},{"_p_wxNavigationKeyEvent"},{0}}; | |
40194 | static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0},{"_p_wxWindowDestroyEvent"},{0}}; | |
40195 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{0}}; | |
40196 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0},{"_p_wxMenuBar"},{0}}; | |
d14a1e28 RD |
40197 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}}; |
40198 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
40199 | static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0},{"_p_wxMenuEvent"},{0}}; | |
40200 | static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0},{"_p_wxContextMenuEvent"},{0}}; | |
40201 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
40202 | static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0},{"_p_wxCloseEvent"},{0}}; | |
40203 | static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0},{"_p_wxEraseEvent"},{0}}; | |
40204 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
40205 | static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0},{"_p_wxPyApp"},{0}}; | |
40206 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{0}}; | |
40207 | static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0},{"_p_wxPyCommandEvent"},{0}}; | |
7722248d | 40208 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0},{"_p_wxPyDropTarget"},{0}}; |
d14a1e28 RD |
40209 | static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0},{"_p_wxChildFocusEvent"},{0}}; |
40210 | static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0},{"_p_wxFocusEvent"},{0}}; | |
40211 | static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0},{"_p_wxDropFilesEvent"},{0}}; | |
40212 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxControlWithItems"},{0}}; | |
40213 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
40214 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
40215 | static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0},{"_p_wxPyValidator"},{0}}; | |
40216 | ||
40217 | static swig_type_info *swig_types_initial[] = { | |
40218 | _swigt__p_wxLayoutConstraints, | |
40219 | _swigt__p_wxRealPoint, | |
40220 | _swigt__p_wxSizerItem, | |
40221 | _swigt__p_wxGBSizerItem, | |
40222 | _swigt__p_wxScrollEvent, | |
40223 | _swigt__p_wxIndividualLayoutConstraint, | |
40224 | _swigt__p_wxSizer, | |
40225 | _swigt__p_wxBoxSizer, | |
40226 | _swigt__p_wxStaticBoxSizer, | |
40227 | _swigt__p_wxGridBagSizer, | |
40228 | _swigt__p_wxAcceleratorEntry, | |
40229 | _swigt__p_wxUpdateUIEvent, | |
40230 | _swigt__p_wxMenu, | |
40231 | _swigt__p_wxEvent, | |
40232 | _swigt__p_wxGridSizer, | |
40233 | _swigt__p_wxFlexGridSizer, | |
40234 | _swigt__p_wxInitDialogEvent, | |
40235 | _swigt__p_wxItemContainer, | |
40236 | _swigt__p_wxNcPaintEvent, | |
40237 | _swigt__p_wxPaintEvent, | |
40238 | _swigt__p_wxSysColourChangedEvent, | |
40239 | _swigt__p_wxMouseCaptureChangedEvent, | |
40240 | _swigt__p_wxDisplayChangedEvent, | |
40241 | _swigt__p_wxPaletteChangedEvent, | |
40242 | _swigt__p_wxControl, | |
40243 | _swigt__p_wxFont, | |
40244 | _swigt__p_wxMenuBarBase, | |
40245 | _swigt__p_wxSetCursorEvent, | |
40246 | _swigt__p_wxFSFile, | |
40247 | _swigt__p_wxCaret, | |
40248 | _swigt__p_wxRegion, | |
40249 | _swigt__p_wxPoint2D, | |
40250 | _swigt__p_int, | |
40251 | _swigt__p_wxSize, | |
40252 | _swigt__p_wxDC, | |
40253 | _swigt__p_wxPySizer, | |
40254 | _swigt__p_wxNotifyEvent, | |
40255 | _swigt__p_wxPyEvent, | |
40256 | _swigt__p_wxPropagationDisabler, | |
40257 | _swigt__p_wxAppTraits, | |
40258 | _swigt__p_wxArrayString, | |
40259 | _swigt__p_wxShowEvent, | |
40260 | _swigt__p_wxToolTip, | |
4d5c3d91 | 40261 | _swigt__p_wxMaximizeEvent, |
d14a1e28 RD |
40262 | _swigt__p_wxIconizeEvent, |
40263 | _swigt__p_wxActivateEvent, | |
40264 | _swigt__p_wxMoveEvent, | |
40265 | _swigt__p_wxSizeEvent, | |
40266 | _swigt__p_wxQueryNewPaletteEvent, | |
40267 | _swigt__p_wxWindowCreateEvent, | |
40268 | _swigt__p_wxIdleEvent, | |
40269 | _swigt__p_wxMenuItem, | |
40270 | _swigt__p_wxStaticBox, | |
40271 | _swigt__p_long, | |
40272 | _swigt__p_wxTIFFHandler, | |
40273 | _swigt__p_wxXPMHandler, | |
40274 | _swigt__p_wxPNMHandler, | |
40275 | _swigt__p_wxJPEGHandler, | |
40276 | _swigt__p_wxPCXHandler, | |
40277 | _swigt__p_wxGIFHandler, | |
40278 | _swigt__p_wxPNGHandler, | |
40279 | _swigt__p_wxANIHandler, | |
40280 | _swigt__p_wxMemoryFSHandler, | |
40281 | _swigt__p_wxEvtHandler, | |
40282 | _swigt__p_wxCURHandler, | |
40283 | _swigt__p_wxICOHandler, | |
40284 | _swigt__p_wxBMPHandler, | |
40285 | _swigt__p_wxImageHandler, | |
40286 | _swigt__p_wxFileSystemHandler, | |
40287 | _swigt__p_wxPyFileSystemHandler, | |
40288 | _swigt__p_wxInternetFSHandler, | |
4d5c3d91 | 40289 | _swigt__p_wxZipFSHandler, |
d14a1e28 RD |
40290 | _swigt__p_wxRect, |
40291 | _swigt__p_wxGBSpan, | |
40292 | _swigt__p_wxPropagateOnce, | |
40293 | _swigt__p_wxAcceleratorTable, | |
994141e6 | 40294 | _swigt__p_char, |
d14a1e28 RD |
40295 | _swigt__p_wxGBPosition, |
40296 | _swigt__p_wxImage, | |
40297 | _swigt__p_wxFrame, | |
40298 | _swigt__p_wxScrollWinEvent, | |
40299 | _swigt__p_wxImageHistogram, | |
40300 | _swigt__p_byte, | |
40301 | _swigt__p_wxPoint, | |
40302 | _swigt__p_wxCursor, | |
40303 | _swigt__p_wxObject, | |
40304 | _swigt__p_wxPyInputStream, | |
40305 | _swigt__p_wxOutputStream, | |
40306 | _swigt__p_wxInputStream, | |
40307 | _swigt__p_wxDateTime, | |
40308 | _swigt__p_wxKeyEvent, | |
40309 | _swigt__p_wxNavigationKeyEvent, | |
40310 | _swigt__p_wxWindowDestroyEvent, | |
40311 | _swigt__p_wxWindow, | |
40312 | _swigt__p_wxMenuBar, | |
d14a1e28 RD |
40313 | _swigt__p_wxFileSystem, |
40314 | _swigt__p_wxBitmap, | |
40315 | _swigt__p_wxMenuEvent, | |
40316 | _swigt__p_wxContextMenuEvent, | |
40317 | _swigt__p_unsigned_char, | |
40318 | _swigt__p_wxCloseEvent, | |
40319 | _swigt__p_wxEraseEvent, | |
40320 | _swigt__p_wxMouseEvent, | |
40321 | _swigt__p_wxPyApp, | |
40322 | _swigt__p_wxCommandEvent, | |
40323 | _swigt__p_wxPyCommandEvent, | |
7722248d | 40324 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
40325 | _swigt__p_wxChildFocusEvent, |
40326 | _swigt__p_wxFocusEvent, | |
40327 | _swigt__p_wxDropFilesEvent, | |
40328 | _swigt__p_wxControlWithItems, | |
40329 | _swigt__p_wxColour, | |
40330 | _swigt__p_wxValidator, | |
40331 | _swigt__p_wxPyValidator, | |
40332 | 0 | |
40333 | }; | |
40334 | ||
40335 | ||
40336 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
40337 | ||
40338 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
40339 | {0}}; |
40340 | ||
40341 | #ifdef __cplusplus | |
40342 | } | |
40343 | #endif | |
40344 | ||
40345 | #ifdef __cplusplus | |
40346 | extern "C" | |
40347 | #endif | |
40348 | SWIGEXPORT(void) SWIG_init(void) { | |
40349 | static PyObject *SWIG_globals = 0; | |
40350 | static int typeinit = 0; | |
40351 | PyObject *m, *d; | |
40352 | int i; | |
40353 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
40354 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
40355 | d = PyModule_GetDict(m); | |
40356 | ||
40357 | if (!typeinit) { | |
40358 | for (i = 0; swig_types_initial[i]; i++) { | |
40359 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
40360 | } | |
40361 | typeinit = 1; | |
40362 | } | |
40363 | SWIG_InstallConstants(d,swig_const_table); | |
40364 | ||
40365 | ||
40366 | #ifndef wxPyUSE_EXPORT | |
40367 | // Make our API structure a CObject so other modules can import it | |
40368 | // from this module. | |
40369 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
40370 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
40371 | Py_XDECREF(cobj); | |
40372 | #endif | |
40373 | ||
994141e6 RD |
40374 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_PyObj_FromInt((int)wxNOT_FOUND)); |
40375 | PyDict_SetItemString(d,"VSCROLL", SWIG_PyObj_FromInt((int)wxVSCROLL)); | |
40376 | PyDict_SetItemString(d,"HSCROLL", SWIG_PyObj_FromInt((int)wxHSCROLL)); | |
40377 | PyDict_SetItemString(d,"CAPTION", SWIG_PyObj_FromInt((int)wxCAPTION)); | |
40378 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_PyObj_FromInt((int)wxDOUBLE_BORDER)); | |
40379 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_PyObj_FromInt((int)wxSUNKEN_BORDER)); | |
40380 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_PyObj_FromInt((int)wxRAISED_BORDER)); | |
40381 | PyDict_SetItemString(d,"BORDER", SWIG_PyObj_FromInt((int)wxBORDER)); | |
40382 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_PyObj_FromInt((int)wxSIMPLE_BORDER)); | |
40383 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_PyObj_FromInt((int)wxSTATIC_BORDER)); | |
40384 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_PyObj_FromInt((int)wxTRANSPARENT_WINDOW)); | |
40385 | PyDict_SetItemString(d,"NO_BORDER", SWIG_PyObj_FromInt((int)wxNO_BORDER)); | |
40386 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_PyObj_FromInt((int)wxUSER_COLOURS)); | |
40387 | PyDict_SetItemString(d,"NO_3D", SWIG_PyObj_FromInt((int)wxNO_3D)); | |
40388 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_PyObj_FromInt((int)wxTAB_TRAVERSAL)); | |
40389 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_PyObj_FromInt((int)wxWANTS_CHARS)); | |
40390 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_PyObj_FromInt((int)wxPOPUP_WINDOW)); | |
40391 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_PyObj_FromInt((int)wxCENTER_FRAME)); | |
40392 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_PyObj_FromInt((int)wxCENTRE_ON_SCREEN)); | |
40393 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_PyObj_FromInt((int)wxCENTER_ON_SCREEN)); | |
40394 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_PyObj_FromInt((int)wxSTAY_ON_TOP)); | |
40395 | PyDict_SetItemString(d,"ICONIZE", SWIG_PyObj_FromInt((int)wxICONIZE)); | |
40396 | PyDict_SetItemString(d,"MINIMIZE", SWIG_PyObj_FromInt((int)wxMINIMIZE)); | |
40397 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_PyObj_FromInt((int)wxMAXIMIZE)); | |
40398 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_PyObj_FromInt((int)wxCLOSE_BOX)); | |
40399 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_PyObj_FromInt((int)wxTHICK_FRAME)); | |
40400 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_PyObj_FromInt((int)wxSYSTEM_MENU)); | |
40401 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_PyObj_FromInt((int)wxMINIMIZE_BOX)); | |
40402 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_PyObj_FromInt((int)wxMAXIMIZE_BOX)); | |
40403 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_PyObj_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
40404 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_PyObj_FromInt((int)wxTINY_CAPTION_VERT)); | |
40405 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_PyObj_FromInt((int)wxRESIZE_BOX)); | |
40406 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_PyObj_FromInt((int)wxRESIZE_BORDER)); | |
40407 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_PyObj_FromInt((int)wxDIALOG_MODAL)); | |
40408 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_PyObj_FromInt((int)wxDIALOG_MODELESS)); | |
40409 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_PyObj_FromInt((int)wxDIALOG_NO_PARENT)); | |
40410 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_PyObj_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
40411 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_PyObj_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
40412 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_PyObj_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
40413 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_PyObj_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
40414 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_PyObj_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
40415 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_PyObj_FromInt((int)wxFRAME_NO_TASKBAR)); | |
40416 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_PyObj_FromInt((int)wxFRAME_SHAPED)); | |
40417 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_PyObj_FromInt((int)wxED_CLIENT_MARGIN)); | |
40418 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_PyObj_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
40419 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_PyObj_FromInt((int)wxED_BUTTONS_RIGHT)); | |
40420 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_PyObj_FromInt((int)wxED_STATIC_LINE)); | |
40421 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_PyObj_FromInt((int)wxEXT_DIALOG_STYLE)); | |
40422 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_PyObj_FromInt((int)wxCLIP_CHILDREN)); | |
40423 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_PyObj_FromInt((int)wxCLIP_SIBLINGS)); | |
40424 | PyDict_SetItemString(d,"RETAINED", SWIG_PyObj_FromInt((int)wxRETAINED)); | |
40425 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_PyObj_FromInt((int)wxBACKINGSTORE)); | |
40426 | PyDict_SetItemString(d,"COLOURED", SWIG_PyObj_FromInt((int)wxCOLOURED)); | |
40427 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_PyObj_FromInt((int)wxFIXED_LENGTH)); | |
40428 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_PyObj_FromInt((int)wxLB_NEEDED_SB)); | |
40429 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_PyObj_FromInt((int)wxLB_ALWAYS_SB)); | |
40430 | PyDict_SetItemString(d,"LB_SORT", SWIG_PyObj_FromInt((int)wxLB_SORT)); | |
40431 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_PyObj_FromInt((int)wxLB_SINGLE)); | |
40432 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_PyObj_FromInt((int)wxLB_MULTIPLE)); | |
40433 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_PyObj_FromInt((int)wxLB_EXTENDED)); | |
40434 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_PyObj_FromInt((int)wxLB_OWNERDRAW)); | |
40435 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_PyObj_FromInt((int)wxLB_HSCROLL)); | |
40436 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxPROCESS_ENTER)); | |
40437 | PyDict_SetItemString(d,"PASSWORD", SWIG_PyObj_FromInt((int)wxPASSWORD)); | |
40438 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_PyObj_FromInt((int)wxCB_SIMPLE)); | |
40439 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_PyObj_FromInt((int)wxCB_DROPDOWN)); | |
40440 | PyDict_SetItemString(d,"CB_SORT", SWIG_PyObj_FromInt((int)wxCB_SORT)); | |
40441 | PyDict_SetItemString(d,"CB_READONLY", SWIG_PyObj_FromInt((int)wxCB_READONLY)); | |
40442 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxRA_HORIZONTAL)); | |
40443 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_PyObj_FromInt((int)wxRA_VERTICAL)); | |
40444 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_PyObj_FromInt((int)wxRA_SPECIFY_ROWS)); | |
40445 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_PyObj_FromInt((int)wxRA_SPECIFY_COLS)); | |
40446 | PyDict_SetItemString(d,"RB_GROUP", SWIG_PyObj_FromInt((int)wxRB_GROUP)); | |
40447 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_PyObj_FromInt((int)wxRB_SINGLE)); | |
40448 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSL_HORIZONTAL)); | |
40449 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_PyObj_FromInt((int)wxSL_VERTICAL)); | |
40450 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_PyObj_FromInt((int)wxSL_AUTOTICKS)); | |
40451 | PyDict_SetItemString(d,"SL_LABELS", SWIG_PyObj_FromInt((int)wxSL_LABELS)); | |
40452 | PyDict_SetItemString(d,"SL_LEFT", SWIG_PyObj_FromInt((int)wxSL_LEFT)); | |
40453 | PyDict_SetItemString(d,"SL_TOP", SWIG_PyObj_FromInt((int)wxSL_TOP)); | |
40454 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_PyObj_FromInt((int)wxSL_RIGHT)); | |
40455 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_PyObj_FromInt((int)wxSL_BOTTOM)); | |
40456 | PyDict_SetItemString(d,"SL_BOTH", SWIG_PyObj_FromInt((int)wxSL_BOTH)); | |
40457 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_PyObj_FromInt((int)wxSL_SELRANGE)); | |
40458 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSB_HORIZONTAL)); | |
40459 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_PyObj_FromInt((int)wxSB_VERTICAL)); | |
40460 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_PyObj_FromInt((int)wxST_SIZEGRIP)); | |
40461 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_PyObj_FromInt((int)wxST_NO_AUTORESIZE)); | |
40462 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_PyObj_FromInt((int)wxFLOOD_SURFACE)); | |
40463 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_PyObj_FromInt((int)wxFLOOD_BORDER)); | |
40464 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_PyObj_FromInt((int)wxODDEVEN_RULE)); | |
40465 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_PyObj_FromInt((int)wxWINDING_RULE)); | |
40466 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_PyObj_FromInt((int)wxTOOL_TOP)); | |
40467 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_PyObj_FromInt((int)wxTOOL_BOTTOM)); | |
40468 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_PyObj_FromInt((int)wxTOOL_LEFT)); | |
40469 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_PyObj_FromInt((int)wxTOOL_RIGHT)); | |
40470 | PyDict_SetItemString(d,"OK", SWIG_PyObj_FromInt((int)wxOK)); | |
40471 | PyDict_SetItemString(d,"YES_NO", SWIG_PyObj_FromInt((int)wxYES_NO)); | |
40472 | PyDict_SetItemString(d,"CANCEL", SWIG_PyObj_FromInt((int)wxCANCEL)); | |
40473 | PyDict_SetItemString(d,"YES", SWIG_PyObj_FromInt((int)wxYES)); | |
40474 | PyDict_SetItemString(d,"NO", SWIG_PyObj_FromInt((int)wxNO)); | |
40475 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_PyObj_FromInt((int)wxNO_DEFAULT)); | |
40476 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_PyObj_FromInt((int)wxYES_DEFAULT)); | |
40477 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_PyObj_FromInt((int)wxICON_EXCLAMATION)); | |
40478 | PyDict_SetItemString(d,"ICON_HAND", SWIG_PyObj_FromInt((int)wxICON_HAND)); | |
40479 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_PyObj_FromInt((int)wxICON_QUESTION)); | |
40480 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_PyObj_FromInt((int)wxICON_INFORMATION)); | |
40481 | PyDict_SetItemString(d,"ICON_STOP", SWIG_PyObj_FromInt((int)wxICON_STOP)); | |
40482 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_PyObj_FromInt((int)wxICON_ASTERISK)); | |
40483 | PyDict_SetItemString(d,"ICON_MASK", SWIG_PyObj_FromInt((int)wxICON_MASK)); | |
40484 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_PyObj_FromInt((int)wxICON_WARNING)); | |
40485 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_PyObj_FromInt((int)wxICON_ERROR)); | |
40486 | PyDict_SetItemString(d,"FORWARD", SWIG_PyObj_FromInt((int)wxFORWARD)); | |
40487 | PyDict_SetItemString(d,"BACKWARD", SWIG_PyObj_FromInt((int)wxBACKWARD)); | |
40488 | PyDict_SetItemString(d,"RESET", SWIG_PyObj_FromInt((int)wxRESET)); | |
40489 | PyDict_SetItemString(d,"HELP", SWIG_PyObj_FromInt((int)wxHELP)); | |
40490 | PyDict_SetItemString(d,"MORE", SWIG_PyObj_FromInt((int)wxMORE)); | |
40491 | PyDict_SetItemString(d,"SETUP", SWIG_PyObj_FromInt((int)wxSETUP)); | |
40492 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_PyObj_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
40493 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_PyObj_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
40494 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_PyObj_FromInt((int)wxSIZE_AUTO)); | |
40495 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_PyObj_FromInt((int)wxSIZE_USE_EXISTING)); | |
40496 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_PyObj_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
40497 | PyDict_SetItemString(d,"PORTRAIT", SWIG_PyObj_FromInt((int)wxPORTRAIT)); | |
40498 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_PyObj_FromInt((int)wxLANDSCAPE)); | |
40499 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
40500 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
40501 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_LOW)); | |
40502 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
40503 | PyDict_SetItemString(d,"ID_ANY", SWIG_PyObj_FromInt((int)wxID_ANY)); | |
40504 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_PyObj_FromInt((int)wxID_SEPARATOR)); | |
40505 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_PyObj_FromInt((int)wxID_LOWEST)); | |
40506 | PyDict_SetItemString(d,"ID_OPEN", SWIG_PyObj_FromInt((int)wxID_OPEN)); | |
40507 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_PyObj_FromInt((int)wxID_CLOSE)); | |
40508 | PyDict_SetItemString(d,"ID_NEW", SWIG_PyObj_FromInt((int)wxID_NEW)); | |
40509 | PyDict_SetItemString(d,"ID_SAVE", SWIG_PyObj_FromInt((int)wxID_SAVE)); | |
40510 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_PyObj_FromInt((int)wxID_SAVEAS)); | |
40511 | PyDict_SetItemString(d,"ID_REVERT", SWIG_PyObj_FromInt((int)wxID_REVERT)); | |
40512 | PyDict_SetItemString(d,"ID_EXIT", SWIG_PyObj_FromInt((int)wxID_EXIT)); | |
40513 | PyDict_SetItemString(d,"ID_UNDO", SWIG_PyObj_FromInt((int)wxID_UNDO)); | |
40514 | PyDict_SetItemString(d,"ID_REDO", SWIG_PyObj_FromInt((int)wxID_REDO)); | |
40515 | PyDict_SetItemString(d,"ID_HELP", SWIG_PyObj_FromInt((int)wxID_HELP)); | |
40516 | PyDict_SetItemString(d,"ID_PRINT", SWIG_PyObj_FromInt((int)wxID_PRINT)); | |
40517 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_PyObj_FromInt((int)wxID_PRINT_SETUP)); | |
40518 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_PyObj_FromInt((int)wxID_PREVIEW)); | |
40519 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_PyObj_FromInt((int)wxID_ABOUT)); | |
40520 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_PyObj_FromInt((int)wxID_HELP_CONTENTS)); | |
40521 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_PyObj_FromInt((int)wxID_HELP_COMMANDS)); | |
40522 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_PyObj_FromInt((int)wxID_HELP_PROCEDURES)); | |
40523 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_PyObj_FromInt((int)wxID_HELP_CONTEXT)); | |
40524 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_PyObj_FromInt((int)wxID_CLOSE_ALL)); | |
40525 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_PyObj_FromInt((int)wxID_PREFERENCES)); | |
40526 | PyDict_SetItemString(d,"ID_CUT", SWIG_PyObj_FromInt((int)wxID_CUT)); | |
40527 | PyDict_SetItemString(d,"ID_COPY", SWIG_PyObj_FromInt((int)wxID_COPY)); | |
40528 | PyDict_SetItemString(d,"ID_PASTE", SWIG_PyObj_FromInt((int)wxID_PASTE)); | |
40529 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_PyObj_FromInt((int)wxID_CLEAR)); | |
40530 | PyDict_SetItemString(d,"ID_FIND", SWIG_PyObj_FromInt((int)wxID_FIND)); | |
40531 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_PyObj_FromInt((int)wxID_DUPLICATE)); | |
40532 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_PyObj_FromInt((int)wxID_SELECTALL)); | |
40533 | PyDict_SetItemString(d,"ID_DELETE", SWIG_PyObj_FromInt((int)wxID_DELETE)); | |
40534 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_PyObj_FromInt((int)wxID_REPLACE)); | |
40535 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_PyObj_FromInt((int)wxID_REPLACE_ALL)); | |
40536 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_PyObj_FromInt((int)wxID_PROPERTIES)); | |
40537 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_PyObj_FromInt((int)wxID_VIEW_DETAILS)); | |
40538 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_PyObj_FromInt((int)wxID_VIEW_LARGEICONS)); | |
40539 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_PyObj_FromInt((int)wxID_VIEW_SMALLICONS)); | |
40540 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_PyObj_FromInt((int)wxID_VIEW_LIST)); | |
40541 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTDATE)); | |
40542 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTNAME)); | |
40543 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTSIZE)); | |
40544 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTTYPE)); | |
40545 | PyDict_SetItemString(d,"ID_FILE1", SWIG_PyObj_FromInt((int)wxID_FILE1)); | |
40546 | PyDict_SetItemString(d,"ID_FILE2", SWIG_PyObj_FromInt((int)wxID_FILE2)); | |
40547 | PyDict_SetItemString(d,"ID_FILE3", SWIG_PyObj_FromInt((int)wxID_FILE3)); | |
40548 | PyDict_SetItemString(d,"ID_FILE4", SWIG_PyObj_FromInt((int)wxID_FILE4)); | |
40549 | PyDict_SetItemString(d,"ID_FILE5", SWIG_PyObj_FromInt((int)wxID_FILE5)); | |
40550 | PyDict_SetItemString(d,"ID_FILE6", SWIG_PyObj_FromInt((int)wxID_FILE6)); | |
40551 | PyDict_SetItemString(d,"ID_FILE7", SWIG_PyObj_FromInt((int)wxID_FILE7)); | |
40552 | PyDict_SetItemString(d,"ID_FILE8", SWIG_PyObj_FromInt((int)wxID_FILE8)); | |
40553 | PyDict_SetItemString(d,"ID_FILE9", SWIG_PyObj_FromInt((int)wxID_FILE9)); | |
40554 | PyDict_SetItemString(d,"ID_OK", SWIG_PyObj_FromInt((int)wxID_OK)); | |
40555 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_PyObj_FromInt((int)wxID_CANCEL)); | |
40556 | PyDict_SetItemString(d,"ID_APPLY", SWIG_PyObj_FromInt((int)wxID_APPLY)); | |
40557 | PyDict_SetItemString(d,"ID_YES", SWIG_PyObj_FromInt((int)wxID_YES)); | |
40558 | PyDict_SetItemString(d,"ID_NO", SWIG_PyObj_FromInt((int)wxID_NO)); | |
40559 | PyDict_SetItemString(d,"ID_STATIC", SWIG_PyObj_FromInt((int)wxID_STATIC)); | |
40560 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_PyObj_FromInt((int)wxID_FORWARD)); | |
40561 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_PyObj_FromInt((int)wxID_BACKWARD)); | |
40562 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_PyObj_FromInt((int)wxID_DEFAULT)); | |
40563 | PyDict_SetItemString(d,"ID_MORE", SWIG_PyObj_FromInt((int)wxID_MORE)); | |
40564 | PyDict_SetItemString(d,"ID_SETUP", SWIG_PyObj_FromInt((int)wxID_SETUP)); | |
40565 | PyDict_SetItemString(d,"ID_RESET", SWIG_PyObj_FromInt((int)wxID_RESET)); | |
40566 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_PyObj_FromInt((int)wxID_CONTEXT_HELP)); | |
40567 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_PyObj_FromInt((int)wxID_YESTOALL)); | |
40568 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_PyObj_FromInt((int)wxID_NOTOALL)); | |
40569 | PyDict_SetItemString(d,"ID_ABORT", SWIG_PyObj_FromInt((int)wxID_ABORT)); | |
40570 | PyDict_SetItemString(d,"ID_RETRY", SWIG_PyObj_FromInt((int)wxID_RETRY)); | |
40571 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_PyObj_FromInt((int)wxID_IGNORE)); | |
40572 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_PyObj_FromInt((int)wxID_HIGHEST)); | |
40573 | PyDict_SetItemString(d,"OPEN", SWIG_PyObj_FromInt((int)wxOPEN)); | |
40574 | PyDict_SetItemString(d,"SAVE", SWIG_PyObj_FromInt((int)wxSAVE)); | |
40575 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_PyObj_FromInt((int)wxHIDE_READONLY)); | |
40576 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_PyObj_FromInt((int)wxOVERWRITE_PROMPT)); | |
40577 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_PyObj_FromInt((int)wxFILE_MUST_EXIST)); | |
40578 | PyDict_SetItemString(d,"MULTIPLE", SWIG_PyObj_FromInt((int)wxMULTIPLE)); | |
40579 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_PyObj_FromInt((int)wxCHANGE_DIR)); | |
40580 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_PyObj_FromInt((int)wxACCEL_ALT)); | |
40581 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_PyObj_FromInt((int)wxACCEL_CTRL)); | |
40582 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_PyObj_FromInt((int)wxACCEL_SHIFT)); | |
40583 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_PyObj_FromInt((int)wxACCEL_NORMAL)); | |
40584 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_PyObj_FromInt((int)wxPD_AUTO_HIDE)); | |
40585 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_PyObj_FromInt((int)wxPD_APP_MODAL)); | |
40586 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_PyObj_FromInt((int)wxPD_CAN_ABORT)); | |
40587 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_PyObj_FromInt((int)wxPD_ELAPSED_TIME)); | |
40588 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_PyObj_FromInt((int)wxPD_ESTIMATED_TIME)); | |
40589 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_PyObj_FromInt((int)wxPD_REMAINING_TIME)); | |
40590 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_PyObj_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
40591 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxDD_DEFAULT_STYLE)); | |
40592 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_PyObj_FromInt((int)wxMENU_TEAROFF)); | |
40593 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_PyObj_FromInt((int)wxMB_DOCKABLE)); | |
40594 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_PyObj_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
40595 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_PyObj_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
40596 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_PyObj_FromInt((int)wxLI_HORIZONTAL)); | |
40597 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_PyObj_FromInt((int)wxLI_VERTICAL)); | |
40598 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_PyObj_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
40599 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_PyObj_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
40600 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_PyObj_FromInt((int)wxWS_EX_TRANSIENT)); | |
40601 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_PyObj_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
40602 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_PyObj_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
40603 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_PyObj_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
40604 | PyDict_SetItemString(d,"MM_TEXT", SWIG_PyObj_FromInt((int)wxMM_TEXT)); | |
40605 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_PyObj_FromInt((int)wxMM_LOMETRIC)); | |
40606 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_PyObj_FromInt((int)wxMM_HIMETRIC)); | |
40607 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_PyObj_FromInt((int)wxMM_LOENGLISH)); | |
40608 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_PyObj_FromInt((int)wxMM_HIENGLISH)); | |
40609 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_PyObj_FromInt((int)wxMM_TWIPS)); | |
40610 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_PyObj_FromInt((int)wxMM_ISOTROPIC)); | |
40611 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_PyObj_FromInt((int)wxMM_ANISOTROPIC)); | |
40612 | PyDict_SetItemString(d,"MM_POINTS", SWIG_PyObj_FromInt((int)wxMM_POINTS)); | |
40613 | PyDict_SetItemString(d,"MM_METRIC", SWIG_PyObj_FromInt((int)wxMM_METRIC)); | |
40614 | PyDict_SetItemString(d,"CENTRE", SWIG_PyObj_FromInt((int)wxCENTRE)); | |
40615 | PyDict_SetItemString(d,"CENTER", SWIG_PyObj_FromInt((int)wxCENTER)); | |
40616 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_PyObj_FromInt((int)wxHORIZONTAL)); | |
40617 | PyDict_SetItemString(d,"VERTICAL", SWIG_PyObj_FromInt((int)wxVERTICAL)); | |
40618 | PyDict_SetItemString(d,"BOTH", SWIG_PyObj_FromInt((int)wxBOTH)); | |
40619 | PyDict_SetItemString(d,"LEFT", SWIG_PyObj_FromInt((int)wxLEFT)); | |
40620 | PyDict_SetItemString(d,"RIGHT", SWIG_PyObj_FromInt((int)wxRIGHT)); | |
40621 | PyDict_SetItemString(d,"UP", SWIG_PyObj_FromInt((int)wxUP)); | |
40622 | PyDict_SetItemString(d,"DOWN", SWIG_PyObj_FromInt((int)wxDOWN)); | |
40623 | PyDict_SetItemString(d,"TOP", SWIG_PyObj_FromInt((int)wxTOP)); | |
40624 | PyDict_SetItemString(d,"BOTTOM", SWIG_PyObj_FromInt((int)wxBOTTOM)); | |
40625 | PyDict_SetItemString(d,"NORTH", SWIG_PyObj_FromInt((int)wxNORTH)); | |
40626 | PyDict_SetItemString(d,"SOUTH", SWIG_PyObj_FromInt((int)wxSOUTH)); | |
40627 | PyDict_SetItemString(d,"WEST", SWIG_PyObj_FromInt((int)wxWEST)); | |
40628 | PyDict_SetItemString(d,"EAST", SWIG_PyObj_FromInt((int)wxEAST)); | |
40629 | PyDict_SetItemString(d,"ALL", SWIG_PyObj_FromInt((int)wxALL)); | |
40630 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_PyObj_FromInt((int)wxALIGN_NOT)); | |
40631 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
40632 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
40633 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxALIGN_LEFT)); | |
40634 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_PyObj_FromInt((int)wxALIGN_TOP)); | |
40635 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_PyObj_FromInt((int)wxALIGN_RIGHT)); | |
40636 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_PyObj_FromInt((int)wxALIGN_BOTTOM)); | |
40637 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
40638 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
40639 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_PyObj_FromInt((int)wxALIGN_CENTER)); | |
40640 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE)); | |
40641 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_PyObj_FromInt((int)wxALIGN_MASK)); | |
40642 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_PyObj_FromInt((int)wxSTRETCH_NOT)); | |
40643 | PyDict_SetItemString(d,"SHRINK", SWIG_PyObj_FromInt((int)wxSHRINK)); | |
40644 | PyDict_SetItemString(d,"GROW", SWIG_PyObj_FromInt((int)wxGROW)); | |
40645 | PyDict_SetItemString(d,"EXPAND", SWIG_PyObj_FromInt((int)wxEXPAND)); | |
40646 | PyDict_SetItemString(d,"SHAPED", SWIG_PyObj_FromInt((int)wxSHAPED)); | |
40647 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_PyObj_FromInt((int)wxADJUST_MINSIZE)); | |
40648 | PyDict_SetItemString(d,"TILE", SWIG_PyObj_FromInt((int)wxTILE)); | |
40649 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_PyObj_FromInt((int)wxBORDER_DEFAULT)); | |
40650 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_PyObj_FromInt((int)wxBORDER_NONE)); | |
40651 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_PyObj_FromInt((int)wxBORDER_STATIC)); | |
40652 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_PyObj_FromInt((int)wxBORDER_SIMPLE)); | |
40653 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_PyObj_FromInt((int)wxBORDER_RAISED)); | |
40654 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_PyObj_FromInt((int)wxBORDER_SUNKEN)); | |
40655 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_PyObj_FromInt((int)wxBORDER_DOUBLE)); | |
40656 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_PyObj_FromInt((int)wxBORDER_MASK)); | |
40657 | PyDict_SetItemString(d,"DEFAULT", SWIG_PyObj_FromInt((int)wxDEFAULT)); | |
40658 | PyDict_SetItemString(d,"DECORATIVE", SWIG_PyObj_FromInt((int)wxDECORATIVE)); | |
40659 | PyDict_SetItemString(d,"ROMAN", SWIG_PyObj_FromInt((int)wxROMAN)); | |
40660 | PyDict_SetItemString(d,"SCRIPT", SWIG_PyObj_FromInt((int)wxSCRIPT)); | |
40661 | PyDict_SetItemString(d,"SWISS", SWIG_PyObj_FromInt((int)wxSWISS)); | |
40662 | PyDict_SetItemString(d,"MODERN", SWIG_PyObj_FromInt((int)wxMODERN)); | |
40663 | PyDict_SetItemString(d,"TELETYPE", SWIG_PyObj_FromInt((int)wxTELETYPE)); | |
40664 | PyDict_SetItemString(d,"VARIABLE", SWIG_PyObj_FromInt((int)wxVARIABLE)); | |
40665 | PyDict_SetItemString(d,"FIXED", SWIG_PyObj_FromInt((int)wxFIXED)); | |
40666 | PyDict_SetItemString(d,"NORMAL", SWIG_PyObj_FromInt((int)wxNORMAL)); | |
40667 | PyDict_SetItemString(d,"LIGHT", SWIG_PyObj_FromInt((int)wxLIGHT)); | |
40668 | PyDict_SetItemString(d,"BOLD", SWIG_PyObj_FromInt((int)wxBOLD)); | |
40669 | PyDict_SetItemString(d,"ITALIC", SWIG_PyObj_FromInt((int)wxITALIC)); | |
40670 | PyDict_SetItemString(d,"SLANT", SWIG_PyObj_FromInt((int)wxSLANT)); | |
40671 | PyDict_SetItemString(d,"SOLID", SWIG_PyObj_FromInt((int)wxSOLID)); | |
40672 | PyDict_SetItemString(d,"DOT", SWIG_PyObj_FromInt((int)wxDOT)); | |
40673 | PyDict_SetItemString(d,"LONG_DASH", SWIG_PyObj_FromInt((int)wxLONG_DASH)); | |
40674 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_PyObj_FromInt((int)wxSHORT_DASH)); | |
40675 | PyDict_SetItemString(d,"DOT_DASH", SWIG_PyObj_FromInt((int)wxDOT_DASH)); | |
40676 | PyDict_SetItemString(d,"USER_DASH", SWIG_PyObj_FromInt((int)wxUSER_DASH)); | |
40677 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_PyObj_FromInt((int)wxTRANSPARENT)); | |
40678 | PyDict_SetItemString(d,"STIPPLE", SWIG_PyObj_FromInt((int)wxSTIPPLE)); | |
40679 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_PyObj_FromInt((int)wxBDIAGONAL_HATCH)); | |
40680 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_PyObj_FromInt((int)wxCROSSDIAG_HATCH)); | |
40681 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_PyObj_FromInt((int)wxFDIAGONAL_HATCH)); | |
40682 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_PyObj_FromInt((int)wxCROSS_HATCH)); | |
40683 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_PyObj_FromInt((int)wxHORIZONTAL_HATCH)); | |
40684 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_PyObj_FromInt((int)wxVERTICAL_HATCH)); | |
40685 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_PyObj_FromInt((int)wxJOIN_BEVEL)); | |
40686 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_PyObj_FromInt((int)wxJOIN_MITER)); | |
40687 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_PyObj_FromInt((int)wxJOIN_ROUND)); | |
40688 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_PyObj_FromInt((int)wxCAP_ROUND)); | |
40689 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_PyObj_FromInt((int)wxCAP_PROJECTING)); | |
40690 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_PyObj_FromInt((int)wxCAP_BUTT)); | |
40691 | PyDict_SetItemString(d,"CLEAR", SWIG_PyObj_FromInt((int)wxCLEAR)); | |
40692 | PyDict_SetItemString(d,"XOR", SWIG_PyObj_FromInt((int)wxXOR)); | |
40693 | PyDict_SetItemString(d,"INVERT", SWIG_PyObj_FromInt((int)wxINVERT)); | |
40694 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_PyObj_FromInt((int)wxOR_REVERSE)); | |
40695 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_PyObj_FromInt((int)wxAND_REVERSE)); | |
40696 | PyDict_SetItemString(d,"COPY", SWIG_PyObj_FromInt((int)wxCOPY)); | |
40697 | PyDict_SetItemString(d,"AND", SWIG_PyObj_FromInt((int)wxAND)); | |
40698 | PyDict_SetItemString(d,"AND_INVERT", SWIG_PyObj_FromInt((int)wxAND_INVERT)); | |
40699 | PyDict_SetItemString(d,"NO_OP", SWIG_PyObj_FromInt((int)wxNO_OP)); | |
40700 | PyDict_SetItemString(d,"NOR", SWIG_PyObj_FromInt((int)wxNOR)); | |
40701 | PyDict_SetItemString(d,"EQUIV", SWIG_PyObj_FromInt((int)wxEQUIV)); | |
40702 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_PyObj_FromInt((int)wxSRC_INVERT)); | |
40703 | PyDict_SetItemString(d,"OR_INVERT", SWIG_PyObj_FromInt((int)wxOR_INVERT)); | |
40704 | PyDict_SetItemString(d,"NAND", SWIG_PyObj_FromInt((int)wxNAND)); | |
40705 | PyDict_SetItemString(d,"OR", SWIG_PyObj_FromInt((int)wxOR)); | |
40706 | PyDict_SetItemString(d,"SET", SWIG_PyObj_FromInt((int)wxSET)); | |
40707 | PyDict_SetItemString(d,"WXK_BACK", SWIG_PyObj_FromInt((int)WXK_BACK)); | |
40708 | PyDict_SetItemString(d,"WXK_TAB", SWIG_PyObj_FromInt((int)WXK_TAB)); | |
40709 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_PyObj_FromInt((int)WXK_RETURN)); | |
40710 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_PyObj_FromInt((int)WXK_ESCAPE)); | |
40711 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_PyObj_FromInt((int)WXK_SPACE)); | |
40712 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_PyObj_FromInt((int)WXK_DELETE)); | |
40713 | PyDict_SetItemString(d,"WXK_START", SWIG_PyObj_FromInt((int)WXK_START)); | |
40714 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_PyObj_FromInt((int)WXK_LBUTTON)); | |
40715 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_PyObj_FromInt((int)WXK_RBUTTON)); | |
40716 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_PyObj_FromInt((int)WXK_CANCEL)); | |
40717 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_PyObj_FromInt((int)WXK_MBUTTON)); | |
40718 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_PyObj_FromInt((int)WXK_CLEAR)); | |
40719 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_PyObj_FromInt((int)WXK_SHIFT)); | |
40720 | PyDict_SetItemString(d,"WXK_ALT", SWIG_PyObj_FromInt((int)WXK_ALT)); | |
40721 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_PyObj_FromInt((int)WXK_CONTROL)); | |
40722 | PyDict_SetItemString(d,"WXK_MENU", SWIG_PyObj_FromInt((int)WXK_MENU)); | |
40723 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_PyObj_FromInt((int)WXK_PAUSE)); | |
40724 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_PyObj_FromInt((int)WXK_CAPITAL)); | |
40725 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_PyObj_FromInt((int)WXK_PRIOR)); | |
40726 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_PyObj_FromInt((int)WXK_NEXT)); | |
40727 | PyDict_SetItemString(d,"WXK_END", SWIG_PyObj_FromInt((int)WXK_END)); | |
40728 | PyDict_SetItemString(d,"WXK_HOME", SWIG_PyObj_FromInt((int)WXK_HOME)); | |
40729 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_PyObj_FromInt((int)WXK_LEFT)); | |
40730 | PyDict_SetItemString(d,"WXK_UP", SWIG_PyObj_FromInt((int)WXK_UP)); | |
40731 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_PyObj_FromInt((int)WXK_RIGHT)); | |
40732 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_PyObj_FromInt((int)WXK_DOWN)); | |
40733 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_PyObj_FromInt((int)WXK_SELECT)); | |
40734 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_PyObj_FromInt((int)WXK_PRINT)); | |
40735 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_PyObj_FromInt((int)WXK_EXECUTE)); | |
40736 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_PyObj_FromInt((int)WXK_SNAPSHOT)); | |
40737 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_PyObj_FromInt((int)WXK_INSERT)); | |
40738 | PyDict_SetItemString(d,"WXK_HELP", SWIG_PyObj_FromInt((int)WXK_HELP)); | |
40739 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_PyObj_FromInt((int)WXK_NUMPAD0)); | |
40740 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_PyObj_FromInt((int)WXK_NUMPAD1)); | |
40741 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_PyObj_FromInt((int)WXK_NUMPAD2)); | |
40742 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_PyObj_FromInt((int)WXK_NUMPAD3)); | |
40743 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_PyObj_FromInt((int)WXK_NUMPAD4)); | |
40744 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_PyObj_FromInt((int)WXK_NUMPAD5)); | |
40745 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_PyObj_FromInt((int)WXK_NUMPAD6)); | |
40746 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_PyObj_FromInt((int)WXK_NUMPAD7)); | |
40747 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_PyObj_FromInt((int)WXK_NUMPAD8)); | |
40748 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_PyObj_FromInt((int)WXK_NUMPAD9)); | |
40749 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_PyObj_FromInt((int)WXK_MULTIPLY)); | |
40750 | PyDict_SetItemString(d,"WXK_ADD", SWIG_PyObj_FromInt((int)WXK_ADD)); | |
40751 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_PyObj_FromInt((int)WXK_SEPARATOR)); | |
40752 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_PyObj_FromInt((int)WXK_SUBTRACT)); | |
40753 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_PyObj_FromInt((int)WXK_DECIMAL)); | |
40754 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_PyObj_FromInt((int)WXK_DIVIDE)); | |
40755 | PyDict_SetItemString(d,"WXK_F1", SWIG_PyObj_FromInt((int)WXK_F1)); | |
40756 | PyDict_SetItemString(d,"WXK_F2", SWIG_PyObj_FromInt((int)WXK_F2)); | |
40757 | PyDict_SetItemString(d,"WXK_F3", SWIG_PyObj_FromInt((int)WXK_F3)); | |
40758 | PyDict_SetItemString(d,"WXK_F4", SWIG_PyObj_FromInt((int)WXK_F4)); | |
40759 | PyDict_SetItemString(d,"WXK_F5", SWIG_PyObj_FromInt((int)WXK_F5)); | |
40760 | PyDict_SetItemString(d,"WXK_F6", SWIG_PyObj_FromInt((int)WXK_F6)); | |
40761 | PyDict_SetItemString(d,"WXK_F7", SWIG_PyObj_FromInt((int)WXK_F7)); | |
40762 | PyDict_SetItemString(d,"WXK_F8", SWIG_PyObj_FromInt((int)WXK_F8)); | |
40763 | PyDict_SetItemString(d,"WXK_F9", SWIG_PyObj_FromInt((int)WXK_F9)); | |
40764 | PyDict_SetItemString(d,"WXK_F10", SWIG_PyObj_FromInt((int)WXK_F10)); | |
40765 | PyDict_SetItemString(d,"WXK_F11", SWIG_PyObj_FromInt((int)WXK_F11)); | |
40766 | PyDict_SetItemString(d,"WXK_F12", SWIG_PyObj_FromInt((int)WXK_F12)); | |
40767 | PyDict_SetItemString(d,"WXK_F13", SWIG_PyObj_FromInt((int)WXK_F13)); | |
40768 | PyDict_SetItemString(d,"WXK_F14", SWIG_PyObj_FromInt((int)WXK_F14)); | |
40769 | PyDict_SetItemString(d,"WXK_F15", SWIG_PyObj_FromInt((int)WXK_F15)); | |
40770 | PyDict_SetItemString(d,"WXK_F16", SWIG_PyObj_FromInt((int)WXK_F16)); | |
40771 | PyDict_SetItemString(d,"WXK_F17", SWIG_PyObj_FromInt((int)WXK_F17)); | |
40772 | PyDict_SetItemString(d,"WXK_F18", SWIG_PyObj_FromInt((int)WXK_F18)); | |
40773 | PyDict_SetItemString(d,"WXK_F19", SWIG_PyObj_FromInt((int)WXK_F19)); | |
40774 | PyDict_SetItemString(d,"WXK_F20", SWIG_PyObj_FromInt((int)WXK_F20)); | |
40775 | PyDict_SetItemString(d,"WXK_F21", SWIG_PyObj_FromInt((int)WXK_F21)); | |
40776 | PyDict_SetItemString(d,"WXK_F22", SWIG_PyObj_FromInt((int)WXK_F22)); | |
40777 | PyDict_SetItemString(d,"WXK_F23", SWIG_PyObj_FromInt((int)WXK_F23)); | |
40778 | PyDict_SetItemString(d,"WXK_F24", SWIG_PyObj_FromInt((int)WXK_F24)); | |
40779 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_PyObj_FromInt((int)WXK_NUMLOCK)); | |
40780 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_PyObj_FromInt((int)WXK_SCROLL)); | |
40781 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_PyObj_FromInt((int)WXK_PAGEUP)); | |
40782 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_PyObj_FromInt((int)WXK_PAGEDOWN)); | |
40783 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SPACE)); | |
40784 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_PyObj_FromInt((int)WXK_NUMPAD_TAB)); | |
40785 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_PyObj_FromInt((int)WXK_NUMPAD_ENTER)); | |
40786 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F1)); | |
40787 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F2)); | |
40788 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F3)); | |
40789 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F4)); | |
40790 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_PyObj_FromInt((int)WXK_NUMPAD_HOME)); | |
40791 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_LEFT)); | |
40792 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_PyObj_FromInt((int)WXK_NUMPAD_UP)); | |
40793 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_RIGHT)); | |
40794 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DOWN)); | |
40795 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PRIOR)); | |
40796 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
40797 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_NEXT)); | |
40798 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
40799 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_PyObj_FromInt((int)WXK_NUMPAD_END)); | |
40800 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_BEGIN)); | |
40801 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_INSERT)); | |
40802 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DELETE)); | |
40803 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_PyObj_FromInt((int)WXK_NUMPAD_EQUAL)); | |
40804 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_PyObj_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
40805 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_PyObj_FromInt((int)WXK_NUMPAD_ADD)); | |
40806 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
40807 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
40808 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
40809 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
40810 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_PyObj_FromInt((int)WXK_WINDOWS_LEFT)); | |
40811 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_PyObj_FromInt((int)WXK_WINDOWS_RIGHT)); | |
40812 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_PyObj_FromInt((int)WXK_WINDOWS_MENU)); | |
40813 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_PyObj_FromInt((int)wxPAPER_NONE)); | |
40814 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_PyObj_FromInt((int)wxPAPER_LETTER)); | |
40815 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_PyObj_FromInt((int)wxPAPER_LEGAL)); | |
40816 | PyDict_SetItemString(d,"PAPER_A4", SWIG_PyObj_FromInt((int)wxPAPER_A4)); | |
40817 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_PyObj_FromInt((int)wxPAPER_CSHEET)); | |
40818 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_PyObj_FromInt((int)wxPAPER_DSHEET)); | |
40819 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_PyObj_FromInt((int)wxPAPER_ESHEET)); | |
40820 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_PyObj_FromInt((int)wxPAPER_LETTERSMALL)); | |
40821 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_PyObj_FromInt((int)wxPAPER_TABLOID)); | |
40822 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_PyObj_FromInt((int)wxPAPER_LEDGER)); | |
40823 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_PyObj_FromInt((int)wxPAPER_STATEMENT)); | |
40824 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_PyObj_FromInt((int)wxPAPER_EXECUTIVE)); | |
40825 | PyDict_SetItemString(d,"PAPER_A3", SWIG_PyObj_FromInt((int)wxPAPER_A3)); | |
40826 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_PyObj_FromInt((int)wxPAPER_A4SMALL)); | |
40827 | PyDict_SetItemString(d,"PAPER_A5", SWIG_PyObj_FromInt((int)wxPAPER_A5)); | |
40828 | PyDict_SetItemString(d,"PAPER_B4", SWIG_PyObj_FromInt((int)wxPAPER_B4)); | |
40829 | PyDict_SetItemString(d,"PAPER_B5", SWIG_PyObj_FromInt((int)wxPAPER_B5)); | |
40830 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_PyObj_FromInt((int)wxPAPER_FOLIO)); | |
40831 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_PyObj_FromInt((int)wxPAPER_QUARTO)); | |
40832 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_PyObj_FromInt((int)wxPAPER_10X14)); | |
40833 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_PyObj_FromInt((int)wxPAPER_11X17)); | |
40834 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_PyObj_FromInt((int)wxPAPER_NOTE)); | |
40835 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_PyObj_FromInt((int)wxPAPER_ENV_9)); | |
40836 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_PyObj_FromInt((int)wxPAPER_ENV_10)); | |
40837 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_PyObj_FromInt((int)wxPAPER_ENV_11)); | |
40838 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_PyObj_FromInt((int)wxPAPER_ENV_12)); | |
40839 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_PyObj_FromInt((int)wxPAPER_ENV_14)); | |
40840 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_PyObj_FromInt((int)wxPAPER_ENV_DL)); | |
40841 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C5)); | |
40842 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C3)); | |
40843 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C4)); | |
40844 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C6)); | |
40845 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C65)); | |
40846 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B4)); | |
40847 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B5)); | |
40848 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B6)); | |
40849 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_PyObj_FromInt((int)wxPAPER_ENV_ITALY)); | |
40850 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_PyObj_FromInt((int)wxPAPER_ENV_MONARCH)); | |
40851 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_PyObj_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
40852 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_US)); | |
40853 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
40854 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
40855 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_PyObj_FromInt((int)wxPAPER_ISO_B4)); | |
40856 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_PyObj_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
40857 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_PyObj_FromInt((int)wxPAPER_9X11)); | |
40858 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_PyObj_FromInt((int)wxPAPER_10X11)); | |
40859 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_PyObj_FromInt((int)wxPAPER_15X11)); | |
40860 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_PyObj_FromInt((int)wxPAPER_ENV_INVITE)); | |
40861 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
40862 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
40863 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
40864 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A4_EXTRA)); | |
40865 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
40866 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
40867 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
40868 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_A_PLUS)); | |
40869 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_B_PLUS)); | |
40870 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_PLUS)); | |
40871 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_A4_PLUS)); | |
40872 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
40873 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
40874 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A3_EXTRA)); | |
40875 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A5_EXTRA)); | |
40876 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_B5_EXTRA)); | |
40877 | PyDict_SetItemString(d,"PAPER_A2", SWIG_PyObj_FromInt((int)wxPAPER_A2)); | |
40878 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
40879 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
40880 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_PyObj_FromInt((int)wxDUPLEX_SIMPLEX)); | |
40881 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_PyObj_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
40882 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_PyObj_FromInt((int)wxDUPLEX_VERTICAL)); | |
40883 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_PyObj_FromInt((int)wxITEM_SEPARATOR)); | |
40884 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_PyObj_FromInt((int)wxITEM_NORMAL)); | |
40885 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_PyObj_FromInt((int)wxITEM_CHECK)); | |
40886 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_PyObj_FromInt((int)wxITEM_RADIO)); | |
40887 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_PyObj_FromInt((int)wxITEM_MAX)); | |
40888 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_PyObj_FromInt((int)wxHT_NOWHERE)); | |
40889 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
40890 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
40891 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
40892 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
40893 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
40894 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
40895 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
40896 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
40897 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
40898 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_PyObj_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
40899 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_PyObj_FromInt((int)wxHT_WINDOW_INSIDE)); | |
40900 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_PyObj_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
40901 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_PyObj_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
40902 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_PyObj_FromInt((int)wxHT_WINDOW_CORNER)); | |
40903 | PyDict_SetItemString(d,"HT_MAX", SWIG_PyObj_FromInt((int)wxHT_MAX)); | |
40904 | PyDict_SetItemString(d,"MOD_NONE", SWIG_PyObj_FromInt((int)wxMOD_NONE)); | |
40905 | PyDict_SetItemString(d,"MOD_ALT", SWIG_PyObj_FromInt((int)wxMOD_ALT)); | |
40906 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_PyObj_FromInt((int)wxMOD_CONTROL)); | |
40907 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_PyObj_FromInt((int)wxMOD_SHIFT)); | |
40908 | PyDict_SetItemString(d,"MOD_WIN", SWIG_PyObj_FromInt((int)wxMOD_WIN)); | |
40909 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_NONE)); | |
40910 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_RECURSE)); | |
40911 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
d14a1e28 | 40912 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
196addbf | 40913 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
994141e6 RD |
40914 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_INVALID)); |
40915 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_BMP)); | |
40916 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ICO)); | |
40917 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_CUR)); | |
40918 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XBM)); | |
40919 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
40920 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XPM)); | |
40921 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
40922 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_TIF)); | |
40923 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_GIF)); | |
40924 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PNG)); | |
40925 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
40926 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PNM)); | |
40927 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PCX)); | |
40928 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PICT)); | |
40929 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ICON)); | |
40930 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ANI)); | |
40931 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_IFF)); | |
40932 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
40933 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ANY)); | |
40934 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_PyObj_FromInt((int)wxCURSOR_NONE)); | |
40935 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_ARROW)); | |
40936 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
40937 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_PyObj_FromInt((int)wxCURSOR_BULLSEYE)); | |
40938 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_PyObj_FromInt((int)wxCURSOR_CHAR)); | |
40939 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_PyObj_FromInt((int)wxCURSOR_CROSS)); | |
40940 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_PyObj_FromInt((int)wxCURSOR_HAND)); | |
40941 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_PyObj_FromInt((int)wxCURSOR_IBEAM)); | |
40942 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
40943 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_PyObj_FromInt((int)wxCURSOR_MAGNIFIER)); | |
40944 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
40945 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_PyObj_FromInt((int)wxCURSOR_NO_ENTRY)); | |
40946 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_PyObj_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
40947 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_PyObj_FromInt((int)wxCURSOR_PENCIL)); | |
40948 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_PyObj_FromInt((int)wxCURSOR_POINT_LEFT)); | |
40949 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_PyObj_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
40950 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
40951 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
40952 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENESW)); | |
40953 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENS)); | |
40954 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENWSE)); | |
40955 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_PyObj_FromInt((int)wxCURSOR_SIZEWE)); | |
40956 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_PyObj_FromInt((int)wxCURSOR_SIZING)); | |
40957 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_PyObj_FromInt((int)wxCURSOR_SPRAYCAN)); | |
40958 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_PyObj_FromInt((int)wxCURSOR_WAIT)); | |
40959 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_PyObj_FromInt((int)wxCURSOR_WATCH)); | |
40960 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_PyObj_FromInt((int)wxCURSOR_BLANK)); | |
40961 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_PyObj_FromInt((int)wxCURSOR_DEFAULT)); | |
40962 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_COPY_ARROW)); | |
40963 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_PyObj_FromInt((int)wxCURSOR_ARROWWAIT)); | |
40964 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_PyObj_FromInt((int)wxCURSOR_MAX)); | |
d14a1e28 RD |
40965 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
40966 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
994141e6 RD |
40967 | PyDict_SetItemString(d,"FromStart", SWIG_PyObj_FromInt((int)wxFromStart)); |
40968 | PyDict_SetItemString(d,"FromCurrent", SWIG_PyObj_FromInt((int)wxFromCurrent)); | |
40969 | PyDict_SetItemString(d,"FromEnd", SWIG_PyObj_FromInt((int)wxFromEnd)); | |
d14a1e28 RD |
40970 | |
40971 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
40972 | ||
40973 | ||
40974 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
40975 | ||
40976 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
40977 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
40978 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
40979 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
40980 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
40981 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
994141e6 RD |
40982 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_PyObj_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); |
40983 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_PyObj_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
40984 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_PyObj_FromInt((int)wxBMP_24BPP)); | |
40985 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_PyObj_FromInt((int)wxBMP_8BPP)); | |
40986 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_PyObj_FromInt((int)wxBMP_8BPP_GREY)); | |
40987 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_PyObj_FromInt((int)wxBMP_8BPP_GRAY)); | |
40988 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_PyObj_FromInt((int)wxBMP_8BPP_RED)); | |
40989 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_PyObj_FromInt((int)wxBMP_8BPP_PALETTE)); | |
40990 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_PyObj_FromInt((int)wxBMP_4BPP)); | |
40991 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_PyObj_FromInt((int)wxBMP_1BPP)); | |
40992 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_PyObj_FromInt((int)wxBMP_1BPP_BW)); | |
40993 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_PyObj_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
40994 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_PyObj_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
d14a1e28 RD |
40995 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
40996 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
40997 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
40998 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
40999 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
41000 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
41001 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
41002 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
41003 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
41004 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
41005 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
41006 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
41007 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
41008 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
41009 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
41010 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
41011 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
41012 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
41013 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
41014 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
41015 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
41016 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
41017 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
41018 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
41019 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
41020 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
41021 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
41022 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
41023 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
41024 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
41025 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
41026 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
41027 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
41028 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
41029 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
41030 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
41031 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
41032 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
41033 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
41034 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
41035 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
41036 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
41037 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
41038 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
41039 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
41040 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
41041 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
41042 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
41043 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
41044 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
41045 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
41046 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
41047 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
41048 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
41049 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
41050 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
41051 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
41052 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
41053 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
41054 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
41055 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
41056 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
41057 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
41058 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
41059 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
41060 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
41061 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
41062 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
41063 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
41064 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
41065 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
41066 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
41067 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
41068 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
41069 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
41070 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
41071 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
41072 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
41073 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
41074 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
41075 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
41076 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
41077 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
41078 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
41079 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
41080 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
41081 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
41082 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
41083 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
41084 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
41085 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
41086 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
41087 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
41088 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
41089 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
41090 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
41091 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
41092 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
41093 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
41094 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
41095 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
41096 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
41097 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
41098 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
41099 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
41100 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
41101 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
41102 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
41103 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
41104 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
41105 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
41106 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
41107 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
41108 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
994141e6 RD |
41109 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_ANY)); |
41110 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_NONE)); | |
41111 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_LEFT)); | |
41112 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
41113 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
41114 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_PyObj_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
41115 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_PyObj_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
41116 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_PyObj_FromInt((int)wxIDLE_PROCESS_ALL)); | |
41117 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_PyObj_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
41118 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
41119 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
41120 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
41121 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
41122 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_PyObj_FromInt((int)wxPRINT_WINDOWS)); | |
41123 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_PyObj_FromInt((int)wxPRINT_POSTSCRIPT)); | |
1e0c8722 | 41124 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
e811c8ce | 41125 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
d14a1e28 | 41126 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
b2dc1044 | 41127 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
994141e6 RD |
41128 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_NONE)); |
41129 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
41130 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
d14a1e28 | 41131 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
994141e6 RD |
41132 | PyDict_SetItemString(d,"Left", SWIG_PyObj_FromInt((int)wxLeft)); |
41133 | PyDict_SetItemString(d,"Top", SWIG_PyObj_FromInt((int)wxTop)); | |
41134 | PyDict_SetItemString(d,"Right", SWIG_PyObj_FromInt((int)wxRight)); | |
41135 | PyDict_SetItemString(d,"Bottom", SWIG_PyObj_FromInt((int)wxBottom)); | |
41136 | PyDict_SetItemString(d,"Width", SWIG_PyObj_FromInt((int)wxWidth)); | |
41137 | PyDict_SetItemString(d,"Height", SWIG_PyObj_FromInt((int)wxHeight)); | |
41138 | PyDict_SetItemString(d,"Centre", SWIG_PyObj_FromInt((int)wxCentre)); | |
41139 | PyDict_SetItemString(d,"Center", SWIG_PyObj_FromInt((int)wxCenter)); | |
41140 | PyDict_SetItemString(d,"CentreX", SWIG_PyObj_FromInt((int)wxCentreX)); | |
41141 | PyDict_SetItemString(d,"CentreY", SWIG_PyObj_FromInt((int)wxCentreY)); | |
41142 | PyDict_SetItemString(d,"Unconstrained", SWIG_PyObj_FromInt((int)wxUnconstrained)); | |
41143 | PyDict_SetItemString(d,"AsIs", SWIG_PyObj_FromInt((int)wxAsIs)); | |
41144 | PyDict_SetItemString(d,"PercentOf", SWIG_PyObj_FromInt((int)wxPercentOf)); | |
41145 | PyDict_SetItemString(d,"Above", SWIG_PyObj_FromInt((int)wxAbove)); | |
41146 | PyDict_SetItemString(d,"Below", SWIG_PyObj_FromInt((int)wxBelow)); | |
41147 | PyDict_SetItemString(d,"LeftOf", SWIG_PyObj_FromInt((int)wxLeftOf)); | |
41148 | PyDict_SetItemString(d,"RightOf", SWIG_PyObj_FromInt((int)wxRightOf)); | |
41149 | PyDict_SetItemString(d,"SameAs", SWIG_PyObj_FromInt((int)wxSameAs)); | |
41150 | PyDict_SetItemString(d,"Absolute", SWIG_PyObj_FromInt((int)wxAbsolute)); | |
d14a1e28 RD |
41151 | |
41152 | // Initialize threading, some globals and such | |
41153 | __wxPyPreStart(d); | |
41154 | ||
41155 | ||
41156 | // Although these are defined in __version__ they need to be here too so | |
41157 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
41158 | // versions match. | |
41159 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
41160 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
41161 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
41162 | ||
41163 | } | |
41164 |