]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
83448d71 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
f0983263 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
f0983263 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
f0983263 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
f0983263 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
f0983263 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
f0983263 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
f0983263 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
f0983263 | 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) | |
83448d71 | 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 | ||
8edf1c75 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
f0983263 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 | |
8edf1c75 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 | ||
423f194a | 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] | |
4e760a36 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] | |
4e760a36 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] | |
8edf1c75 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] | |
4e760a36 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 | ||
8edf1c75 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 | |
423f194a | 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); | |
423f194a | 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 | ||
8edf1c75 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 | ||
d03fd34d | 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 | ||
8edf1c75 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 | ||
423f194a | 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 | } | |
8edf1c75 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 | } | |
423f194a | 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 | } | |
8edf1c75 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 | } | |
423f194a | 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 | } | |
423f194a | 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); | |
423f194a | 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 | } | |
423f194a | 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 | } | |
8edf1c75 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 | ||
8edf1c75 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 | ||
8edf1c75 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); | |
423f194a | 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){ | |
a64def11 RD |
1074 | #if wxUSE_UNICODE |
1075 | return self->m_uniChar; | |
1076 | #else | |
d14a1e28 | 1077 | return 0; |
a64def11 | 1078 | #endif |
d14a1e28 | 1079 | } |
8edf1c75 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++) { | |
a64def11 | 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 | } | |
1118 | ||
1119 | void wxApp_CleanUp() { | |
1120 | __wxPyCleanup(); | |
1121 | } | |
1122 | ||
1123 | ||
1124 | wxPyApp* wxGetApp() { | |
1125 | return (wxPyApp*)wxTheApp; | |
1126 | } | |
1127 | ||
1128 | ||
1129 | ||
423f194a | 1130 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
d14a1e28 RD |
1131 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1132 | wxWindowList& list = self->GetChildren(); | |
1133 | return wxPy_ConvertList(&list); | |
1134 | } | |
1135 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1136 | ||
1137 | ||
1138 | ||
423f194a | 1139 | return False; |
d14a1e28 RD |
1140 | |
1141 | } | |
1142 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1143 | ||
1144 | ||
1145 | ||
423f194a | 1146 | return False; |
d14a1e28 RD |
1147 | |
1148 | } | |
1149 | long wxWindow_GetHandle(wxWindow *self){ | |
1150 | return wxPyGetWinHandle(self); | |
1151 | } | |
1152 | ||
1153 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1154 | return wxWindow::FindWindowById(id, parent); | |
1155 | } | |
1156 | ||
1157 | wxWindow* wxFindWindowByName( const wxString& name, | |
1158 | const wxWindow *parent = NULL ) { | |
1159 | return wxWindow::FindWindowByName(name, parent); | |
1160 | } | |
1161 | ||
1162 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1163 | const wxWindow *parent = NULL ) { | |
1164 | return wxWindow::FindWindowByLabel(label, parent); | |
1165 | } | |
1166 | ||
1167 | ||
1168 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
1169 | #ifdef __WXMSW__ | |
1170 | wxWindow* win = new wxWindow; | |
1171 | win->SetHWND(hWnd); | |
1172 | win->SubclassWin(hWnd); | |
1173 | return win; | |
1174 | #else | |
cbd72d4f | 1175 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1176 | return NULL; |
1177 | #endif | |
1178 | } | |
1179 | ||
1180 | ||
1181 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1182 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1183 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1184 | ||
1185 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1186 | ||
1187 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1188 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1189 | wxMenuItemList& list = self->GetMenuItems(); | |
1190 | return wxPy_ConvertList(&list); | |
1191 | } | |
d03fd34d | 1192 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1193 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1194 | if (clientData) { | |
1195 | wxPyClientData* data = new wxPyClientData(clientData); | |
1196 | return self->Append(item, data); | |
1197 | } else | |
1198 | return self->Append(item); | |
1199 | } | |
1200 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1201 | if (clientData) { | |
1202 | wxPyClientData* data = new wxPyClientData(clientData); | |
1203 | return self->Insert(item, pos, data); | |
1204 | } else | |
1205 | return self->Insert(item, pos); | |
1206 | } | |
1207 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1208 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1209 | if (data) { | |
1210 | Py_INCREF(data->m_obj); | |
1211 | return data->m_obj; | |
1212 | } else { | |
1213 | Py_INCREF(Py_None); | |
1214 | return Py_None; | |
1215 | } | |
1216 | } | |
1217 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1218 | wxPyClientData* data = new wxPyClientData(clientData); | |
1219 | self->SetClientObject(n, data); | |
1220 | } | |
1221 | ||
1222 | ||
8edf1c75 RD |
1223 | |
1224 | SWIGSTATIC(float) | |
1225 | SWIG_PyObj_AsFloat(PyObject *obj) | |
1226 | { | |
1227 | return SWIG_PyObj_AsFloatConv(obj, SWIG_PyObj_AsDouble); | |
1228 | } | |
1229 | ||
d14a1e28 RD |
1230 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ |
1231 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1232 | if (data) { | |
1233 | Py_INCREF(data->m_obj); | |
1234 | return data->m_obj; | |
1235 | } else { | |
1236 | Py_INCREF(Py_None); | |
1237 | return Py_None; | |
1238 | } | |
1239 | } | |
1240 | ||
1241 | // Figure out the type of the sizer item | |
1242 | ||
1243 | struct wxPySizerItemInfo { | |
1244 | wxPySizerItemInfo() | |
423f194a RD |
1245 | : window(NULL), sizer(NULL), gotSize(False), |
1246 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1247 | {} |
1248 | ||
1249 | wxWindow* window; | |
1250 | wxSizer* sizer; | |
1251 | bool gotSize; | |
1252 | wxSize size; | |
1253 | bool gotPos; | |
1254 | int pos; | |
1255 | }; | |
1256 | ||
1257 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1258 | ||
1259 | wxPySizerItemInfo info; | |
1260 | wxSize size; | |
1261 | wxSize* sizePtr = &size; | |
1262 | ||
1263 | // Find out what the type of the item is | |
1264 | // try wxWindow | |
1265 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1266 | PyErr_Clear(); | |
1267 | info.window = NULL; | |
1268 | ||
1269 | // try wxSizer | |
1270 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1271 | PyErr_Clear(); | |
1272 | info.sizer = NULL; | |
1273 | ||
1274 | // try wxSize or (w,h) | |
1275 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1276 | info.size = *sizePtr; | |
423f194a | 1277 | info.gotSize = True; |
d14a1e28 RD |
1278 | } |
1279 | ||
1280 | // or a single int | |
1281 | if (checkIdx && PyInt_Check(item)) { | |
1282 | info.pos = PyInt_AsLong(item); | |
423f194a | 1283 | info.gotPos = True; |
d14a1e28 RD |
1284 | } |
1285 | } | |
1286 | } | |
1287 | ||
1288 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1289 | // no expected type, figure out what kind of error message to generate | |
1290 | if ( !checkSize && !checkIdx ) | |
1291 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1292 | else if ( checkSize && !checkIdx ) | |
1293 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1294 | else if ( !checkSize && checkIdx) | |
1295 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1296 | else | |
1297 | // can this one happen? | |
1298 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1299 | } | |
1300 | ||
1301 | return info; | |
1302 | } | |
1303 | ||
1304 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1305 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1306 | } | |
1307 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1308 | ||
1309 | wxPyUserData* data = NULL; | |
1310 | wxPyBeginBlockThreads(); | |
423f194a | 1311 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1312 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1313 | data = new wxPyUserData(userData); | |
1314 | wxPyEndBlockThreads(); | |
1315 | ||
1316 | // Now call the real Add method if a valid item type was found | |
1317 | if ( info.window ) | |
1318 | self->Add(info.window, proportion, flag, border, data); | |
1319 | else if ( info.sizer ) | |
1320 | self->Add(info.sizer, proportion, flag, border, data); | |
1321 | else if (info.gotSize) | |
1322 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1323 | proportion, flag, border, data); | |
1324 | } | |
1325 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1326 | ||
1327 | wxPyUserData* data = NULL; | |
1328 | wxPyBeginBlockThreads(); | |
423f194a | 1329 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1330 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1331 | data = new wxPyUserData(userData); | |
1332 | wxPyEndBlockThreads(); | |
1333 | ||
1334 | // Now call the real Insert method if a valid item type was found | |
1335 | if ( info.window ) | |
1336 | self->Insert(before, info.window, proportion, flag, border, data); | |
1337 | else if ( info.sizer ) | |
1338 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1339 | else if (info.gotSize) | |
1340 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1341 | proportion, flag, border, data); | |
1342 | } | |
1343 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1344 | ||
1345 | wxPyUserData* data = NULL; | |
1346 | wxPyBeginBlockThreads(); | |
423f194a | 1347 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1348 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1349 | data = new wxPyUserData(userData); | |
1350 | wxPyEndBlockThreads(); | |
1351 | ||
1352 | // Now call the real Prepend method if a valid item type was found | |
1353 | if ( info.window ) | |
1354 | self->Prepend(info.window, proportion, flag, border, data); | |
1355 | else if ( info.sizer ) | |
1356 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1357 | else if (info.gotSize) | |
1358 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1359 | proportion, flag, border, data); | |
1360 | } | |
1361 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1362 | wxPyBeginBlockThreads(); | |
423f194a | 1363 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1364 | wxPyEndBlockThreads(); |
1365 | if ( info.window ) | |
1366 | return self->Remove(info.window); | |
1367 | else if ( info.sizer ) | |
1368 | return self->Remove(info.sizer); | |
1369 | else if ( info.gotPos ) | |
1370 | return self->Remove(info.pos); | |
1371 | else | |
423f194a | 1372 | return False; |
d14a1e28 | 1373 | } |
423f194a | 1374 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
d14a1e28 | 1375 | wxPyBeginBlockThreads(); |
423f194a | 1376 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1377 | wxPyEndBlockThreads(); |
1378 | if ( info.window ) | |
1379 | self->SetItemMinSize(info.window, size); | |
1380 | else if ( info.sizer ) | |
1381 | self->SetItemMinSize(info.sizer, size); | |
1382 | else if ( info.gotPos ) | |
1383 | self->SetItemMinSize(info.pos, size); | |
1384 | } | |
1385 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1386 | wxSizerItemList& list = self->GetChildren(); | |
1387 | return wxPy_ConvertList(&list); | |
1388 | } | |
1389 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
423f194a | 1390 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1391 | if ( info.window ) |
1392 | self->Show(info.window, show); | |
1393 | else if ( info.sizer ) | |
1394 | self->Show(info.sizer, show); | |
1395 | } | |
1396 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
423f194a | 1397 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1398 | if ( info.window ) |
1399 | self->Hide(info.window); | |
1400 | else if ( info.sizer ) | |
1401 | self->Hide(info.sizer); | |
1402 | } | |
1403 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
423f194a | 1404 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1405 | if ( info.window ) |
1406 | return self->IsShown(info.window); | |
1407 | else if ( info.sizer ) | |
1408 | return self->IsShown(info.sizer); | |
1409 | else | |
423f194a | 1410 | return False; |
d14a1e28 RD |
1411 | } |
1412 | ||
1413 | // See pyclasses.h | |
1414 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1415 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1416 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1417 | ||
1418 | ||
1419 | ||
1420 | ||
1421 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1422 | { | |
1423 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1424 | } | |
1425 | ||
1426 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1427 | { | |
1428 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1429 | } | |
1430 | ||
1431 | ||
328fcd84 RD |
1432 | bool wxGBPosition___eq__(wxGBPosition *self,wxGBPosition const *other){ return other ? (*self == *other) : False; } |
1433 | bool wxGBPosition___ne__(wxGBPosition *self,wxGBPosition const *other){ return other ? (*self != *other) : True; } | |
423f194a RD |
1434 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1435 | self->SetRow(row); | |
1436 | self->SetCol(col); | |
1437 | } | |
1438 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
d14a1e28 RD |
1439 | wxPyBeginBlockThreads(); |
1440 | PyObject* tup = PyTuple_New(2); | |
1441 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1442 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1443 | wxPyEndBlockThreads(); | |
1444 | return tup; | |
1445 | } | |
328fcd84 RD |
1446 | bool wxGBSpan___eq__(wxGBSpan *self,wxGBSpan const *other){ return other ? (*self == *other) : False; } |
1447 | bool wxGBSpan___ne__(wxGBSpan *self,wxGBSpan const *other){ return other ? (*self != *other) : True; } | |
423f194a RD |
1448 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1449 | self->SetRowspan(rowspan); | |
1450 | self->SetColspan(colspan); | |
1451 | } | |
1452 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
d14a1e28 RD |
1453 | wxPyBeginBlockThreads(); |
1454 | PyObject* tup = PyTuple_New(2); | |
1455 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1456 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
1457 | wxPyEndBlockThreads(); | |
1458 | return tup; | |
1459 | } | |
1460 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1461 | ||
1462 | wxPyUserData* data = NULL; | |
1463 | wxPyBeginBlockThreads(); | |
423f194a | 1464 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1465 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1466 | data = new wxPyUserData(userData); | |
1467 | wxPyEndBlockThreads(); | |
1468 | ||
1469 | // Now call the real Add method if a valid item type was found | |
1470 | if ( info.window ) | |
1471 | return self->Add(info.window, pos, span, flag, border, data); | |
1472 | else if ( info.sizer ) | |
1473 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1474 | else if (info.gotSize) | |
1475 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1476 | pos, span, flag, border, data); | |
423f194a | 1477 | return False; |
d14a1e28 RD |
1478 | } |
1479 | ||
1480 | ||
1481 | #ifdef __cplusplus | |
1482 | extern "C" { | |
1483 | #endif | |
8edf1c75 | 1484 | static int _wrap_EmptyString_set(PyObject *) { |
d03fd34d RD |
1485 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
1486 | return 1; | |
1487 | } | |
1488 | ||
1489 | ||
1490 | static PyObject *_wrap_EmptyString_get() { | |
1491 | PyObject *pyobj; | |
1492 | ||
1493 | { | |
1494 | #if wxUSE_UNICODE | |
1495 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1496 | #else | |
1497 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1498 | #endif | |
1499 | } | |
1500 | return pyobj; | |
1501 | } | |
1502 | ||
1503 | ||
d14a1e28 RD |
1504 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1505 | PyObject *resultobj; | |
1506 | wxObject *arg1 = (wxObject *) 0 ; | |
1507 | wxString result; | |
1508 | PyObject * obj0 = 0 ; | |
1509 | char *kwnames[] = { | |
1510 | (char *) "self", NULL | |
1511 | }; | |
1512 | ||
1513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
1514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1515 | { | |
1516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1517 | result = wxObject_GetClassName(arg1); | |
1518 | ||
1519 | wxPyEndAllowThreads(__tstate); | |
1520 | if (PyErr_Occurred()) SWIG_fail; | |
1521 | } | |
1522 | { | |
1523 | #if wxUSE_UNICODE | |
1524 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1525 | #else | |
1526 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1527 | #endif | |
1528 | } | |
1529 | return resultobj; | |
1530 | fail: | |
1531 | return NULL; | |
1532 | } | |
1533 | ||
1534 | ||
1535 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1536 | PyObject *resultobj; | |
1537 | wxObject *arg1 = (wxObject *) 0 ; | |
1538 | PyObject * obj0 = 0 ; | |
1539 | char *kwnames[] = { | |
1540 | (char *) "self", NULL | |
1541 | }; | |
1542 | ||
1543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
1544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1545 | { | |
1546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1547 | wxObject_Destroy(arg1); | |
1548 | ||
1549 | wxPyEndAllowThreads(__tstate); | |
1550 | if (PyErr_Occurred()) SWIG_fail; | |
1551 | } | |
1552 | Py_INCREF(Py_None); resultobj = Py_None; | |
1553 | return resultobj; | |
1554 | fail: | |
1555 | return NULL; | |
1556 | } | |
1557 | ||
1558 | ||
1559 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1560 | PyObject *obj; | |
1561 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1562 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1563 | Py_INCREF(obj); | |
1564 | return Py_BuildValue((char *)""); | |
1565 | } | |
1566 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1567 | PyObject *resultobj; | |
1568 | wxSize *arg1 = (wxSize *) 0 ; | |
1569 | int arg2 ; | |
1570 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1571 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1572 | char *kwnames[] = { |
1573 | (char *) "self",(char *) "x", NULL | |
1574 | }; | |
1575 | ||
8edf1c75 | 1576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1578 | { |
1579 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1580 | if (PyErr_Occurred()) SWIG_fail; | |
1581 | } | |
d14a1e28 RD |
1582 | if (arg1) (arg1)->x = arg2; |
1583 | ||
1584 | Py_INCREF(Py_None); resultobj = Py_None; | |
1585 | return resultobj; | |
1586 | fail: | |
1587 | return NULL; | |
1588 | } | |
1589 | ||
1590 | ||
1591 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1592 | PyObject *resultobj; | |
1593 | wxSize *arg1 = (wxSize *) 0 ; | |
1594 | int result; | |
1595 | PyObject * obj0 = 0 ; | |
1596 | char *kwnames[] = { | |
1597 | (char *) "self", NULL | |
1598 | }; | |
1599 | ||
1600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
1601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1602 | result = (int) ((arg1)->x); | |
1603 | ||
8edf1c75 | 1604 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1605 | return resultobj; |
1606 | fail: | |
1607 | return NULL; | |
1608 | } | |
1609 | ||
1610 | ||
1611 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1612 | PyObject *resultobj; | |
1613 | wxSize *arg1 = (wxSize *) 0 ; | |
1614 | int arg2 ; | |
1615 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1616 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1617 | char *kwnames[] = { |
1618 | (char *) "self",(char *) "y", NULL | |
1619 | }; | |
1620 | ||
8edf1c75 | 1621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1623 | { |
1624 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1625 | if (PyErr_Occurred()) SWIG_fail; | |
1626 | } | |
d14a1e28 RD |
1627 | if (arg1) (arg1)->y = arg2; |
1628 | ||
1629 | Py_INCREF(Py_None); resultobj = Py_None; | |
1630 | return resultobj; | |
1631 | fail: | |
1632 | return NULL; | |
1633 | } | |
1634 | ||
1635 | ||
1636 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1637 | PyObject *resultobj; | |
1638 | wxSize *arg1 = (wxSize *) 0 ; | |
1639 | int result; | |
1640 | PyObject * obj0 = 0 ; | |
1641 | char *kwnames[] = { | |
1642 | (char *) "self", NULL | |
1643 | }; | |
1644 | ||
1645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
1646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1647 | result = (int) ((arg1)->y); | |
1648 | ||
8edf1c75 | 1649 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1650 | return resultobj; |
1651 | fail: | |
1652 | return NULL; | |
1653 | } | |
1654 | ||
1655 | ||
1656 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1657 | PyObject *resultobj; | |
1658 | int arg1 = (int) 0 ; | |
1659 | int arg2 = (int) 0 ; | |
1660 | wxSize *result; | |
8edf1c75 RD |
1661 | PyObject * obj0 = 0 ; |
1662 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
1663 | char *kwnames[] = { |
1664 | (char *) "w",(char *) "h", NULL | |
1665 | }; | |
1666 | ||
8edf1c75 RD |
1667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; |
1668 | if (obj0) { | |
1669 | { | |
1670 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
1671 | if (PyErr_Occurred()) SWIG_fail; | |
1672 | } | |
1673 | } | |
1674 | if (obj1) { | |
1675 | { | |
1676 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1677 | if (PyErr_Occurred()) SWIG_fail; | |
1678 | } | |
1679 | } | |
d14a1e28 RD |
1680 | { |
1681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1682 | result = (wxSize *)new wxSize(arg1,arg2); | |
1683 | ||
1684 | wxPyEndAllowThreads(__tstate); | |
1685 | if (PyErr_Occurred()) SWIG_fail; | |
1686 | } | |
1687 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 1); | |
1688 | return resultobj; | |
1689 | fail: | |
1690 | return NULL; | |
1691 | } | |
1692 | ||
1693 | ||
1694 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1695 | PyObject *resultobj; | |
1696 | wxSize *arg1 = (wxSize *) 0 ; | |
1697 | PyObject * obj0 = 0 ; | |
1698 | char *kwnames[] = { | |
1699 | (char *) "self", NULL | |
1700 | }; | |
1701 | ||
1702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
1703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1704 | { | |
1705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1706 | delete arg1; | |
1707 | ||
1708 | wxPyEndAllowThreads(__tstate); | |
1709 | if (PyErr_Occurred()) SWIG_fail; | |
1710 | } | |
1711 | Py_INCREF(Py_None); resultobj = Py_None; | |
1712 | return resultobj; | |
1713 | fail: | |
1714 | return NULL; | |
1715 | } | |
1716 | ||
1717 | ||
1718 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1719 | PyObject *resultobj; | |
1720 | wxSize *arg1 = (wxSize *) 0 ; | |
1721 | wxSize *arg2 = 0 ; | |
1722 | bool result; | |
1723 | wxSize temp2 ; | |
1724 | PyObject * obj0 = 0 ; | |
1725 | PyObject * obj1 = 0 ; | |
1726 | char *kwnames[] = { | |
1727 | (char *) "self",(char *) "sz", NULL | |
1728 | }; | |
1729 | ||
1730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1732 | { | |
1733 | arg2 = &temp2; | |
1734 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1735 | } | |
1736 | { | |
1737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 1738 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
1739 | |
1740 | wxPyEndAllowThreads(__tstate); | |
1741 | if (PyErr_Occurred()) SWIG_fail; | |
1742 | } | |
4e760a36 | 1743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1744 | return resultobj; |
1745 | fail: | |
1746 | return NULL; | |
1747 | } | |
1748 | ||
1749 | ||
1750 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1751 | PyObject *resultobj; | |
1752 | wxSize *arg1 = (wxSize *) 0 ; | |
1753 | wxSize *arg2 = 0 ; | |
1754 | bool result; | |
1755 | wxSize temp2 ; | |
1756 | PyObject * obj0 = 0 ; | |
1757 | PyObject * obj1 = 0 ; | |
1758 | char *kwnames[] = { | |
1759 | (char *) "self",(char *) "sz", NULL | |
1760 | }; | |
1761 | ||
1762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1764 | { | |
1765 | arg2 = &temp2; | |
1766 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1767 | } | |
1768 | { | |
1769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 1770 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
1771 | |
1772 | wxPyEndAllowThreads(__tstate); | |
1773 | if (PyErr_Occurred()) SWIG_fail; | |
1774 | } | |
4e760a36 | 1775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1776 | return resultobj; |
1777 | fail: | |
1778 | return NULL; | |
1779 | } | |
1780 | ||
1781 | ||
1782 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1783 | PyObject *resultobj; | |
1784 | wxSize *arg1 = (wxSize *) 0 ; | |
1785 | wxSize *arg2 = 0 ; | |
1786 | wxSize result; | |
1787 | wxSize temp2 ; | |
1788 | PyObject * obj0 = 0 ; | |
1789 | PyObject * obj1 = 0 ; | |
1790 | char *kwnames[] = { | |
1791 | (char *) "self",(char *) "sz", NULL | |
1792 | }; | |
1793 | ||
1794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
1795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1796 | { | |
1797 | arg2 = &temp2; | |
1798 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1799 | } | |
1800 | { | |
1801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1802 | result = (arg1)->operator +((wxSize const &)*arg2); | |
1803 | ||
1804 | wxPyEndAllowThreads(__tstate); | |
1805 | if (PyErr_Occurred()) SWIG_fail; | |
1806 | } | |
1807 | { | |
1808 | wxSize * resultptr; | |
1809 | resultptr = new wxSize((wxSize &) result); | |
1810 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1811 | } | |
1812 | return resultobj; | |
1813 | fail: | |
1814 | return NULL; | |
1815 | } | |
1816 | ||
1817 | ||
1818 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1819 | PyObject *resultobj; | |
1820 | wxSize *arg1 = (wxSize *) 0 ; | |
1821 | wxSize *arg2 = 0 ; | |
1822 | wxSize result; | |
1823 | wxSize temp2 ; | |
1824 | PyObject * obj0 = 0 ; | |
1825 | PyObject * obj1 = 0 ; | |
1826 | char *kwnames[] = { | |
1827 | (char *) "self",(char *) "sz", NULL | |
1828 | }; | |
1829 | ||
1830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
1831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1832 | { | |
1833 | arg2 = &temp2; | |
1834 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1835 | } | |
1836 | { | |
1837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1838 | result = (arg1)->operator -((wxSize const &)*arg2); | |
1839 | ||
1840 | wxPyEndAllowThreads(__tstate); | |
1841 | if (PyErr_Occurred()) SWIG_fail; | |
1842 | } | |
1843 | { | |
1844 | wxSize * resultptr; | |
1845 | resultptr = new wxSize((wxSize &) result); | |
1846 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1847 | } | |
1848 | return resultobj; | |
1849 | fail: | |
1850 | return NULL; | |
1851 | } | |
1852 | ||
1853 | ||
1854 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1855 | PyObject *resultobj; | |
1856 | wxSize *arg1 = (wxSize *) 0 ; | |
1857 | wxSize *arg2 = 0 ; | |
1858 | wxSize temp2 ; | |
1859 | PyObject * obj0 = 0 ; | |
1860 | PyObject * obj1 = 0 ; | |
1861 | char *kwnames[] = { | |
1862 | (char *) "self",(char *) "sz", NULL | |
1863 | }; | |
1864 | ||
1865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
1866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1867 | { | |
1868 | arg2 = &temp2; | |
1869 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1870 | } | |
1871 | { | |
1872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1873 | (arg1)->IncTo((wxSize const &)*arg2); | |
1874 | ||
1875 | wxPyEndAllowThreads(__tstate); | |
1876 | if (PyErr_Occurred()) SWIG_fail; | |
1877 | } | |
1878 | Py_INCREF(Py_None); resultobj = Py_None; | |
1879 | return resultobj; | |
1880 | fail: | |
1881 | return NULL; | |
1882 | } | |
1883 | ||
1884 | ||
1885 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1886 | PyObject *resultobj; | |
1887 | wxSize *arg1 = (wxSize *) 0 ; | |
1888 | wxSize *arg2 = 0 ; | |
1889 | wxSize temp2 ; | |
1890 | PyObject * obj0 = 0 ; | |
1891 | PyObject * obj1 = 0 ; | |
1892 | char *kwnames[] = { | |
1893 | (char *) "self",(char *) "sz", NULL | |
1894 | }; | |
1895 | ||
1896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
1897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1898 | { | |
1899 | arg2 = &temp2; | |
1900 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1901 | } | |
1902 | { | |
1903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1904 | (arg1)->DecTo((wxSize const &)*arg2); | |
1905 | ||
1906 | wxPyEndAllowThreads(__tstate); | |
1907 | if (PyErr_Occurred()) SWIG_fail; | |
1908 | } | |
1909 | Py_INCREF(Py_None); resultobj = Py_None; | |
1910 | return resultobj; | |
1911 | fail: | |
1912 | return NULL; | |
1913 | } | |
1914 | ||
1915 | ||
1916 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1917 | PyObject *resultobj; | |
1918 | wxSize *arg1 = (wxSize *) 0 ; | |
1919 | int arg2 ; | |
1920 | int arg3 ; | |
1921 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1922 | PyObject * obj1 = 0 ; |
1923 | PyObject * obj2 = 0 ; | |
d14a1e28 | 1924 | char *kwnames[] = { |
423f194a | 1925 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
1926 | }; |
1927 | ||
8edf1c75 | 1928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1930 | { |
1931 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1932 | if (PyErr_Occurred()) SWIG_fail; | |
1933 | } | |
1934 | { | |
1935 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1936 | if (PyErr_Occurred()) SWIG_fail; | |
1937 | } | |
d14a1e28 RD |
1938 | { |
1939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1940 | (arg1)->Set(arg2,arg3); | |
1941 | ||
1942 | wxPyEndAllowThreads(__tstate); | |
1943 | if (PyErr_Occurred()) SWIG_fail; | |
1944 | } | |
1945 | Py_INCREF(Py_None); resultobj = Py_None; | |
1946 | return resultobj; | |
1947 | fail: | |
1948 | return NULL; | |
1949 | } | |
1950 | ||
1951 | ||
1952 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1953 | PyObject *resultobj; | |
1954 | wxSize *arg1 = (wxSize *) 0 ; | |
1955 | int arg2 ; | |
1956 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1957 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1958 | char *kwnames[] = { |
1959 | (char *) "self",(char *) "w", NULL | |
1960 | }; | |
1961 | ||
8edf1c75 | 1962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1964 | { |
1965 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1966 | if (PyErr_Occurred()) SWIG_fail; | |
1967 | } | |
d14a1e28 RD |
1968 | { |
1969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1970 | (arg1)->SetWidth(arg2); | |
1971 | ||
1972 | wxPyEndAllowThreads(__tstate); | |
1973 | if (PyErr_Occurred()) SWIG_fail; | |
1974 | } | |
1975 | Py_INCREF(Py_None); resultobj = Py_None; | |
1976 | return resultobj; | |
1977 | fail: | |
1978 | return NULL; | |
1979 | } | |
1980 | ||
1981 | ||
1982 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1983 | PyObject *resultobj; | |
1984 | wxSize *arg1 = (wxSize *) 0 ; | |
1985 | int arg2 ; | |
1986 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1987 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1988 | char *kwnames[] = { |
1989 | (char *) "self",(char *) "h", NULL | |
1990 | }; | |
1991 | ||
8edf1c75 | 1992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1994 | { |
1995 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1996 | if (PyErr_Occurred()) SWIG_fail; | |
1997 | } | |
d14a1e28 RD |
1998 | { |
1999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2000 | (arg1)->SetHeight(arg2); | |
2001 | ||
2002 | wxPyEndAllowThreads(__tstate); | |
2003 | if (PyErr_Occurred()) SWIG_fail; | |
2004 | } | |
2005 | Py_INCREF(Py_None); resultobj = Py_None; | |
2006 | return resultobj; | |
2007 | fail: | |
2008 | return NULL; | |
2009 | } | |
2010 | ||
2011 | ||
2012 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2013 | PyObject *resultobj; | |
2014 | wxSize *arg1 = (wxSize *) 0 ; | |
2015 | int result; | |
2016 | PyObject * obj0 = 0 ; | |
2017 | char *kwnames[] = { | |
2018 | (char *) "self", NULL | |
2019 | }; | |
2020 | ||
2021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2023 | { | |
2024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2025 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2026 | ||
2027 | wxPyEndAllowThreads(__tstate); | |
2028 | if (PyErr_Occurred()) SWIG_fail; | |
2029 | } | |
8edf1c75 | 2030 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2031 | return resultobj; |
2032 | fail: | |
2033 | return NULL; | |
2034 | } | |
2035 | ||
2036 | ||
2037 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2038 | PyObject *resultobj; | |
2039 | wxSize *arg1 = (wxSize *) 0 ; | |
2040 | int result; | |
2041 | PyObject * obj0 = 0 ; | |
2042 | char *kwnames[] = { | |
2043 | (char *) "self", NULL | |
2044 | }; | |
2045 | ||
2046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2048 | { | |
2049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2050 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2051 | ||
2052 | wxPyEndAllowThreads(__tstate); | |
2053 | if (PyErr_Occurred()) SWIG_fail; | |
2054 | } | |
8edf1c75 | 2055 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2056 | return resultobj; |
2057 | fail: | |
2058 | return NULL; | |
2059 | } | |
2060 | ||
2061 | ||
423f194a | 2062 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2063 | PyObject *resultobj; |
2064 | wxSize *arg1 = (wxSize *) 0 ; | |
2065 | PyObject *result; | |
2066 | PyObject * obj0 = 0 ; | |
2067 | char *kwnames[] = { | |
2068 | (char *) "self", NULL | |
2069 | }; | |
2070 | ||
423f194a | 2071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2073 | { | |
2074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2075 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
2076 | |
2077 | wxPyEndAllowThreads(__tstate); | |
2078 | if (PyErr_Occurred()) SWIG_fail; | |
2079 | } | |
2080 | resultobj = result; | |
2081 | return resultobj; | |
2082 | fail: | |
2083 | return NULL; | |
2084 | } | |
2085 | ||
2086 | ||
2087 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2088 | PyObject *obj; | |
2089 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2090 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2091 | Py_INCREF(obj); | |
2092 | return Py_BuildValue((char *)""); | |
2093 | } | |
2094 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2095 | PyObject *resultobj; | |
2096 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2097 | double arg2 ; | |
2098 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2099 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2100 | char *kwnames[] = { |
2101 | (char *) "self",(char *) "x", NULL | |
2102 | }; | |
2103 | ||
8edf1c75 | 2104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2106 | { |
2107 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
2108 | if (PyErr_Occurred()) SWIG_fail; | |
2109 | } | |
d14a1e28 RD |
2110 | if (arg1) (arg1)->x = arg2; |
2111 | ||
2112 | Py_INCREF(Py_None); resultobj = Py_None; | |
2113 | return resultobj; | |
2114 | fail: | |
2115 | return NULL; | |
2116 | } | |
2117 | ||
2118 | ||
2119 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2120 | PyObject *resultobj; | |
2121 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2122 | double result; | |
2123 | PyObject * obj0 = 0 ; | |
2124 | char *kwnames[] = { | |
2125 | (char *) "self", NULL | |
2126 | }; | |
2127 | ||
2128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2130 | result = (double) ((arg1)->x); | |
2131 | ||
8edf1c75 | 2132 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
2133 | return resultobj; |
2134 | fail: | |
2135 | return NULL; | |
2136 | } | |
2137 | ||
2138 | ||
2139 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2140 | PyObject *resultobj; | |
2141 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2142 | double arg2 ; | |
2143 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2144 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2145 | char *kwnames[] = { |
2146 | (char *) "self",(char *) "y", NULL | |
2147 | }; | |
2148 | ||
8edf1c75 | 2149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2151 | { |
2152 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
2153 | if (PyErr_Occurred()) SWIG_fail; | |
2154 | } | |
d14a1e28 RD |
2155 | if (arg1) (arg1)->y = arg2; |
2156 | ||
2157 | Py_INCREF(Py_None); resultobj = Py_None; | |
2158 | return resultobj; | |
2159 | fail: | |
2160 | return NULL; | |
2161 | } | |
2162 | ||
2163 | ||
2164 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2165 | PyObject *resultobj; | |
2166 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2167 | double result; | |
2168 | PyObject * obj0 = 0 ; | |
2169 | char *kwnames[] = { | |
2170 | (char *) "self", NULL | |
2171 | }; | |
2172 | ||
2173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2175 | result = (double) ((arg1)->y); | |
2176 | ||
8edf1c75 | 2177 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
2178 | return resultobj; |
2179 | fail: | |
2180 | return NULL; | |
2181 | } | |
2182 | ||
2183 | ||
2184 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2185 | PyObject *resultobj; | |
2186 | double arg1 = (double) 0.0 ; | |
2187 | double arg2 = (double) 0.0 ; | |
2188 | wxRealPoint *result; | |
8edf1c75 RD |
2189 | PyObject * obj0 = 0 ; |
2190 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2191 | char *kwnames[] = { |
2192 | (char *) "x",(char *) "y", NULL | |
2193 | }; | |
2194 | ||
8edf1c75 RD |
2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; |
2196 | if (obj0) { | |
2197 | { | |
2198 | arg1 = (double) SWIG_PyObj_AsDouble(obj0); | |
2199 | if (PyErr_Occurred()) SWIG_fail; | |
2200 | } | |
2201 | } | |
2202 | if (obj1) { | |
2203 | { | |
2204 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
2205 | if (PyErr_Occurred()) SWIG_fail; | |
2206 | } | |
2207 | } | |
d14a1e28 RD |
2208 | { |
2209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2210 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2211 | ||
2212 | wxPyEndAllowThreads(__tstate); | |
2213 | if (PyErr_Occurred()) SWIG_fail; | |
2214 | } | |
2215 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRealPoint, 1); | |
2216 | return resultobj; | |
2217 | fail: | |
2218 | return NULL; | |
2219 | } | |
2220 | ||
2221 | ||
2222 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2223 | PyObject *resultobj; | |
2224 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2225 | PyObject * obj0 = 0 ; | |
2226 | char *kwnames[] = { | |
2227 | (char *) "self", NULL | |
2228 | }; | |
2229 | ||
2230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2232 | { | |
2233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2234 | delete arg1; | |
2235 | ||
2236 | wxPyEndAllowThreads(__tstate); | |
2237 | if (PyErr_Occurred()) SWIG_fail; | |
2238 | } | |
2239 | Py_INCREF(Py_None); resultobj = Py_None; | |
2240 | return resultobj; | |
2241 | fail: | |
2242 | return NULL; | |
2243 | } | |
2244 | ||
2245 | ||
423f194a | 2246 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2247 | PyObject *resultobj; |
2248 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2249 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2250 | bool result; |
d14a1e28 RD |
2251 | wxRealPoint temp2 ; |
2252 | PyObject * obj0 = 0 ; | |
2253 | PyObject * obj1 = 0 ; | |
2254 | char *kwnames[] = { | |
2255 | (char *) "self",(char *) "pt", NULL | |
2256 | }; | |
2257 | ||
423f194a | 2258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2260 | { | |
2261 | arg2 = &temp2; | |
2262 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2263 | } | |
2264 | { | |
2265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2266 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2267 | |
2268 | wxPyEndAllowThreads(__tstate); | |
2269 | if (PyErr_Occurred()) SWIG_fail; | |
2270 | } | |
4e760a36 | 2271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2272 | return resultobj; |
2273 | fail: | |
2274 | return NULL; | |
2275 | } | |
2276 | ||
2277 | ||
423f194a | 2278 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2279 | PyObject *resultobj; |
2280 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2281 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2282 | bool result; |
d14a1e28 RD |
2283 | wxRealPoint temp2 ; |
2284 | PyObject * obj0 = 0 ; | |
2285 | PyObject * obj1 = 0 ; | |
2286 | char *kwnames[] = { | |
2287 | (char *) "self",(char *) "pt", NULL | |
2288 | }; | |
2289 | ||
423f194a | 2290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2292 | { | |
2293 | arg2 = &temp2; | |
2294 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2295 | } | |
2296 | { | |
2297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2298 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2299 | |
2300 | wxPyEndAllowThreads(__tstate); | |
2301 | if (PyErr_Occurred()) SWIG_fail; | |
2302 | } | |
4e760a36 | 2303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2304 | return resultobj; |
2305 | fail: | |
2306 | return NULL; | |
2307 | } | |
2308 | ||
2309 | ||
423f194a | 2310 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2311 | PyObject *resultobj; |
2312 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2313 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2314 | wxRealPoint result; |
d14a1e28 RD |
2315 | wxRealPoint temp2 ; |
2316 | PyObject * obj0 = 0 ; | |
2317 | PyObject * obj1 = 0 ; | |
2318 | char *kwnames[] = { | |
2319 | (char *) "self",(char *) "pt", NULL | |
2320 | }; | |
2321 | ||
423f194a | 2322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2324 | { | |
2325 | arg2 = &temp2; | |
2326 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2327 | } | |
2328 | { | |
2329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2330 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2331 | |
2332 | wxPyEndAllowThreads(__tstate); | |
2333 | if (PyErr_Occurred()) SWIG_fail; | |
2334 | } | |
423f194a RD |
2335 | { |
2336 | wxRealPoint * resultptr; | |
2337 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2338 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2339 | } | |
d14a1e28 RD |
2340 | return resultobj; |
2341 | fail: | |
2342 | return NULL; | |
2343 | } | |
2344 | ||
2345 | ||
423f194a | 2346 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2347 | PyObject *resultobj; |
2348 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2349 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2350 | wxRealPoint result; |
d14a1e28 RD |
2351 | wxRealPoint temp2 ; |
2352 | PyObject * obj0 = 0 ; | |
2353 | PyObject * obj1 = 0 ; | |
2354 | char *kwnames[] = { | |
2355 | (char *) "self",(char *) "pt", NULL | |
2356 | }; | |
2357 | ||
423f194a | 2358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2360 | { | |
2361 | arg2 = &temp2; | |
2362 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2363 | } | |
2364 | { | |
2365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2366 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2367 | |
2368 | wxPyEndAllowThreads(__tstate); | |
2369 | if (PyErr_Occurred()) SWIG_fail; | |
2370 | } | |
423f194a RD |
2371 | { |
2372 | wxRealPoint * resultptr; | |
2373 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2374 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2375 | } | |
d14a1e28 RD |
2376 | return resultobj; |
2377 | fail: | |
2378 | return NULL; | |
2379 | } | |
2380 | ||
2381 | ||
2382 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2383 | PyObject *resultobj; | |
2384 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2385 | double arg2 ; | |
2386 | double arg3 ; | |
2387 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2388 | PyObject * obj1 = 0 ; |
2389 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2390 | char *kwnames[] = { |
2391 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2392 | }; | |
2393 | ||
8edf1c75 | 2394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2396 | { |
2397 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
2398 | if (PyErr_Occurred()) SWIG_fail; | |
2399 | } | |
2400 | { | |
2401 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
2402 | if (PyErr_Occurred()) SWIG_fail; | |
2403 | } | |
d14a1e28 RD |
2404 | { |
2405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2406 | wxRealPoint_Set(arg1,arg2,arg3); | |
2407 | ||
2408 | wxPyEndAllowThreads(__tstate); | |
2409 | if (PyErr_Occurred()) SWIG_fail; | |
2410 | } | |
2411 | Py_INCREF(Py_None); resultobj = Py_None; | |
2412 | return resultobj; | |
2413 | fail: | |
2414 | return NULL; | |
2415 | } | |
2416 | ||
2417 | ||
423f194a | 2418 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2419 | PyObject *resultobj; |
2420 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2421 | PyObject *result; | |
2422 | PyObject * obj0 = 0 ; | |
2423 | char *kwnames[] = { | |
2424 | (char *) "self", NULL | |
2425 | }; | |
2426 | ||
423f194a | 2427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2429 | { | |
2430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2431 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2432 | |
2433 | wxPyEndAllowThreads(__tstate); | |
2434 | if (PyErr_Occurred()) SWIG_fail; | |
2435 | } | |
2436 | resultobj = result; | |
2437 | return resultobj; | |
2438 | fail: | |
2439 | return NULL; | |
2440 | } | |
2441 | ||
2442 | ||
2443 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2444 | PyObject *obj; | |
2445 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2446 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2447 | Py_INCREF(obj); | |
2448 | return Py_BuildValue((char *)""); | |
2449 | } | |
2450 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2451 | PyObject *resultobj; | |
2452 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2453 | int arg2 ; | |
2454 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2455 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2456 | char *kwnames[] = { |
2457 | (char *) "self",(char *) "x", NULL | |
2458 | }; | |
2459 | ||
8edf1c75 | 2460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2462 | { |
2463 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2464 | if (PyErr_Occurred()) SWIG_fail; | |
2465 | } | |
d14a1e28 RD |
2466 | if (arg1) (arg1)->x = arg2; |
2467 | ||
2468 | Py_INCREF(Py_None); resultobj = Py_None; | |
2469 | return resultobj; | |
2470 | fail: | |
2471 | return NULL; | |
2472 | } | |
2473 | ||
2474 | ||
2475 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2476 | PyObject *resultobj; | |
2477 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2478 | int result; | |
2479 | PyObject * obj0 = 0 ; | |
2480 | char *kwnames[] = { | |
2481 | (char *) "self", NULL | |
2482 | }; | |
2483 | ||
2484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2486 | result = (int) ((arg1)->x); | |
2487 | ||
8edf1c75 | 2488 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2489 | return resultobj; |
2490 | fail: | |
2491 | return NULL; | |
2492 | } | |
2493 | ||
2494 | ||
2495 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2496 | PyObject *resultobj; | |
2497 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2498 | int arg2 ; | |
2499 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2500 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2501 | char *kwnames[] = { |
2502 | (char *) "self",(char *) "y", NULL | |
2503 | }; | |
2504 | ||
8edf1c75 | 2505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2507 | { |
2508 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2509 | if (PyErr_Occurred()) SWIG_fail; | |
2510 | } | |
d14a1e28 RD |
2511 | if (arg1) (arg1)->y = arg2; |
2512 | ||
2513 | Py_INCREF(Py_None); resultobj = Py_None; | |
2514 | return resultobj; | |
2515 | fail: | |
2516 | return NULL; | |
2517 | } | |
2518 | ||
2519 | ||
2520 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2521 | PyObject *resultobj; | |
2522 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2523 | int result; | |
2524 | PyObject * obj0 = 0 ; | |
2525 | char *kwnames[] = { | |
2526 | (char *) "self", NULL | |
2527 | }; | |
2528 | ||
2529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2531 | result = (int) ((arg1)->y); | |
2532 | ||
8edf1c75 | 2533 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2534 | return resultobj; |
2535 | fail: | |
2536 | return NULL; | |
2537 | } | |
2538 | ||
2539 | ||
2540 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2541 | PyObject *resultobj; | |
2542 | int arg1 = (int) 0 ; | |
2543 | int arg2 = (int) 0 ; | |
2544 | wxPoint *result; | |
8edf1c75 RD |
2545 | PyObject * obj0 = 0 ; |
2546 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2547 | char *kwnames[] = { |
2548 | (char *) "x",(char *) "y", NULL | |
2549 | }; | |
2550 | ||
8edf1c75 RD |
2551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; |
2552 | if (obj0) { | |
2553 | { | |
2554 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2555 | if (PyErr_Occurred()) SWIG_fail; | |
2556 | } | |
2557 | } | |
2558 | if (obj1) { | |
2559 | { | |
2560 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2561 | if (PyErr_Occurred()) SWIG_fail; | |
2562 | } | |
2563 | } | |
d14a1e28 RD |
2564 | { |
2565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2566 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2567 | ||
2568 | wxPyEndAllowThreads(__tstate); | |
2569 | if (PyErr_Occurred()) SWIG_fail; | |
2570 | } | |
2571 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 1); | |
2572 | return resultobj; | |
2573 | fail: | |
2574 | return NULL; | |
2575 | } | |
2576 | ||
2577 | ||
2578 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2579 | PyObject *resultobj; | |
2580 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2581 | PyObject * obj0 = 0 ; | |
2582 | char *kwnames[] = { | |
2583 | (char *) "self", NULL | |
2584 | }; | |
2585 | ||
2586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2588 | { | |
2589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2590 | delete arg1; | |
2591 | ||
2592 | wxPyEndAllowThreads(__tstate); | |
2593 | if (PyErr_Occurred()) SWIG_fail; | |
2594 | } | |
2595 | Py_INCREF(Py_None); resultobj = Py_None; | |
2596 | return resultobj; | |
2597 | fail: | |
2598 | return NULL; | |
2599 | } | |
2600 | ||
2601 | ||
2602 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2603 | PyObject *resultobj; | |
2604 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2605 | wxPoint *arg2 = 0 ; | |
2606 | bool result; | |
2607 | wxPoint temp2 ; | |
2608 | PyObject * obj0 = 0 ; | |
2609 | PyObject * obj1 = 0 ; | |
2610 | char *kwnames[] = { | |
423f194a | 2611 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2612 | }; |
2613 | ||
2614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2616 | { | |
2617 | arg2 = &temp2; | |
2618 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2619 | } | |
2620 | { | |
2621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2622 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
2623 | |
2624 | wxPyEndAllowThreads(__tstate); | |
2625 | if (PyErr_Occurred()) SWIG_fail; | |
2626 | } | |
4e760a36 | 2627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2628 | return resultobj; |
2629 | fail: | |
2630 | return NULL; | |
2631 | } | |
2632 | ||
2633 | ||
2634 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2635 | PyObject *resultobj; | |
2636 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2637 | wxPoint *arg2 = 0 ; | |
2638 | bool result; | |
2639 | wxPoint temp2 ; | |
2640 | PyObject * obj0 = 0 ; | |
2641 | PyObject * obj1 = 0 ; | |
2642 | char *kwnames[] = { | |
423f194a | 2643 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2644 | }; |
2645 | ||
2646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2648 | { | |
2649 | arg2 = &temp2; | |
2650 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2651 | } | |
2652 | { | |
2653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2654 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
2655 | |
2656 | wxPyEndAllowThreads(__tstate); | |
2657 | if (PyErr_Occurred()) SWIG_fail; | |
2658 | } | |
4e760a36 | 2659 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2660 | return resultobj; |
2661 | fail: | |
2662 | return NULL; | |
2663 | } | |
2664 | ||
2665 | ||
2666 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2667 | PyObject *resultobj; | |
2668 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2669 | wxPoint *arg2 = 0 ; | |
2670 | wxPoint result; | |
2671 | wxPoint temp2 ; | |
2672 | PyObject * obj0 = 0 ; | |
2673 | PyObject * obj1 = 0 ; | |
2674 | char *kwnames[] = { | |
423f194a | 2675 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2676 | }; |
2677 | ||
2678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
2679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2680 | { | |
2681 | arg2 = &temp2; | |
2682 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2683 | } | |
2684 | { | |
2685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2686 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
2687 | |
2688 | wxPyEndAllowThreads(__tstate); | |
2689 | if (PyErr_Occurred()) SWIG_fail; | |
2690 | } | |
2691 | { | |
2692 | wxPoint * resultptr; | |
2693 | resultptr = new wxPoint((wxPoint &) result); | |
2694 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2695 | } | |
2696 | return resultobj; | |
2697 | fail: | |
2698 | return NULL; | |
2699 | } | |
2700 | ||
2701 | ||
2702 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2703 | PyObject *resultobj; | |
2704 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2705 | wxPoint *arg2 = 0 ; | |
2706 | wxPoint result; | |
2707 | wxPoint temp2 ; | |
2708 | PyObject * obj0 = 0 ; | |
2709 | PyObject * obj1 = 0 ; | |
2710 | char *kwnames[] = { | |
423f194a | 2711 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2712 | }; |
2713 | ||
2714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2716 | { | |
2717 | arg2 = &temp2; | |
2718 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2719 | } | |
2720 | { | |
2721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2722 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
2723 | |
2724 | wxPyEndAllowThreads(__tstate); | |
2725 | if (PyErr_Occurred()) SWIG_fail; | |
2726 | } | |
2727 | { | |
2728 | wxPoint * resultptr; | |
2729 | resultptr = new wxPoint((wxPoint &) result); | |
2730 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2731 | } | |
2732 | return resultobj; | |
2733 | fail: | |
2734 | return NULL; | |
2735 | } | |
2736 | ||
2737 | ||
2738 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2739 | PyObject *resultobj; | |
2740 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2741 | wxPoint *arg2 = 0 ; | |
2742 | wxPoint *result; | |
2743 | wxPoint temp2 ; | |
2744 | PyObject * obj0 = 0 ; | |
2745 | PyObject * obj1 = 0 ; | |
2746 | char *kwnames[] = { | |
423f194a | 2747 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2748 | }; |
2749 | ||
2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2752 | { | |
2753 | arg2 = &temp2; | |
2754 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2755 | } | |
2756 | { | |
2757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2758 | { | |
2759 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
2760 | result = (wxPoint *) &_result_ref; | |
2761 | } | |
2762 | ||
2763 | wxPyEndAllowThreads(__tstate); | |
2764 | if (PyErr_Occurred()) SWIG_fail; | |
2765 | } | |
2766 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2767 | return resultobj; | |
2768 | fail: | |
2769 | return NULL; | |
2770 | } | |
2771 | ||
2772 | ||
2773 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2774 | PyObject *resultobj; | |
2775 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2776 | wxPoint *arg2 = 0 ; | |
2777 | wxPoint *result; | |
2778 | wxPoint temp2 ; | |
2779 | PyObject * obj0 = 0 ; | |
2780 | PyObject * obj1 = 0 ; | |
2781 | char *kwnames[] = { | |
423f194a | 2782 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2783 | }; |
2784 | ||
2785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2787 | { | |
2788 | arg2 = &temp2; | |
2789 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2790 | } | |
2791 | { | |
2792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2793 | { | |
2794 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
2795 | result = (wxPoint *) &_result_ref; | |
2796 | } | |
2797 | ||
2798 | wxPyEndAllowThreads(__tstate); | |
2799 | if (PyErr_Occurred()) SWIG_fail; | |
2800 | } | |
2801 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2802 | return resultobj; | |
2803 | fail: | |
2804 | return NULL; | |
2805 | } | |
2806 | ||
2807 | ||
2808 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2809 | PyObject *resultobj; | |
2810 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2811 | long arg2 ; | |
2812 | long arg3 ; | |
2813 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2814 | PyObject * obj1 = 0 ; |
2815 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2816 | char *kwnames[] = { |
2817 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2818 | }; | |
2819 | ||
8edf1c75 | 2820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2822 | { |
2823 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
2824 | if (PyErr_Occurred()) SWIG_fail; | |
2825 | } | |
2826 | { | |
2827 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
2828 | if (PyErr_Occurred()) SWIG_fail; | |
2829 | } | |
d14a1e28 RD |
2830 | { |
2831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2832 | wxPoint_Set(arg1,arg2,arg3); | |
2833 | ||
2834 | wxPyEndAllowThreads(__tstate); | |
2835 | if (PyErr_Occurred()) SWIG_fail; | |
2836 | } | |
2837 | Py_INCREF(Py_None); resultobj = Py_None; | |
2838 | return resultobj; | |
2839 | fail: | |
2840 | return NULL; | |
2841 | } | |
2842 | ||
2843 | ||
423f194a | 2844 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2845 | PyObject *resultobj; |
2846 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2847 | PyObject *result; | |
2848 | PyObject * obj0 = 0 ; | |
2849 | char *kwnames[] = { | |
2850 | (char *) "self", NULL | |
2851 | }; | |
2852 | ||
423f194a | 2853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2855 | { | |
2856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2857 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
2858 | |
2859 | wxPyEndAllowThreads(__tstate); | |
2860 | if (PyErr_Occurred()) SWIG_fail; | |
2861 | } | |
2862 | resultobj = result; | |
2863 | return resultobj; | |
2864 | fail: | |
2865 | return NULL; | |
2866 | } | |
2867 | ||
2868 | ||
2869 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
2870 | PyObject *obj; | |
2871 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2872 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
2873 | Py_INCREF(obj); | |
2874 | return Py_BuildValue((char *)""); | |
2875 | } | |
2876 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2877 | PyObject *resultobj; | |
2878 | int arg1 = (int) 0 ; | |
2879 | int arg2 = (int) 0 ; | |
2880 | int arg3 = (int) 0 ; | |
2881 | int arg4 = (int) 0 ; | |
2882 | wxRect *result; | |
8edf1c75 RD |
2883 | PyObject * obj0 = 0 ; |
2884 | PyObject * obj1 = 0 ; | |
2885 | PyObject * obj2 = 0 ; | |
2886 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2887 | char *kwnames[] = { |
2888 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
2889 | }; | |
2890 | ||
8edf1c75 RD |
2891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2892 | if (obj0) { | |
2893 | { | |
2894 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2895 | if (PyErr_Occurred()) SWIG_fail; | |
2896 | } | |
2897 | } | |
2898 | if (obj1) { | |
2899 | { | |
2900 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2901 | if (PyErr_Occurred()) SWIG_fail; | |
2902 | } | |
2903 | } | |
2904 | if (obj2) { | |
2905 | { | |
2906 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2907 | if (PyErr_Occurred()) SWIG_fail; | |
2908 | } | |
2909 | } | |
2910 | if (obj3) { | |
2911 | { | |
2912 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
2913 | if (PyErr_Occurred()) SWIG_fail; | |
2914 | } | |
2915 | } | |
d14a1e28 RD |
2916 | { |
2917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2918 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
2919 | ||
2920 | wxPyEndAllowThreads(__tstate); | |
2921 | if (PyErr_Occurred()) SWIG_fail; | |
2922 | } | |
2923 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2924 | return resultobj; | |
2925 | fail: | |
2926 | return NULL; | |
2927 | } | |
2928 | ||
2929 | ||
2930 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2931 | PyObject *resultobj; | |
2932 | wxPoint *arg1 = 0 ; | |
2933 | wxPoint *arg2 = 0 ; | |
2934 | wxRect *result; | |
2935 | wxPoint temp1 ; | |
2936 | wxPoint temp2 ; | |
2937 | PyObject * obj0 = 0 ; | |
2938 | PyObject * obj1 = 0 ; | |
2939 | char *kwnames[] = { | |
2940 | (char *) "topLeft",(char *) "bottomRight", NULL | |
2941 | }; | |
2942 | ||
2943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
2944 | { | |
2945 | arg1 = &temp1; | |
2946 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2947 | } | |
2948 | { | |
2949 | arg2 = &temp2; | |
2950 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2951 | } | |
2952 | { | |
2953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2954 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
2955 | ||
2956 | wxPyEndAllowThreads(__tstate); | |
2957 | if (PyErr_Occurred()) SWIG_fail; | |
2958 | } | |
2959 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2960 | return resultobj; | |
2961 | fail: | |
2962 | return NULL; | |
2963 | } | |
2964 | ||
2965 | ||
2966 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2967 | PyObject *resultobj; | |
2968 | wxPoint *arg1 = 0 ; | |
2969 | wxSize *arg2 = 0 ; | |
2970 | wxRect *result; | |
2971 | wxPoint temp1 ; | |
2972 | wxSize temp2 ; | |
2973 | PyObject * obj0 = 0 ; | |
2974 | PyObject * obj1 = 0 ; | |
2975 | char *kwnames[] = { | |
2976 | (char *) "pos",(char *) "size", NULL | |
2977 | }; | |
2978 | ||
2979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
2980 | { | |
2981 | arg1 = &temp1; | |
2982 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2983 | } | |
2984 | { | |
2985 | arg2 = &temp2; | |
2986 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2987 | } | |
2988 | { | |
2989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2990 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
2991 | ||
2992 | wxPyEndAllowThreads(__tstate); | |
2993 | if (PyErr_Occurred()) SWIG_fail; | |
2994 | } | |
2995 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2996 | return resultobj; | |
2997 | fail: | |
2998 | return NULL; | |
2999 | } | |
3000 | ||
3001 | ||
3002 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3003 | PyObject *resultobj; | |
3004 | wxRect *arg1 = (wxRect *) 0 ; | |
3005 | PyObject * obj0 = 0 ; | |
3006 | char *kwnames[] = { | |
3007 | (char *) "self", NULL | |
3008 | }; | |
3009 | ||
3010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
3011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3012 | { | |
3013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3014 | delete arg1; | |
3015 | ||
3016 | wxPyEndAllowThreads(__tstate); | |
3017 | if (PyErr_Occurred()) SWIG_fail; | |
3018 | } | |
3019 | Py_INCREF(Py_None); resultobj = Py_None; | |
3020 | return resultobj; | |
3021 | fail: | |
3022 | return NULL; | |
3023 | } | |
3024 | ||
3025 | ||
3026 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3027 | PyObject *resultobj; | |
3028 | wxRect *arg1 = (wxRect *) 0 ; | |
3029 | int result; | |
3030 | PyObject * obj0 = 0 ; | |
3031 | char *kwnames[] = { | |
3032 | (char *) "self", NULL | |
3033 | }; | |
3034 | ||
3035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
3036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3037 | { | |
3038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3039 | result = (int)((wxRect const *)arg1)->GetX(); | |
3040 | ||
3041 | wxPyEndAllowThreads(__tstate); | |
3042 | if (PyErr_Occurred()) SWIG_fail; | |
3043 | } | |
8edf1c75 | 3044 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3045 | return resultobj; |
3046 | fail: | |
3047 | return NULL; | |
3048 | } | |
3049 | ||
3050 | ||
3051 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3052 | PyObject *resultobj; | |
3053 | wxRect *arg1 = (wxRect *) 0 ; | |
3054 | int arg2 ; | |
3055 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3056 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3057 | char *kwnames[] = { |
3058 | (char *) "self",(char *) "x", NULL | |
3059 | }; | |
3060 | ||
8edf1c75 | 3061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3063 | { |
3064 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3065 | if (PyErr_Occurred()) SWIG_fail; | |
3066 | } | |
d14a1e28 RD |
3067 | { |
3068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3069 | (arg1)->SetX(arg2); | |
3070 | ||
3071 | wxPyEndAllowThreads(__tstate); | |
3072 | if (PyErr_Occurred()) SWIG_fail; | |
3073 | } | |
3074 | Py_INCREF(Py_None); resultobj = Py_None; | |
3075 | return resultobj; | |
3076 | fail: | |
3077 | return NULL; | |
3078 | } | |
3079 | ||
3080 | ||
3081 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3082 | PyObject *resultobj; | |
3083 | wxRect *arg1 = (wxRect *) 0 ; | |
3084 | int result; | |
3085 | PyObject * obj0 = 0 ; | |
3086 | char *kwnames[] = { | |
3087 | (char *) "self", NULL | |
3088 | }; | |
3089 | ||
3090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
3091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3092 | { | |
3093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3094 | result = (int)(arg1)->GetY(); | |
3095 | ||
3096 | wxPyEndAllowThreads(__tstate); | |
3097 | if (PyErr_Occurred()) SWIG_fail; | |
3098 | } | |
8edf1c75 | 3099 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3100 | return resultobj; |
3101 | fail: | |
3102 | return NULL; | |
3103 | } | |
3104 | ||
3105 | ||
3106 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3107 | PyObject *resultobj; | |
3108 | wxRect *arg1 = (wxRect *) 0 ; | |
3109 | int arg2 ; | |
3110 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3111 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3112 | char *kwnames[] = { |
3113 | (char *) "self",(char *) "y", NULL | |
3114 | }; | |
3115 | ||
8edf1c75 | 3116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3118 | { |
3119 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3120 | if (PyErr_Occurred()) SWIG_fail; | |
3121 | } | |
d14a1e28 RD |
3122 | { |
3123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3124 | (arg1)->SetY(arg2); | |
3125 | ||
3126 | wxPyEndAllowThreads(__tstate); | |
3127 | if (PyErr_Occurred()) SWIG_fail; | |
3128 | } | |
3129 | Py_INCREF(Py_None); resultobj = Py_None; | |
3130 | return resultobj; | |
3131 | fail: | |
3132 | return NULL; | |
3133 | } | |
3134 | ||
3135 | ||
3136 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3137 | PyObject *resultobj; | |
3138 | wxRect *arg1 = (wxRect *) 0 ; | |
3139 | int result; | |
3140 | PyObject * obj0 = 0 ; | |
3141 | char *kwnames[] = { | |
3142 | (char *) "self", NULL | |
3143 | }; | |
3144 | ||
3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
3146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3147 | { | |
3148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3149 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3150 | ||
3151 | wxPyEndAllowThreads(__tstate); | |
3152 | if (PyErr_Occurred()) SWIG_fail; | |
3153 | } | |
8edf1c75 | 3154 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3155 | return resultobj; |
3156 | fail: | |
3157 | return NULL; | |
3158 | } | |
3159 | ||
3160 | ||
3161 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3162 | PyObject *resultobj; | |
3163 | wxRect *arg1 = (wxRect *) 0 ; | |
3164 | int arg2 ; | |
3165 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3166 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3167 | char *kwnames[] = { |
3168 | (char *) "self",(char *) "w", NULL | |
3169 | }; | |
3170 | ||
8edf1c75 | 3171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3173 | { |
3174 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3175 | if (PyErr_Occurred()) SWIG_fail; | |
3176 | } | |
d14a1e28 RD |
3177 | { |
3178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3179 | (arg1)->SetWidth(arg2); | |
3180 | ||
3181 | wxPyEndAllowThreads(__tstate); | |
3182 | if (PyErr_Occurred()) SWIG_fail; | |
3183 | } | |
3184 | Py_INCREF(Py_None); resultobj = Py_None; | |
3185 | return resultobj; | |
3186 | fail: | |
3187 | return NULL; | |
3188 | } | |
3189 | ||
3190 | ||
3191 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3192 | PyObject *resultobj; | |
3193 | wxRect *arg1 = (wxRect *) 0 ; | |
3194 | int result; | |
3195 | PyObject * obj0 = 0 ; | |
3196 | char *kwnames[] = { | |
3197 | (char *) "self", NULL | |
3198 | }; | |
3199 | ||
3200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3202 | { | |
3203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3204 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3205 | ||
3206 | wxPyEndAllowThreads(__tstate); | |
3207 | if (PyErr_Occurred()) SWIG_fail; | |
3208 | } | |
8edf1c75 | 3209 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3210 | return resultobj; |
3211 | fail: | |
3212 | return NULL; | |
3213 | } | |
3214 | ||
3215 | ||
3216 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3217 | PyObject *resultobj; | |
3218 | wxRect *arg1 = (wxRect *) 0 ; | |
3219 | int arg2 ; | |
3220 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3221 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3222 | char *kwnames[] = { |
3223 | (char *) "self",(char *) "h", NULL | |
3224 | }; | |
3225 | ||
8edf1c75 | 3226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3228 | { |
3229 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3230 | if (PyErr_Occurred()) SWIG_fail; | |
3231 | } | |
d14a1e28 RD |
3232 | { |
3233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3234 | (arg1)->SetHeight(arg2); | |
3235 | ||
3236 | wxPyEndAllowThreads(__tstate); | |
3237 | if (PyErr_Occurred()) SWIG_fail; | |
3238 | } | |
3239 | Py_INCREF(Py_None); resultobj = Py_None; | |
3240 | return resultobj; | |
3241 | fail: | |
3242 | return NULL; | |
3243 | } | |
3244 | ||
3245 | ||
3246 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3247 | PyObject *resultobj; | |
3248 | wxRect *arg1 = (wxRect *) 0 ; | |
3249 | wxPoint result; | |
3250 | PyObject * obj0 = 0 ; | |
3251 | char *kwnames[] = { | |
3252 | (char *) "self", NULL | |
3253 | }; | |
3254 | ||
3255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
3256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3257 | { | |
3258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3259 | result = ((wxRect const *)arg1)->GetPosition(); | |
3260 | ||
3261 | wxPyEndAllowThreads(__tstate); | |
3262 | if (PyErr_Occurred()) SWIG_fail; | |
3263 | } | |
3264 | { | |
3265 | wxPoint * resultptr; | |
3266 | resultptr = new wxPoint((wxPoint &) result); | |
3267 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3268 | } | |
3269 | return resultobj; | |
3270 | fail: | |
3271 | return NULL; | |
3272 | } | |
3273 | ||
3274 | ||
3275 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3276 | PyObject *resultobj; | |
3277 | wxRect *arg1 = (wxRect *) 0 ; | |
3278 | wxPoint *arg2 = 0 ; | |
3279 | wxPoint temp2 ; | |
3280 | PyObject * obj0 = 0 ; | |
3281 | PyObject * obj1 = 0 ; | |
3282 | char *kwnames[] = { | |
3283 | (char *) "self",(char *) "p", NULL | |
3284 | }; | |
3285 | ||
3286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
3287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3288 | { | |
3289 | arg2 = &temp2; | |
3290 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3291 | } | |
3292 | { | |
3293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3294 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3295 | ||
3296 | wxPyEndAllowThreads(__tstate); | |
3297 | if (PyErr_Occurred()) SWIG_fail; | |
3298 | } | |
3299 | Py_INCREF(Py_None); resultobj = Py_None; | |
3300 | return resultobj; | |
3301 | fail: | |
3302 | return NULL; | |
3303 | } | |
3304 | ||
3305 | ||
3306 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3307 | PyObject *resultobj; | |
3308 | wxRect *arg1 = (wxRect *) 0 ; | |
3309 | wxSize result; | |
3310 | PyObject * obj0 = 0 ; | |
3311 | char *kwnames[] = { | |
3312 | (char *) "self", NULL | |
3313 | }; | |
3314 | ||
3315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
3316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3317 | { | |
3318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3319 | result = ((wxRect const *)arg1)->GetSize(); | |
3320 | ||
3321 | wxPyEndAllowThreads(__tstate); | |
3322 | if (PyErr_Occurred()) SWIG_fail; | |
3323 | } | |
3324 | { | |
3325 | wxSize * resultptr; | |
3326 | resultptr = new wxSize((wxSize &) result); | |
3327 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3328 | } | |
3329 | return resultobj; | |
3330 | fail: | |
3331 | return NULL; | |
3332 | } | |
3333 | ||
3334 | ||
3335 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3336 | PyObject *resultobj; | |
3337 | wxRect *arg1 = (wxRect *) 0 ; | |
3338 | wxSize *arg2 = 0 ; | |
3339 | wxSize temp2 ; | |
3340 | PyObject * obj0 = 0 ; | |
3341 | PyObject * obj1 = 0 ; | |
3342 | char *kwnames[] = { | |
3343 | (char *) "self",(char *) "s", NULL | |
3344 | }; | |
3345 | ||
3346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3348 | { | |
3349 | arg2 = &temp2; | |
3350 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3351 | } | |
3352 | { | |
3353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3354 | (arg1)->SetSize((wxSize const &)*arg2); | |
3355 | ||
3356 | wxPyEndAllowThreads(__tstate); | |
3357 | if (PyErr_Occurred()) SWIG_fail; | |
3358 | } | |
3359 | Py_INCREF(Py_None); resultobj = Py_None; | |
3360 | return resultobj; | |
3361 | fail: | |
3362 | return NULL; | |
3363 | } | |
3364 | ||
3365 | ||
9fd4be55 RD |
3366 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3367 | PyObject *resultobj; | |
3368 | wxRect *arg1 = (wxRect *) 0 ; | |
3369 | wxPoint result; | |
3370 | PyObject * obj0 = 0 ; | |
3371 | char *kwnames[] = { | |
3372 | (char *) "self", NULL | |
3373 | }; | |
3374 | ||
3375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
3376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3377 | { | |
3378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3379 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3380 | ||
3381 | wxPyEndAllowThreads(__tstate); | |
3382 | if (PyErr_Occurred()) SWIG_fail; | |
3383 | } | |
3384 | { | |
3385 | wxPoint * resultptr; | |
3386 | resultptr = new wxPoint((wxPoint &) result); | |
3387 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3388 | } | |
3389 | return resultobj; | |
3390 | fail: | |
3391 | return NULL; | |
3392 | } | |
3393 | ||
3394 | ||
3395 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3396 | PyObject *resultobj; | |
3397 | wxRect *arg1 = (wxRect *) 0 ; | |
3398 | wxPoint *arg2 = 0 ; | |
3399 | wxPoint temp2 ; | |
3400 | PyObject * obj0 = 0 ; | |
3401 | PyObject * obj1 = 0 ; | |
3402 | char *kwnames[] = { | |
3403 | (char *) "self",(char *) "p", NULL | |
3404 | }; | |
3405 | ||
3406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
3407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3408 | { | |
3409 | arg2 = &temp2; | |
3410 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3411 | } | |
3412 | { | |
3413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3414 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3415 | ||
3416 | wxPyEndAllowThreads(__tstate); | |
3417 | if (PyErr_Occurred()) SWIG_fail; | |
3418 | } | |
3419 | Py_INCREF(Py_None); resultobj = Py_None; | |
3420 | return resultobj; | |
3421 | fail: | |
3422 | return NULL; | |
3423 | } | |
3424 | ||
3425 | ||
3426 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3427 | PyObject *resultobj; | |
3428 | wxRect *arg1 = (wxRect *) 0 ; | |
3429 | wxPoint result; | |
3430 | PyObject * obj0 = 0 ; | |
3431 | char *kwnames[] = { | |
3432 | (char *) "self", NULL | |
3433 | }; | |
3434 | ||
3435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
3436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3437 | { | |
3438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3439 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3440 | ||
3441 | wxPyEndAllowThreads(__tstate); | |
3442 | if (PyErr_Occurred()) SWIG_fail; | |
3443 | } | |
3444 | { | |
3445 | wxPoint * resultptr; | |
3446 | resultptr = new wxPoint((wxPoint &) result); | |
3447 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3448 | } | |
3449 | return resultobj; | |
3450 | fail: | |
3451 | return NULL; | |
3452 | } | |
3453 | ||
3454 | ||
3455 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3456 | PyObject *resultobj; | |
3457 | wxRect *arg1 = (wxRect *) 0 ; | |
3458 | wxPoint *arg2 = 0 ; | |
3459 | wxPoint temp2 ; | |
3460 | PyObject * obj0 = 0 ; | |
3461 | PyObject * obj1 = 0 ; | |
3462 | char *kwnames[] = { | |
3463 | (char *) "self",(char *) "p", NULL | |
3464 | }; | |
3465 | ||
3466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
3467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3468 | { | |
3469 | arg2 = &temp2; | |
3470 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3471 | } | |
3472 | { | |
3473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3474 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3475 | ||
3476 | wxPyEndAllowThreads(__tstate); | |
3477 | if (PyErr_Occurred()) SWIG_fail; | |
3478 | } | |
3479 | Py_INCREF(Py_None); resultobj = Py_None; | |
3480 | return resultobj; | |
3481 | fail: | |
3482 | return NULL; | |
3483 | } | |
3484 | ||
3485 | ||
d14a1e28 RD |
3486 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3487 | PyObject *resultobj; | |
3488 | wxRect *arg1 = (wxRect *) 0 ; | |
3489 | int result; | |
3490 | PyObject * obj0 = 0 ; | |
3491 | char *kwnames[] = { | |
3492 | (char *) "self", NULL | |
3493 | }; | |
3494 | ||
3495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
3496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3497 | { | |
3498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3499 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3500 | ||
3501 | wxPyEndAllowThreads(__tstate); | |
3502 | if (PyErr_Occurred()) SWIG_fail; | |
3503 | } | |
8edf1c75 | 3504 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3505 | return resultobj; |
3506 | fail: | |
3507 | return NULL; | |
3508 | } | |
3509 | ||
3510 | ||
3511 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3512 | PyObject *resultobj; | |
3513 | wxRect *arg1 = (wxRect *) 0 ; | |
3514 | int result; | |
3515 | PyObject * obj0 = 0 ; | |
3516 | char *kwnames[] = { | |
3517 | (char *) "self", NULL | |
3518 | }; | |
3519 | ||
3520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
3521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3522 | { | |
3523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3524 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3525 | ||
3526 | wxPyEndAllowThreads(__tstate); | |
3527 | if (PyErr_Occurred()) SWIG_fail; | |
3528 | } | |
8edf1c75 | 3529 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3530 | return resultobj; |
3531 | fail: | |
3532 | return NULL; | |
3533 | } | |
3534 | ||
3535 | ||
3536 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3537 | PyObject *resultobj; | |
3538 | wxRect *arg1 = (wxRect *) 0 ; | |
3539 | int result; | |
3540 | PyObject * obj0 = 0 ; | |
3541 | char *kwnames[] = { | |
3542 | (char *) "self", NULL | |
3543 | }; | |
3544 | ||
3545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
3546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3547 | { | |
3548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3549 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3550 | ||
3551 | wxPyEndAllowThreads(__tstate); | |
3552 | if (PyErr_Occurred()) SWIG_fail; | |
3553 | } | |
8edf1c75 | 3554 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3555 | return resultobj; |
3556 | fail: | |
3557 | return NULL; | |
3558 | } | |
3559 | ||
3560 | ||
3561 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3562 | PyObject *resultobj; | |
3563 | wxRect *arg1 = (wxRect *) 0 ; | |
3564 | int result; | |
3565 | PyObject * obj0 = 0 ; | |
3566 | char *kwnames[] = { | |
3567 | (char *) "self", NULL | |
3568 | }; | |
3569 | ||
3570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
3571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3572 | { | |
3573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3574 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3575 | ||
3576 | wxPyEndAllowThreads(__tstate); | |
3577 | if (PyErr_Occurred()) SWIG_fail; | |
3578 | } | |
8edf1c75 | 3579 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3580 | return resultobj; |
3581 | fail: | |
3582 | return NULL; | |
3583 | } | |
3584 | ||
3585 | ||
3586 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3587 | PyObject *resultobj; | |
3588 | wxRect *arg1 = (wxRect *) 0 ; | |
3589 | int arg2 ; | |
3590 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3591 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3592 | char *kwnames[] = { |
3593 | (char *) "self",(char *) "left", NULL | |
3594 | }; | |
3595 | ||
8edf1c75 | 3596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3598 | { |
3599 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3600 | if (PyErr_Occurred()) SWIG_fail; | |
3601 | } | |
d14a1e28 RD |
3602 | { |
3603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3604 | (arg1)->SetLeft(arg2); | |
3605 | ||
3606 | wxPyEndAllowThreads(__tstate); | |
3607 | if (PyErr_Occurred()) SWIG_fail; | |
3608 | } | |
3609 | Py_INCREF(Py_None); resultobj = Py_None; | |
3610 | return resultobj; | |
3611 | fail: | |
3612 | return NULL; | |
3613 | } | |
3614 | ||
3615 | ||
3616 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3617 | PyObject *resultobj; | |
3618 | wxRect *arg1 = (wxRect *) 0 ; | |
3619 | int arg2 ; | |
3620 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3621 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3622 | char *kwnames[] = { |
3623 | (char *) "self",(char *) "right", NULL | |
3624 | }; | |
3625 | ||
8edf1c75 | 3626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3628 | { |
3629 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3630 | if (PyErr_Occurred()) SWIG_fail; | |
3631 | } | |
d14a1e28 RD |
3632 | { |
3633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3634 | (arg1)->SetRight(arg2); | |
3635 | ||
3636 | wxPyEndAllowThreads(__tstate); | |
3637 | if (PyErr_Occurred()) SWIG_fail; | |
3638 | } | |
3639 | Py_INCREF(Py_None); resultobj = Py_None; | |
3640 | return resultobj; | |
3641 | fail: | |
3642 | return NULL; | |
3643 | } | |
3644 | ||
3645 | ||
3646 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3647 | PyObject *resultobj; | |
3648 | wxRect *arg1 = (wxRect *) 0 ; | |
3649 | int arg2 ; | |
3650 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3651 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3652 | char *kwnames[] = { |
3653 | (char *) "self",(char *) "top", NULL | |
3654 | }; | |
3655 | ||
8edf1c75 | 3656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3658 | { |
3659 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3660 | if (PyErr_Occurred()) SWIG_fail; | |
3661 | } | |
d14a1e28 RD |
3662 | { |
3663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3664 | (arg1)->SetTop(arg2); | |
3665 | ||
3666 | wxPyEndAllowThreads(__tstate); | |
3667 | if (PyErr_Occurred()) SWIG_fail; | |
3668 | } | |
3669 | Py_INCREF(Py_None); resultobj = Py_None; | |
3670 | return resultobj; | |
3671 | fail: | |
3672 | return NULL; | |
3673 | } | |
3674 | ||
3675 | ||
3676 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3677 | PyObject *resultobj; | |
3678 | wxRect *arg1 = (wxRect *) 0 ; | |
3679 | int arg2 ; | |
3680 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3681 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3682 | char *kwnames[] = { |
3683 | (char *) "self",(char *) "bottom", NULL | |
3684 | }; | |
3685 | ||
8edf1c75 | 3686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3688 | { |
3689 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3690 | if (PyErr_Occurred()) SWIG_fail; | |
3691 | } | |
d14a1e28 RD |
3692 | { |
3693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3694 | (arg1)->SetBottom(arg2); | |
3695 | ||
3696 | wxPyEndAllowThreads(__tstate); | |
3697 | if (PyErr_Occurred()) SWIG_fail; | |
3698 | } | |
3699 | Py_INCREF(Py_None); resultobj = Py_None; | |
3700 | return resultobj; | |
3701 | fail: | |
3702 | return NULL; | |
3703 | } | |
3704 | ||
3705 | ||
3706 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3707 | PyObject *resultobj; | |
3708 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3709 | int arg2 ; |
3710 | int arg3 ; | |
d14a1e28 RD |
3711 | wxRect *result; |
3712 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3713 | PyObject * obj1 = 0 ; |
3714 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3715 | char *kwnames[] = { |
3716 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3717 | }; | |
3718 | ||
8edf1c75 | 3719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3721 | { |
3722 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3723 | if (PyErr_Occurred()) SWIG_fail; | |
3724 | } | |
3725 | { | |
3726 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3727 | if (PyErr_Occurred()) SWIG_fail; | |
3728 | } | |
d14a1e28 RD |
3729 | { |
3730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3731 | { | |
3732 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
3733 | result = (wxRect *) &_result_ref; | |
3734 | } | |
3735 | ||
3736 | wxPyEndAllowThreads(__tstate); | |
3737 | if (PyErr_Occurred()) SWIG_fail; | |
3738 | } | |
3739 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3740 | return resultobj; | |
3741 | fail: | |
3742 | return NULL; | |
3743 | } | |
3744 | ||
3745 | ||
3746 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3747 | PyObject *resultobj; | |
3748 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3749 | int arg2 ; |
3750 | int arg3 ; | |
d14a1e28 RD |
3751 | wxRect *result; |
3752 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3753 | PyObject * obj1 = 0 ; |
3754 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3755 | char *kwnames[] = { |
3756 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3757 | }; | |
3758 | ||
8edf1c75 | 3759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3761 | { |
3762 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3763 | if (PyErr_Occurred()) SWIG_fail; | |
3764 | } | |
3765 | { | |
3766 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3767 | if (PyErr_Occurred()) SWIG_fail; | |
3768 | } | |
d14a1e28 RD |
3769 | { |
3770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3771 | { | |
3772 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
3773 | result = (wxRect *) &_result_ref; | |
3774 | } | |
3775 | ||
3776 | wxPyEndAllowThreads(__tstate); | |
3777 | if (PyErr_Occurred()) SWIG_fail; | |
3778 | } | |
3779 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3780 | return resultobj; | |
3781 | fail: | |
3782 | return NULL; | |
3783 | } | |
3784 | ||
3785 | ||
3786 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3787 | PyObject *resultobj; | |
3788 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3789 | int arg2 ; |
3790 | int arg3 ; | |
d14a1e28 | 3791 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3792 | PyObject * obj1 = 0 ; |
3793 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3794 | char *kwnames[] = { |
3795 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3796 | }; | |
3797 | ||
8edf1c75 | 3798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3800 | { |
3801 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3802 | if (PyErr_Occurred()) SWIG_fail; | |
3803 | } | |
3804 | { | |
3805 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3806 | if (PyErr_Occurred()) SWIG_fail; | |
3807 | } | |
d14a1e28 RD |
3808 | { |
3809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3810 | (arg1)->Offset(arg2,arg3); | |
3811 | ||
3812 | wxPyEndAllowThreads(__tstate); | |
3813 | if (PyErr_Occurred()) SWIG_fail; | |
3814 | } | |
3815 | Py_INCREF(Py_None); resultobj = Py_None; | |
3816 | return resultobj; | |
3817 | fail: | |
3818 | return NULL; | |
3819 | } | |
3820 | ||
3821 | ||
3822 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3823 | PyObject *resultobj; | |
3824 | wxRect *arg1 = (wxRect *) 0 ; | |
3825 | wxPoint *arg2 = 0 ; | |
3826 | wxPoint temp2 ; | |
3827 | PyObject * obj0 = 0 ; | |
3828 | PyObject * obj1 = 0 ; | |
3829 | char *kwnames[] = { | |
3830 | (char *) "self",(char *) "pt", NULL | |
3831 | }; | |
3832 | ||
3833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
3834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3835 | { | |
3836 | arg2 = &temp2; | |
3837 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3838 | } | |
3839 | { | |
3840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3841 | (arg1)->Offset((wxPoint const &)*arg2); | |
3842 | ||
3843 | wxPyEndAllowThreads(__tstate); | |
3844 | if (PyErr_Occurred()) SWIG_fail; | |
3845 | } | |
3846 | Py_INCREF(Py_None); resultobj = Py_None; | |
3847 | return resultobj; | |
3848 | fail: | |
3849 | return NULL; | |
3850 | } | |
3851 | ||
3852 | ||
3853 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3854 | PyObject *resultobj; | |
3855 | wxRect *arg1 = (wxRect *) 0 ; | |
3856 | wxRect *arg2 = 0 ; | |
3857 | wxRect *result; | |
3858 | wxRect temp2 ; | |
3859 | PyObject * obj0 = 0 ; | |
3860 | PyObject * obj1 = 0 ; | |
3861 | char *kwnames[] = { | |
3862 | (char *) "self",(char *) "rect", NULL | |
3863 | }; | |
3864 | ||
3865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
3866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3867 | { | |
3868 | arg2 = &temp2; | |
3869 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3870 | } | |
3871 | { | |
3872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3873 | { | |
3874 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
3875 | result = (wxRect *) &_result_ref; | |
3876 | } | |
3877 | ||
3878 | wxPyEndAllowThreads(__tstate); | |
3879 | if (PyErr_Occurred()) SWIG_fail; | |
3880 | } | |
3881 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3882 | return resultobj; | |
3883 | fail: | |
3884 | return NULL; | |
3885 | } | |
3886 | ||
3887 | ||
3888 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3889 | PyObject *resultobj; | |
3890 | wxRect *arg1 = (wxRect *) 0 ; | |
3891 | wxRect *arg2 = 0 ; | |
3892 | wxRect result; | |
3893 | wxRect temp2 ; | |
3894 | PyObject * obj0 = 0 ; | |
3895 | PyObject * obj1 = 0 ; | |
3896 | char *kwnames[] = { | |
3897 | (char *) "self",(char *) "rect", NULL | |
3898 | }; | |
3899 | ||
3900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
3901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3902 | { | |
3903 | arg2 = &temp2; | |
3904 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3905 | } | |
3906 | { | |
3907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3908 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
3909 | ||
3910 | wxPyEndAllowThreads(__tstate); | |
3911 | if (PyErr_Occurred()) SWIG_fail; | |
3912 | } | |
3913 | { | |
3914 | wxRect * resultptr; | |
3915 | resultptr = new wxRect((wxRect &) result); | |
3916 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3917 | } | |
3918 | return resultobj; | |
3919 | fail: | |
3920 | return NULL; | |
3921 | } | |
3922 | ||
3923 | ||
3924 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3925 | PyObject *resultobj; | |
3926 | wxRect *arg1 = (wxRect *) 0 ; | |
3927 | wxRect *arg2 = 0 ; | |
3928 | wxRect *result; | |
3929 | wxRect temp2 ; | |
3930 | PyObject * obj0 = 0 ; | |
3931 | PyObject * obj1 = 0 ; | |
3932 | char *kwnames[] = { | |
3933 | (char *) "self",(char *) "rect", NULL | |
3934 | }; | |
3935 | ||
3936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3938 | { | |
3939 | arg2 = &temp2; | |
3940 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3941 | } | |
3942 | { | |
3943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3944 | { | |
3945 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
3946 | result = (wxRect *) &_result_ref; | |
3947 | } | |
3948 | ||
3949 | wxPyEndAllowThreads(__tstate); | |
3950 | if (PyErr_Occurred()) SWIG_fail; | |
3951 | } | |
3952 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3953 | return resultobj; | |
3954 | fail: | |
3955 | return NULL; | |
3956 | } | |
3957 | ||
3958 | ||
3959 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3960 | PyObject *resultobj; | |
3961 | wxRect *arg1 = (wxRect *) 0 ; | |
3962 | wxRect *arg2 = 0 ; | |
3963 | bool result; | |
3964 | wxRect temp2 ; | |
3965 | PyObject * obj0 = 0 ; | |
3966 | PyObject * obj1 = 0 ; | |
3967 | char *kwnames[] = { | |
3968 | (char *) "self",(char *) "rect", NULL | |
3969 | }; | |
3970 | ||
3971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3973 | { | |
3974 | arg2 = &temp2; | |
3975 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3976 | } | |
3977 | { | |
3978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3979 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
3980 | ||
3981 | wxPyEndAllowThreads(__tstate); | |
3982 | if (PyErr_Occurred()) SWIG_fail; | |
3983 | } | |
4e760a36 | 3984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3985 | return resultobj; |
3986 | fail: | |
3987 | return NULL; | |
3988 | } | |
3989 | ||
3990 | ||
3991 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3992 | PyObject *resultobj; | |
3993 | wxRect *arg1 = (wxRect *) 0 ; | |
3994 | wxRect *arg2 = 0 ; | |
3995 | bool result; | |
3996 | wxRect temp2 ; | |
3997 | PyObject * obj0 = 0 ; | |
3998 | PyObject * obj1 = 0 ; | |
3999 | char *kwnames[] = { | |
4000 | (char *) "self",(char *) "rect", NULL | |
4001 | }; | |
4002 | ||
4003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4005 | { | |
4006 | arg2 = &temp2; | |
4007 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4008 | } | |
4009 | { | |
4010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4011 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4012 | ||
4013 | wxPyEndAllowThreads(__tstate); | |
4014 | if (PyErr_Occurred()) SWIG_fail; | |
4015 | } | |
4e760a36 | 4016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4017 | return resultobj; |
4018 | fail: | |
4019 | return NULL; | |
4020 | } | |
4021 | ||
4022 | ||
4023 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4024 | PyObject *resultobj; | |
4025 | wxRect *arg1 = (wxRect *) 0 ; | |
4026 | int arg2 ; | |
4027 | int arg3 ; | |
4028 | bool result; | |
4029 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4030 | PyObject * obj1 = 0 ; |
4031 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4032 | char *kwnames[] = { |
4033 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4034 | }; | |
4035 | ||
8edf1c75 | 4036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4038 | { |
4039 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4040 | if (PyErr_Occurred()) SWIG_fail; | |
4041 | } | |
4042 | { | |
4043 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4044 | if (PyErr_Occurred()) SWIG_fail; | |
4045 | } | |
d14a1e28 RD |
4046 | { |
4047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4048 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4049 | ||
4050 | wxPyEndAllowThreads(__tstate); | |
4051 | if (PyErr_Occurred()) SWIG_fail; | |
4052 | } | |
4e760a36 | 4053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4054 | return resultobj; |
4055 | fail: | |
4056 | return NULL; | |
4057 | } | |
4058 | ||
4059 | ||
4060 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4061 | PyObject *resultobj; | |
4062 | wxRect *arg1 = (wxRect *) 0 ; | |
4063 | wxPoint *arg2 = 0 ; | |
4064 | bool result; | |
4065 | wxPoint temp2 ; | |
4066 | PyObject * obj0 = 0 ; | |
4067 | PyObject * obj1 = 0 ; | |
4068 | char *kwnames[] = { | |
4069 | (char *) "self",(char *) "pt", NULL | |
4070 | }; | |
4071 | ||
4072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
4073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4074 | { | |
4075 | arg2 = &temp2; | |
4076 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4077 | } | |
4078 | { | |
4079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4080 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4081 | ||
4082 | wxPyEndAllowThreads(__tstate); | |
4083 | if (PyErr_Occurred()) SWIG_fail; | |
4084 | } | |
4e760a36 | 4085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4086 | return resultobj; |
4087 | fail: | |
4088 | return NULL; | |
4089 | } | |
4090 | ||
4091 | ||
4092 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4093 | PyObject *resultobj; | |
4094 | wxRect *arg1 = (wxRect *) 0 ; | |
4095 | wxRect *arg2 = 0 ; | |
4096 | bool result; | |
4097 | wxRect temp2 ; | |
4098 | PyObject * obj0 = 0 ; | |
4099 | PyObject * obj1 = 0 ; | |
4100 | char *kwnames[] = { | |
4101 | (char *) "self",(char *) "rect", NULL | |
4102 | }; | |
4103 | ||
4104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
4105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4106 | { | |
4107 | arg2 = &temp2; | |
4108 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4109 | } | |
4110 | { | |
4111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4112 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4113 | ||
4114 | wxPyEndAllowThreads(__tstate); | |
4115 | if (PyErr_Occurred()) SWIG_fail; | |
4116 | } | |
4e760a36 | 4117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4118 | return resultobj; |
4119 | fail: | |
4120 | return NULL; | |
4121 | } | |
4122 | ||
4123 | ||
4124 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4125 | PyObject *resultobj; | |
4126 | wxRect *arg1 = (wxRect *) 0 ; | |
4127 | int arg2 ; | |
4128 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4129 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4130 | char *kwnames[] = { |
4131 | (char *) "self",(char *) "x", NULL | |
4132 | }; | |
4133 | ||
8edf1c75 | 4134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4136 | { |
4137 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4138 | if (PyErr_Occurred()) SWIG_fail; | |
4139 | } | |
d14a1e28 RD |
4140 | if (arg1) (arg1)->x = arg2; |
4141 | ||
4142 | Py_INCREF(Py_None); resultobj = Py_None; | |
4143 | return resultobj; | |
4144 | fail: | |
4145 | return NULL; | |
4146 | } | |
4147 | ||
4148 | ||
4149 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4150 | PyObject *resultobj; | |
4151 | wxRect *arg1 = (wxRect *) 0 ; | |
4152 | int result; | |
4153 | PyObject * obj0 = 0 ; | |
4154 | char *kwnames[] = { | |
4155 | (char *) "self", NULL | |
4156 | }; | |
4157 | ||
4158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
4159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4160 | result = (int) ((arg1)->x); | |
4161 | ||
8edf1c75 | 4162 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4163 | return resultobj; |
4164 | fail: | |
4165 | return NULL; | |
4166 | } | |
4167 | ||
4168 | ||
4169 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4170 | PyObject *resultobj; | |
4171 | wxRect *arg1 = (wxRect *) 0 ; | |
4172 | int arg2 ; | |
4173 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4174 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4175 | char *kwnames[] = { |
4176 | (char *) "self",(char *) "y", NULL | |
4177 | }; | |
4178 | ||
8edf1c75 | 4179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4181 | { |
4182 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4183 | if (PyErr_Occurred()) SWIG_fail; | |
4184 | } | |
d14a1e28 RD |
4185 | if (arg1) (arg1)->y = arg2; |
4186 | ||
4187 | Py_INCREF(Py_None); resultobj = Py_None; | |
4188 | return resultobj; | |
4189 | fail: | |
4190 | return NULL; | |
4191 | } | |
4192 | ||
4193 | ||
4194 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4195 | PyObject *resultobj; | |
4196 | wxRect *arg1 = (wxRect *) 0 ; | |
4197 | int result; | |
4198 | PyObject * obj0 = 0 ; | |
4199 | char *kwnames[] = { | |
4200 | (char *) "self", NULL | |
4201 | }; | |
4202 | ||
4203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
4204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4205 | result = (int) ((arg1)->y); | |
4206 | ||
8edf1c75 | 4207 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4208 | return resultobj; |
4209 | fail: | |
4210 | return NULL; | |
4211 | } | |
4212 | ||
4213 | ||
4214 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4215 | PyObject *resultobj; | |
4216 | wxRect *arg1 = (wxRect *) 0 ; | |
4217 | int arg2 ; | |
4218 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4219 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4220 | char *kwnames[] = { |
4221 | (char *) "self",(char *) "width", NULL | |
4222 | }; | |
4223 | ||
8edf1c75 | 4224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4226 | { |
4227 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4228 | if (PyErr_Occurred()) SWIG_fail; | |
4229 | } | |
d14a1e28 RD |
4230 | if (arg1) (arg1)->width = arg2; |
4231 | ||
4232 | Py_INCREF(Py_None); resultobj = Py_None; | |
4233 | return resultobj; | |
4234 | fail: | |
4235 | return NULL; | |
4236 | } | |
4237 | ||
4238 | ||
4239 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4240 | PyObject *resultobj; | |
4241 | wxRect *arg1 = (wxRect *) 0 ; | |
4242 | int result; | |
4243 | PyObject * obj0 = 0 ; | |
4244 | char *kwnames[] = { | |
4245 | (char *) "self", NULL | |
4246 | }; | |
4247 | ||
4248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
4249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4250 | result = (int) ((arg1)->width); | |
4251 | ||
8edf1c75 | 4252 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4253 | return resultobj; |
4254 | fail: | |
4255 | return NULL; | |
4256 | } | |
4257 | ||
4258 | ||
4259 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4260 | PyObject *resultobj; | |
4261 | wxRect *arg1 = (wxRect *) 0 ; | |
4262 | int arg2 ; | |
4263 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4264 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4265 | char *kwnames[] = { |
4266 | (char *) "self",(char *) "height", NULL | |
4267 | }; | |
4268 | ||
8edf1c75 | 4269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4271 | { |
4272 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4273 | if (PyErr_Occurred()) SWIG_fail; | |
4274 | } | |
d14a1e28 RD |
4275 | if (arg1) (arg1)->height = arg2; |
4276 | ||
4277 | Py_INCREF(Py_None); resultobj = Py_None; | |
4278 | return resultobj; | |
4279 | fail: | |
4280 | return NULL; | |
4281 | } | |
4282 | ||
4283 | ||
4284 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4285 | PyObject *resultobj; | |
4286 | wxRect *arg1 = (wxRect *) 0 ; | |
4287 | int result; | |
4288 | PyObject * obj0 = 0 ; | |
4289 | char *kwnames[] = { | |
4290 | (char *) "self", NULL | |
4291 | }; | |
4292 | ||
4293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
4294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4295 | result = (int) ((arg1)->height); | |
4296 | ||
8edf1c75 | 4297 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4298 | return resultobj; |
4299 | fail: | |
4300 | return NULL; | |
4301 | } | |
4302 | ||
4303 | ||
4304 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4305 | PyObject *resultobj; | |
4306 | wxRect *arg1 = (wxRect *) 0 ; | |
4307 | int arg2 = (int) 0 ; | |
4308 | int arg3 = (int) 0 ; | |
4309 | int arg4 = (int) 0 ; | |
4310 | int arg5 = (int) 0 ; | |
4311 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4312 | PyObject * obj1 = 0 ; |
4313 | PyObject * obj2 = 0 ; | |
4314 | PyObject * obj3 = 0 ; | |
4315 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4316 | char *kwnames[] = { |
4317 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4318 | }; | |
4319 | ||
8edf1c75 | 4320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4322 | if (obj1) { |
4323 | { | |
4324 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4325 | if (PyErr_Occurred()) SWIG_fail; | |
4326 | } | |
4327 | } | |
4328 | if (obj2) { | |
4329 | { | |
4330 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4331 | if (PyErr_Occurred()) SWIG_fail; | |
4332 | } | |
4333 | } | |
4334 | if (obj3) { | |
4335 | { | |
4336 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4337 | if (PyErr_Occurred()) SWIG_fail; | |
4338 | } | |
4339 | } | |
4340 | if (obj4) { | |
4341 | { | |
4342 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4343 | if (PyErr_Occurred()) SWIG_fail; | |
4344 | } | |
4345 | } | |
d14a1e28 RD |
4346 | { |
4347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4348 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4349 | ||
4350 | wxPyEndAllowThreads(__tstate); | |
4351 | if (PyErr_Occurred()) SWIG_fail; | |
4352 | } | |
4353 | Py_INCREF(Py_None); resultobj = Py_None; | |
4354 | return resultobj; | |
4355 | fail: | |
4356 | return NULL; | |
4357 | } | |
4358 | ||
4359 | ||
423f194a | 4360 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4361 | PyObject *resultobj; |
4362 | wxRect *arg1 = (wxRect *) 0 ; | |
4363 | PyObject *result; | |
4364 | PyObject * obj0 = 0 ; | |
4365 | char *kwnames[] = { | |
4366 | (char *) "self", NULL | |
4367 | }; | |
4368 | ||
423f194a | 4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4371 | { | |
4372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4373 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
4374 | |
4375 | wxPyEndAllowThreads(__tstate); | |
4376 | if (PyErr_Occurred()) SWIG_fail; | |
4377 | } | |
4378 | resultobj = result; | |
4379 | return resultobj; | |
4380 | fail: | |
4381 | return NULL; | |
4382 | } | |
4383 | ||
4384 | ||
4385 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4386 | PyObject *obj; | |
4387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4388 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4389 | Py_INCREF(obj); | |
4390 | return Py_BuildValue((char *)""); | |
4391 | } | |
4392 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4393 | PyObject *resultobj; | |
4394 | wxRect *arg1 = (wxRect *) 0 ; | |
4395 | wxRect *arg2 = (wxRect *) 0 ; | |
4396 | PyObject *result; | |
4397 | PyObject * obj0 = 0 ; | |
4398 | PyObject * obj1 = 0 ; | |
4399 | char *kwnames[] = { | |
4400 | (char *) "r1",(char *) "r2", NULL | |
4401 | }; | |
4402 | ||
4403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4405 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4406 | { | |
4407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4408 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4409 | ||
4410 | wxPyEndAllowThreads(__tstate); | |
4411 | if (PyErr_Occurred()) SWIG_fail; | |
4412 | } | |
4413 | resultobj = result; | |
4414 | return resultobj; | |
4415 | fail: | |
4416 | return NULL; | |
4417 | } | |
4418 | ||
4419 | ||
4420 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4421 | PyObject *resultobj; | |
4422 | double arg1 = (double) 0.0 ; | |
4423 | double arg2 = (double) 0.0 ; | |
4424 | wxPoint2D *result; | |
8edf1c75 RD |
4425 | PyObject * obj0 = 0 ; |
4426 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
4427 | char *kwnames[] = { |
4428 | (char *) "x",(char *) "y", NULL | |
4429 | }; | |
4430 | ||
8edf1c75 RD |
4431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; |
4432 | if (obj0) { | |
4433 | { | |
4434 | arg1 = (double) SWIG_PyObj_AsDouble(obj0); | |
4435 | if (PyErr_Occurred()) SWIG_fail; | |
4436 | } | |
4437 | } | |
4438 | if (obj1) { | |
4439 | { | |
4440 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
4441 | if (PyErr_Occurred()) SWIG_fail; | |
4442 | } | |
4443 | } | |
d14a1e28 RD |
4444 | { |
4445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4446 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4447 | ||
4448 | wxPyEndAllowThreads(__tstate); | |
4449 | if (PyErr_Occurred()) SWIG_fail; | |
4450 | } | |
4451 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4452 | return resultobj; | |
4453 | fail: | |
4454 | return NULL; | |
4455 | } | |
4456 | ||
4457 | ||
4458 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4459 | PyObject *resultobj; | |
4460 | wxPoint2D *arg1 = 0 ; | |
4461 | wxPoint2D *result; | |
4462 | wxPoint2D temp1 ; | |
4463 | PyObject * obj0 = 0 ; | |
4464 | char *kwnames[] = { | |
4465 | (char *) "pt", NULL | |
4466 | }; | |
4467 | ||
4468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4469 | { | |
4470 | arg1 = &temp1; | |
4471 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4472 | } | |
4473 | { | |
4474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4475 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4476 | ||
4477 | wxPyEndAllowThreads(__tstate); | |
4478 | if (PyErr_Occurred()) SWIG_fail; | |
4479 | } | |
4480 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4481 | return resultobj; | |
4482 | fail: | |
4483 | return NULL; | |
4484 | } | |
4485 | ||
4486 | ||
4487 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4488 | PyObject *resultobj; | |
4489 | wxPoint *arg1 = 0 ; | |
4490 | wxPoint2D *result; | |
4491 | wxPoint temp1 ; | |
4492 | PyObject * obj0 = 0 ; | |
4493 | char *kwnames[] = { | |
4494 | (char *) "pt", NULL | |
4495 | }; | |
4496 | ||
4497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4498 | { | |
4499 | arg1 = &temp1; | |
4500 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4501 | } | |
4502 | { | |
4503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4504 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4505 | ||
4506 | wxPyEndAllowThreads(__tstate); | |
4507 | if (PyErr_Occurred()) SWIG_fail; | |
4508 | } | |
4509 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4510 | return resultobj; | |
4511 | fail: | |
4512 | return NULL; | |
4513 | } | |
4514 | ||
4515 | ||
4516 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4517 | PyObject *resultobj; | |
4518 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4519 | int *arg2 = (int *) 0 ; | |
4520 | int *arg3 = (int *) 0 ; | |
4521 | int temp2 ; | |
4522 | int temp3 ; | |
4523 | PyObject * obj0 = 0 ; | |
4524 | char *kwnames[] = { | |
4525 | (char *) "self", NULL | |
4526 | }; | |
4527 | ||
4528 | arg2 = &temp2; | |
4529 | arg3 = &temp3; | |
4530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
4531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4532 | { | |
4533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4534 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4535 | ||
4536 | wxPyEndAllowThreads(__tstate); | |
4537 | if (PyErr_Occurred()) SWIG_fail; | |
4538 | } | |
4539 | Py_INCREF(Py_None); resultobj = Py_None; | |
4540 | { | |
4541 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4542 | resultobj = t_output_helper(resultobj,o); | |
4543 | } | |
4544 | { | |
4545 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4546 | resultobj = t_output_helper(resultobj,o); | |
4547 | } | |
4548 | return resultobj; | |
4549 | fail: | |
4550 | return NULL; | |
4551 | } | |
4552 | ||
4553 | ||
4554 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4555 | PyObject *resultobj; | |
4556 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4557 | int *arg2 = (int *) 0 ; | |
4558 | int *arg3 = (int *) 0 ; | |
4559 | int temp2 ; | |
4560 | int temp3 ; | |
4561 | PyObject * obj0 = 0 ; | |
4562 | char *kwnames[] = { | |
4563 | (char *) "self", NULL | |
4564 | }; | |
4565 | ||
4566 | arg2 = &temp2; | |
4567 | arg3 = &temp3; | |
4568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
4569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4570 | { | |
4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4572 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4573 | ||
4574 | wxPyEndAllowThreads(__tstate); | |
4575 | if (PyErr_Occurred()) SWIG_fail; | |
4576 | } | |
4577 | Py_INCREF(Py_None); resultobj = Py_None; | |
4578 | { | |
4579 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4580 | resultobj = t_output_helper(resultobj,o); | |
4581 | } | |
4582 | { | |
4583 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4584 | resultobj = t_output_helper(resultobj,o); | |
4585 | } | |
4586 | return resultobj; | |
4587 | fail: | |
4588 | return NULL; | |
4589 | } | |
4590 | ||
4591 | ||
4592 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4593 | PyObject *resultobj; | |
4594 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4595 | double result; | |
4596 | PyObject * obj0 = 0 ; | |
4597 | char *kwnames[] = { | |
4598 | (char *) "self", NULL | |
4599 | }; | |
4600 | ||
4601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
4602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4603 | { | |
4604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4605 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4606 | ||
4607 | wxPyEndAllowThreads(__tstate); | |
4608 | if (PyErr_Occurred()) SWIG_fail; | |
4609 | } | |
8edf1c75 | 4610 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4611 | return resultobj; |
4612 | fail: | |
4613 | return NULL; | |
4614 | } | |
4615 | ||
4616 | ||
4617 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4618 | PyObject *resultobj; | |
4619 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4620 | double result; | |
4621 | PyObject * obj0 = 0 ; | |
4622 | char *kwnames[] = { | |
4623 | (char *) "self", NULL | |
4624 | }; | |
4625 | ||
4626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
4627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4628 | { | |
4629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4630 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4631 | ||
4632 | wxPyEndAllowThreads(__tstate); | |
4633 | if (PyErr_Occurred()) SWIG_fail; | |
4634 | } | |
8edf1c75 | 4635 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4636 | return resultobj; |
4637 | fail: | |
4638 | return NULL; | |
4639 | } | |
4640 | ||
4641 | ||
4642 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4643 | PyObject *resultobj; | |
4644 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4645 | double arg2 ; | |
4646 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4647 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4648 | char *kwnames[] = { |
4649 | (char *) "self",(char *) "length", NULL | |
4650 | }; | |
4651 | ||
8edf1c75 | 4652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4654 | { |
4655 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
4656 | if (PyErr_Occurred()) SWIG_fail; | |
4657 | } | |
d14a1e28 RD |
4658 | { |
4659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4660 | (arg1)->SetVectorLength(arg2); | |
4661 | ||
4662 | wxPyEndAllowThreads(__tstate); | |
4663 | if (PyErr_Occurred()) SWIG_fail; | |
4664 | } | |
4665 | Py_INCREF(Py_None); resultobj = Py_None; | |
4666 | return resultobj; | |
4667 | fail: | |
4668 | return NULL; | |
4669 | } | |
4670 | ||
4671 | ||
4672 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4673 | PyObject *resultobj; | |
4674 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4675 | double arg2 ; | |
4676 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4677 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4678 | char *kwnames[] = { |
4679 | (char *) "self",(char *) "degrees", NULL | |
4680 | }; | |
4681 | ||
8edf1c75 | 4682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4684 | { |
4685 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
4686 | if (PyErr_Occurred()) SWIG_fail; | |
4687 | } | |
d14a1e28 RD |
4688 | { |
4689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4690 | (arg1)->SetVectorAngle(arg2); | |
4691 | ||
4692 | wxPyEndAllowThreads(__tstate); | |
4693 | if (PyErr_Occurred()) SWIG_fail; | |
4694 | } | |
4695 | Py_INCREF(Py_None); resultobj = Py_None; | |
4696 | return resultobj; | |
4697 | fail: | |
4698 | return NULL; | |
4699 | } | |
4700 | ||
4701 | ||
4702 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4703 | PyObject *resultobj; | |
4704 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4705 | wxPoint2D *arg2 = 0 ; | |
4706 | double result; | |
4707 | wxPoint2D temp2 ; | |
4708 | PyObject * obj0 = 0 ; | |
4709 | PyObject * obj1 = 0 ; | |
4710 | char *kwnames[] = { | |
4711 | (char *) "self",(char *) "pt", NULL | |
4712 | }; | |
4713 | ||
4714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
4715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4716 | { | |
4717 | arg2 = &temp2; | |
4718 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4719 | } | |
4720 | { | |
4721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4722 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
4723 | ||
4724 | wxPyEndAllowThreads(__tstate); | |
4725 | if (PyErr_Occurred()) SWIG_fail; | |
4726 | } | |
8edf1c75 | 4727 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4728 | return resultobj; |
4729 | fail: | |
4730 | return NULL; | |
4731 | } | |
4732 | ||
4733 | ||
4734 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4735 | PyObject *resultobj; | |
4736 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4737 | wxPoint2D *arg2 = 0 ; | |
4738 | double result; | |
4739 | wxPoint2D temp2 ; | |
4740 | PyObject * obj0 = 0 ; | |
4741 | PyObject * obj1 = 0 ; | |
4742 | char *kwnames[] = { | |
4743 | (char *) "self",(char *) "pt", NULL | |
4744 | }; | |
4745 | ||
4746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
4747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4748 | { | |
4749 | arg2 = &temp2; | |
4750 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4751 | } | |
4752 | { | |
4753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4754 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
4755 | ||
4756 | wxPyEndAllowThreads(__tstate); | |
4757 | if (PyErr_Occurred()) SWIG_fail; | |
4758 | } | |
8edf1c75 | 4759 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4760 | return resultobj; |
4761 | fail: | |
4762 | return NULL; | |
4763 | } | |
4764 | ||
4765 | ||
4766 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4767 | PyObject *resultobj; | |
4768 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4769 | wxPoint2D *arg2 = 0 ; | |
4770 | double result; | |
4771 | wxPoint2D temp2 ; | |
4772 | PyObject * obj0 = 0 ; | |
4773 | PyObject * obj1 = 0 ; | |
4774 | char *kwnames[] = { | |
4775 | (char *) "self",(char *) "vec", NULL | |
4776 | }; | |
4777 | ||
4778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
4779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4780 | { | |
4781 | arg2 = &temp2; | |
4782 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4783 | } | |
4784 | { | |
4785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4786 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
4787 | ||
4788 | wxPyEndAllowThreads(__tstate); | |
4789 | if (PyErr_Occurred()) SWIG_fail; | |
4790 | } | |
8edf1c75 | 4791 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4792 | return resultobj; |
4793 | fail: | |
4794 | return NULL; | |
4795 | } | |
4796 | ||
4797 | ||
4798 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4799 | PyObject *resultobj; | |
4800 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4801 | wxPoint2D *arg2 = 0 ; | |
4802 | double result; | |
4803 | wxPoint2D temp2 ; | |
4804 | PyObject * obj0 = 0 ; | |
4805 | PyObject * obj1 = 0 ; | |
4806 | char *kwnames[] = { | |
4807 | (char *) "self",(char *) "vec", NULL | |
4808 | }; | |
4809 | ||
4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
4811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4812 | { | |
4813 | arg2 = &temp2; | |
4814 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4815 | } | |
4816 | { | |
4817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4818 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
4819 | ||
4820 | wxPyEndAllowThreads(__tstate); | |
4821 | if (PyErr_Occurred()) SWIG_fail; | |
4822 | } | |
8edf1c75 | 4823 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4824 | return resultobj; |
4825 | fail: | |
4826 | return NULL; | |
4827 | } | |
4828 | ||
4829 | ||
4830 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4831 | PyObject *resultobj; | |
4832 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4833 | wxPoint2D result; | |
4834 | PyObject * obj0 = 0 ; | |
4835 | char *kwnames[] = { | |
4836 | (char *) "self", NULL | |
4837 | }; | |
4838 | ||
4839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
4840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4841 | { | |
4842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4843 | result = (arg1)->operator -(); | |
4844 | ||
4845 | wxPyEndAllowThreads(__tstate); | |
4846 | if (PyErr_Occurred()) SWIG_fail; | |
4847 | } | |
4848 | { | |
4849 | wxPoint2D * resultptr; | |
4850 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
4851 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint2D, 1); | |
4852 | } | |
4853 | return resultobj; | |
4854 | fail: | |
4855 | return NULL; | |
4856 | } | |
4857 | ||
4858 | ||
4859 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4860 | PyObject *resultobj; | |
4861 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4862 | wxPoint2D *arg2 = 0 ; | |
4863 | wxPoint2D *result; | |
4864 | wxPoint2D temp2 ; | |
4865 | PyObject * obj0 = 0 ; | |
4866 | PyObject * obj1 = 0 ; | |
4867 | char *kwnames[] = { | |
4868 | (char *) "self",(char *) "pt", NULL | |
4869 | }; | |
4870 | ||
4871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4873 | { | |
4874 | arg2 = &temp2; | |
4875 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4876 | } | |
4877 | { | |
4878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4879 | { | |
4880 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
4881 | result = (wxPoint2D *) &_result_ref; | |
4882 | } | |
4883 | ||
4884 | wxPyEndAllowThreads(__tstate); | |
4885 | if (PyErr_Occurred()) SWIG_fail; | |
4886 | } | |
4887 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4888 | return resultobj; | |
4889 | fail: | |
4890 | return NULL; | |
4891 | } | |
4892 | ||
4893 | ||
4894 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4895 | PyObject *resultobj; | |
4896 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4897 | wxPoint2D *arg2 = 0 ; | |
4898 | wxPoint2D *result; | |
4899 | wxPoint2D temp2 ; | |
4900 | PyObject * obj0 = 0 ; | |
4901 | PyObject * obj1 = 0 ; | |
4902 | char *kwnames[] = { | |
4903 | (char *) "self",(char *) "pt", NULL | |
4904 | }; | |
4905 | ||
4906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
4907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4908 | { | |
4909 | arg2 = &temp2; | |
4910 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4911 | } | |
4912 | { | |
4913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4914 | { | |
4915 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
4916 | result = (wxPoint2D *) &_result_ref; | |
4917 | } | |
4918 | ||
4919 | wxPyEndAllowThreads(__tstate); | |
4920 | if (PyErr_Occurred()) SWIG_fail; | |
4921 | } | |
4922 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4923 | return resultobj; | |
4924 | fail: | |
4925 | return NULL; | |
4926 | } | |
4927 | ||
4928 | ||
4929 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4930 | PyObject *resultobj; | |
4931 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4932 | wxPoint2D *arg2 = 0 ; | |
4933 | wxPoint2D *result; | |
4934 | wxPoint2D temp2 ; | |
4935 | PyObject * obj0 = 0 ; | |
4936 | PyObject * obj1 = 0 ; | |
4937 | char *kwnames[] = { | |
4938 | (char *) "self",(char *) "pt", NULL | |
4939 | }; | |
4940 | ||
4941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
4942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4943 | { | |
4944 | arg2 = &temp2; | |
4945 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4946 | } | |
4947 | { | |
4948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4949 | { | |
4950 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
4951 | result = (wxPoint2D *) &_result_ref; | |
4952 | } | |
4953 | ||
4954 | wxPyEndAllowThreads(__tstate); | |
4955 | if (PyErr_Occurred()) SWIG_fail; | |
4956 | } | |
4957 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4958 | return resultobj; | |
4959 | fail: | |
4960 | return NULL; | |
4961 | } | |
4962 | ||
4963 | ||
4964 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4965 | PyObject *resultobj; | |
4966 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4967 | wxPoint2D *arg2 = 0 ; | |
4968 | wxPoint2D *result; | |
4969 | wxPoint2D temp2 ; | |
4970 | PyObject * obj0 = 0 ; | |
4971 | PyObject * obj1 = 0 ; | |
4972 | char *kwnames[] = { | |
4973 | (char *) "self",(char *) "pt", NULL | |
4974 | }; | |
4975 | ||
4976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
4977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4978 | { | |
4979 | arg2 = &temp2; | |
4980 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4981 | } | |
4982 | { | |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4984 | { | |
4985 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
4986 | result = (wxPoint2D *) &_result_ref; | |
4987 | } | |
4988 | ||
4989 | wxPyEndAllowThreads(__tstate); | |
4990 | if (PyErr_Occurred()) SWIG_fail; | |
4991 | } | |
4992 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4993 | return resultobj; | |
4994 | fail: | |
4995 | return NULL; | |
4996 | } | |
4997 | ||
4998 | ||
4999 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5000 | PyObject *resultobj; | |
5001 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5002 | wxPoint2D *arg2 = 0 ; | |
5003 | bool result; | |
5004 | wxPoint2D temp2 ; | |
5005 | PyObject * obj0 = 0 ; | |
5006 | PyObject * obj1 = 0 ; | |
5007 | char *kwnames[] = { | |
5008 | (char *) "self",(char *) "pt", NULL | |
5009 | }; | |
5010 | ||
5011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
5012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5013 | { | |
5014 | arg2 = &temp2; | |
5015 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5016 | } | |
5017 | { | |
5018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5019 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5020 | ||
5021 | wxPyEndAllowThreads(__tstate); | |
5022 | if (PyErr_Occurred()) SWIG_fail; | |
5023 | } | |
4e760a36 | 5024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5025 | return resultobj; |
5026 | fail: | |
5027 | return NULL; | |
5028 | } | |
5029 | ||
5030 | ||
5031 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5032 | PyObject *resultobj; | |
5033 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5034 | wxPoint2D *arg2 = 0 ; | |
5035 | bool result; | |
5036 | wxPoint2D temp2 ; | |
5037 | PyObject * obj0 = 0 ; | |
5038 | PyObject * obj1 = 0 ; | |
5039 | char *kwnames[] = { | |
5040 | (char *) "self",(char *) "pt", NULL | |
5041 | }; | |
5042 | ||
5043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
5044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5045 | { | |
5046 | arg2 = &temp2; | |
5047 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5048 | } | |
5049 | { | |
5050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5051 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5052 | ||
5053 | wxPyEndAllowThreads(__tstate); | |
5054 | if (PyErr_Occurred()) SWIG_fail; | |
5055 | } | |
4e760a36 | 5056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5057 | return resultobj; |
5058 | fail: | |
5059 | return NULL; | |
5060 | } | |
5061 | ||
5062 | ||
d14a1e28 RD |
5063 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
5064 | PyObject *resultobj; | |
5065 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5066 | double arg2 ; | |
5067 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5068 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5069 | char *kwnames[] = { |
5070 | (char *) "self",(char *) "m_x", NULL | |
5071 | }; | |
5072 | ||
8edf1c75 | 5073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5075 | { |
5076 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
5077 | if (PyErr_Occurred()) SWIG_fail; | |
5078 | } | |
d14a1e28 RD |
5079 | if (arg1) (arg1)->m_x = arg2; |
5080 | ||
5081 | Py_INCREF(Py_None); resultobj = Py_None; | |
5082 | return resultobj; | |
5083 | fail: | |
5084 | return NULL; | |
5085 | } | |
5086 | ||
5087 | ||
5088 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5089 | PyObject *resultobj; | |
5090 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5091 | double result; | |
5092 | PyObject * obj0 = 0 ; | |
5093 | char *kwnames[] = { | |
5094 | (char *) "self", NULL | |
5095 | }; | |
5096 | ||
5097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
5098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5099 | result = (double) ((arg1)->m_x); | |
5100 | ||
8edf1c75 | 5101 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
5102 | return resultobj; |
5103 | fail: | |
5104 | return NULL; | |
5105 | } | |
5106 | ||
5107 | ||
5108 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5109 | PyObject *resultobj; | |
5110 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5111 | double arg2 ; | |
5112 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5113 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5114 | char *kwnames[] = { |
5115 | (char *) "self",(char *) "m_y", NULL | |
5116 | }; | |
5117 | ||
8edf1c75 | 5118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5120 | { |
5121 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
5122 | if (PyErr_Occurred()) SWIG_fail; | |
5123 | } | |
d14a1e28 RD |
5124 | if (arg1) (arg1)->m_y = arg2; |
5125 | ||
5126 | Py_INCREF(Py_None); resultobj = Py_None; | |
5127 | return resultobj; | |
5128 | fail: | |
5129 | return NULL; | |
5130 | } | |
5131 | ||
5132 | ||
5133 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5134 | PyObject *resultobj; | |
5135 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5136 | double result; | |
5137 | PyObject * obj0 = 0 ; | |
5138 | char *kwnames[] = { | |
5139 | (char *) "self", NULL | |
5140 | }; | |
5141 | ||
5142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
5143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5144 | result = (double) ((arg1)->m_y); | |
5145 | ||
8edf1c75 | 5146 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
5147 | return resultobj; |
5148 | fail: | |
5149 | return NULL; | |
5150 | } | |
5151 | ||
5152 | ||
5153 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5154 | PyObject *resultobj; | |
5155 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5156 | double arg2 = (double) 0 ; | |
5157 | double arg3 = (double) 0 ; | |
5158 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5159 | PyObject * obj1 = 0 ; |
5160 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5161 | char *kwnames[] = { |
5162 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5163 | }; | |
5164 | ||
8edf1c75 | 5165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5167 | if (obj1) { |
5168 | { | |
5169 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
5170 | if (PyErr_Occurred()) SWIG_fail; | |
5171 | } | |
5172 | } | |
5173 | if (obj2) { | |
5174 | { | |
5175 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
5176 | if (PyErr_Occurred()) SWIG_fail; | |
5177 | } | |
5178 | } | |
d14a1e28 RD |
5179 | { |
5180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5181 | wxPoint2D_Set(arg1,arg2,arg3); | |
5182 | ||
5183 | wxPyEndAllowThreads(__tstate); | |
5184 | if (PyErr_Occurred()) SWIG_fail; | |
5185 | } | |
5186 | Py_INCREF(Py_None); resultobj = Py_None; | |
5187 | return resultobj; | |
5188 | fail: | |
5189 | return NULL; | |
5190 | } | |
5191 | ||
5192 | ||
423f194a | 5193 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5194 | PyObject *resultobj; |
5195 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5196 | PyObject *result; | |
5197 | PyObject * obj0 = 0 ; | |
5198 | char *kwnames[] = { | |
5199 | (char *) "self", NULL | |
5200 | }; | |
5201 | ||
423f194a | 5202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
5203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5204 | { | |
5205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5206 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
5207 | |
5208 | wxPyEndAllowThreads(__tstate); | |
5209 | if (PyErr_Occurred()) SWIG_fail; | |
5210 | } | |
5211 | resultobj = result; | |
5212 | return resultobj; | |
5213 | fail: | |
5214 | return NULL; | |
5215 | } | |
5216 | ||
5217 | ||
5218 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5219 | PyObject *obj; | |
5220 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5221 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5222 | Py_INCREF(obj); | |
5223 | return Py_BuildValue((char *)""); | |
5224 | } | |
8edf1c75 | 5225 | static int _wrap_DefaultPosition_set(PyObject *) { |
d14a1e28 RD |
5226 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
5227 | return 1; | |
5228 | } | |
5229 | ||
5230 | ||
5231 | static PyObject *_wrap_DefaultPosition_get() { | |
5232 | PyObject *pyobj; | |
5233 | ||
5234 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultPosition, SWIGTYPE_p_wxPoint, 0); | |
5235 | return pyobj; | |
5236 | } | |
5237 | ||
5238 | ||
8edf1c75 | 5239 | static int _wrap_DefaultSize_set(PyObject *) { |
d14a1e28 RD |
5240 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
5241 | return 1; | |
5242 | } | |
5243 | ||
5244 | ||
5245 | static PyObject *_wrap_DefaultSize_get() { | |
5246 | PyObject *pyobj; | |
5247 | ||
5248 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSize, SWIGTYPE_p_wxSize, 0); | |
5249 | return pyobj; | |
5250 | } | |
5251 | ||
5252 | ||
5253 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5254 | PyObject *resultobj; | |
5255 | PyObject *arg1 = (PyObject *) 0 ; | |
5256 | wxPyInputStream *result; | |
5257 | PyObject * obj0 = 0 ; | |
5258 | char *kwnames[] = { | |
5259 | (char *) "p", NULL | |
5260 | }; | |
5261 | ||
5262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5263 | arg1 = obj0; | |
5264 | { | |
5265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5266 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5267 | ||
5268 | wxPyEndAllowThreads(__tstate); | |
5269 | if (PyErr_Occurred()) SWIG_fail; | |
5270 | } | |
5271 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyInputStream, 1); | |
5272 | return resultobj; | |
5273 | fail: | |
5274 | return NULL; | |
5275 | } | |
5276 | ||
5277 | ||
5278 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5279 | PyObject *resultobj; | |
5280 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5281 | PyObject * obj0 = 0 ; | |
5282 | char *kwnames[] = { | |
5283 | (char *) "self", NULL | |
5284 | }; | |
5285 | ||
5286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
5287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5288 | { | |
5289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5290 | (arg1)->close(); | |
5291 | ||
5292 | wxPyEndAllowThreads(__tstate); | |
5293 | if (PyErr_Occurred()) SWIG_fail; | |
5294 | } | |
5295 | Py_INCREF(Py_None); resultobj = Py_None; | |
5296 | return resultobj; | |
5297 | fail: | |
5298 | return NULL; | |
5299 | } | |
5300 | ||
5301 | ||
5302 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5303 | PyObject *resultobj; | |
5304 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5305 | PyObject * obj0 = 0 ; | |
5306 | char *kwnames[] = { | |
5307 | (char *) "self", NULL | |
5308 | }; | |
5309 | ||
5310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
5311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5312 | { | |
5313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5314 | (arg1)->flush(); | |
5315 | ||
5316 | wxPyEndAllowThreads(__tstate); | |
5317 | if (PyErr_Occurred()) SWIG_fail; | |
5318 | } | |
5319 | Py_INCREF(Py_None); resultobj = Py_None; | |
5320 | return resultobj; | |
5321 | fail: | |
5322 | return NULL; | |
5323 | } | |
5324 | ||
5325 | ||
5326 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5327 | PyObject *resultobj; | |
5328 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5329 | bool result; | |
5330 | PyObject * obj0 = 0 ; | |
5331 | char *kwnames[] = { | |
5332 | (char *) "self", NULL | |
5333 | }; | |
5334 | ||
5335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
5336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5337 | { | |
5338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5339 | result = (bool)(arg1)->eof(); | |
5340 | ||
5341 | wxPyEndAllowThreads(__tstate); | |
5342 | if (PyErr_Occurred()) SWIG_fail; | |
5343 | } | |
4e760a36 | 5344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5345 | return resultobj; |
5346 | fail: | |
5347 | return NULL; | |
5348 | } | |
5349 | ||
5350 | ||
5351 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5352 | PyObject *resultobj; | |
5353 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5354 | int arg2 = (int) -1 ; | |
5355 | PyObject *result; | |
5356 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5357 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5358 | char *kwnames[] = { |
5359 | (char *) "self",(char *) "size", NULL | |
5360 | }; | |
5361 | ||
8edf1c75 | 5362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5364 | if (obj1) { |
5365 | { | |
5366 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5367 | if (PyErr_Occurred()) SWIG_fail; | |
5368 | } | |
5369 | } | |
d14a1e28 RD |
5370 | { |
5371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5372 | result = (PyObject *)(arg1)->read(arg2); | |
5373 | ||
5374 | wxPyEndAllowThreads(__tstate); | |
5375 | if (PyErr_Occurred()) SWIG_fail; | |
5376 | } | |
5377 | resultobj = result; | |
5378 | return resultobj; | |
5379 | fail: | |
5380 | return NULL; | |
5381 | } | |
5382 | ||
5383 | ||
5384 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject *resultobj; | |
5386 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5387 | int arg2 = (int) -1 ; | |
5388 | PyObject *result; | |
5389 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5390 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5391 | char *kwnames[] = { |
5392 | (char *) "self",(char *) "size", NULL | |
5393 | }; | |
5394 | ||
8edf1c75 | 5395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5397 | if (obj1) { |
5398 | { | |
5399 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | } | |
5402 | } | |
d14a1e28 RD |
5403 | { |
5404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5405 | result = (PyObject *)(arg1)->readline(arg2); | |
5406 | ||
5407 | wxPyEndAllowThreads(__tstate); | |
5408 | if (PyErr_Occurred()) SWIG_fail; | |
5409 | } | |
5410 | resultobj = result; | |
5411 | return resultobj; | |
5412 | fail: | |
5413 | return NULL; | |
5414 | } | |
5415 | ||
5416 | ||
5417 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5418 | PyObject *resultobj; | |
5419 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5420 | int arg2 = (int) -1 ; | |
5421 | PyObject *result; | |
5422 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5423 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5424 | char *kwnames[] = { |
5425 | (char *) "self",(char *) "sizehint", NULL | |
5426 | }; | |
5427 | ||
8edf1c75 | 5428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5430 | if (obj1) { |
5431 | { | |
5432 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5433 | if (PyErr_Occurred()) SWIG_fail; | |
5434 | } | |
5435 | } | |
d14a1e28 RD |
5436 | { |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | result = (PyObject *)(arg1)->readlines(arg2); | |
5439 | ||
5440 | wxPyEndAllowThreads(__tstate); | |
5441 | if (PyErr_Occurred()) SWIG_fail; | |
5442 | } | |
5443 | resultobj = result; | |
5444 | return resultobj; | |
5445 | fail: | |
5446 | return NULL; | |
5447 | } | |
5448 | ||
5449 | ||
5450 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5451 | PyObject *resultobj; | |
5452 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5453 | int arg2 ; | |
5454 | int arg3 = (int) 0 ; | |
5455 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5456 | PyObject * obj1 = 0 ; |
5457 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5458 | char *kwnames[] = { |
5459 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5460 | }; | |
5461 | ||
8edf1c75 | 5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5464 | { |
5465 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5466 | if (PyErr_Occurred()) SWIG_fail; | |
5467 | } | |
5468 | if (obj2) { | |
5469 | { | |
5470 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5471 | if (PyErr_Occurred()) SWIG_fail; | |
5472 | } | |
5473 | } | |
d14a1e28 RD |
5474 | { |
5475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5476 | (arg1)->seek(arg2,arg3); | |
5477 | ||
5478 | wxPyEndAllowThreads(__tstate); | |
5479 | if (PyErr_Occurred()) SWIG_fail; | |
5480 | } | |
5481 | Py_INCREF(Py_None); resultobj = Py_None; | |
5482 | return resultobj; | |
5483 | fail: | |
5484 | return NULL; | |
5485 | } | |
5486 | ||
5487 | ||
5488 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5489 | PyObject *resultobj; | |
5490 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5491 | int result; | |
5492 | PyObject * obj0 = 0 ; | |
5493 | char *kwnames[] = { | |
5494 | (char *) "self", NULL | |
5495 | }; | |
5496 | ||
5497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
5498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5499 | { | |
5500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5501 | result = (int)(arg1)->tell(); | |
5502 | ||
5503 | wxPyEndAllowThreads(__tstate); | |
5504 | if (PyErr_Occurred()) SWIG_fail; | |
5505 | } | |
8edf1c75 | 5506 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5507 | return resultobj; |
5508 | fail: | |
5509 | return NULL; | |
5510 | } | |
5511 | ||
5512 | ||
5513 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5514 | PyObject *resultobj; | |
5515 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5516 | char result; | |
5517 | PyObject * obj0 = 0 ; | |
5518 | char *kwnames[] = { | |
5519 | (char *) "self", NULL | |
5520 | }; | |
5521 | ||
5522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
5523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5524 | { | |
5525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5526 | result = (char)(arg1)->Peek(); | |
5527 | ||
5528 | wxPyEndAllowThreads(__tstate); | |
5529 | if (PyErr_Occurred()) SWIG_fail; | |
5530 | } | |
8edf1c75 | 5531 | resultobj = SWIG_PyObj_FromChar((char)result); |
d14a1e28 RD |
5532 | return resultobj; |
5533 | fail: | |
5534 | return NULL; | |
5535 | } | |
5536 | ||
5537 | ||
5538 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5539 | PyObject *resultobj; | |
5540 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5541 | char result; | |
5542 | PyObject * obj0 = 0 ; | |
5543 | char *kwnames[] = { | |
5544 | (char *) "self", NULL | |
5545 | }; | |
5546 | ||
5547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
5548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5549 | { | |
5550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5551 | result = (char)(arg1)->GetC(); | |
5552 | ||
5553 | wxPyEndAllowThreads(__tstate); | |
5554 | if (PyErr_Occurred()) SWIG_fail; | |
5555 | } | |
8edf1c75 | 5556 | resultobj = SWIG_PyObj_FromChar((char)result); |
d14a1e28 RD |
5557 | return resultobj; |
5558 | fail: | |
5559 | return NULL; | |
5560 | } | |
5561 | ||
5562 | ||
5563 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5564 | PyObject *resultobj; | |
5565 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5566 | size_t result; | |
5567 | PyObject * obj0 = 0 ; | |
5568 | char *kwnames[] = { | |
5569 | (char *) "self", NULL | |
5570 | }; | |
5571 | ||
5572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
5573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5574 | { | |
5575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5576 | result = (size_t)(arg1)->LastRead(); | |
5577 | ||
5578 | wxPyEndAllowThreads(__tstate); | |
5579 | if (PyErr_Occurred()) SWIG_fail; | |
5580 | } | |
8edf1c75 | 5581 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
5582 | return resultobj; |
5583 | fail: | |
5584 | return NULL; | |
5585 | } | |
5586 | ||
5587 | ||
5588 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5589 | PyObject *resultobj; | |
5590 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5591 | bool result; | |
5592 | PyObject * obj0 = 0 ; | |
5593 | char *kwnames[] = { | |
5594 | (char *) "self", NULL | |
5595 | }; | |
5596 | ||
5597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
5598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5599 | { | |
5600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5601 | result = (bool)(arg1)->CanRead(); | |
5602 | ||
5603 | wxPyEndAllowThreads(__tstate); | |
5604 | if (PyErr_Occurred()) SWIG_fail; | |
5605 | } | |
4e760a36 | 5606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5607 | return resultobj; |
5608 | fail: | |
5609 | return NULL; | |
5610 | } | |
5611 | ||
5612 | ||
5613 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5614 | PyObject *resultobj; | |
5615 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5616 | bool result; | |
5617 | PyObject * obj0 = 0 ; | |
5618 | char *kwnames[] = { | |
5619 | (char *) "self", NULL | |
5620 | }; | |
5621 | ||
5622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
5623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5624 | { | |
5625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5626 | result = (bool)(arg1)->Eof(); | |
5627 | ||
5628 | wxPyEndAllowThreads(__tstate); | |
5629 | if (PyErr_Occurred()) SWIG_fail; | |
5630 | } | |
4e760a36 | 5631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5632 | return resultobj; |
5633 | fail: | |
5634 | return NULL; | |
5635 | } | |
5636 | ||
5637 | ||
5638 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5639 | PyObject *resultobj; | |
5640 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5641 | char arg2 ; | |
5642 | bool result; | |
5643 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5645 | char *kwnames[] = { |
5646 | (char *) "self",(char *) "c", NULL | |
5647 | }; | |
5648 | ||
8edf1c75 | 5649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5651 | { |
5652 | arg2 = (char) SWIG_PyObj_AsChar(obj1); | |
5653 | if (PyErr_Occurred()) SWIG_fail; | |
5654 | } | |
d14a1e28 RD |
5655 | { |
5656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5657 | result = (bool)(arg1)->Ungetch(arg2); | |
5658 | ||
5659 | wxPyEndAllowThreads(__tstate); | |
5660 | if (PyErr_Occurred()) SWIG_fail; | |
5661 | } | |
4e760a36 | 5662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5663 | return resultobj; |
5664 | fail: | |
5665 | return NULL; | |
5666 | } | |
5667 | ||
5668 | ||
5669 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5670 | PyObject *resultobj; | |
5671 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5672 | long arg2 ; | |
5673 | int arg3 = (int) wxFromStart ; | |
5674 | long result; | |
5675 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5676 | PyObject * obj1 = 0 ; |
5677 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5678 | char *kwnames[] = { |
5679 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
5680 | }; | |
5681 | ||
8edf1c75 | 5682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5684 | { |
5685 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
5686 | if (PyErr_Occurred()) SWIG_fail; | |
5687 | } | |
5688 | if (obj2) { | |
5689 | { | |
5690 | arg3 = (wxSeekMode) SWIG_PyObj_AsInt(obj2); | |
5691 | if (PyErr_Occurred()) SWIG_fail; | |
5692 | } | |
5693 | } | |
d14a1e28 RD |
5694 | { |
5695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5696 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
5697 | ||
5698 | wxPyEndAllowThreads(__tstate); | |
5699 | if (PyErr_Occurred()) SWIG_fail; | |
5700 | } | |
8edf1c75 | 5701 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
5702 | return resultobj; |
5703 | fail: | |
5704 | return NULL; | |
5705 | } | |
5706 | ||
5707 | ||
5708 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5709 | PyObject *resultobj; | |
5710 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5711 | long result; | |
5712 | PyObject * obj0 = 0 ; | |
5713 | char *kwnames[] = { | |
5714 | (char *) "self", NULL | |
5715 | }; | |
5716 | ||
5717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
5718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5719 | { | |
5720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5721 | result = (long)(arg1)->TellI(); | |
5722 | ||
5723 | wxPyEndAllowThreads(__tstate); | |
5724 | if (PyErr_Occurred()) SWIG_fail; | |
5725 | } | |
8edf1c75 | 5726 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
5727 | return resultobj; |
5728 | fail: | |
5729 | return NULL; | |
5730 | } | |
5731 | ||
5732 | ||
5733 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
5734 | PyObject *obj; | |
5735 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5736 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
5737 | Py_INCREF(obj); | |
5738 | return Py_BuildValue((char *)""); | |
5739 | } | |
5740 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5741 | PyObject *resultobj; | |
5742 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
5743 | PyObject *arg2 = (PyObject *) 0 ; | |
5744 | PyObject * obj0 = 0 ; | |
5745 | PyObject * obj1 = 0 ; | |
5746 | char *kwnames[] = { | |
5747 | (char *) "self",(char *) "obj", NULL | |
5748 | }; | |
5749 | ||
5750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
5751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxOutputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5752 | arg2 = obj1; | |
5753 | { | |
5754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5755 | wxOutputStream_write(arg1,arg2); | |
5756 | ||
5757 | wxPyEndAllowThreads(__tstate); | |
5758 | if (PyErr_Occurred()) SWIG_fail; | |
5759 | } | |
5760 | Py_INCREF(Py_None); resultobj = Py_None; | |
5761 | return resultobj; | |
5762 | fail: | |
5763 | return NULL; | |
5764 | } | |
5765 | ||
5766 | ||
5767 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
5768 | PyObject *obj; | |
5769 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5770 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
5771 | Py_INCREF(obj); | |
5772 | return Py_BuildValue((char *)""); | |
5773 | } | |
5774 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5775 | PyObject *resultobj; | |
5776 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
5777 | wxString *arg2 = 0 ; | |
5778 | wxString *arg3 = 0 ; | |
5779 | wxString *arg4 = 0 ; | |
5780 | wxDateTime arg5 ; | |
5781 | wxFSFile *result; | |
5782 | wxPyInputStream *temp1 ; | |
5783 | bool created1 ; | |
423f194a RD |
5784 | bool temp2 = False ; |
5785 | bool temp3 = False ; | |
5786 | bool temp4 = False ; | |
d14a1e28 RD |
5787 | wxDateTime *argp5 ; |
5788 | PyObject * obj0 = 0 ; | |
5789 | PyObject * obj1 = 0 ; | |
5790 | PyObject * obj2 = 0 ; | |
5791 | PyObject * obj3 = 0 ; | |
5792 | PyObject * obj4 = 0 ; | |
5793 | char *kwnames[] = { | |
5794 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
5795 | }; | |
5796 | ||
5797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5798 | { | |
5799 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
5800 | arg1 = temp1->m_wxis; | |
423f194a | 5801 | created1 = False; |
d14a1e28 RD |
5802 | } else { |
5803 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 5804 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
5805 | if (arg1 == NULL) { |
5806 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
5807 | SWIG_fail; | |
5808 | } | |
423f194a | 5809 | created1 = True; |
d14a1e28 RD |
5810 | } |
5811 | } | |
5812 | { | |
5813 | arg2 = wxString_in_helper(obj1); | |
5814 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5815 | temp2 = True; |
d14a1e28 RD |
5816 | } |
5817 | { | |
5818 | arg3 = wxString_in_helper(obj2); | |
5819 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 5820 | temp3 = True; |
d14a1e28 RD |
5821 | } |
5822 | { | |
5823 | arg4 = wxString_in_helper(obj3); | |
5824 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 5825 | temp4 = True; |
d14a1e28 RD |
5826 | } |
5827 | if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
5828 | arg5 = *argp5; | |
5829 | { | |
5830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5831 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
5832 | ||
5833 | wxPyEndAllowThreads(__tstate); | |
5834 | if (PyErr_Occurred()) SWIG_fail; | |
5835 | } | |
5836 | { | |
5837 | resultobj = wxPyMake_wxObject(result); | |
5838 | } | |
5839 | { | |
5840 | if (created1) | |
5841 | delete arg1; | |
5842 | } | |
5843 | { | |
5844 | if (temp2) | |
5845 | delete arg2; | |
5846 | } | |
5847 | { | |
5848 | if (temp3) | |
5849 | delete arg3; | |
5850 | } | |
5851 | { | |
5852 | if (temp4) | |
5853 | delete arg4; | |
5854 | } | |
5855 | return resultobj; | |
5856 | fail: | |
5857 | { | |
5858 | if (created1) | |
5859 | delete arg1; | |
5860 | } | |
5861 | { | |
5862 | if (temp2) | |
5863 | delete arg2; | |
5864 | } | |
5865 | { | |
5866 | if (temp3) | |
5867 | delete arg3; | |
5868 | } | |
5869 | { | |
5870 | if (temp4) | |
5871 | delete arg4; | |
5872 | } | |
5873 | return NULL; | |
5874 | } | |
5875 | ||
5876 | ||
5877 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5878 | PyObject *resultobj; | |
5879 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5880 | PyObject * obj0 = 0 ; | |
5881 | char *kwnames[] = { | |
5882 | (char *) "self", NULL | |
5883 | }; | |
5884 | ||
5885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
5886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5887 | { | |
5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5889 | delete arg1; | |
5890 | ||
5891 | wxPyEndAllowThreads(__tstate); | |
5892 | if (PyErr_Occurred()) SWIG_fail; | |
5893 | } | |
5894 | Py_INCREF(Py_None); resultobj = Py_None; | |
5895 | return resultobj; | |
5896 | fail: | |
5897 | return NULL; | |
5898 | } | |
5899 | ||
5900 | ||
5901 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5902 | PyObject *resultobj; | |
5903 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5904 | wxInputStream *result; | |
5905 | PyObject * obj0 = 0 ; | |
5906 | char *kwnames[] = { | |
5907 | (char *) "self", NULL | |
5908 | }; | |
5909 | ||
5910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
5911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5912 | { | |
5913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5914 | result = (wxInputStream *)(arg1)->GetStream(); | |
5915 | ||
5916 | wxPyEndAllowThreads(__tstate); | |
5917 | if (PyErr_Occurred()) SWIG_fail; | |
5918 | } | |
5919 | { | |
5920 | wxPyInputStream * _ptr = NULL; | |
5921 | ||
5922 | if (result) { | |
5923 | _ptr = new wxPyInputStream(result); | |
5924 | } | |
423f194a | 5925 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
5926 | } |
5927 | return resultobj; | |
5928 | fail: | |
5929 | return NULL; | |
5930 | } | |
5931 | ||
5932 | ||
5933 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5934 | PyObject *resultobj; | |
5935 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5936 | wxString *result; | |
5937 | PyObject * obj0 = 0 ; | |
5938 | char *kwnames[] = { | |
5939 | (char *) "self", NULL | |
5940 | }; | |
5941 | ||
5942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
5943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5944 | { | |
5945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5946 | { | |
5947 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
5948 | result = (wxString *) &_result_ref; | |
5949 | } | |
5950 | ||
5951 | wxPyEndAllowThreads(__tstate); | |
5952 | if (PyErr_Occurred()) SWIG_fail; | |
5953 | } | |
f0983263 RD |
5954 | { |
5955 | #if wxUSE_UNICODE | |
5956 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5957 | #else | |
5958 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5959 | #endif | |
5960 | } | |
d14a1e28 RD |
5961 | return resultobj; |
5962 | fail: | |
5963 | return NULL; | |
5964 | } | |
5965 | ||
5966 | ||
5967 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5968 | PyObject *resultobj; | |
5969 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5970 | wxString *result; | |
5971 | PyObject * obj0 = 0 ; | |
5972 | char *kwnames[] = { | |
5973 | (char *) "self", NULL | |
5974 | }; | |
5975 | ||
5976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
5977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5978 | { | |
5979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5980 | { | |
5981 | wxString const &_result_ref = (arg1)->GetLocation(); | |
5982 | result = (wxString *) &_result_ref; | |
5983 | } | |
5984 | ||
5985 | wxPyEndAllowThreads(__tstate); | |
5986 | if (PyErr_Occurred()) SWIG_fail; | |
5987 | } | |
f0983263 RD |
5988 | { |
5989 | #if wxUSE_UNICODE | |
5990 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5991 | #else | |
5992 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5993 | #endif | |
5994 | } | |
d14a1e28 RD |
5995 | return resultobj; |
5996 | fail: | |
5997 | return NULL; | |
5998 | } | |
5999 | ||
6000 | ||
6001 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6002 | PyObject *resultobj; | |
6003 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6004 | wxString *result; | |
6005 | PyObject * obj0 = 0 ; | |
6006 | char *kwnames[] = { | |
6007 | (char *) "self", NULL | |
6008 | }; | |
6009 | ||
6010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
6011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6012 | { | |
6013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6014 | { | |
6015 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6016 | result = (wxString *) &_result_ref; | |
6017 | } | |
6018 | ||
6019 | wxPyEndAllowThreads(__tstate); | |
6020 | if (PyErr_Occurred()) SWIG_fail; | |
6021 | } | |
f0983263 RD |
6022 | { |
6023 | #if wxUSE_UNICODE | |
6024 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6025 | #else | |
6026 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6027 | #endif | |
6028 | } | |
d14a1e28 RD |
6029 | return resultobj; |
6030 | fail: | |
6031 | return NULL; | |
6032 | } | |
6033 | ||
6034 | ||
6035 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6036 | PyObject *resultobj; | |
6037 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6038 | wxDateTime result; | |
6039 | PyObject * obj0 = 0 ; | |
6040 | char *kwnames[] = { | |
6041 | (char *) "self", NULL | |
6042 | }; | |
6043 | ||
6044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
6045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6046 | { | |
6047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6048 | result = (arg1)->GetModificationTime(); | |
6049 | ||
6050 | wxPyEndAllowThreads(__tstate); | |
6051 | if (PyErr_Occurred()) SWIG_fail; | |
6052 | } | |
6053 | { | |
6054 | wxDateTime * resultptr; | |
6055 | resultptr = new wxDateTime((wxDateTime &) result); | |
6056 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
6057 | } | |
6058 | return resultobj; | |
6059 | fail: | |
6060 | return NULL; | |
6061 | } | |
6062 | ||
6063 | ||
6064 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6065 | PyObject *obj; | |
6066 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6067 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6068 | Py_INCREF(obj); | |
6069 | return Py_BuildValue((char *)""); | |
6070 | } | |
6071 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6072 | PyObject *obj; | |
6073 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6074 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6075 | Py_INCREF(obj); | |
6076 | return Py_BuildValue((char *)""); | |
6077 | } | |
6078 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6079 | PyObject *resultobj; | |
6080 | wxPyFileSystemHandler *result; | |
6081 | char *kwnames[] = { | |
6082 | NULL | |
6083 | }; | |
6084 | ||
6085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6086 | { | |
6087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6088 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6089 | ||
6090 | wxPyEndAllowThreads(__tstate); | |
6091 | if (PyErr_Occurred()) SWIG_fail; | |
6092 | } | |
6093 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
6094 | return resultobj; | |
6095 | fail: | |
6096 | return NULL; | |
6097 | } | |
6098 | ||
6099 | ||
6100 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6101 | PyObject *resultobj; | |
6102 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6103 | PyObject *arg2 = (PyObject *) 0 ; | |
6104 | PyObject *arg3 = (PyObject *) 0 ; | |
6105 | PyObject * obj0 = 0 ; | |
6106 | PyObject * obj1 = 0 ; | |
6107 | PyObject * obj2 = 0 ; | |
6108 | char *kwnames[] = { | |
6109 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6110 | }; | |
6111 | ||
6112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6114 | arg2 = obj1; | |
6115 | arg3 = obj2; | |
6116 | { | |
6117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6118 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6119 | ||
6120 | wxPyEndAllowThreads(__tstate); | |
6121 | if (PyErr_Occurred()) SWIG_fail; | |
6122 | } | |
6123 | Py_INCREF(Py_None); resultobj = Py_None; | |
6124 | return resultobj; | |
6125 | fail: | |
6126 | return NULL; | |
6127 | } | |
6128 | ||
6129 | ||
6130 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6131 | PyObject *resultobj; | |
6132 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6133 | wxString *arg2 = 0 ; | |
6134 | bool result; | |
423f194a | 6135 | bool temp2 = False ; |
d14a1e28 RD |
6136 | PyObject * obj0 = 0 ; |
6137 | PyObject * obj1 = 0 ; | |
6138 | char *kwnames[] = { | |
6139 | (char *) "self",(char *) "location", NULL | |
6140 | }; | |
6141 | ||
6142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6144 | { | |
6145 | arg2 = wxString_in_helper(obj1); | |
6146 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6147 | temp2 = True; |
d14a1e28 RD |
6148 | } |
6149 | { | |
6150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6151 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6152 | ||
6153 | wxPyEndAllowThreads(__tstate); | |
6154 | if (PyErr_Occurred()) SWIG_fail; | |
6155 | } | |
4e760a36 | 6156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6157 | { |
6158 | if (temp2) | |
6159 | delete arg2; | |
6160 | } | |
6161 | return resultobj; | |
6162 | fail: | |
6163 | { | |
6164 | if (temp2) | |
6165 | delete arg2; | |
6166 | } | |
6167 | return NULL; | |
6168 | } | |
6169 | ||
6170 | ||
6171 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6172 | PyObject *resultobj; | |
6173 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6174 | wxFileSystem *arg2 = 0 ; | |
6175 | wxString *arg3 = 0 ; | |
6176 | wxFSFile *result; | |
423f194a | 6177 | bool temp3 = False ; |
d14a1e28 RD |
6178 | PyObject * obj0 = 0 ; |
6179 | PyObject * obj1 = 0 ; | |
6180 | PyObject * obj2 = 0 ; | |
6181 | char *kwnames[] = { | |
6182 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6183 | }; | |
6184 | ||
6185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6187 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6188 | if (arg2 == NULL) { | |
6189 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6190 | } | |
6191 | { | |
6192 | arg3 = wxString_in_helper(obj2); | |
6193 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6194 | temp3 = True; |
d14a1e28 RD |
6195 | } |
6196 | { | |
6197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6198 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6199 | ||
6200 | wxPyEndAllowThreads(__tstate); | |
6201 | if (PyErr_Occurred()) SWIG_fail; | |
6202 | } | |
6203 | { | |
6204 | resultobj = wxPyMake_wxObject(result); | |
6205 | } | |
6206 | { | |
6207 | if (temp3) | |
6208 | delete arg3; | |
6209 | } | |
6210 | return resultobj; | |
6211 | fail: | |
6212 | { | |
6213 | if (temp3) | |
6214 | delete arg3; | |
6215 | } | |
6216 | return NULL; | |
6217 | } | |
6218 | ||
6219 | ||
6220 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6221 | PyObject *resultobj; | |
6222 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6223 | wxString *arg2 = 0 ; | |
6224 | int arg3 = (int) 0 ; | |
6225 | wxString result; | |
423f194a | 6226 | bool temp2 = False ; |
d14a1e28 RD |
6227 | PyObject * obj0 = 0 ; |
6228 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6229 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6230 | char *kwnames[] = { |
6231 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6232 | }; | |
6233 | ||
8edf1c75 | 6234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6236 | { | |
6237 | arg2 = wxString_in_helper(obj1); | |
6238 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6239 | temp2 = True; |
d14a1e28 | 6240 | } |
8edf1c75 RD |
6241 | if (obj2) { |
6242 | { | |
6243 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6244 | if (PyErr_Occurred()) SWIG_fail; | |
6245 | } | |
6246 | } | |
d14a1e28 RD |
6247 | { |
6248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6249 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6250 | ||
6251 | wxPyEndAllowThreads(__tstate); | |
6252 | if (PyErr_Occurred()) SWIG_fail; | |
6253 | } | |
6254 | { | |
6255 | #if wxUSE_UNICODE | |
6256 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6257 | #else | |
6258 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6259 | #endif | |
6260 | } | |
6261 | { | |
6262 | if (temp2) | |
6263 | delete arg2; | |
6264 | } | |
6265 | return resultobj; | |
6266 | fail: | |
6267 | { | |
6268 | if (temp2) | |
6269 | delete arg2; | |
6270 | } | |
6271 | return NULL; | |
6272 | } | |
6273 | ||
6274 | ||
6275 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6276 | PyObject *resultobj; | |
6277 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6278 | wxString result; | |
6279 | PyObject * obj0 = 0 ; | |
6280 | char *kwnames[] = { | |
6281 | (char *) "self", NULL | |
6282 | }; | |
6283 | ||
6284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
6285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6286 | { | |
6287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6288 | result = (arg1)->FindNext(); | |
6289 | ||
6290 | wxPyEndAllowThreads(__tstate); | |
6291 | if (PyErr_Occurred()) SWIG_fail; | |
6292 | } | |
6293 | { | |
6294 | #if wxUSE_UNICODE | |
6295 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6296 | #else | |
6297 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6298 | #endif | |
6299 | } | |
6300 | return resultobj; | |
6301 | fail: | |
6302 | return NULL; | |
6303 | } | |
6304 | ||
6305 | ||
6306 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6307 | PyObject *resultobj; | |
6308 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6309 | wxString *arg2 = 0 ; | |
6310 | wxString result; | |
423f194a | 6311 | bool temp2 = False ; |
d14a1e28 RD |
6312 | PyObject * obj0 = 0 ; |
6313 | PyObject * obj1 = 0 ; | |
6314 | char *kwnames[] = { | |
6315 | (char *) "self",(char *) "location", NULL | |
6316 | }; | |
6317 | ||
6318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
6319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6320 | { | |
6321 | arg2 = wxString_in_helper(obj1); | |
6322 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6323 | temp2 = True; |
d14a1e28 RD |
6324 | } |
6325 | { | |
6326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6327 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6328 | ||
6329 | wxPyEndAllowThreads(__tstate); | |
6330 | if (PyErr_Occurred()) SWIG_fail; | |
6331 | } | |
6332 | { | |
6333 | #if wxUSE_UNICODE | |
6334 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6335 | #else | |
6336 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6337 | #endif | |
6338 | } | |
6339 | { | |
6340 | if (temp2) | |
6341 | delete arg2; | |
6342 | } | |
6343 | return resultobj; | |
6344 | fail: | |
6345 | { | |
6346 | if (temp2) | |
6347 | delete arg2; | |
6348 | } | |
6349 | return NULL; | |
6350 | } | |
6351 | ||
6352 | ||
6353 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6354 | PyObject *resultobj; | |
6355 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6356 | wxString *arg2 = 0 ; | |
6357 | wxString result; | |
423f194a | 6358 | bool temp2 = False ; |
d14a1e28 RD |
6359 | PyObject * obj0 = 0 ; |
6360 | PyObject * obj1 = 0 ; | |
6361 | char *kwnames[] = { | |
6362 | (char *) "self",(char *) "location", NULL | |
6363 | }; | |
6364 | ||
6365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
6366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6367 | { | |
6368 | arg2 = wxString_in_helper(obj1); | |
6369 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6370 | temp2 = True; |
d14a1e28 RD |
6371 | } |
6372 | { | |
6373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6374 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6375 | ||
6376 | wxPyEndAllowThreads(__tstate); | |
6377 | if (PyErr_Occurred()) SWIG_fail; | |
6378 | } | |
6379 | { | |
6380 | #if wxUSE_UNICODE | |
6381 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6382 | #else | |
6383 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6384 | #endif | |
6385 | } | |
6386 | { | |
6387 | if (temp2) | |
6388 | delete arg2; | |
6389 | } | |
6390 | return resultobj; | |
6391 | fail: | |
6392 | { | |
6393 | if (temp2) | |
6394 | delete arg2; | |
6395 | } | |
6396 | return NULL; | |
6397 | } | |
6398 | ||
6399 | ||
6400 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6401 | PyObject *resultobj; | |
6402 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6403 | wxString *arg2 = 0 ; | |
6404 | wxString result; | |
423f194a | 6405 | bool temp2 = False ; |
d14a1e28 RD |
6406 | PyObject * obj0 = 0 ; |
6407 | PyObject * obj1 = 0 ; | |
6408 | char *kwnames[] = { | |
6409 | (char *) "self",(char *) "location", NULL | |
6410 | }; | |
6411 | ||
6412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
6413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6414 | { | |
6415 | arg2 = wxString_in_helper(obj1); | |
6416 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6417 | temp2 = True; |
d14a1e28 RD |
6418 | } |
6419 | { | |
6420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6421 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6422 | ||
6423 | wxPyEndAllowThreads(__tstate); | |
6424 | if (PyErr_Occurred()) SWIG_fail; | |
6425 | } | |
6426 | { | |
6427 | #if wxUSE_UNICODE | |
6428 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6429 | #else | |
6430 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6431 | #endif | |
6432 | } | |
6433 | { | |
6434 | if (temp2) | |
6435 | delete arg2; | |
6436 | } | |
6437 | return resultobj; | |
6438 | fail: | |
6439 | { | |
6440 | if (temp2) | |
6441 | delete arg2; | |
6442 | } | |
6443 | return NULL; | |
6444 | } | |
6445 | ||
6446 | ||
6447 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6448 | PyObject *resultobj; | |
6449 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6450 | wxString *arg2 = 0 ; | |
6451 | wxString result; | |
423f194a | 6452 | bool temp2 = False ; |
d14a1e28 RD |
6453 | PyObject * obj0 = 0 ; |
6454 | PyObject * obj1 = 0 ; | |
6455 | char *kwnames[] = { | |
6456 | (char *) "self",(char *) "location", NULL | |
6457 | }; | |
6458 | ||
6459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
6460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6461 | { | |
6462 | arg2 = wxString_in_helper(obj1); | |
6463 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6464 | temp2 = True; |
d14a1e28 RD |
6465 | } |
6466 | { | |
6467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6468 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6469 | ||
6470 | wxPyEndAllowThreads(__tstate); | |
6471 | if (PyErr_Occurred()) SWIG_fail; | |
6472 | } | |
6473 | { | |
6474 | #if wxUSE_UNICODE | |
6475 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6476 | #else | |
6477 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6478 | #endif | |
6479 | } | |
6480 | { | |
6481 | if (temp2) | |
6482 | delete arg2; | |
6483 | } | |
6484 | return resultobj; | |
6485 | fail: | |
6486 | { | |
6487 | if (temp2) | |
6488 | delete arg2; | |
6489 | } | |
6490 | return NULL; | |
6491 | } | |
6492 | ||
6493 | ||
6494 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6495 | PyObject *resultobj; | |
6496 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6497 | wxString *arg2 = 0 ; | |
6498 | wxString result; | |
423f194a | 6499 | bool temp2 = False ; |
d14a1e28 RD |
6500 | PyObject * obj0 = 0 ; |
6501 | PyObject * obj1 = 0 ; | |
6502 | char *kwnames[] = { | |
6503 | (char *) "self",(char *) "location", NULL | |
6504 | }; | |
6505 | ||
6506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
6507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6508 | { | |
6509 | arg2 = wxString_in_helper(obj1); | |
6510 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6511 | temp2 = True; |
d14a1e28 RD |
6512 | } |
6513 | { | |
6514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6515 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6516 | ||
6517 | wxPyEndAllowThreads(__tstate); | |
6518 | if (PyErr_Occurred()) SWIG_fail; | |
6519 | } | |
6520 | { | |
6521 | #if wxUSE_UNICODE | |
6522 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6523 | #else | |
6524 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6525 | #endif | |
6526 | } | |
6527 | { | |
6528 | if (temp2) | |
6529 | delete arg2; | |
6530 | } | |
6531 | return resultobj; | |
6532 | fail: | |
6533 | { | |
6534 | if (temp2) | |
6535 | delete arg2; | |
6536 | } | |
6537 | return NULL; | |
6538 | } | |
6539 | ||
6540 | ||
6541 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6542 | PyObject *obj; | |
6543 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6544 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
6545 | Py_INCREF(obj); | |
6546 | return Py_BuildValue((char *)""); | |
6547 | } | |
6548 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6549 | PyObject *resultobj; | |
6550 | wxFileSystem *result; | |
6551 | char *kwnames[] = { | |
6552 | NULL | |
6553 | }; | |
6554 | ||
6555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6556 | { | |
6557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6558 | result = (wxFileSystem *)new wxFileSystem(); | |
6559 | ||
6560 | wxPyEndAllowThreads(__tstate); | |
6561 | if (PyErr_Occurred()) SWIG_fail; | |
6562 | } | |
6563 | { | |
6564 | resultobj = wxPyMake_wxObject(result); | |
6565 | } | |
6566 | return resultobj; | |
6567 | fail: | |
6568 | return NULL; | |
6569 | } | |
6570 | ||
6571 | ||
6572 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6573 | PyObject *resultobj; | |
6574 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6575 | PyObject * obj0 = 0 ; | |
6576 | char *kwnames[] = { | |
6577 | (char *) "self", NULL | |
6578 | }; | |
6579 | ||
6580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
6581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6582 | { | |
6583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6584 | delete arg1; | |
6585 | ||
6586 | wxPyEndAllowThreads(__tstate); | |
6587 | if (PyErr_Occurred()) SWIG_fail; | |
6588 | } | |
6589 | Py_INCREF(Py_None); resultobj = Py_None; | |
6590 | return resultobj; | |
6591 | fail: | |
6592 | return NULL; | |
6593 | } | |
6594 | ||
6595 | ||
6596 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6597 | PyObject *resultobj; | |
6598 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6599 | wxString *arg2 = 0 ; | |
423f194a RD |
6600 | bool arg3 = (bool) False ; |
6601 | bool temp2 = False ; | |
d14a1e28 RD |
6602 | PyObject * obj0 = 0 ; |
6603 | PyObject * obj1 = 0 ; | |
6604 | PyObject * obj2 = 0 ; | |
6605 | char *kwnames[] = { | |
6606 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
6607 | }; | |
6608 | ||
6609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6611 | { | |
6612 | arg2 = wxString_in_helper(obj1); | |
6613 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6614 | temp2 = True; |
d14a1e28 RD |
6615 | } |
6616 | if (obj2) { | |
83448d71 | 6617 | { |
8edf1c75 | 6618 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
6619 | if (PyErr_Occurred()) SWIG_fail; |
6620 | } | |
d14a1e28 RD |
6621 | } |
6622 | { | |
6623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6624 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
6625 | ||
6626 | wxPyEndAllowThreads(__tstate); | |
6627 | if (PyErr_Occurred()) SWIG_fail; | |
6628 | } | |
6629 | Py_INCREF(Py_None); resultobj = Py_None; | |
6630 | { | |
6631 | if (temp2) | |
6632 | delete arg2; | |
6633 | } | |
6634 | return resultobj; | |
6635 | fail: | |
6636 | { | |
6637 | if (temp2) | |
6638 | delete arg2; | |
6639 | } | |
6640 | return NULL; | |
6641 | } | |
6642 | ||
6643 | ||
6644 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6645 | PyObject *resultobj; | |
6646 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6647 | wxString result; | |
6648 | PyObject * obj0 = 0 ; | |
6649 | char *kwnames[] = { | |
6650 | (char *) "self", NULL | |
6651 | }; | |
6652 | ||
6653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
6654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6655 | { | |
6656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6657 | result = (arg1)->GetPath(); | |
6658 | ||
6659 | wxPyEndAllowThreads(__tstate); | |
6660 | if (PyErr_Occurred()) SWIG_fail; | |
6661 | } | |
6662 | { | |
6663 | #if wxUSE_UNICODE | |
6664 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6665 | #else | |
6666 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6667 | #endif | |
6668 | } | |
6669 | return resultobj; | |
6670 | fail: | |
6671 | return NULL; | |
6672 | } | |
6673 | ||
6674 | ||
6675 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6676 | PyObject *resultobj; | |
6677 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6678 | wxString *arg2 = 0 ; | |
6679 | wxFSFile *result; | |
423f194a | 6680 | bool temp2 = False ; |
d14a1e28 RD |
6681 | PyObject * obj0 = 0 ; |
6682 | PyObject * obj1 = 0 ; | |
6683 | char *kwnames[] = { | |
6684 | (char *) "self",(char *) "location", NULL | |
6685 | }; | |
6686 | ||
6687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
6688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6689 | { | |
6690 | arg2 = wxString_in_helper(obj1); | |
6691 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6692 | temp2 = True; |
d14a1e28 RD |
6693 | } |
6694 | { | |
6695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6696 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
6697 | ||
6698 | wxPyEndAllowThreads(__tstate); | |
6699 | if (PyErr_Occurred()) SWIG_fail; | |
6700 | } | |
6701 | { | |
6702 | resultobj = wxPyMake_wxObject(result); | |
6703 | } | |
6704 | { | |
6705 | if (temp2) | |
6706 | delete arg2; | |
6707 | } | |
6708 | return resultobj; | |
6709 | fail: | |
6710 | { | |
6711 | if (temp2) | |
6712 | delete arg2; | |
6713 | } | |
6714 | return NULL; | |
6715 | } | |
6716 | ||
6717 | ||
6718 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6719 | PyObject *resultobj; | |
6720 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6721 | wxString *arg2 = 0 ; | |
6722 | int arg3 = (int) 0 ; | |
6723 | wxString result; | |
423f194a | 6724 | bool temp2 = False ; |
d14a1e28 RD |
6725 | PyObject * obj0 = 0 ; |
6726 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6727 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6728 | char *kwnames[] = { |
6729 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6730 | }; | |
6731 | ||
8edf1c75 | 6732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6734 | { | |
6735 | arg2 = wxString_in_helper(obj1); | |
6736 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6737 | temp2 = True; |
d14a1e28 | 6738 | } |
8edf1c75 RD |
6739 | if (obj2) { |
6740 | { | |
6741 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6742 | if (PyErr_Occurred()) SWIG_fail; | |
6743 | } | |
6744 | } | |
d14a1e28 RD |
6745 | { |
6746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6747 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6748 | ||
6749 | wxPyEndAllowThreads(__tstate); | |
6750 | if (PyErr_Occurred()) SWIG_fail; | |
6751 | } | |
6752 | { | |
6753 | #if wxUSE_UNICODE | |
6754 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6755 | #else | |
6756 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6757 | #endif | |
6758 | } | |
6759 | { | |
6760 | if (temp2) | |
6761 | delete arg2; | |
6762 | } | |
6763 | return resultobj; | |
6764 | fail: | |
6765 | { | |
6766 | if (temp2) | |
6767 | delete arg2; | |
6768 | } | |
6769 | return NULL; | |
6770 | } | |
6771 | ||
6772 | ||
6773 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6774 | PyObject *resultobj; | |
6775 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6776 | wxString result; | |
6777 | PyObject * obj0 = 0 ; | |
6778 | char *kwnames[] = { | |
6779 | (char *) "self", NULL | |
6780 | }; | |
6781 | ||
6782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
6783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6784 | { | |
6785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6786 | result = (arg1)->FindNext(); | |
6787 | ||
6788 | wxPyEndAllowThreads(__tstate); | |
6789 | if (PyErr_Occurred()) SWIG_fail; | |
6790 | } | |
6791 | { | |
6792 | #if wxUSE_UNICODE | |
6793 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6794 | #else | |
6795 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6796 | #endif | |
6797 | } | |
6798 | return resultobj; | |
6799 | fail: | |
6800 | return NULL; | |
6801 | } | |
6802 | ||
6803 | ||
6804 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6805 | PyObject *resultobj; | |
6806 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
6807 | PyObject * obj0 = 0 ; | |
6808 | char *kwnames[] = { | |
6809 | (char *) "handler", NULL | |
6810 | }; | |
6811 | ||
6812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
6813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6814 | { | |
6815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6816 | wxFileSystem::AddHandler(arg1); | |
6817 | ||
6818 | wxPyEndAllowThreads(__tstate); | |
6819 | if (PyErr_Occurred()) SWIG_fail; | |
6820 | } | |
6821 | Py_INCREF(Py_None); resultobj = Py_None; | |
6822 | return resultobj; | |
6823 | fail: | |
6824 | return NULL; | |
6825 | } | |
6826 | ||
6827 | ||
6828 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6829 | PyObject *resultobj; | |
6830 | char *kwnames[] = { | |
6831 | NULL | |
6832 | }; | |
6833 | ||
6834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
6835 | { | |
6836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6837 | wxFileSystem::CleanUpHandlers(); | |
6838 | ||
6839 | wxPyEndAllowThreads(__tstate); | |
6840 | if (PyErr_Occurred()) SWIG_fail; | |
6841 | } | |
6842 | Py_INCREF(Py_None); resultobj = Py_None; | |
6843 | return resultobj; | |
6844 | fail: | |
6845 | return NULL; | |
6846 | } | |
6847 | ||
6848 | ||
6849 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6850 | PyObject *resultobj; | |
6851 | wxString *arg1 = 0 ; | |
6852 | wxString result; | |
423f194a | 6853 | bool temp1 = False ; |
d14a1e28 RD |
6854 | PyObject * obj0 = 0 ; |
6855 | char *kwnames[] = { | |
6856 | (char *) "filename", NULL | |
6857 | }; | |
6858 | ||
6859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
6860 | { | |
6861 | arg1 = wxString_in_helper(obj0); | |
6862 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6863 | temp1 = True; |
d14a1e28 RD |
6864 | } |
6865 | { | |
6866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6867 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
6868 | ||
6869 | wxPyEndAllowThreads(__tstate); | |
6870 | if (PyErr_Occurred()) SWIG_fail; | |
6871 | } | |
6872 | { | |
6873 | #if wxUSE_UNICODE | |
6874 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6875 | #else | |
6876 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6877 | #endif | |
6878 | } | |
6879 | { | |
6880 | if (temp1) | |
6881 | delete arg1; | |
6882 | } | |
6883 | return resultobj; | |
6884 | fail: | |
6885 | { | |
6886 | if (temp1) | |
6887 | delete arg1; | |
6888 | } | |
6889 | return NULL; | |
6890 | } | |
6891 | ||
6892 | ||
6893 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
6894 | PyObject *obj; | |
6895 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6896 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
6897 | Py_INCREF(obj); | |
6898 | return Py_BuildValue((char *)""); | |
6899 | } | |
6900 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6901 | PyObject *resultobj; | |
6902 | wxString *arg1 = 0 ; | |
6903 | wxString result; | |
423f194a | 6904 | bool temp1 = False ; |
d14a1e28 RD |
6905 | PyObject * obj0 = 0 ; |
6906 | char *kwnames[] = { | |
6907 | (char *) "url", NULL | |
6908 | }; | |
6909 | ||
6910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
6911 | { | |
6912 | arg1 = wxString_in_helper(obj0); | |
6913 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6914 | temp1 = True; |
d14a1e28 RD |
6915 | } |
6916 | { | |
6917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6918 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
6919 | ||
6920 | wxPyEndAllowThreads(__tstate); | |
6921 | if (PyErr_Occurred()) SWIG_fail; | |
6922 | } | |
6923 | { | |
6924 | #if wxUSE_UNICODE | |
6925 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6926 | #else | |
6927 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6928 | #endif | |
6929 | } | |
6930 | { | |
6931 | if (temp1) | |
6932 | delete arg1; | |
6933 | } | |
6934 | return resultobj; | |
6935 | fail: | |
6936 | { | |
6937 | if (temp1) | |
6938 | delete arg1; | |
6939 | } | |
6940 | return NULL; | |
6941 | } | |
6942 | ||
6943 | ||
6944 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6945 | PyObject *resultobj; | |
6946 | wxInternetFSHandler *result; | |
6947 | char *kwnames[] = { | |
6948 | NULL | |
6949 | }; | |
6950 | ||
6951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
6952 | { | |
6953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6954 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
6955 | ||
6956 | wxPyEndAllowThreads(__tstate); | |
6957 | if (PyErr_Occurred()) SWIG_fail; | |
6958 | } | |
6959 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInternetFSHandler, 1); | |
6960 | return resultobj; | |
6961 | fail: | |
6962 | return NULL; | |
6963 | } | |
6964 | ||
6965 | ||
6966 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6967 | PyObject *resultobj; | |
6968 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
6969 | wxString *arg2 = 0 ; | |
6970 | bool result; | |
423f194a | 6971 | bool temp2 = False ; |
d14a1e28 RD |
6972 | PyObject * obj0 = 0 ; |
6973 | PyObject * obj1 = 0 ; | |
6974 | char *kwnames[] = { | |
6975 | (char *) "self",(char *) "location", NULL | |
6976 | }; | |
6977 | ||
6978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6980 | { | |
6981 | arg2 = wxString_in_helper(obj1); | |
6982 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6983 | temp2 = True; |
d14a1e28 RD |
6984 | } |
6985 | { | |
6986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6987 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6988 | ||
6989 | wxPyEndAllowThreads(__tstate); | |
6990 | if (PyErr_Occurred()) SWIG_fail; | |
6991 | } | |
4e760a36 | 6992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6993 | { |
6994 | if (temp2) | |
6995 | delete arg2; | |
6996 | } | |
6997 | return resultobj; | |
6998 | fail: | |
6999 | { | |
7000 | if (temp2) | |
7001 | delete arg2; | |
7002 | } | |
7003 | return NULL; | |
7004 | } | |
7005 | ||
7006 | ||
7007 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7008 | PyObject *resultobj; | |
7009 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7010 | wxFileSystem *arg2 = 0 ; | |
7011 | wxString *arg3 = 0 ; | |
7012 | wxFSFile *result; | |
423f194a | 7013 | bool temp3 = False ; |
d14a1e28 RD |
7014 | PyObject * obj0 = 0 ; |
7015 | PyObject * obj1 = 0 ; | |
7016 | PyObject * obj2 = 0 ; | |
7017 | char *kwnames[] = { | |
7018 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7019 | }; | |
7020 | ||
7021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7023 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7024 | if (arg2 == NULL) { | |
7025 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7026 | } | |
7027 | { | |
7028 | arg3 = wxString_in_helper(obj2); | |
7029 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7030 | temp3 = True; |
d14a1e28 RD |
7031 | } |
7032 | { | |
7033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7034 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7035 | ||
7036 | wxPyEndAllowThreads(__tstate); | |
7037 | if (PyErr_Occurred()) SWIG_fail; | |
7038 | } | |
7039 | { | |
7040 | resultobj = wxPyMake_wxObject(result); | |
7041 | } | |
7042 | { | |
7043 | if (temp3) | |
7044 | delete arg3; | |
7045 | } | |
7046 | return resultobj; | |
7047 | fail: | |
7048 | { | |
7049 | if (temp3) | |
7050 | delete arg3; | |
7051 | } | |
7052 | return NULL; | |
7053 | } | |
7054 | ||
7055 | ||
7056 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7057 | PyObject *obj; | |
7058 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7059 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7060 | Py_INCREF(obj); | |
7061 | return Py_BuildValue((char *)""); | |
7062 | } | |
7063 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7064 | PyObject *resultobj; | |
7065 | wxZipFSHandler *result; | |
7066 | char *kwnames[] = { | |
7067 | NULL | |
7068 | }; | |
7069 | ||
7070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7071 | { | |
7072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7073 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7074 | ||
7075 | wxPyEndAllowThreads(__tstate); | |
7076 | if (PyErr_Occurred()) SWIG_fail; | |
7077 | } | |
7078 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxZipFSHandler, 1); | |
7079 | return resultobj; | |
7080 | fail: | |
7081 | return NULL; | |
7082 | } | |
7083 | ||
7084 | ||
7085 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7086 | PyObject *resultobj; | |
7087 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7088 | wxString *arg2 = 0 ; | |
7089 | bool result; | |
423f194a | 7090 | bool temp2 = False ; |
d14a1e28 RD |
7091 | PyObject * obj0 = 0 ; |
7092 | PyObject * obj1 = 0 ; | |
7093 | char *kwnames[] = { | |
7094 | (char *) "self",(char *) "location", NULL | |
7095 | }; | |
7096 | ||
7097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7099 | { | |
7100 | arg2 = wxString_in_helper(obj1); | |
7101 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7102 | temp2 = True; |
d14a1e28 RD |
7103 | } |
7104 | { | |
7105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7106 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7107 | ||
7108 | wxPyEndAllowThreads(__tstate); | |
7109 | if (PyErr_Occurred()) SWIG_fail; | |
7110 | } | |
4e760a36 | 7111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7112 | { |
7113 | if (temp2) | |
7114 | delete arg2; | |
7115 | } | |
7116 | return resultobj; | |
7117 | fail: | |
7118 | { | |
7119 | if (temp2) | |
7120 | delete arg2; | |
7121 | } | |
7122 | return NULL; | |
7123 | } | |
7124 | ||
7125 | ||
7126 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7127 | PyObject *resultobj; | |
7128 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7129 | wxFileSystem *arg2 = 0 ; | |
7130 | wxString *arg3 = 0 ; | |
7131 | wxFSFile *result; | |
423f194a | 7132 | bool temp3 = False ; |
d14a1e28 RD |
7133 | PyObject * obj0 = 0 ; |
7134 | PyObject * obj1 = 0 ; | |
7135 | PyObject * obj2 = 0 ; | |
7136 | char *kwnames[] = { | |
7137 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7138 | }; | |
7139 | ||
7140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7142 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7143 | if (arg2 == NULL) { | |
7144 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7145 | } | |
7146 | { | |
7147 | arg3 = wxString_in_helper(obj2); | |
7148 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7149 | temp3 = True; |
d14a1e28 RD |
7150 | } |
7151 | { | |
7152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7153 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7154 | ||
7155 | wxPyEndAllowThreads(__tstate); | |
7156 | if (PyErr_Occurred()) SWIG_fail; | |
7157 | } | |
7158 | { | |
7159 | resultobj = wxPyMake_wxObject(result); | |
7160 | } | |
7161 | { | |
7162 | if (temp3) | |
7163 | delete arg3; | |
7164 | } | |
7165 | return resultobj; | |
7166 | fail: | |
7167 | { | |
7168 | if (temp3) | |
7169 | delete arg3; | |
7170 | } | |
7171 | return NULL; | |
7172 | } | |
7173 | ||
7174 | ||
7175 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7176 | PyObject *resultobj; | |
7177 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7178 | wxString *arg2 = 0 ; | |
7179 | int arg3 = (int) 0 ; | |
7180 | wxString result; | |
423f194a | 7181 | bool temp2 = False ; |
d14a1e28 RD |
7182 | PyObject * obj0 = 0 ; |
7183 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7184 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7185 | char *kwnames[] = { |
7186 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7187 | }; | |
7188 | ||
8edf1c75 | 7189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7191 | { | |
7192 | arg2 = wxString_in_helper(obj1); | |
7193 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7194 | temp2 = True; |
d14a1e28 | 7195 | } |
8edf1c75 RD |
7196 | if (obj2) { |
7197 | { | |
7198 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7199 | if (PyErr_Occurred()) SWIG_fail; | |
7200 | } | |
7201 | } | |
d14a1e28 RD |
7202 | { |
7203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7204 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7205 | ||
7206 | wxPyEndAllowThreads(__tstate); | |
7207 | if (PyErr_Occurred()) SWIG_fail; | |
7208 | } | |
7209 | { | |
7210 | #if wxUSE_UNICODE | |
7211 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7212 | #else | |
7213 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7214 | #endif | |
7215 | } | |
7216 | { | |
7217 | if (temp2) | |
7218 | delete arg2; | |
7219 | } | |
7220 | return resultobj; | |
7221 | fail: | |
7222 | { | |
7223 | if (temp2) | |
7224 | delete arg2; | |
7225 | } | |
7226 | return NULL; | |
7227 | } | |
7228 | ||
7229 | ||
7230 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7231 | PyObject *resultobj; | |
7232 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7233 | wxString result; | |
7234 | PyObject * obj0 = 0 ; | |
7235 | char *kwnames[] = { | |
7236 | (char *) "self", NULL | |
7237 | }; | |
7238 | ||
7239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7241 | { | |
7242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7243 | result = (arg1)->FindNext(); | |
7244 | ||
7245 | wxPyEndAllowThreads(__tstate); | |
7246 | if (PyErr_Occurred()) SWIG_fail; | |
7247 | } | |
7248 | { | |
7249 | #if wxUSE_UNICODE | |
7250 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7251 | #else | |
7252 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7253 | #endif | |
7254 | } | |
7255 | return resultobj; | |
7256 | fail: | |
7257 | return NULL; | |
7258 | } | |
7259 | ||
7260 | ||
7261 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7262 | PyObject *obj; | |
7263 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7264 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7265 | Py_INCREF(obj); | |
7266 | return Py_BuildValue((char *)""); | |
7267 | } | |
7268 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7269 | PyObject *resultobj; | |
7270 | wxString *arg1 = 0 ; | |
7271 | wxImage *arg2 = 0 ; | |
7272 | long arg3 ; | |
423f194a | 7273 | bool temp1 = False ; |
d14a1e28 RD |
7274 | PyObject * obj0 = 0 ; |
7275 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7276 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7277 | char *kwnames[] = { |
7278 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7279 | }; | |
7280 | ||
8edf1c75 | 7281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7282 | { |
7283 | arg1 = wxString_in_helper(obj0); | |
7284 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7285 | temp1 = True; |
d14a1e28 RD |
7286 | } |
7287 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7288 | if (arg2 == NULL) { | |
7289 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7290 | } | |
8edf1c75 RD |
7291 | { |
7292 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7293 | if (PyErr_Occurred()) SWIG_fail; | |
7294 | } | |
d14a1e28 RD |
7295 | { |
7296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7297 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7298 | ||
7299 | wxPyEndAllowThreads(__tstate); | |
7300 | if (PyErr_Occurred()) SWIG_fail; | |
7301 | } | |
7302 | Py_INCREF(Py_None); resultobj = Py_None; | |
7303 | { | |
7304 | if (temp1) | |
7305 | delete arg1; | |
7306 | } | |
7307 | return resultobj; | |
7308 | fail: | |
7309 | { | |
7310 | if (temp1) | |
7311 | delete arg1; | |
7312 | } | |
7313 | return NULL; | |
7314 | } | |
7315 | ||
7316 | ||
7317 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7318 | PyObject *resultobj; | |
7319 | wxString *arg1 = 0 ; | |
7320 | wxBitmap *arg2 = 0 ; | |
7321 | long arg3 ; | |
423f194a | 7322 | bool temp1 = False ; |
d14a1e28 RD |
7323 | PyObject * obj0 = 0 ; |
7324 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7325 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7326 | char *kwnames[] = { |
7327 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7328 | }; | |
7329 | ||
8edf1c75 | 7330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7331 | { |
7332 | arg1 = wxString_in_helper(obj0); | |
7333 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7334 | temp1 = True; |
d14a1e28 RD |
7335 | } |
7336 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7337 | if (arg2 == NULL) { | |
7338 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7339 | } | |
8edf1c75 RD |
7340 | { |
7341 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7342 | if (PyErr_Occurred()) SWIG_fail; | |
7343 | } | |
d14a1e28 RD |
7344 | { |
7345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7346 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7347 | ||
7348 | wxPyEndAllowThreads(__tstate); | |
7349 | if (PyErr_Occurred()) SWIG_fail; | |
7350 | } | |
7351 | Py_INCREF(Py_None); resultobj = Py_None; | |
7352 | { | |
7353 | if (temp1) | |
7354 | delete arg1; | |
7355 | } | |
7356 | return resultobj; | |
7357 | fail: | |
7358 | { | |
7359 | if (temp1) | |
7360 | delete arg1; | |
7361 | } | |
7362 | return NULL; | |
7363 | } | |
7364 | ||
7365 | ||
7366 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7367 | PyObject *resultobj; | |
7368 | wxString *arg1 = 0 ; | |
7369 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 7370 | bool temp1 = False ; |
d14a1e28 RD |
7371 | PyObject * obj0 = 0 ; |
7372 | PyObject * obj1 = 0 ; | |
7373 | char *kwnames[] = { | |
7374 | (char *) "filename",(char *) "data", NULL | |
7375 | }; | |
7376 | ||
7377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7378 | { | |
7379 | arg1 = wxString_in_helper(obj0); | |
7380 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7381 | temp1 = True; |
d14a1e28 RD |
7382 | } |
7383 | arg2 = obj1; | |
7384 | { | |
7385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7386 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7387 | ||
7388 | wxPyEndAllowThreads(__tstate); | |
7389 | if (PyErr_Occurred()) SWIG_fail; | |
7390 | } | |
7391 | Py_INCREF(Py_None); resultobj = Py_None; | |
7392 | { | |
7393 | if (temp1) | |
7394 | delete arg1; | |
7395 | } | |
7396 | return resultobj; | |
7397 | fail: | |
7398 | { | |
7399 | if (temp1) | |
7400 | delete arg1; | |
7401 | } | |
7402 | return NULL; | |
7403 | } | |
7404 | ||
7405 | ||
7406 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7407 | PyObject *resultobj; | |
7408 | wxMemoryFSHandler *result; | |
7409 | char *kwnames[] = { | |
7410 | NULL | |
7411 | }; | |
7412 | ||
7413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7414 | { | |
7415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7416 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7417 | ||
7418 | wxPyEndAllowThreads(__tstate); | |
7419 | if (PyErr_Occurred()) SWIG_fail; | |
7420 | } | |
7421 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryFSHandler, 1); | |
7422 | return resultobj; | |
7423 | fail: | |
7424 | return NULL; | |
7425 | } | |
7426 | ||
7427 | ||
7428 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7429 | PyObject *resultobj; | |
7430 | wxString *arg1 = 0 ; | |
423f194a | 7431 | bool temp1 = False ; |
d14a1e28 RD |
7432 | PyObject * obj0 = 0 ; |
7433 | char *kwnames[] = { | |
7434 | (char *) "filename", NULL | |
7435 | }; | |
7436 | ||
7437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7438 | { | |
7439 | arg1 = wxString_in_helper(obj0); | |
7440 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7441 | temp1 = True; |
d14a1e28 RD |
7442 | } |
7443 | { | |
7444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7445 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7446 | ||
7447 | wxPyEndAllowThreads(__tstate); | |
7448 | if (PyErr_Occurred()) SWIG_fail; | |
7449 | } | |
7450 | Py_INCREF(Py_None); resultobj = Py_None; | |
7451 | { | |
7452 | if (temp1) | |
7453 | delete arg1; | |
7454 | } | |
7455 | return resultobj; | |
7456 | fail: | |
7457 | { | |
7458 | if (temp1) | |
7459 | delete arg1; | |
7460 | } | |
7461 | return NULL; | |
7462 | } | |
7463 | ||
7464 | ||
7465 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7466 | PyObject *resultobj; | |
7467 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7468 | wxString *arg2 = 0 ; | |
7469 | bool result; | |
423f194a | 7470 | bool temp2 = False ; |
d14a1e28 RD |
7471 | PyObject * obj0 = 0 ; |
7472 | PyObject * obj1 = 0 ; | |
7473 | char *kwnames[] = { | |
7474 | (char *) "self",(char *) "location", NULL | |
7475 | }; | |
7476 | ||
7477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7479 | { | |
7480 | arg2 = wxString_in_helper(obj1); | |
7481 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7482 | temp2 = True; |
d14a1e28 RD |
7483 | } |
7484 | { | |
7485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7486 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7487 | ||
7488 | wxPyEndAllowThreads(__tstate); | |
7489 | if (PyErr_Occurred()) SWIG_fail; | |
7490 | } | |
4e760a36 | 7491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7492 | { |
7493 | if (temp2) | |
7494 | delete arg2; | |
7495 | } | |
7496 | return resultobj; | |
7497 | fail: | |
7498 | { | |
7499 | if (temp2) | |
7500 | delete arg2; | |
7501 | } | |
7502 | return NULL; | |
7503 | } | |
7504 | ||
7505 | ||
7506 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7507 | PyObject *resultobj; | |
7508 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7509 | wxFileSystem *arg2 = 0 ; | |
7510 | wxString *arg3 = 0 ; | |
7511 | wxFSFile *result; | |
423f194a | 7512 | bool temp3 = False ; |
d14a1e28 RD |
7513 | PyObject * obj0 = 0 ; |
7514 | PyObject * obj1 = 0 ; | |
7515 | PyObject * obj2 = 0 ; | |
7516 | char *kwnames[] = { | |
7517 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7518 | }; | |
7519 | ||
7520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7522 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7523 | if (arg2 == NULL) { | |
7524 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7525 | } | |
7526 | { | |
7527 | arg3 = wxString_in_helper(obj2); | |
7528 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7529 | temp3 = True; |
d14a1e28 RD |
7530 | } |
7531 | { | |
7532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7533 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7534 | ||
7535 | wxPyEndAllowThreads(__tstate); | |
7536 | if (PyErr_Occurred()) SWIG_fail; | |
7537 | } | |
7538 | { | |
7539 | resultobj = wxPyMake_wxObject(result); | |
7540 | } | |
7541 | { | |
7542 | if (temp3) | |
7543 | delete arg3; | |
7544 | } | |
7545 | return resultobj; | |
7546 | fail: | |
7547 | { | |
7548 | if (temp3) | |
7549 | delete arg3; | |
7550 | } | |
7551 | return NULL; | |
7552 | } | |
7553 | ||
7554 | ||
7555 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7556 | PyObject *resultobj; | |
7557 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7558 | wxString *arg2 = 0 ; | |
7559 | int arg3 = (int) 0 ; | |
7560 | wxString result; | |
423f194a | 7561 | bool temp2 = False ; |
d14a1e28 RD |
7562 | PyObject * obj0 = 0 ; |
7563 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7564 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7565 | char *kwnames[] = { |
7566 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7567 | }; | |
7568 | ||
8edf1c75 | 7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7571 | { | |
7572 | arg2 = wxString_in_helper(obj1); | |
7573 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7574 | temp2 = True; |
d14a1e28 | 7575 | } |
8edf1c75 RD |
7576 | if (obj2) { |
7577 | { | |
7578 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7579 | if (PyErr_Occurred()) SWIG_fail; | |
7580 | } | |
7581 | } | |
d14a1e28 RD |
7582 | { |
7583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7584 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7585 | ||
7586 | wxPyEndAllowThreads(__tstate); | |
7587 | if (PyErr_Occurred()) SWIG_fail; | |
7588 | } | |
7589 | { | |
7590 | #if wxUSE_UNICODE | |
7591 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7592 | #else | |
7593 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7594 | #endif | |
7595 | } | |
7596 | { | |
7597 | if (temp2) | |
7598 | delete arg2; | |
7599 | } | |
7600 | return resultobj; | |
7601 | fail: | |
7602 | { | |
7603 | if (temp2) | |
7604 | delete arg2; | |
7605 | } | |
7606 | return NULL; | |
7607 | } | |
7608 | ||
7609 | ||
7610 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7611 | PyObject *resultobj; | |
7612 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7613 | wxString result; | |
7614 | PyObject * obj0 = 0 ; | |
7615 | char *kwnames[] = { | |
7616 | (char *) "self", NULL | |
7617 | }; | |
7618 | ||
7619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7621 | { | |
7622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7623 | result = (arg1)->FindNext(); | |
7624 | ||
7625 | wxPyEndAllowThreads(__tstate); | |
7626 | if (PyErr_Occurred()) SWIG_fail; | |
7627 | } | |
7628 | { | |
7629 | #if wxUSE_UNICODE | |
7630 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7631 | #else | |
7632 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7633 | #endif | |
7634 | } | |
7635 | return resultobj; | |
7636 | fail: | |
7637 | return NULL; | |
7638 | } | |
7639 | ||
7640 | ||
7641 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7642 | PyObject *obj; | |
7643 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7644 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
7645 | Py_INCREF(obj); | |
7646 | return Py_BuildValue((char *)""); | |
7647 | } | |
7648 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7649 | PyObject *resultobj; | |
7650 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7651 | wxString result; | |
7652 | PyObject * obj0 = 0 ; | |
7653 | char *kwnames[] = { | |
7654 | (char *) "self", NULL | |
7655 | }; | |
7656 | ||
7657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
7658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7659 | { | |
7660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7661 | result = (arg1)->GetName(); | |
7662 | ||
7663 | wxPyEndAllowThreads(__tstate); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | } | |
7666 | { | |
7667 | #if wxUSE_UNICODE | |
7668 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7669 | #else | |
7670 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7671 | #endif | |
7672 | } | |
7673 | return resultobj; | |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
7679 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7680 | PyObject *resultobj; | |
7681 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7682 | wxString result; | |
7683 | PyObject * obj0 = 0 ; | |
7684 | char *kwnames[] = { | |
7685 | (char *) "self", NULL | |
7686 | }; | |
7687 | ||
7688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
7689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7690 | { | |
7691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7692 | result = (arg1)->GetExtension(); | |
7693 | ||
7694 | wxPyEndAllowThreads(__tstate); | |
7695 | if (PyErr_Occurred()) SWIG_fail; | |
7696 | } | |
7697 | { | |
7698 | #if wxUSE_UNICODE | |
7699 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7700 | #else | |
7701 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7702 | #endif | |
7703 | } | |
7704 | return resultobj; | |
7705 | fail: | |
7706 | return NULL; | |
7707 | } | |
7708 | ||
7709 | ||
7710 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7711 | PyObject *resultobj; | |
7712 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7713 | long result; | |
7714 | PyObject * obj0 = 0 ; | |
7715 | char *kwnames[] = { | |
7716 | (char *) "self", NULL | |
7717 | }; | |
7718 | ||
7719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
7720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7721 | { | |
7722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7723 | result = (long)(arg1)->GetType(); | |
7724 | ||
7725 | wxPyEndAllowThreads(__tstate); | |
7726 | if (PyErr_Occurred()) SWIG_fail; | |
7727 | } | |
8edf1c75 | 7728 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7729 | return resultobj; |
7730 | fail: | |
7731 | return NULL; | |
7732 | } | |
7733 | ||
7734 | ||
7735 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7736 | PyObject *resultobj; | |
7737 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7738 | wxString result; | |
7739 | PyObject * obj0 = 0 ; | |
7740 | char *kwnames[] = { | |
7741 | (char *) "self", NULL | |
7742 | }; | |
7743 | ||
7744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
7745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7746 | { | |
7747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7748 | result = (arg1)->GetMimeType(); | |
7749 | ||
7750 | wxPyEndAllowThreads(__tstate); | |
7751 | if (PyErr_Occurred()) SWIG_fail; | |
7752 | } | |
7753 | { | |
7754 | #if wxUSE_UNICODE | |
7755 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7756 | #else | |
7757 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7758 | #endif | |
7759 | } | |
7760 | return resultobj; | |
7761 | fail: | |
7762 | return NULL; | |
7763 | } | |
7764 | ||
7765 | ||
7766 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7767 | PyObject *resultobj; | |
7768 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7769 | wxString *arg2 = 0 ; | |
7770 | bool result; | |
423f194a | 7771 | bool temp2 = False ; |
d14a1e28 RD |
7772 | PyObject * obj0 = 0 ; |
7773 | PyObject * obj1 = 0 ; | |
7774 | char *kwnames[] = { | |
7775 | (char *) "self",(char *) "name", NULL | |
7776 | }; | |
7777 | ||
7778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
7779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7780 | { | |
7781 | arg2 = wxString_in_helper(obj1); | |
7782 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7783 | temp2 = True; |
d14a1e28 RD |
7784 | } |
7785 | { | |
7786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7787 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
7788 | ||
7789 | wxPyEndAllowThreads(__tstate); | |
7790 | if (PyErr_Occurred()) SWIG_fail; | |
7791 | } | |
4e760a36 | 7792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7793 | { |
7794 | if (temp2) | |
7795 | delete arg2; | |
7796 | } | |
7797 | return resultobj; | |
7798 | fail: | |
7799 | { | |
7800 | if (temp2) | |
7801 | delete arg2; | |
7802 | } | |
7803 | return NULL; | |
7804 | } | |
7805 | ||
7806 | ||
7807 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7808 | PyObject *resultobj; | |
7809 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7810 | wxString *arg2 = 0 ; | |
423f194a | 7811 | bool temp2 = False ; |
d14a1e28 RD |
7812 | PyObject * obj0 = 0 ; |
7813 | PyObject * obj1 = 0 ; | |
7814 | char *kwnames[] = { | |
7815 | (char *) "self",(char *) "name", NULL | |
7816 | }; | |
7817 | ||
7818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
7819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7820 | { | |
7821 | arg2 = wxString_in_helper(obj1); | |
7822 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7823 | temp2 = True; |
d14a1e28 RD |
7824 | } |
7825 | { | |
7826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7827 | (arg1)->SetName((wxString const &)*arg2); | |
7828 | ||
7829 | wxPyEndAllowThreads(__tstate); | |
7830 | if (PyErr_Occurred()) SWIG_fail; | |
7831 | } | |
7832 | Py_INCREF(Py_None); resultobj = Py_None; | |
7833 | { | |
7834 | if (temp2) | |
7835 | delete arg2; | |
7836 | } | |
7837 | return resultobj; | |
7838 | fail: | |
7839 | { | |
7840 | if (temp2) | |
7841 | delete arg2; | |
7842 | } | |
7843 | return NULL; | |
7844 | } | |
7845 | ||
7846 | ||
7847 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7848 | PyObject *resultobj; | |
7849 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7850 | wxString *arg2 = 0 ; | |
423f194a | 7851 | bool temp2 = False ; |
d14a1e28 RD |
7852 | PyObject * obj0 = 0 ; |
7853 | PyObject * obj1 = 0 ; | |
7854 | char *kwnames[] = { | |
7855 | (char *) "self",(char *) "extension", NULL | |
7856 | }; | |
7857 | ||
7858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
7859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7860 | { | |
7861 | arg2 = wxString_in_helper(obj1); | |
7862 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7863 | temp2 = True; |
d14a1e28 RD |
7864 | } |
7865 | { | |
7866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7867 | (arg1)->SetExtension((wxString const &)*arg2); | |
7868 | ||
7869 | wxPyEndAllowThreads(__tstate); | |
7870 | if (PyErr_Occurred()) SWIG_fail; | |
7871 | } | |
7872 | Py_INCREF(Py_None); resultobj = Py_None; | |
7873 | { | |
7874 | if (temp2) | |
7875 | delete arg2; | |
7876 | } | |
7877 | return resultobj; | |
7878 | fail: | |
7879 | { | |
7880 | if (temp2) | |
7881 | delete arg2; | |
7882 | } | |
7883 | return NULL; | |
7884 | } | |
7885 | ||
7886 | ||
7887 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7888 | PyObject *resultobj; | |
7889 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7890 | long arg2 ; | |
7891 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7892 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7893 | char *kwnames[] = { |
7894 | (char *) "self",(char *) "type", NULL | |
7895 | }; | |
7896 | ||
8edf1c75 | 7897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7899 | { |
7900 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7901 | if (PyErr_Occurred()) SWIG_fail; | |
7902 | } | |
d14a1e28 RD |
7903 | { |
7904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7905 | (arg1)->SetType(arg2); | |
7906 | ||
7907 | wxPyEndAllowThreads(__tstate); | |
7908 | if (PyErr_Occurred()) SWIG_fail; | |
7909 | } | |
7910 | Py_INCREF(Py_None); resultobj = Py_None; | |
7911 | return resultobj; | |
7912 | fail: | |
7913 | return NULL; | |
7914 | } | |
7915 | ||
7916 | ||
7917 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7918 | PyObject *resultobj; | |
7919 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7920 | wxString *arg2 = 0 ; | |
423f194a | 7921 | bool temp2 = False ; |
d14a1e28 RD |
7922 | PyObject * obj0 = 0 ; |
7923 | PyObject * obj1 = 0 ; | |
7924 | char *kwnames[] = { | |
7925 | (char *) "self",(char *) "mimetype", NULL | |
7926 | }; | |
7927 | ||
7928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
7929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7930 | { | |
7931 | arg2 = wxString_in_helper(obj1); | |
7932 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7933 | temp2 = True; |
d14a1e28 RD |
7934 | } |
7935 | { | |
7936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7937 | (arg1)->SetMimeType((wxString const &)*arg2); | |
7938 | ||
7939 | wxPyEndAllowThreads(__tstate); | |
7940 | if (PyErr_Occurred()) SWIG_fail; | |
7941 | } | |
7942 | Py_INCREF(Py_None); resultobj = Py_None; | |
7943 | { | |
7944 | if (temp2) | |
7945 | delete arg2; | |
7946 | } | |
7947 | return resultobj; | |
7948 | fail: | |
7949 | { | |
7950 | if (temp2) | |
7951 | delete arg2; | |
7952 | } | |
7953 | return NULL; | |
7954 | } | |
7955 | ||
7956 | ||
7957 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
7958 | PyObject *obj; | |
7959 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7960 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
7961 | Py_INCREF(obj); | |
7962 | return Py_BuildValue((char *)""); | |
7963 | } | |
7964 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7965 | PyObject *resultobj; | |
7966 | wxImageHistogram *result; | |
7967 | char *kwnames[] = { | |
7968 | NULL | |
7969 | }; | |
7970 | ||
7971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
7972 | { | |
7973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7974 | result = (wxImageHistogram *)new wxImageHistogram(); | |
7975 | ||
7976 | wxPyEndAllowThreads(__tstate); | |
7977 | if (PyErr_Occurred()) SWIG_fail; | |
7978 | } | |
7979 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImageHistogram, 1); | |
7980 | return resultobj; | |
7981 | fail: | |
7982 | return NULL; | |
7983 | } | |
7984 | ||
7985 | ||
7986 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7987 | PyObject *resultobj; | |
7988 | unsigned char arg1 ; | |
7989 | unsigned char arg2 ; | |
7990 | unsigned char arg3 ; | |
7991 | unsigned long result; | |
7992 | PyObject * obj0 = 0 ; | |
7993 | PyObject * obj1 = 0 ; | |
7994 | PyObject * obj2 = 0 ; | |
7995 | char *kwnames[] = { | |
7996 | (char *) "r",(char *) "g",(char *) "b", NULL | |
7997 | }; | |
7998 | ||
7999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
83448d71 | 8000 | { |
8edf1c75 | 8001 | arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0); |
83448d71 RD |
8002 | if (PyErr_Occurred()) SWIG_fail; |
8003 | } | |
8004 | { | |
8edf1c75 | 8005 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
8006 | if (PyErr_Occurred()) SWIG_fail; |
8007 | } | |
8008 | { | |
8edf1c75 | 8009 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
8010 | if (PyErr_Occurred()) SWIG_fail; |
8011 | } | |
d14a1e28 RD |
8012 | { |
8013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8014 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8015 | ||
8016 | wxPyEndAllowThreads(__tstate); | |
8017 | if (PyErr_Occurred()) SWIG_fail; | |
8018 | } | |
8edf1c75 | 8019 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8020 | return resultobj; |
8021 | fail: | |
8022 | return NULL; | |
8023 | } | |
8024 | ||
8025 | ||
8026 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8027 | PyObject *resultobj; | |
8028 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8029 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8030 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8031 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8032 | unsigned char arg5 = (unsigned char) 1 ; | |
8033 | unsigned char arg6 = (unsigned char) 0 ; | |
8034 | unsigned char arg7 = (unsigned char) 0 ; | |
8035 | bool result; | |
8036 | unsigned char temp2 ; | |
8037 | unsigned char temp3 ; | |
8038 | unsigned char temp4 ; | |
8039 | PyObject * obj0 = 0 ; | |
8040 | PyObject * obj1 = 0 ; | |
8041 | PyObject * obj2 = 0 ; | |
8042 | PyObject * obj3 = 0 ; | |
8043 | char *kwnames[] = { | |
8044 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8045 | }; | |
8046 | ||
8047 | arg2 = &temp2; | |
8048 | arg3 = &temp3; | |
8049 | arg4 = &temp4; | |
8050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8052 | if (obj1) { | |
83448d71 | 8053 | { |
8edf1c75 | 8054 | arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
8055 | if (PyErr_Occurred()) SWIG_fail; |
8056 | } | |
d14a1e28 RD |
8057 | } |
8058 | if (obj2) { | |
83448d71 | 8059 | { |
8edf1c75 | 8060 | arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
8061 | if (PyErr_Occurred()) SWIG_fail; |
8062 | } | |
d14a1e28 RD |
8063 | } |
8064 | if (obj3) { | |
83448d71 | 8065 | { |
8edf1c75 | 8066 | arg7 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
8067 | if (PyErr_Occurred()) SWIG_fail; |
8068 | } | |
d14a1e28 RD |
8069 | } |
8070 | { | |
8071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8072 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8073 | ||
8074 | wxPyEndAllowThreads(__tstate); | |
8075 | if (PyErr_Occurred()) SWIG_fail; | |
8076 | } | |
4e760a36 | 8077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8078 | { |
8079 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8080 | resultobj = t_output_helper(resultobj,o); | |
8081 | } | |
8082 | { | |
8083 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8084 | resultobj = t_output_helper(resultobj,o); | |
8085 | } | |
8086 | { | |
8087 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8088 | resultobj = t_output_helper(resultobj,o); | |
8089 | } | |
8090 | return resultobj; | |
8091 | fail: | |
8092 | return NULL; | |
8093 | } | |
8094 | ||
8095 | ||
8096 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8097 | PyObject *obj; | |
8098 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8099 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8100 | Py_INCREF(obj); | |
8101 | return Py_BuildValue((char *)""); | |
8102 | } | |
8103 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8104 | PyObject *resultobj; | |
8105 | wxString *arg1 = 0 ; | |
8106 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8107 | int arg3 = (int) -1 ; | |
8108 | wxImage *result; | |
423f194a | 8109 | bool temp1 = False ; |
d14a1e28 | 8110 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
8111 | PyObject * obj1 = 0 ; |
8112 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8113 | char *kwnames[] = { |
8114 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8115 | }; | |
8116 | ||
8edf1c75 | 8117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8118 | { |
8119 | arg1 = wxString_in_helper(obj0); | |
8120 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8121 | temp1 = True; |
d14a1e28 | 8122 | } |
8edf1c75 RD |
8123 | if (obj1) { |
8124 | { | |
8125 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8126 | if (PyErr_Occurred()) SWIG_fail; | |
8127 | } | |
8128 | } | |
8129 | if (obj2) { | |
8130 | { | |
8131 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8132 | if (PyErr_Occurred()) SWIG_fail; | |
8133 | } | |
8134 | } | |
d14a1e28 RD |
8135 | { |
8136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8137 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8138 | ||
8139 | wxPyEndAllowThreads(__tstate); | |
8140 | if (PyErr_Occurred()) SWIG_fail; | |
8141 | } | |
8142 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8143 | { | |
8144 | if (temp1) | |
8145 | delete arg1; | |
8146 | } | |
8147 | return resultobj; | |
8148 | fail: | |
8149 | { | |
8150 | if (temp1) | |
8151 | delete arg1; | |
8152 | } | |
8153 | return NULL; | |
8154 | } | |
8155 | ||
8156 | ||
8157 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8158 | PyObject *resultobj; | |
8159 | wxImage *arg1 = (wxImage *) 0 ; | |
8160 | PyObject * obj0 = 0 ; | |
8161 | char *kwnames[] = { | |
8162 | (char *) "self", NULL | |
8163 | }; | |
8164 | ||
8165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
8166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8167 | { | |
8168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8169 | delete arg1; | |
8170 | ||
8171 | wxPyEndAllowThreads(__tstate); | |
8172 | if (PyErr_Occurred()) SWIG_fail; | |
8173 | } | |
8174 | Py_INCREF(Py_None); resultobj = Py_None; | |
8175 | return resultobj; | |
8176 | fail: | |
8177 | return NULL; | |
8178 | } | |
8179 | ||
8180 | ||
8181 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8182 | PyObject *resultobj; | |
8183 | wxString *arg1 = 0 ; | |
8184 | wxString *arg2 = 0 ; | |
8185 | int arg3 = (int) -1 ; | |
8186 | wxImage *result; | |
423f194a RD |
8187 | bool temp1 = False ; |
8188 | bool temp2 = False ; | |
d14a1e28 RD |
8189 | PyObject * obj0 = 0 ; |
8190 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8191 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8192 | char *kwnames[] = { |
8193 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8194 | }; | |
8195 | ||
8edf1c75 | 8196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8197 | { |
8198 | arg1 = wxString_in_helper(obj0); | |
8199 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8200 | temp1 = True; |
d14a1e28 RD |
8201 | } |
8202 | { | |
8203 | arg2 = wxString_in_helper(obj1); | |
8204 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8205 | temp2 = True; |
d14a1e28 | 8206 | } |
8edf1c75 RD |
8207 | if (obj2) { |
8208 | { | |
8209 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8210 | if (PyErr_Occurred()) SWIG_fail; | |
8211 | } | |
8212 | } | |
d14a1e28 RD |
8213 | { |
8214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8215 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8216 | ||
8217 | wxPyEndAllowThreads(__tstate); | |
8218 | if (PyErr_Occurred()) SWIG_fail; | |
8219 | } | |
8220 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8221 | { | |
8222 | if (temp1) | |
8223 | delete arg1; | |
8224 | } | |
8225 | { | |
8226 | if (temp2) | |
8227 | delete arg2; | |
8228 | } | |
8229 | return resultobj; | |
8230 | fail: | |
8231 | { | |
8232 | if (temp1) | |
8233 | delete arg1; | |
8234 | } | |
8235 | { | |
8236 | if (temp2) | |
8237 | delete arg2; | |
8238 | } | |
8239 | return NULL; | |
8240 | } | |
8241 | ||
8242 | ||
8243 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8244 | PyObject *resultobj; | |
8245 | wxInputStream *arg1 = 0 ; | |
8246 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8247 | int arg3 = (int) -1 ; | |
8248 | wxImage *result; | |
8249 | wxPyInputStream *temp1 ; | |
8250 | bool created1 ; | |
8251 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8252 | PyObject * obj1 = 0 ; |
8253 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8254 | char *kwnames[] = { |
8255 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8256 | }; | |
8257 | ||
8edf1c75 | 8258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8259 | { |
8260 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8261 | arg1 = temp1->m_wxis; | |
423f194a | 8262 | created1 = False; |
d14a1e28 RD |
8263 | } else { |
8264 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8265 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8266 | if (arg1 == NULL) { |
8267 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8268 | SWIG_fail; | |
8269 | } | |
423f194a | 8270 | created1 = True; |
d14a1e28 RD |
8271 | } |
8272 | } | |
8edf1c75 RD |
8273 | if (obj1) { |
8274 | { | |
8275 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8276 | if (PyErr_Occurred()) SWIG_fail; | |
8277 | } | |
8278 | } | |
8279 | if (obj2) { | |
8280 | { | |
8281 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8282 | if (PyErr_Occurred()) SWIG_fail; | |
8283 | } | |
8284 | } | |
d14a1e28 RD |
8285 | { |
8286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8287 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8288 | ||
8289 | wxPyEndAllowThreads(__tstate); | |
8290 | if (PyErr_Occurred()) SWIG_fail; | |
8291 | } | |
8292 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8293 | { | |
8294 | if (created1) | |
8295 | delete arg1; | |
8296 | } | |
8297 | return resultobj; | |
8298 | fail: | |
8299 | { | |
8300 | if (created1) | |
8301 | delete arg1; | |
8302 | } | |
8303 | return NULL; | |
8304 | } | |
8305 | ||
8306 | ||
8307 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8308 | PyObject *resultobj; | |
8309 | wxInputStream *arg1 = 0 ; | |
8310 | wxString *arg2 = 0 ; | |
8311 | int arg3 = (int) -1 ; | |
8312 | wxImage *result; | |
8313 | wxPyInputStream *temp1 ; | |
8314 | bool created1 ; | |
423f194a | 8315 | bool temp2 = False ; |
d14a1e28 RD |
8316 | PyObject * obj0 = 0 ; |
8317 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8318 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8319 | char *kwnames[] = { |
8320 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8321 | }; | |
8322 | ||
8edf1c75 | 8323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8324 | { |
8325 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8326 | arg1 = temp1->m_wxis; | |
423f194a | 8327 | created1 = False; |
d14a1e28 RD |
8328 | } else { |
8329 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8330 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8331 | if (arg1 == NULL) { |
8332 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8333 | SWIG_fail; | |
8334 | } | |
423f194a | 8335 | created1 = True; |
d14a1e28 RD |
8336 | } |
8337 | } | |
8338 | { | |
8339 | arg2 = wxString_in_helper(obj1); | |
8340 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8341 | temp2 = True; |
d14a1e28 | 8342 | } |
8edf1c75 RD |
8343 | if (obj2) { |
8344 | { | |
8345 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8346 | if (PyErr_Occurred()) SWIG_fail; | |
8347 | } | |
8348 | } | |
d14a1e28 RD |
8349 | { |
8350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8351 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8352 | ||
8353 | wxPyEndAllowThreads(__tstate); | |
8354 | if (PyErr_Occurred()) SWIG_fail; | |
8355 | } | |
8356 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8357 | { | |
8358 | if (created1) | |
8359 | delete arg1; | |
8360 | } | |
8361 | { | |
8362 | if (temp2) | |
8363 | delete arg2; | |
8364 | } | |
8365 | return resultobj; | |
8366 | fail: | |
8367 | { | |
8368 | if (created1) | |
8369 | delete arg1; | |
8370 | } | |
8371 | { | |
8372 | if (temp2) | |
8373 | delete arg2; | |
8374 | } | |
8375 | return NULL; | |
8376 | } | |
8377 | ||
8378 | ||
8379 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8380 | PyObject *resultobj; | |
8381 | int arg1 = (int) 0 ; | |
8382 | int arg2 = (int) 0 ; | |
423f194a | 8383 | bool arg3 = (bool) True ; |
d14a1e28 | 8384 | wxImage *result; |
8edf1c75 RD |
8385 | PyObject * obj0 = 0 ; |
8386 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8387 | PyObject * obj2 = 0 ; |
8388 | char *kwnames[] = { | |
8389 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8390 | }; | |
8391 | ||
8edf1c75 RD |
8392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8393 | if (obj0) { | |
8394 | { | |
8395 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8396 | if (PyErr_Occurred()) SWIG_fail; | |
8397 | } | |
8398 | } | |
8399 | if (obj1) { | |
8400 | { | |
8401 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8402 | if (PyErr_Occurred()) SWIG_fail; | |
8403 | } | |
8404 | } | |
d14a1e28 | 8405 | if (obj2) { |
83448d71 | 8406 | { |
8edf1c75 | 8407 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
8408 | if (PyErr_Occurred()) SWIG_fail; |
8409 | } | |
d14a1e28 RD |
8410 | } |
8411 | { | |
8412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8413 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8414 | ||
8415 | wxPyEndAllowThreads(__tstate); | |
8416 | if (PyErr_Occurred()) SWIG_fail; | |
8417 | } | |
8418 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8419 | return resultobj; | |
8420 | fail: | |
8421 | return NULL; | |
8422 | } | |
8423 | ||
8424 | ||
8425 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8426 | PyObject *resultobj; | |
8427 | wxBitmap *arg1 = 0 ; | |
8428 | wxImage *result; | |
8429 | PyObject * obj0 = 0 ; | |
8430 | char *kwnames[] = { | |
8431 | (char *) "bitmap", NULL | |
8432 | }; | |
8433 | ||
8434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
8435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8436 | if (arg1 == NULL) { | |
8437 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8438 | } | |
8439 | { | |
8440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8441 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8442 | ||
8443 | wxPyEndAllowThreads(__tstate); | |
8444 | if (PyErr_Occurred()) SWIG_fail; | |
8445 | } | |
8446 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8447 | return resultobj; | |
8448 | fail: | |
8449 | return NULL; | |
8450 | } | |
8451 | ||
8452 | ||
8453 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8454 | PyObject *resultobj; | |
8455 | int arg1 ; | |
8456 | int arg2 ; | |
8457 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8458 | wxImage *result; | |
8edf1c75 RD |
8459 | PyObject * obj0 = 0 ; |
8460 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8461 | PyObject * obj2 = 0 ; |
8462 | char *kwnames[] = { | |
8463 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8464 | }; | |
8465 | ||
8edf1c75 RD |
8466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8467 | { | |
8468 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8469 | if (PyErr_Occurred()) SWIG_fail; | |
8470 | } | |
8471 | { | |
8472 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8473 | if (PyErr_Occurred()) SWIG_fail; | |
8474 | } | |
d14a1e28 RD |
8475 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8476 | { | |
8477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8478 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8479 | ||
8480 | wxPyEndAllowThreads(__tstate); | |
8481 | if (PyErr_Occurred()) SWIG_fail; | |
8482 | } | |
8483 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8484 | return resultobj; | |
8485 | fail: | |
8486 | return NULL; | |
8487 | } | |
8488 | ||
8489 | ||
8490 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8491 | PyObject *resultobj; | |
8492 | wxImage *arg1 = (wxImage *) 0 ; | |
8493 | int arg2 ; | |
8494 | int arg3 ; | |
8495 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8496 | PyObject * obj1 = 0 ; |
8497 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8498 | char *kwnames[] = { |
8499 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8500 | }; | |
8501 | ||
8edf1c75 | 8502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8504 | { |
8505 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8506 | if (PyErr_Occurred()) SWIG_fail; | |
8507 | } | |
8508 | { | |
8509 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8510 | if (PyErr_Occurred()) SWIG_fail; | |
8511 | } | |
d14a1e28 RD |
8512 | { |
8513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8514 | (arg1)->Create(arg2,arg3); | |
8515 | ||
8516 | wxPyEndAllowThreads(__tstate); | |
8517 | if (PyErr_Occurred()) SWIG_fail; | |
8518 | } | |
8519 | Py_INCREF(Py_None); resultobj = Py_None; | |
8520 | return resultobj; | |
8521 | fail: | |
8522 | return NULL; | |
8523 | } | |
8524 | ||
8525 | ||
8526 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8527 | PyObject *resultobj; | |
8528 | wxImage *arg1 = (wxImage *) 0 ; | |
8529 | PyObject * obj0 = 0 ; | |
8530 | char *kwnames[] = { | |
8531 | (char *) "self", NULL | |
8532 | }; | |
8533 | ||
8534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
8535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8536 | { | |
8537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8538 | (arg1)->Destroy(); | |
8539 | ||
8540 | wxPyEndAllowThreads(__tstate); | |
8541 | if (PyErr_Occurred()) SWIG_fail; | |
8542 | } | |
8543 | Py_INCREF(Py_None); resultobj = Py_None; | |
8544 | return resultobj; | |
8545 | fail: | |
8546 | return NULL; | |
8547 | } | |
8548 | ||
8549 | ||
8550 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8551 | PyObject *resultobj; | |
8552 | wxImage *arg1 = (wxImage *) 0 ; | |
8553 | int arg2 ; | |
8554 | int arg3 ; | |
8555 | SwigValueWrapper< wxImage > result; | |
8556 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8557 | PyObject * obj1 = 0 ; |
8558 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8559 | char *kwnames[] = { |
8560 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8561 | }; | |
8562 | ||
8edf1c75 | 8563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8565 | { |
8566 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8567 | if (PyErr_Occurred()) SWIG_fail; | |
8568 | } | |
8569 | { | |
8570 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8571 | if (PyErr_Occurred()) SWIG_fail; | |
8572 | } | |
d14a1e28 RD |
8573 | { |
8574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8575 | result = (arg1)->Scale(arg2,arg3); | |
8576 | ||
8577 | wxPyEndAllowThreads(__tstate); | |
8578 | if (PyErr_Occurred()) SWIG_fail; | |
8579 | } | |
8580 | { | |
8581 | wxImage * resultptr; | |
8582 | resultptr = new wxImage((wxImage &) result); | |
8583 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8584 | } | |
8585 | return resultobj; | |
8586 | fail: | |
8587 | return NULL; | |
8588 | } | |
8589 | ||
8590 | ||
8591 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8592 | PyObject *resultobj; | |
8593 | wxImage *arg1 = (wxImage *) 0 ; | |
8594 | int arg2 ; | |
8595 | int arg3 ; | |
8596 | SwigValueWrapper< wxImage > result; | |
8597 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8598 | PyObject * obj1 = 0 ; |
8599 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8600 | char *kwnames[] = { |
8601 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
8602 | }; | |
8603 | ||
8edf1c75 | 8604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8606 | { |
8607 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8608 | if (PyErr_Occurred()) SWIG_fail; | |
8609 | } | |
8610 | { | |
8611 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8612 | if (PyErr_Occurred()) SWIG_fail; | |
8613 | } | |
d14a1e28 RD |
8614 | { |
8615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8616 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
8617 | ||
8618 | wxPyEndAllowThreads(__tstate); | |
8619 | if (PyErr_Occurred()) SWIG_fail; | |
8620 | } | |
8621 | { | |
8622 | wxImage * resultptr; | |
8623 | resultptr = new wxImage((wxImage &) result); | |
8624 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8625 | } | |
8626 | return resultobj; | |
8627 | fail: | |
8628 | return NULL; | |
8629 | } | |
8630 | ||
8631 | ||
8632 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8633 | PyObject *resultobj; | |
8634 | wxImage *arg1 = (wxImage *) 0 ; | |
8635 | int arg2 ; | |
8636 | int arg3 ; | |
8637 | wxImage *result; | |
8638 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8639 | PyObject * obj1 = 0 ; |
8640 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8641 | char *kwnames[] = { |
8642 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8643 | }; | |
8644 | ||
8edf1c75 | 8645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8647 | { |
8648 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8649 | if (PyErr_Occurred()) SWIG_fail; | |
8650 | } | |
8651 | { | |
8652 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8653 | if (PyErr_Occurred()) SWIG_fail; | |
8654 | } | |
d14a1e28 RD |
8655 | { |
8656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8657 | { | |
8658 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
8659 | result = (wxImage *) &_result_ref; | |
8660 | } | |
8661 | ||
8662 | wxPyEndAllowThreads(__tstate); | |
8663 | if (PyErr_Occurred()) SWIG_fail; | |
8664 | } | |
8665 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 0); | |
8666 | return resultobj; | |
8667 | fail: | |
8668 | return NULL; | |
8669 | } | |
8670 | ||
8671 | ||
8672 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8673 | PyObject *resultobj; | |
8674 | wxImage *arg1 = (wxImage *) 0 ; | |
8675 | int arg2 ; | |
8676 | int arg3 ; | |
8677 | unsigned char arg4 ; | |
8678 | unsigned char arg5 ; | |
8679 | unsigned char arg6 ; | |
8680 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8681 | PyObject * obj1 = 0 ; |
8682 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8683 | PyObject * obj3 = 0 ; |
8684 | PyObject * obj4 = 0 ; | |
8685 | PyObject * obj5 = 0 ; | |
8686 | char *kwnames[] = { | |
8687 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
8688 | }; | |
8689 | ||
8edf1c75 | 8690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 8691 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 8692 | { |
8edf1c75 RD |
8693 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
8694 | if (PyErr_Occurred()) SWIG_fail; | |
8695 | } | |
8696 | { | |
8697 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8698 | if (PyErr_Occurred()) SWIG_fail; | |
8699 | } | |
8700 | { | |
8701 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); | |
83448d71 RD |
8702 | if (PyErr_Occurred()) SWIG_fail; |
8703 | } | |
8704 | { | |
8edf1c75 | 8705 | arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj4); |
83448d71 RD |
8706 | if (PyErr_Occurred()) SWIG_fail; |
8707 | } | |
8708 | { | |
8edf1c75 | 8709 | arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj5); |
83448d71 RD |
8710 | if (PyErr_Occurred()) SWIG_fail; |
8711 | } | |
d14a1e28 RD |
8712 | { |
8713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8714 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
8715 | ||
8716 | wxPyEndAllowThreads(__tstate); | |
8717 | if (PyErr_Occurred()) SWIG_fail; | |
8718 | } | |
8719 | Py_INCREF(Py_None); resultobj = Py_None; | |
8720 | return resultobj; | |
8721 | fail: | |
8722 | return NULL; | |
8723 | } | |
8724 | ||
8725 | ||
8726 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8727 | PyObject *resultobj; | |
8728 | wxImage *arg1 = (wxImage *) 0 ; | |
8729 | int arg2 ; | |
8730 | int arg3 ; | |
8731 | unsigned char result; | |
8732 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8733 | PyObject * obj1 = 0 ; |
8734 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8735 | char *kwnames[] = { |
8736 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8737 | }; | |
8738 | ||
8edf1c75 | 8739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8741 | { |
8742 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8743 | if (PyErr_Occurred()) SWIG_fail; | |
8744 | } | |
8745 | { | |
8746 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8747 | if (PyErr_Occurred()) SWIG_fail; | |
8748 | } | |
d14a1e28 RD |
8749 | { |
8750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8751 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
8752 | ||
8753 | wxPyEndAllowThreads(__tstate); | |
8754 | if (PyErr_Occurred()) SWIG_fail; | |
8755 | } | |
8edf1c75 | 8756 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
8757 | return resultobj; |
8758 | fail: | |
8759 | return NULL; | |
8760 | } | |
8761 | ||
8762 | ||
8763 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8764 | PyObject *resultobj; | |
8765 | wxImage *arg1 = (wxImage *) 0 ; | |
8766 | int arg2 ; | |
8767 | int arg3 ; | |
8768 | unsigned char result; | |
8769 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8770 | PyObject * obj1 = 0 ; |
8771 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8772 | char *kwnames[] = { |
8773 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8774 | }; | |
8775 | ||
8edf1c75 | 8776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8778 | { |
8779 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8780 | if (PyErr_Occurred()) SWIG_fail; | |
8781 | } | |
8782 | { | |
8783 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8784 | if (PyErr_Occurred()) SWIG_fail; | |
8785 | } | |
d14a1e28 RD |
8786 | { |
8787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8788 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
8789 | ||
8790 | wxPyEndAllowThreads(__tstate); | |
8791 | if (PyErr_Occurred()) SWIG_fail; | |
8792 | } | |
8edf1c75 | 8793 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
8794 | return resultobj; |
8795 | fail: | |
8796 | return NULL; | |
8797 | } | |
8798 | ||
8799 | ||
8800 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8801 | PyObject *resultobj; | |
8802 | wxImage *arg1 = (wxImage *) 0 ; | |
8803 | int arg2 ; | |
8804 | int arg3 ; | |
8805 | unsigned char result; | |
8806 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8807 | PyObject * obj1 = 0 ; |
8808 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8809 | char *kwnames[] = { |
8810 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8811 | }; | |
8812 | ||
8edf1c75 | 8813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8815 | { |
8816 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8817 | if (PyErr_Occurred()) SWIG_fail; | |
8818 | } | |
8819 | { | |
8820 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8821 | if (PyErr_Occurred()) SWIG_fail; | |
8822 | } | |
d14a1e28 RD |
8823 | { |
8824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8825 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
8826 | ||
8827 | wxPyEndAllowThreads(__tstate); | |
8828 | if (PyErr_Occurred()) SWIG_fail; | |
8829 | } | |
8edf1c75 | 8830 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
8831 | return resultobj; |
8832 | fail: | |
8833 | return NULL; | |
8834 | } | |
8835 | ||
8836 | ||
8837 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8838 | PyObject *resultobj; | |
8839 | wxImage *arg1 = (wxImage *) 0 ; | |
8840 | int arg2 ; | |
8841 | int arg3 ; | |
8842 | unsigned char arg4 ; | |
8843 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8844 | PyObject * obj1 = 0 ; |
8845 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8846 | PyObject * obj3 = 0 ; |
8847 | char *kwnames[] = { | |
8848 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
8849 | }; | |
8850 | ||
8edf1c75 | 8851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 8853 | { |
8edf1c75 RD |
8854 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
8855 | if (PyErr_Occurred()) SWIG_fail; | |
8856 | } | |
8857 | { | |
8858 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8859 | if (PyErr_Occurred()) SWIG_fail; | |
8860 | } | |
8861 | { | |
8862 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); | |
83448d71 RD |
8863 | if (PyErr_Occurred()) SWIG_fail; |
8864 | } | |
d14a1e28 RD |
8865 | { |
8866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8867 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
8868 | ||
8869 | wxPyEndAllowThreads(__tstate); | |
8870 | if (PyErr_Occurred()) SWIG_fail; | |
8871 | } | |
8872 | Py_INCREF(Py_None); resultobj = Py_None; | |
8873 | return resultobj; | |
8874 | fail: | |
8875 | return NULL; | |
8876 | } | |
8877 | ||
8878 | ||
8879 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8880 | PyObject *resultobj; | |
8881 | wxImage *arg1 = (wxImage *) 0 ; | |
8882 | int arg2 ; | |
8883 | int arg3 ; | |
8884 | unsigned char result; | |
8885 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8886 | PyObject * obj1 = 0 ; |
8887 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8888 | char *kwnames[] = { |
8889 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8890 | }; | |
8891 | ||
8edf1c75 | 8892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8894 | { |
8895 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8896 | if (PyErr_Occurred()) SWIG_fail; | |
8897 | } | |
8898 | { | |
8899 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8900 | if (PyErr_Occurred()) SWIG_fail; | |
8901 | } | |
d14a1e28 RD |
8902 | { |
8903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8904 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
8905 | ||
8906 | wxPyEndAllowThreads(__tstate); | |
8907 | if (PyErr_Occurred()) SWIG_fail; | |
8908 | } | |
8edf1c75 | 8909 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
8910 | return resultobj; |
8911 | fail: | |
8912 | return NULL; | |
8913 | } | |
8914 | ||
8915 | ||
8916 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8917 | PyObject *resultobj; | |
8918 | wxImage *arg1 = (wxImage *) 0 ; | |
8919 | bool result; | |
8920 | PyObject * obj0 = 0 ; | |
8921 | char *kwnames[] = { | |
8922 | (char *) "self", NULL | |
8923 | }; | |
8924 | ||
8925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
8926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8927 | { | |
8928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8929 | result = (bool)(arg1)->HasAlpha(); | |
8930 | ||
8931 | wxPyEndAllowThreads(__tstate); | |
8932 | if (PyErr_Occurred()) SWIG_fail; | |
8933 | } | |
4e760a36 | 8934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8935 | return resultobj; |
8936 | fail: | |
8937 | return NULL; | |
8938 | } | |
8939 | ||
8940 | ||
8941 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8942 | PyObject *resultobj; | |
8943 | wxImage *arg1 = (wxImage *) 0 ; | |
8944 | byte *arg2 = (byte *) 0 ; | |
8945 | byte *arg3 = (byte *) 0 ; | |
8946 | byte *arg4 = (byte *) 0 ; | |
8947 | byte arg5 = (byte) 0 ; | |
8948 | byte arg6 = (byte) 0 ; | |
8949 | byte arg7 = (byte) 0 ; | |
8950 | bool result; | |
8951 | byte temp2 ; | |
8952 | byte temp3 ; | |
8953 | byte temp4 ; | |
8954 | PyObject * obj0 = 0 ; | |
8955 | PyObject * obj1 = 0 ; | |
8956 | PyObject * obj2 = 0 ; | |
8957 | PyObject * obj3 = 0 ; | |
8958 | char *kwnames[] = { | |
8959 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8960 | }; | |
8961 | ||
8962 | arg2 = &temp2; | |
8963 | arg3 = &temp3; | |
8964 | arg4 = &temp4; | |
8965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8967 | if (obj1) { | |
83448d71 | 8968 | { |
8edf1c75 | 8969 | arg5 = (byte) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
8970 | if (PyErr_Occurred()) SWIG_fail; |
8971 | } | |
d14a1e28 RD |
8972 | } |
8973 | if (obj2) { | |
83448d71 | 8974 | { |
8edf1c75 | 8975 | arg6 = (byte) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
8976 | if (PyErr_Occurred()) SWIG_fail; |
8977 | } | |
d14a1e28 RD |
8978 | } |
8979 | if (obj3) { | |
83448d71 | 8980 | { |
8edf1c75 | 8981 | arg7 = (byte) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
8982 | if (PyErr_Occurred()) SWIG_fail; |
8983 | } | |
d14a1e28 RD |
8984 | } |
8985 | { | |
8986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8987 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8988 | ||
8989 | wxPyEndAllowThreads(__tstate); | |
8990 | if (PyErr_Occurred()) SWIG_fail; | |
8991 | } | |
4e760a36 | 8992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8993 | { |
8994 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8995 | resultobj = t_output_helper(resultobj,o); | |
8996 | } | |
8997 | { | |
8998 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8999 | resultobj = t_output_helper(resultobj,o); | |
9000 | } | |
9001 | { | |
9002 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9003 | resultobj = t_output_helper(resultobj,o); | |
9004 | } | |
9005 | return resultobj; | |
9006 | fail: | |
9007 | return NULL; | |
9008 | } | |
9009 | ||
9010 | ||
9011 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9012 | PyObject *resultobj; | |
9013 | wxImage *arg1 = (wxImage *) 0 ; | |
9014 | wxImage *arg2 = 0 ; | |
9015 | byte arg3 ; | |
9016 | byte arg4 ; | |
9017 | byte arg5 ; | |
9018 | bool result; | |
9019 | PyObject * obj0 = 0 ; | |
9020 | PyObject * obj1 = 0 ; | |
9021 | PyObject * obj2 = 0 ; | |
9022 | PyObject * obj3 = 0 ; | |
9023 | PyObject * obj4 = 0 ; | |
9024 | char *kwnames[] = { | |
9025 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9026 | }; | |
9027 | ||
9028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9030 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9031 | if (arg2 == NULL) { | |
9032 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9033 | } | |
83448d71 | 9034 | { |
8edf1c75 | 9035 | arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
9036 | if (PyErr_Occurred()) SWIG_fail; |
9037 | } | |
9038 | { | |
8edf1c75 | 9039 | arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
9040 | if (PyErr_Occurred()) SWIG_fail; |
9041 | } | |
9042 | { | |
8edf1c75 | 9043 | arg5 = (byte) SWIG_PyObj_AsUnsignedChar(obj4); |
83448d71 RD |
9044 | if (PyErr_Occurred()) SWIG_fail; |
9045 | } | |
d14a1e28 RD |
9046 | { |
9047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9048 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9049 | ||
9050 | wxPyEndAllowThreads(__tstate); | |
9051 | if (PyErr_Occurred()) SWIG_fail; | |
9052 | } | |
4e760a36 | 9053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9054 | return resultobj; |
9055 | fail: | |
9056 | return NULL; | |
9057 | } | |
9058 | ||
9059 | ||
9060 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9061 | PyObject *resultobj; | |
9062 | wxString *arg1 = 0 ; | |
9063 | bool result; | |
423f194a | 9064 | bool temp1 = False ; |
d14a1e28 RD |
9065 | PyObject * obj0 = 0 ; |
9066 | char *kwnames[] = { | |
9067 | (char *) "name", NULL | |
9068 | }; | |
9069 | ||
9070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9071 | { | |
9072 | arg1 = wxString_in_helper(obj0); | |
9073 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9074 | temp1 = True; |
d14a1e28 RD |
9075 | } |
9076 | { | |
9077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9078 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9079 | ||
9080 | wxPyEndAllowThreads(__tstate); | |
9081 | if (PyErr_Occurred()) SWIG_fail; | |
9082 | } | |
4e760a36 | 9083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9084 | { |
9085 | if (temp1) | |
9086 | delete arg1; | |
9087 | } | |
9088 | return resultobj; | |
9089 | fail: | |
9090 | { | |
9091 | if (temp1) | |
9092 | delete arg1; | |
9093 | } | |
9094 | return NULL; | |
9095 | } | |
9096 | ||
9097 | ||
9098 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9099 | PyObject *resultobj; | |
9100 | wxString *arg1 = 0 ; | |
9101 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9102 | int result; | |
423f194a | 9103 | bool temp1 = False ; |
d14a1e28 | 9104 | PyObject * obj0 = 0 ; |
8edf1c75 | 9105 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9106 | char *kwnames[] = { |
9107 | (char *) "name",(char *) "type", NULL | |
9108 | }; | |
9109 | ||
8edf1c75 | 9110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9111 | { |
9112 | arg1 = wxString_in_helper(obj0); | |
9113 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9114 | temp1 = True; |
d14a1e28 | 9115 | } |
8edf1c75 RD |
9116 | if (obj1) { |
9117 | { | |
9118 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
9119 | if (PyErr_Occurred()) SWIG_fail; | |
9120 | } | |
9121 | } | |
d14a1e28 RD |
9122 | { |
9123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9124 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9125 | ||
9126 | wxPyEndAllowThreads(__tstate); | |
9127 | if (PyErr_Occurred()) SWIG_fail; | |
9128 | } | |
8edf1c75 | 9129 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9130 | { |
9131 | if (temp1) | |
9132 | delete arg1; | |
9133 | } | |
9134 | return resultobj; | |
9135 | fail: | |
9136 | { | |
9137 | if (temp1) | |
9138 | delete arg1; | |
9139 | } | |
9140 | return NULL; | |
9141 | } | |
9142 | ||
9143 | ||
9144 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9145 | PyObject *resultobj; | |
9146 | wxImage *arg1 = (wxImage *) 0 ; | |
9147 | wxString *arg2 = 0 ; | |
9148 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9149 | int arg4 = (int) -1 ; | |
9150 | bool result; | |
423f194a | 9151 | bool temp2 = False ; |
d14a1e28 RD |
9152 | PyObject * obj0 = 0 ; |
9153 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9154 | PyObject * obj2 = 0 ; |
9155 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9156 | char *kwnames[] = { |
9157 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9158 | }; | |
9159 | ||
8edf1c75 | 9160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9162 | { | |
9163 | arg2 = wxString_in_helper(obj1); | |
9164 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9165 | temp2 = True; |
d14a1e28 | 9166 | } |
8edf1c75 RD |
9167 | if (obj2) { |
9168 | { | |
9169 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9170 | if (PyErr_Occurred()) SWIG_fail; | |
9171 | } | |
9172 | } | |
9173 | if (obj3) { | |
9174 | { | |
9175 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9176 | if (PyErr_Occurred()) SWIG_fail; | |
9177 | } | |
9178 | } | |
d14a1e28 RD |
9179 | { |
9180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9181 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9182 | ||
9183 | wxPyEndAllowThreads(__tstate); | |
9184 | if (PyErr_Occurred()) SWIG_fail; | |
9185 | } | |
4e760a36 | 9186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9187 | { |
9188 | if (temp2) | |
9189 | delete arg2; | |
9190 | } | |
9191 | return resultobj; | |
9192 | fail: | |
9193 | { | |
9194 | if (temp2) | |
9195 | delete arg2; | |
9196 | } | |
9197 | return NULL; | |
9198 | } | |
9199 | ||
9200 | ||
9201 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9202 | PyObject *resultobj; | |
9203 | wxImage *arg1 = (wxImage *) 0 ; | |
9204 | wxString *arg2 = 0 ; | |
9205 | wxString *arg3 = 0 ; | |
9206 | int arg4 = (int) -1 ; | |
9207 | bool result; | |
423f194a RD |
9208 | bool temp2 = False ; |
9209 | bool temp3 = False ; | |
d14a1e28 RD |
9210 | PyObject * obj0 = 0 ; |
9211 | PyObject * obj1 = 0 ; | |
9212 | PyObject * obj2 = 0 ; | |
8edf1c75 | 9213 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9214 | char *kwnames[] = { |
9215 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9216 | }; | |
9217 | ||
8edf1c75 | 9218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9220 | { | |
9221 | arg2 = wxString_in_helper(obj1); | |
9222 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9223 | temp2 = True; |
d14a1e28 RD |
9224 | } |
9225 | { | |
9226 | arg3 = wxString_in_helper(obj2); | |
9227 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9228 | temp3 = True; |
d14a1e28 | 9229 | } |
8edf1c75 RD |
9230 | if (obj3) { |
9231 | { | |
9232 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9233 | if (PyErr_Occurred()) SWIG_fail; | |
9234 | } | |
9235 | } | |
d14a1e28 RD |
9236 | { |
9237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9238 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9239 | ||
9240 | wxPyEndAllowThreads(__tstate); | |
9241 | if (PyErr_Occurred()) SWIG_fail; | |
9242 | } | |
4e760a36 | 9243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9244 | { |
9245 | if (temp2) | |
9246 | delete arg2; | |
9247 | } | |
9248 | { | |
9249 | if (temp3) | |
9250 | delete arg3; | |
9251 | } | |
9252 | return resultobj; | |
9253 | fail: | |
9254 | { | |
9255 | if (temp2) | |
9256 | delete arg2; | |
9257 | } | |
9258 | { | |
9259 | if (temp3) | |
9260 | delete arg3; | |
9261 | } | |
9262 | return NULL; | |
9263 | } | |
9264 | ||
9265 | ||
9266 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9267 | PyObject *resultobj; | |
9268 | wxImage *arg1 = (wxImage *) 0 ; | |
9269 | wxString *arg2 = 0 ; | |
9270 | int arg3 ; | |
9271 | bool result; | |
423f194a | 9272 | bool temp2 = False ; |
d14a1e28 RD |
9273 | PyObject * obj0 = 0 ; |
9274 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9275 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9276 | char *kwnames[] = { |
9277 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9278 | }; | |
9279 | ||
8edf1c75 | 9280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9282 | { | |
9283 | arg2 = wxString_in_helper(obj1); | |
9284 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9285 | temp2 = True; |
d14a1e28 | 9286 | } |
8edf1c75 RD |
9287 | { |
9288 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9289 | if (PyErr_Occurred()) SWIG_fail; | |
9290 | } | |
d14a1e28 RD |
9291 | { |
9292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9293 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9294 | ||
9295 | wxPyEndAllowThreads(__tstate); | |
9296 | if (PyErr_Occurred()) SWIG_fail; | |
9297 | } | |
4e760a36 | 9298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9299 | { |
9300 | if (temp2) | |
9301 | delete arg2; | |
9302 | } | |
9303 | return resultobj; | |
9304 | fail: | |
9305 | { | |
9306 | if (temp2) | |
9307 | delete arg2; | |
9308 | } | |
9309 | return NULL; | |
9310 | } | |
9311 | ||
9312 | ||
9313 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9314 | PyObject *resultobj; | |
9315 | wxImage *arg1 = (wxImage *) 0 ; | |
9316 | wxString *arg2 = 0 ; | |
9317 | wxString *arg3 = 0 ; | |
9318 | bool result; | |
423f194a RD |
9319 | bool temp2 = False ; |
9320 | bool temp3 = False ; | |
d14a1e28 RD |
9321 | PyObject * obj0 = 0 ; |
9322 | PyObject * obj1 = 0 ; | |
9323 | PyObject * obj2 = 0 ; | |
9324 | char *kwnames[] = { | |
9325 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9326 | }; | |
9327 | ||
9328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9330 | { | |
9331 | arg2 = wxString_in_helper(obj1); | |
9332 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9333 | temp2 = True; |
d14a1e28 RD |
9334 | } |
9335 | { | |
9336 | arg3 = wxString_in_helper(obj2); | |
9337 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9338 | temp3 = True; |
d14a1e28 RD |
9339 | } |
9340 | { | |
9341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9342 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9343 | ||
9344 | wxPyEndAllowThreads(__tstate); | |
9345 | if (PyErr_Occurred()) SWIG_fail; | |
9346 | } | |
4e760a36 | 9347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9348 | { |
9349 | if (temp2) | |
9350 | delete arg2; | |
9351 | } | |
9352 | { | |
9353 | if (temp3) | |
9354 | delete arg3; | |
9355 | } | |
9356 | return resultobj; | |
9357 | fail: | |
9358 | { | |
9359 | if (temp2) | |
9360 | delete arg2; | |
9361 | } | |
9362 | { | |
9363 | if (temp3) | |
9364 | delete arg3; | |
9365 | } | |
9366 | return NULL; | |
9367 | } | |
9368 | ||
9369 | ||
9370 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9371 | PyObject *resultobj; | |
9372 | wxInputStream *arg1 = 0 ; | |
9373 | bool result; | |
9374 | wxPyInputStream *temp1 ; | |
9375 | bool created1 ; | |
9376 | PyObject * obj0 = 0 ; | |
9377 | char *kwnames[] = { | |
9378 | (char *) "stream", NULL | |
9379 | }; | |
9380 | ||
9381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9382 | { | |
9383 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9384 | arg1 = temp1->m_wxis; | |
423f194a | 9385 | created1 = False; |
d14a1e28 RD |
9386 | } else { |
9387 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9388 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
9389 | if (arg1 == NULL) { |
9390 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9391 | SWIG_fail; | |
9392 | } | |
423f194a | 9393 | created1 = True; |
d14a1e28 RD |
9394 | } |
9395 | } | |
9396 | { | |
9397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9398 | result = (bool)wxImage::CanRead(*arg1); | |
9399 | ||
9400 | wxPyEndAllowThreads(__tstate); | |
9401 | if (PyErr_Occurred()) SWIG_fail; | |
9402 | } | |
4e760a36 | 9403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9404 | { |
9405 | if (created1) | |
9406 | delete arg1; | |
9407 | } | |
9408 | return resultobj; | |
9409 | fail: | |
9410 | { | |
9411 | if (created1) | |
9412 | delete arg1; | |
9413 | } | |
9414 | return NULL; | |
9415 | } | |
9416 | ||
9417 | ||
9418 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9419 | PyObject *resultobj; | |
9420 | wxImage *arg1 = (wxImage *) 0 ; | |
9421 | wxInputStream *arg2 = 0 ; | |
9422 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9423 | int arg4 = (int) -1 ; | |
9424 | bool result; | |
9425 | wxPyInputStream *temp2 ; | |
9426 | bool created2 ; | |
9427 | PyObject * obj0 = 0 ; | |
9428 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9429 | PyObject * obj2 = 0 ; |
9430 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9431 | char *kwnames[] = { |
9432 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9433 | }; | |
9434 | ||
8edf1c75 | 9435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9437 | { | |
9438 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9439 | arg2 = temp2->m_wxis; | |
423f194a | 9440 | created2 = False; |
d14a1e28 RD |
9441 | } else { |
9442 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9443 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9444 | if (arg2 == NULL) { |
9445 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9446 | SWIG_fail; | |
9447 | } | |
423f194a | 9448 | created2 = True; |
d14a1e28 RD |
9449 | } |
9450 | } | |
8edf1c75 RD |
9451 | if (obj2) { |
9452 | { | |
9453 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9454 | if (PyErr_Occurred()) SWIG_fail; | |
9455 | } | |
9456 | } | |
9457 | if (obj3) { | |
9458 | { | |
9459 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9460 | if (PyErr_Occurred()) SWIG_fail; | |
9461 | } | |
9462 | } | |
d14a1e28 RD |
9463 | { |
9464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9465 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9466 | ||
9467 | wxPyEndAllowThreads(__tstate); | |
9468 | if (PyErr_Occurred()) SWIG_fail; | |
9469 | } | |
4e760a36 | 9470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9471 | { |
9472 | if (created2) | |
9473 | delete arg2; | |
9474 | } | |
9475 | return resultobj; | |
9476 | fail: | |
9477 | { | |
9478 | if (created2) | |
9479 | delete arg2; | |
9480 | } | |
9481 | return NULL; | |
9482 | } | |
9483 | ||
9484 | ||
9485 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9486 | PyObject *resultobj; | |
9487 | wxImage *arg1 = (wxImage *) 0 ; | |
9488 | wxInputStream *arg2 = 0 ; | |
9489 | wxString *arg3 = 0 ; | |
9490 | int arg4 = (int) -1 ; | |
9491 | bool result; | |
9492 | wxPyInputStream *temp2 ; | |
9493 | bool created2 ; | |
423f194a | 9494 | bool temp3 = False ; |
d14a1e28 RD |
9495 | PyObject * obj0 = 0 ; |
9496 | PyObject * obj1 = 0 ; | |
9497 | PyObject * obj2 = 0 ; | |
8edf1c75 | 9498 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9499 | char *kwnames[] = { |
9500 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9501 | }; | |
9502 | ||
8edf1c75 | 9503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9505 | { | |
9506 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9507 | arg2 = temp2->m_wxis; | |
423f194a | 9508 | created2 = False; |
d14a1e28 RD |
9509 | } else { |
9510 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9511 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9512 | if (arg2 == NULL) { |
9513 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9514 | SWIG_fail; | |
9515 | } | |
423f194a | 9516 | created2 = True; |
d14a1e28 RD |
9517 | } |
9518 | } | |
9519 | { | |
9520 | arg3 = wxString_in_helper(obj2); | |
9521 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9522 | temp3 = True; |
d14a1e28 | 9523 | } |
8edf1c75 RD |
9524 | if (obj3) { |
9525 | { | |
9526 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
9528 | } | |
9529 | } | |
d14a1e28 RD |
9530 | { |
9531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9532 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9533 | ||
9534 | wxPyEndAllowThreads(__tstate); | |
9535 | if (PyErr_Occurred()) SWIG_fail; | |
9536 | } | |
4e760a36 | 9537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9538 | { |
9539 | if (created2) | |
9540 | delete arg2; | |
9541 | } | |
9542 | { | |
9543 | if (temp3) | |
9544 | delete arg3; | |
9545 | } | |
9546 | return resultobj; | |
9547 | fail: | |
9548 | { | |
9549 | if (created2) | |
9550 | delete arg2; | |
9551 | } | |
9552 | { | |
9553 | if (temp3) | |
9554 | delete arg3; | |
9555 | } | |
9556 | return NULL; | |
9557 | } | |
9558 | ||
9559 | ||
9560 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9561 | PyObject *resultobj; | |
9562 | wxImage *arg1 = (wxImage *) 0 ; | |
9563 | bool result; | |
9564 | PyObject * obj0 = 0 ; | |
9565 | char *kwnames[] = { | |
9566 | (char *) "self", NULL | |
9567 | }; | |
9568 | ||
9569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
9570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9571 | { | |
9572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9573 | result = (bool)(arg1)->Ok(); | |
9574 | ||
9575 | wxPyEndAllowThreads(__tstate); | |
9576 | if (PyErr_Occurred()) SWIG_fail; | |
9577 | } | |
4e760a36 | 9578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9579 | return resultobj; |
9580 | fail: | |
9581 | return NULL; | |
9582 | } | |
9583 | ||
9584 | ||
9585 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9586 | PyObject *resultobj; | |
9587 | wxImage *arg1 = (wxImage *) 0 ; | |
9588 | int result; | |
9589 | PyObject * obj0 = 0 ; | |
9590 | char *kwnames[] = { | |
9591 | (char *) "self", NULL | |
9592 | }; | |
9593 | ||
9594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
9595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9596 | { | |
9597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9598 | result = (int)(arg1)->GetWidth(); | |
9599 | ||
9600 | wxPyEndAllowThreads(__tstate); | |
9601 | if (PyErr_Occurred()) SWIG_fail; | |
9602 | } | |
8edf1c75 | 9603 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9604 | return resultobj; |
9605 | fail: | |
9606 | return NULL; | |
9607 | } | |
9608 | ||
9609 | ||
9610 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9611 | PyObject *resultobj; | |
9612 | wxImage *arg1 = (wxImage *) 0 ; | |
9613 | int result; | |
9614 | PyObject * obj0 = 0 ; | |
9615 | char *kwnames[] = { | |
9616 | (char *) "self", NULL | |
9617 | }; | |
9618 | ||
9619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
9620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9621 | { | |
9622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9623 | result = (int)(arg1)->GetHeight(); | |
9624 | ||
9625 | wxPyEndAllowThreads(__tstate); | |
9626 | if (PyErr_Occurred()) SWIG_fail; | |
9627 | } | |
8edf1c75 | 9628 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9629 | return resultobj; |
9630 | fail: | |
9631 | return NULL; | |
9632 | } | |
9633 | ||
9634 | ||
9635 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9636 | PyObject *resultobj; | |
9637 | wxImage *arg1 = (wxImage *) 0 ; | |
9638 | wxRect *arg2 = 0 ; | |
9639 | SwigValueWrapper< wxImage > result; | |
9640 | wxRect temp2 ; | |
9641 | PyObject * obj0 = 0 ; | |
9642 | PyObject * obj1 = 0 ; | |
9643 | char *kwnames[] = { | |
9644 | (char *) "self",(char *) "rect", NULL | |
9645 | }; | |
9646 | ||
9647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
9648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9649 | { | |
9650 | arg2 = &temp2; | |
9651 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9652 | } | |
9653 | { | |
9654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9655 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
9656 | ||
9657 | wxPyEndAllowThreads(__tstate); | |
9658 | if (PyErr_Occurred()) SWIG_fail; | |
9659 | } | |
9660 | { | |
9661 | wxImage * resultptr; | |
9662 | resultptr = new wxImage((wxImage &) result); | |
9663 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9664 | } | |
9665 | return resultobj; | |
9666 | fail: | |
9667 | return NULL; | |
9668 | } | |
9669 | ||
9670 | ||
9671 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9672 | PyObject *resultobj; | |
9673 | wxImage *arg1 = (wxImage *) 0 ; | |
9674 | SwigValueWrapper< wxImage > result; | |
9675 | PyObject * obj0 = 0 ; | |
9676 | char *kwnames[] = { | |
9677 | (char *) "self", NULL | |
9678 | }; | |
9679 | ||
9680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
9681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9682 | { | |
9683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9684 | result = (arg1)->Copy(); | |
9685 | ||
9686 | wxPyEndAllowThreads(__tstate); | |
9687 | if (PyErr_Occurred()) SWIG_fail; | |
9688 | } | |
9689 | { | |
9690 | wxImage * resultptr; | |
9691 | resultptr = new wxImage((wxImage &) result); | |
9692 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9693 | } | |
9694 | return resultobj; | |
9695 | fail: | |
9696 | return NULL; | |
9697 | } | |
9698 | ||
9699 | ||
9700 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9701 | PyObject *resultobj; | |
9702 | wxImage *arg1 = (wxImage *) 0 ; | |
9703 | wxImage *arg2 = 0 ; | |
9704 | int arg3 ; | |
9705 | int arg4 ; | |
9706 | PyObject * obj0 = 0 ; | |
9707 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9708 | PyObject * obj2 = 0 ; |
9709 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9710 | char *kwnames[] = { |
9711 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
9712 | }; | |
9713 | ||
8edf1c75 | 9714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9716 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9717 | if (arg2 == NULL) { | |
9718 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9719 | } | |
8edf1c75 RD |
9720 | { |
9721 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9722 | if (PyErr_Occurred()) SWIG_fail; | |
9723 | } | |
9724 | { | |
9725 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9726 | if (PyErr_Occurred()) SWIG_fail; | |
9727 | } | |
d14a1e28 RD |
9728 | { |
9729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9730 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
9731 | ||
9732 | wxPyEndAllowThreads(__tstate); | |
9733 | if (PyErr_Occurred()) SWIG_fail; | |
9734 | } | |
9735 | Py_INCREF(Py_None); resultobj = Py_None; | |
9736 | return resultobj; | |
9737 | fail: | |
9738 | return NULL; | |
9739 | } | |
9740 | ||
9741 | ||
9742 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9743 | PyObject *resultobj; | |
9744 | wxImage *arg1 = (wxImage *) 0 ; | |
9745 | PyObject *result; | |
9746 | PyObject * obj0 = 0 ; | |
9747 | char *kwnames[] = { | |
9748 | (char *) "self", NULL | |
9749 | }; | |
9750 | ||
9751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
9752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9753 | { | |
9754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9755 | result = (PyObject *)wxImage_GetData(arg1); | |
9756 | ||
9757 | wxPyEndAllowThreads(__tstate); | |
9758 | if (PyErr_Occurred()) SWIG_fail; | |
9759 | } | |
9760 | resultobj = result; | |
9761 | return resultobj; | |
9762 | fail: | |
9763 | return NULL; | |
9764 | } | |
9765 | ||
9766 | ||
9767 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9768 | PyObject *resultobj; | |
9769 | wxImage *arg1 = (wxImage *) 0 ; | |
9770 | PyObject *arg2 = (PyObject *) 0 ; | |
9771 | PyObject * obj0 = 0 ; | |
9772 | PyObject * obj1 = 0 ; | |
9773 | char *kwnames[] = { | |
9774 | (char *) "self",(char *) "data", NULL | |
9775 | }; | |
9776 | ||
9777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
9778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9779 | arg2 = obj1; | |
9780 | { | |
9781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9782 | wxImage_SetData(arg1,arg2); | |
9783 | ||
9784 | wxPyEndAllowThreads(__tstate); | |
9785 | if (PyErr_Occurred()) SWIG_fail; | |
9786 | } | |
9787 | Py_INCREF(Py_None); resultobj = Py_None; | |
9788 | return resultobj; | |
9789 | fail: | |
9790 | return NULL; | |
9791 | } | |
9792 | ||
9793 | ||
9794 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9795 | PyObject *resultobj; | |
9796 | wxImage *arg1 = (wxImage *) 0 ; | |
9797 | PyObject *result; | |
9798 | PyObject * obj0 = 0 ; | |
9799 | char *kwnames[] = { | |
9800 | (char *) "self", NULL | |
9801 | }; | |
9802 | ||
9803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
9804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9805 | { | |
9806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9807 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
9808 | ||
9809 | wxPyEndAllowThreads(__tstate); | |
9810 | if (PyErr_Occurred()) SWIG_fail; | |
9811 | } | |
9812 | resultobj = result; | |
9813 | return resultobj; | |
9814 | fail: | |
9815 | return NULL; | |
9816 | } | |
9817 | ||
9818 | ||
9819 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9820 | PyObject *resultobj; | |
9821 | wxImage *arg1 = (wxImage *) 0 ; | |
9822 | PyObject *arg2 = (PyObject *) 0 ; | |
9823 | PyObject * obj0 = 0 ; | |
9824 | PyObject * obj1 = 0 ; | |
9825 | char *kwnames[] = { | |
9826 | (char *) "self",(char *) "data", NULL | |
9827 | }; | |
9828 | ||
9829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
9830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9831 | arg2 = obj1; | |
9832 | { | |
9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9834 | wxImage_SetDataBuffer(arg1,arg2); | |
9835 | ||
9836 | wxPyEndAllowThreads(__tstate); | |
9837 | if (PyErr_Occurred()) SWIG_fail; | |
9838 | } | |
9839 | Py_INCREF(Py_None); resultobj = Py_None; | |
9840 | return resultobj; | |
9841 | fail: | |
9842 | return NULL; | |
9843 | } | |
9844 | ||
9845 | ||
9846 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9847 | PyObject *resultobj; | |
9848 | wxImage *arg1 = (wxImage *) 0 ; | |
9849 | PyObject *result; | |
9850 | PyObject * obj0 = 0 ; | |
9851 | char *kwnames[] = { | |
9852 | (char *) "self", NULL | |
9853 | }; | |
9854 | ||
9855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
9856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9857 | { | |
9858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9859 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
9860 | ||
9861 | wxPyEndAllowThreads(__tstate); | |
9862 | if (PyErr_Occurred()) SWIG_fail; | |
9863 | } | |
9864 | resultobj = result; | |
9865 | return resultobj; | |
9866 | fail: | |
9867 | return NULL; | |
9868 | } | |
9869 | ||
9870 | ||
9871 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9872 | PyObject *resultobj; | |
9873 | wxImage *arg1 = (wxImage *) 0 ; | |
9874 | PyObject *arg2 = (PyObject *) 0 ; | |
9875 | PyObject * obj0 = 0 ; | |
9876 | PyObject * obj1 = 0 ; | |
9877 | char *kwnames[] = { | |
9878 | (char *) "self",(char *) "data", NULL | |
9879 | }; | |
9880 | ||
9881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
9882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9883 | arg2 = obj1; | |
9884 | { | |
9885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9886 | wxImage_SetAlphaData(arg1,arg2); | |
9887 | ||
9888 | wxPyEndAllowThreads(__tstate); | |
9889 | if (PyErr_Occurred()) SWIG_fail; | |
9890 | } | |
9891 | Py_INCREF(Py_None); resultobj = Py_None; | |
9892 | return resultobj; | |
9893 | fail: | |
9894 | return NULL; | |
9895 | } | |
9896 | ||
9897 | ||
9898 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9899 | PyObject *resultobj; | |
9900 | wxImage *arg1 = (wxImage *) 0 ; | |
9901 | PyObject *result; | |
9902 | PyObject * obj0 = 0 ; | |
9903 | char *kwnames[] = { | |
9904 | (char *) "self", NULL | |
9905 | }; | |
9906 | ||
9907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
9908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9909 | { | |
9910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9911 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
9912 | ||
9913 | wxPyEndAllowThreads(__tstate); | |
9914 | if (PyErr_Occurred()) SWIG_fail; | |
9915 | } | |
9916 | resultobj = result; | |
9917 | return resultobj; | |
9918 | fail: | |
9919 | return NULL; | |
9920 | } | |
9921 | ||
9922 | ||
9923 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9924 | PyObject *resultobj; | |
9925 | wxImage *arg1 = (wxImage *) 0 ; | |
9926 | PyObject *arg2 = (PyObject *) 0 ; | |
9927 | PyObject * obj0 = 0 ; | |
9928 | PyObject * obj1 = 0 ; | |
9929 | char *kwnames[] = { | |
9930 | (char *) "self",(char *) "data", NULL | |
9931 | }; | |
9932 | ||
9933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
9934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9935 | arg2 = obj1; | |
9936 | { | |
9937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9938 | wxImage_SetAlphaBuffer(arg1,arg2); | |
9939 | ||
9940 | wxPyEndAllowThreads(__tstate); | |
9941 | if (PyErr_Occurred()) SWIG_fail; | |
9942 | } | |
9943 | Py_INCREF(Py_None); resultobj = Py_None; | |
9944 | return resultobj; | |
9945 | fail: | |
9946 | return NULL; | |
9947 | } | |
9948 | ||
9949 | ||
9950 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9951 | PyObject *resultobj; | |
9952 | wxImage *arg1 = (wxImage *) 0 ; | |
9953 | unsigned char arg2 ; | |
9954 | unsigned char arg3 ; | |
9955 | unsigned char arg4 ; | |
9956 | PyObject * obj0 = 0 ; | |
9957 | PyObject * obj1 = 0 ; | |
9958 | PyObject * obj2 = 0 ; | |
9959 | PyObject * obj3 = 0 ; | |
9960 | char *kwnames[] = { | |
9961 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9962 | }; | |
9963 | ||
9964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 9966 | { |
8edf1c75 | 9967 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
9968 | if (PyErr_Occurred()) SWIG_fail; |
9969 | } | |
9970 | { | |
8edf1c75 | 9971 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
9972 | if (PyErr_Occurred()) SWIG_fail; |
9973 | } | |
9974 | { | |
8edf1c75 | 9975 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
9976 | if (PyErr_Occurred()) SWIG_fail; |
9977 | } | |
d14a1e28 RD |
9978 | { |
9979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9980 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
9981 | ||
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) SWIG_fail; | |
9984 | } | |
9985 | Py_INCREF(Py_None); resultobj = Py_None; | |
9986 | return resultobj; | |
9987 | fail: | |
9988 | return NULL; | |
9989 | } | |
9990 | ||
9991 | ||
9992 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9993 | PyObject *resultobj; | |
9994 | wxImage *arg1 = (wxImage *) 0 ; | |
9995 | unsigned char result; | |
9996 | PyObject * obj0 = 0 ; | |
9997 | char *kwnames[] = { | |
9998 | (char *) "self", NULL | |
9999 | }; | |
10000 | ||
10001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
10002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10003 | { | |
10004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10005 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10006 | ||
10007 | wxPyEndAllowThreads(__tstate); | |
10008 | if (PyErr_Occurred()) SWIG_fail; | |
10009 | } | |
8edf1c75 | 10010 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10011 | return resultobj; |
10012 | fail: | |
10013 | return NULL; | |
10014 | } | |
10015 | ||
10016 | ||
10017 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10018 | PyObject *resultobj; | |
10019 | wxImage *arg1 = (wxImage *) 0 ; | |
10020 | unsigned char result; | |
10021 | PyObject * obj0 = 0 ; | |
10022 | char *kwnames[] = { | |
10023 | (char *) "self", NULL | |
10024 | }; | |
10025 | ||
10026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
10027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10028 | { | |
10029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10030 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10031 | ||
10032 | wxPyEndAllowThreads(__tstate); | |
10033 | if (PyErr_Occurred()) SWIG_fail; | |
10034 | } | |
8edf1c75 | 10035 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10036 | return resultobj; |
10037 | fail: | |
10038 | return NULL; | |
10039 | } | |
10040 | ||
10041 | ||
10042 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10043 | PyObject *resultobj; | |
10044 | wxImage *arg1 = (wxImage *) 0 ; | |
10045 | unsigned char result; | |
10046 | PyObject * obj0 = 0 ; | |
10047 | char *kwnames[] = { | |
10048 | (char *) "self", NULL | |
10049 | }; | |
10050 | ||
10051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
10052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10053 | { | |
10054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10055 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10056 | ||
10057 | wxPyEndAllowThreads(__tstate); | |
10058 | if (PyErr_Occurred()) SWIG_fail; | |
10059 | } | |
8edf1c75 | 10060 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10061 | return resultobj; |
10062 | fail: | |
10063 | return NULL; | |
10064 | } | |
10065 | ||
10066 | ||
10067 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10068 | PyObject *resultobj; | |
10069 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10070 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10071 | PyObject * obj0 = 0 ; |
10072 | PyObject * obj1 = 0 ; | |
10073 | char *kwnames[] = { | |
10074 | (char *) "self",(char *) "mask", NULL | |
10075 | }; | |
10076 | ||
10077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
10078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10079 | if (obj1) { | |
83448d71 | 10080 | { |
8edf1c75 | 10081 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
10082 | if (PyErr_Occurred()) SWIG_fail; |
10083 | } | |
d14a1e28 RD |
10084 | } |
10085 | { | |
10086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10087 | (arg1)->SetMask(arg2); | |
10088 | ||
10089 | wxPyEndAllowThreads(__tstate); | |
10090 | if (PyErr_Occurred()) SWIG_fail; | |
10091 | } | |
10092 | Py_INCREF(Py_None); resultobj = Py_None; | |
10093 | return resultobj; | |
10094 | fail: | |
10095 | return NULL; | |
10096 | } | |
10097 | ||
10098 | ||
10099 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10100 | PyObject *resultobj; | |
10101 | wxImage *arg1 = (wxImage *) 0 ; | |
10102 | bool result; | |
10103 | PyObject * obj0 = 0 ; | |
10104 | char *kwnames[] = { | |
10105 | (char *) "self", NULL | |
10106 | }; | |
10107 | ||
10108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
10109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10110 | { | |
10111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10112 | result = (bool)(arg1)->HasMask(); | |
10113 | ||
10114 | wxPyEndAllowThreads(__tstate); | |
10115 | if (PyErr_Occurred()) SWIG_fail; | |
10116 | } | |
4e760a36 | 10117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10118 | return resultobj; |
10119 | fail: | |
10120 | return NULL; | |
10121 | } | |
10122 | ||
10123 | ||
10124 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10125 | PyObject *resultobj; | |
10126 | wxImage *arg1 = (wxImage *) 0 ; | |
10127 | double arg2 ; | |
10128 | wxPoint *arg3 = 0 ; | |
423f194a | 10129 | bool arg4 = (bool) True ; |
d14a1e28 RD |
10130 | wxPoint *arg5 = (wxPoint *) NULL ; |
10131 | SwigValueWrapper< wxImage > result; | |
10132 | wxPoint temp3 ; | |
10133 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10134 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10135 | PyObject * obj2 = 0 ; |
10136 | PyObject * obj3 = 0 ; | |
10137 | PyObject * obj4 = 0 ; | |
10138 | char *kwnames[] = { | |
10139 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10140 | }; | |
10141 | ||
8edf1c75 | 10142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10144 | { |
10145 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
10146 | if (PyErr_Occurred()) SWIG_fail; | |
10147 | } | |
d14a1e28 RD |
10148 | { |
10149 | arg3 = &temp3; | |
10150 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10151 | } | |
10152 | if (obj3) { | |
83448d71 | 10153 | { |
8edf1c75 | 10154 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
10155 | if (PyErr_Occurred()) SWIG_fail; |
10156 | } | |
d14a1e28 RD |
10157 | } |
10158 | if (obj4) { | |
10159 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10160 | } | |
10161 | { | |
10162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10163 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10164 | ||
10165 | wxPyEndAllowThreads(__tstate); | |
10166 | if (PyErr_Occurred()) SWIG_fail; | |
10167 | } | |
10168 | { | |
10169 | wxImage * resultptr; | |
10170 | resultptr = new wxImage((wxImage &) result); | |
10171 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
10172 | } | |
10173 | return resultobj; | |
10174 | fail: | |
10175 | return NULL; | |
10176 | } | |
10177 | ||
10178 | ||
10179 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10180 | PyObject *resultobj; | |
10181 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10182 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10183 | SwigValueWrapper< wxImage > result; |
10184 | PyObject * obj0 = 0 ; | |
10185 | PyObject * obj1 = 0 ; | |
10186 | char *kwnames[] = { | |
10187 | (char *) "self",(char *) "clockwise", NULL | |
10188 | }; | |
10189 | ||
10190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
10191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10192 | if (obj1) { | |
83448d71 | 10193 | { |
8edf1c75 | 10194 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
10195 | if (PyErr_Occurred()) SWIG_fail; |
10196 | } | |
d14a1e28 RD |
10197 | } |
10198 | { | |
10199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10200 | result = (arg1)->Rotate90(arg2); | |
10201 | ||
10202 | wxPyEndAllowThreads(__tstate); | |
10203 | if (PyErr_Occurred()) SWIG_fail; | |
10204 | } | |
10205 | { | |
10206 | wxImage * resultptr; | |
10207 | resultptr = new wxImage((wxImage &) result); | |
10208 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
10209 | } | |
10210 | return resultobj; | |
10211 | fail: | |
10212 | return NULL; | |
10213 | } | |
10214 | ||
10215 | ||
10216 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10217 | PyObject *resultobj; | |
10218 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10219 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10220 | SwigValueWrapper< wxImage > result; |
10221 | PyObject * obj0 = 0 ; | |
10222 | PyObject * obj1 = 0 ; | |
10223 | char *kwnames[] = { | |
10224 | (char *) "self",(char *) "horizontally", NULL | |
10225 | }; | |
10226 | ||
10227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
10228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10229 | if (obj1) { | |
83448d71 | 10230 | { |
8edf1c75 | 10231 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
10232 | if (PyErr_Occurred()) SWIG_fail; |
10233 | } | |
d14a1e28 RD |
10234 | } |
10235 | { | |
10236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10237 | result = (arg1)->Mirror(arg2); | |
10238 | ||
10239 | wxPyEndAllowThreads(__tstate); | |
10240 | if (PyErr_Occurred()) SWIG_fail; | |
10241 | } | |
10242 | { | |
10243 | wxImage * resultptr; | |
10244 | resultptr = new wxImage((wxImage &) result); | |
10245 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
10246 | } | |
10247 | return resultobj; | |
10248 | fail: | |
10249 | return NULL; | |
10250 | } | |
10251 | ||
10252 | ||
10253 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10254 | PyObject *resultobj; | |
10255 | wxImage *arg1 = (wxImage *) 0 ; | |
10256 | unsigned char arg2 ; | |
10257 | unsigned char arg3 ; | |
10258 | unsigned char arg4 ; | |
10259 | unsigned char arg5 ; | |
10260 | unsigned char arg6 ; | |
10261 | unsigned char arg7 ; | |
10262 | PyObject * obj0 = 0 ; | |
10263 | PyObject * obj1 = 0 ; | |
10264 | PyObject * obj2 = 0 ; | |
10265 | PyObject * obj3 = 0 ; | |
10266 | PyObject * obj4 = 0 ; | |
10267 | PyObject * obj5 = 0 ; | |
10268 | PyObject * obj6 = 0 ; | |
10269 | char *kwnames[] = { | |
10270 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10271 | }; | |
10272 | ||
10273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 10275 | { |
8edf1c75 | 10276 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
10277 | if (PyErr_Occurred()) SWIG_fail; |
10278 | } | |
10279 | { | |
8edf1c75 | 10280 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
10281 | if (PyErr_Occurred()) SWIG_fail; |
10282 | } | |
10283 | { | |
8edf1c75 | 10284 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
10285 | if (PyErr_Occurred()) SWIG_fail; |
10286 | } | |
10287 | { | |
8edf1c75 | 10288 | arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj4); |
83448d71 RD |
10289 | if (PyErr_Occurred()) SWIG_fail; |
10290 | } | |
10291 | { | |
8edf1c75 | 10292 | arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj5); |
83448d71 RD |
10293 | if (PyErr_Occurred()) SWIG_fail; |
10294 | } | |
10295 | { | |
8edf1c75 | 10296 | arg7 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj6); |
83448d71 RD |
10297 | if (PyErr_Occurred()) SWIG_fail; |
10298 | } | |
d14a1e28 RD |
10299 | { |
10300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10301 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10302 | ||
10303 | wxPyEndAllowThreads(__tstate); | |
10304 | if (PyErr_Occurred()) SWIG_fail; | |
10305 | } | |
10306 | Py_INCREF(Py_None); resultobj = Py_None; | |
10307 | return resultobj; | |
10308 | fail: | |
10309 | return NULL; | |
10310 | } | |
10311 | ||
10312 | ||
10313 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10314 | PyObject *resultobj; | |
10315 | wxImage *arg1 = (wxImage *) 0 ; | |
10316 | unsigned char arg2 ; | |
10317 | unsigned char arg3 ; | |
10318 | unsigned char arg4 ; | |
10319 | SwigValueWrapper< wxImage > result; | |
10320 | PyObject * obj0 = 0 ; | |
10321 | PyObject * obj1 = 0 ; | |
10322 | PyObject * obj2 = 0 ; | |
10323 | PyObject * obj3 = 0 ; | |
10324 | char *kwnames[] = { | |
10325 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10326 | }; | |
10327 | ||
10328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 10330 | { |
8edf1c75 | 10331 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
10332 | if (PyErr_Occurred()) SWIG_fail; |
10333 | } | |
10334 | { | |
8edf1c75 | 10335 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
10336 | if (PyErr_Occurred()) SWIG_fail; |
10337 | } | |
10338 | { | |
8edf1c75 | 10339 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
10340 | if (PyErr_Occurred()) SWIG_fail; |
10341 | } | |
d14a1e28 RD |
10342 | { |
10343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10344 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10345 | ||
10346 | wxPyEndAllowThreads(__tstate); | |
10347 | if (PyErr_Occurred()) SWIG_fail; | |
10348 | } | |
10349 | { | |
10350 | wxImage * resultptr; | |
10351 | resultptr = new wxImage((wxImage &) result); | |
10352 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
10353 | } | |
10354 | return resultobj; | |
10355 | fail: | |
10356 | return NULL; | |
10357 | } | |
10358 | ||
10359 | ||
10360 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10361 | PyObject *resultobj; | |
10362 | wxImage *arg1 = (wxImage *) 0 ; | |
10363 | wxString *arg2 = 0 ; | |
10364 | wxString *arg3 = 0 ; | |
423f194a RD |
10365 | bool temp2 = False ; |
10366 | bool temp3 = False ; | |
d14a1e28 RD |
10367 | PyObject * obj0 = 0 ; |
10368 | PyObject * obj1 = 0 ; | |
10369 | PyObject * obj2 = 0 ; | |
10370 | char *kwnames[] = { | |
10371 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10372 | }; | |
10373 | ||
10374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10376 | { | |
10377 | arg2 = wxString_in_helper(obj1); | |
10378 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10379 | temp2 = True; |
d14a1e28 RD |
10380 | } |
10381 | { | |
10382 | arg3 = wxString_in_helper(obj2); | |
10383 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10384 | temp3 = True; |
d14a1e28 RD |
10385 | } |
10386 | { | |
10387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10388 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10389 | ||
10390 | wxPyEndAllowThreads(__tstate); | |
10391 | if (PyErr_Occurred()) SWIG_fail; | |
10392 | } | |
10393 | Py_INCREF(Py_None); resultobj = Py_None; | |
10394 | { | |
10395 | if (temp2) | |
10396 | delete arg2; | |
10397 | } | |
10398 | { | |
10399 | if (temp3) | |
10400 | delete arg3; | |
10401 | } | |
10402 | return resultobj; | |
10403 | fail: | |
10404 | { | |
10405 | if (temp2) | |
10406 | delete arg2; | |
10407 | } | |
10408 | { | |
10409 | if (temp3) | |
10410 | delete arg3; | |
10411 | } | |
10412 | return NULL; | |
10413 | } | |
10414 | ||
10415 | ||
10416 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10417 | PyObject *resultobj; | |
10418 | wxImage *arg1 = (wxImage *) 0 ; | |
10419 | wxString *arg2 = 0 ; | |
10420 | int arg3 ; | |
423f194a | 10421 | bool temp2 = False ; |
d14a1e28 RD |
10422 | PyObject * obj0 = 0 ; |
10423 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10424 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10425 | char *kwnames[] = { |
10426 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10427 | }; | |
10428 | ||
8edf1c75 | 10429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10431 | { | |
10432 | arg2 = wxString_in_helper(obj1); | |
10433 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10434 | temp2 = True; |
d14a1e28 | 10435 | } |
8edf1c75 RD |
10436 | { |
10437 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10438 | if (PyErr_Occurred()) SWIG_fail; | |
10439 | } | |
d14a1e28 RD |
10440 | { |
10441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10442 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10443 | ||
10444 | wxPyEndAllowThreads(__tstate); | |
10445 | if (PyErr_Occurred()) SWIG_fail; | |
10446 | } | |
10447 | Py_INCREF(Py_None); resultobj = Py_None; | |
10448 | { | |
10449 | if (temp2) | |
10450 | delete arg2; | |
10451 | } | |
10452 | return resultobj; | |
10453 | fail: | |
10454 | { | |
10455 | if (temp2) | |
10456 | delete arg2; | |
10457 | } | |
10458 | return NULL; | |
10459 | } | |
10460 | ||
10461 | ||
10462 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10463 | PyObject *resultobj; | |
10464 | wxImage *arg1 = (wxImage *) 0 ; | |
10465 | wxString *arg2 = 0 ; | |
10466 | wxString result; | |
423f194a | 10467 | bool temp2 = False ; |
d14a1e28 RD |
10468 | PyObject * obj0 = 0 ; |
10469 | PyObject * obj1 = 0 ; | |
10470 | char *kwnames[] = { | |
10471 | (char *) "self",(char *) "name", NULL | |
10472 | }; | |
10473 | ||
10474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
10475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10476 | { | |
10477 | arg2 = wxString_in_helper(obj1); | |
10478 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10479 | temp2 = True; |
d14a1e28 RD |
10480 | } |
10481 | { | |
10482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10483 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10484 | ||
10485 | wxPyEndAllowThreads(__tstate); | |
10486 | if (PyErr_Occurred()) SWIG_fail; | |
10487 | } | |
10488 | { | |
10489 | #if wxUSE_UNICODE | |
10490 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10491 | #else | |
10492 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10493 | #endif | |
10494 | } | |
10495 | { | |
10496 | if (temp2) | |
10497 | delete arg2; | |
10498 | } | |
10499 | return resultobj; | |
10500 | fail: | |
10501 | { | |
10502 | if (temp2) | |
10503 | delete arg2; | |
10504 | } | |
10505 | return NULL; | |
10506 | } | |
10507 | ||
10508 | ||
10509 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10510 | PyObject *resultobj; | |
10511 | wxImage *arg1 = (wxImage *) 0 ; | |
10512 | wxString *arg2 = 0 ; | |
10513 | int result; | |
423f194a | 10514 | bool temp2 = False ; |
d14a1e28 RD |
10515 | PyObject * obj0 = 0 ; |
10516 | PyObject * obj1 = 0 ; | |
10517 | char *kwnames[] = { | |
10518 | (char *) "self",(char *) "name", NULL | |
10519 | }; | |
10520 | ||
10521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
10522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10523 | { | |
10524 | arg2 = wxString_in_helper(obj1); | |
10525 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10526 | temp2 = True; |
d14a1e28 RD |
10527 | } |
10528 | { | |
10529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10530 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
10531 | ||
10532 | wxPyEndAllowThreads(__tstate); | |
10533 | if (PyErr_Occurred()) SWIG_fail; | |
10534 | } | |
8edf1c75 | 10535 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10536 | { |
10537 | if (temp2) | |
10538 | delete arg2; | |
10539 | } | |
10540 | return resultobj; | |
10541 | fail: | |
10542 | { | |
10543 | if (temp2) | |
10544 | delete arg2; | |
10545 | } | |
10546 | return NULL; | |
10547 | } | |
10548 | ||
10549 | ||
10550 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10551 | PyObject *resultobj; | |
10552 | wxImage *arg1 = (wxImage *) 0 ; | |
10553 | wxString *arg2 = 0 ; | |
10554 | bool result; | |
423f194a | 10555 | bool temp2 = False ; |
d14a1e28 RD |
10556 | PyObject * obj0 = 0 ; |
10557 | PyObject * obj1 = 0 ; | |
10558 | char *kwnames[] = { | |
10559 | (char *) "self",(char *) "name", NULL | |
10560 | }; | |
10561 | ||
10562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
10563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10564 | { | |
10565 | arg2 = wxString_in_helper(obj1); | |
10566 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10567 | temp2 = True; |
d14a1e28 RD |
10568 | } |
10569 | { | |
10570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10571 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
10572 | ||
10573 | wxPyEndAllowThreads(__tstate); | |
10574 | if (PyErr_Occurred()) SWIG_fail; | |
10575 | } | |
4e760a36 | 10576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10577 | { |
10578 | if (temp2) | |
10579 | delete arg2; | |
10580 | } | |
10581 | return resultobj; | |
10582 | fail: | |
10583 | { | |
10584 | if (temp2) | |
10585 | delete arg2; | |
10586 | } | |
10587 | return NULL; | |
10588 | } | |
10589 | ||
10590 | ||
10591 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10592 | PyObject *resultobj; | |
10593 | wxImage *arg1 = (wxImage *) 0 ; | |
10594 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
10595 | unsigned long result; | |
10596 | PyObject * obj0 = 0 ; | |
10597 | PyObject * obj1 = 0 ; | |
10598 | char *kwnames[] = { | |
10599 | (char *) "self",(char *) "stopafter", NULL | |
10600 | }; | |
10601 | ||
10602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
10603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10604 | if (obj1) { | |
83448d71 | 10605 | { |
8edf1c75 | 10606 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
10607 | if (PyErr_Occurred()) SWIG_fail; |
10608 | } | |
d14a1e28 RD |
10609 | } |
10610 | { | |
10611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10612 | result = (unsigned long)(arg1)->CountColours(arg2); | |
10613 | ||
10614 | wxPyEndAllowThreads(__tstate); | |
10615 | if (PyErr_Occurred()) SWIG_fail; | |
10616 | } | |
8edf1c75 | 10617 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10618 | return resultobj; |
10619 | fail: | |
10620 | return NULL; | |
10621 | } | |
10622 | ||
10623 | ||
10624 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10625 | PyObject *resultobj; | |
10626 | wxImage *arg1 = (wxImage *) 0 ; | |
10627 | wxImageHistogram *arg2 = 0 ; | |
10628 | unsigned long result; | |
10629 | PyObject * obj0 = 0 ; | |
10630 | PyObject * obj1 = 0 ; | |
10631 | char *kwnames[] = { | |
10632 | (char *) "self",(char *) "h", NULL | |
10633 | }; | |
10634 | ||
10635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
10636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10637 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10638 | if (arg2 == NULL) { | |
10639 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10640 | } | |
10641 | { | |
10642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10643 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
10644 | ||
10645 | wxPyEndAllowThreads(__tstate); | |
10646 | if (PyErr_Occurred()) SWIG_fail; | |
10647 | } | |
8edf1c75 | 10648 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10649 | return resultobj; |
10650 | fail: | |
10651 | return NULL; | |
10652 | } | |
10653 | ||
10654 | ||
10655 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10656 | PyObject *resultobj; | |
10657 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10658 | PyObject * obj0 = 0 ; | |
10659 | char *kwnames[] = { | |
10660 | (char *) "handler", NULL | |
10661 | }; | |
10662 | ||
10663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
10664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10665 | { | |
10666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10667 | wxImage::AddHandler(arg1); | |
10668 | ||
10669 | wxPyEndAllowThreads(__tstate); | |
10670 | if (PyErr_Occurred()) SWIG_fail; | |
10671 | } | |
10672 | Py_INCREF(Py_None); resultobj = Py_None; | |
10673 | return resultobj; | |
10674 | fail: | |
10675 | return NULL; | |
10676 | } | |
10677 | ||
10678 | ||
10679 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10680 | PyObject *resultobj; | |
10681 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10682 | PyObject * obj0 = 0 ; | |
10683 | char *kwnames[] = { | |
10684 | (char *) "handler", NULL | |
10685 | }; | |
10686 | ||
10687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
10688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10689 | { | |
10690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10691 | wxImage::InsertHandler(arg1); | |
10692 | ||
10693 | wxPyEndAllowThreads(__tstate); | |
10694 | if (PyErr_Occurred()) SWIG_fail; | |
10695 | } | |
10696 | Py_INCREF(Py_None); resultobj = Py_None; | |
10697 | return resultobj; | |
10698 | fail: | |
10699 | return NULL; | |
10700 | } | |
10701 | ||
10702 | ||
10703 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10704 | PyObject *resultobj; | |
10705 | wxString *arg1 = 0 ; | |
10706 | bool result; | |
423f194a | 10707 | bool temp1 = False ; |
d14a1e28 RD |
10708 | PyObject * obj0 = 0 ; |
10709 | char *kwnames[] = { | |
10710 | (char *) "name", NULL | |
10711 | }; | |
10712 | ||
10713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
10714 | { | |
10715 | arg1 = wxString_in_helper(obj0); | |
10716 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10717 | temp1 = True; |
d14a1e28 RD |
10718 | } |
10719 | { | |
10720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10721 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
10722 | ||
10723 | wxPyEndAllowThreads(__tstate); | |
10724 | if (PyErr_Occurred()) SWIG_fail; | |
10725 | } | |
4e760a36 | 10726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10727 | { |
10728 | if (temp1) | |
10729 | delete arg1; | |
10730 | } | |
10731 | return resultobj; | |
10732 | fail: | |
10733 | { | |
10734 | if (temp1) | |
10735 | delete arg1; | |
10736 | } | |
10737 | return NULL; | |
10738 | } | |
10739 | ||
10740 | ||
10741 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10742 | PyObject *resultobj; | |
10743 | wxString result; | |
10744 | char *kwnames[] = { | |
10745 | NULL | |
10746 | }; | |
10747 | ||
10748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
10749 | { | |
10750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10751 | result = wxImage::GetImageExtWildcard(); | |
10752 | ||
10753 | wxPyEndAllowThreads(__tstate); | |
10754 | if (PyErr_Occurred()) SWIG_fail; | |
10755 | } | |
10756 | { | |
10757 | #if wxUSE_UNICODE | |
10758 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10759 | #else | |
10760 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10761 | #endif | |
10762 | } | |
10763 | return resultobj; | |
10764 | fail: | |
10765 | return NULL; | |
10766 | } | |
10767 | ||
10768 | ||
10769 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10770 | PyObject *resultobj; | |
10771 | wxImage *arg1 = (wxImage *) 0 ; | |
10772 | wxBitmap result; | |
10773 | PyObject * obj0 = 0 ; | |
10774 | char *kwnames[] = { | |
10775 | (char *) "self", NULL | |
10776 | }; | |
10777 | ||
10778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
10779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10780 | { | |
10781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10782 | result = wxImage_ConvertToBitmap(arg1); | |
10783 | ||
10784 | wxPyEndAllowThreads(__tstate); | |
10785 | if (PyErr_Occurred()) SWIG_fail; | |
10786 | } | |
10787 | { | |
10788 | wxBitmap * resultptr; | |
10789 | resultptr = new wxBitmap((wxBitmap &) result); | |
10790 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
10791 | } | |
10792 | return resultobj; | |
10793 | fail: | |
10794 | return NULL; | |
10795 | } | |
10796 | ||
10797 | ||
10798 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10799 | PyObject *resultobj; | |
10800 | wxImage *arg1 = (wxImage *) 0 ; | |
10801 | unsigned char arg2 ; | |
10802 | unsigned char arg3 ; | |
10803 | unsigned char arg4 ; | |
10804 | wxBitmap result; | |
10805 | PyObject * obj0 = 0 ; | |
10806 | PyObject * obj1 = 0 ; | |
10807 | PyObject * obj2 = 0 ; | |
10808 | PyObject * obj3 = 0 ; | |
10809 | char *kwnames[] = { | |
10810 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
10811 | }; | |
10812 | ||
10813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 10815 | { |
8edf1c75 | 10816 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
10817 | if (PyErr_Occurred()) SWIG_fail; |
10818 | } | |
10819 | { | |
8edf1c75 | 10820 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
10821 | if (PyErr_Occurred()) SWIG_fail; |
10822 | } | |
10823 | { | |
8edf1c75 | 10824 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
10825 | if (PyErr_Occurred()) SWIG_fail; |
10826 | } | |
d14a1e28 RD |
10827 | { |
10828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10829 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
10830 | ||
10831 | wxPyEndAllowThreads(__tstate); | |
10832 | if (PyErr_Occurred()) SWIG_fail; | |
10833 | } | |
10834 | { | |
10835 | wxBitmap * resultptr; | |
10836 | resultptr = new wxBitmap((wxBitmap &) result); | |
10837 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
10838 | } | |
10839 | return resultobj; | |
10840 | fail: | |
10841 | return NULL; | |
10842 | } | |
10843 | ||
10844 | ||
10845 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
10846 | PyObject *obj; | |
10847 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10848 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
10849 | Py_INCREF(obj); | |
10850 | return Py_BuildValue((char *)""); | |
10851 | } | |
10852 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10853 | PyObject *resultobj; | |
10854 | char *kwnames[] = { | |
10855 | NULL | |
10856 | }; | |
10857 | ||
10858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
10859 | { | |
10860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10861 | wxInitAllImageHandlers(); | |
10862 | ||
10863 | wxPyEndAllowThreads(__tstate); | |
10864 | if (PyErr_Occurred()) SWIG_fail; | |
10865 | } | |
10866 | Py_INCREF(Py_None); resultobj = Py_None; | |
10867 | return resultobj; | |
10868 | fail: | |
10869 | return NULL; | |
10870 | } | |
10871 | ||
10872 | ||
8edf1c75 | 10873 | static int _wrap_NullImage_set(PyObject *) { |
d14a1e28 RD |
10874 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
10875 | return 1; | |
10876 | } | |
10877 | ||
10878 | ||
10879 | static PyObject *_wrap_NullImage_get() { | |
10880 | PyObject *pyobj; | |
10881 | ||
10882 | pyobj = SWIG_NewPointerObj((void *) &wxNullImage, SWIGTYPE_p_wxImage, 0); | |
10883 | return pyobj; | |
10884 | } | |
10885 | ||
10886 | ||
8edf1c75 | 10887 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) { |
d14a1e28 RD |
10888 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
10889 | return 1; | |
10890 | } | |
10891 | ||
10892 | ||
10893 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
10894 | PyObject *pyobj; | |
10895 | ||
10896 | { | |
10897 | #if wxUSE_UNICODE | |
10898 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
10899 | #else | |
10900 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
10901 | #endif | |
10902 | } | |
10903 | return pyobj; | |
10904 | } | |
10905 | ||
10906 | ||
8edf1c75 | 10907 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) { |
d14a1e28 RD |
10908 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
10909 | return 1; | |
10910 | } | |
10911 | ||
10912 | ||
10913 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
10914 | PyObject *pyobj; | |
10915 | ||
10916 | { | |
10917 | #if wxUSE_UNICODE | |
10918 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10919 | #else | |
10920 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10921 | #endif | |
10922 | } | |
10923 | return pyobj; | |
10924 | } | |
10925 | ||
10926 | ||
8edf1c75 | 10927 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) { |
d14a1e28 RD |
10928 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
10929 | return 1; | |
10930 | } | |
10931 | ||
10932 | ||
10933 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
10934 | PyObject *pyobj; | |
10935 | ||
10936 | { | |
10937 | #if wxUSE_UNICODE | |
10938 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10939 | #else | |
10940 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10941 | #endif | |
10942 | } | |
10943 | return pyobj; | |
10944 | } | |
10945 | ||
10946 | ||
8edf1c75 | 10947 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) { |
d14a1e28 RD |
10948 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
10949 | return 1; | |
10950 | } | |
10951 | ||
10952 | ||
10953 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
10954 | PyObject *pyobj; | |
10955 | ||
10956 | { | |
10957 | #if wxUSE_UNICODE | |
10958 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10959 | #else | |
10960 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10961 | #endif | |
10962 | } | |
10963 | return pyobj; | |
10964 | } | |
10965 | ||
10966 | ||
8edf1c75 | 10967 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) { |
d14a1e28 RD |
10968 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
10969 | return 1; | |
10970 | } | |
10971 | ||
10972 | ||
10973 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
10974 | PyObject *pyobj; | |
10975 | ||
10976 | { | |
10977 | #if wxUSE_UNICODE | |
10978 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10979 | #else | |
10980 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10981 | #endif | |
10982 | } | |
10983 | return pyobj; | |
10984 | } | |
10985 | ||
10986 | ||
10987 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10988 | PyObject *resultobj; | |
10989 | wxBMPHandler *result; | |
10990 | char *kwnames[] = { | |
10991 | NULL | |
10992 | }; | |
10993 | ||
10994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
10995 | { | |
10996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10997 | result = (wxBMPHandler *)new wxBMPHandler(); | |
10998 | ||
10999 | wxPyEndAllowThreads(__tstate); | |
11000 | if (PyErr_Occurred()) SWIG_fail; | |
11001 | } | |
11002 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBMPHandler, 1); | |
11003 | return resultobj; | |
11004 | fail: | |
11005 | return NULL; | |
11006 | } | |
11007 | ||
11008 | ||
11009 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11010 | PyObject *obj; | |
11011 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11012 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11013 | Py_INCREF(obj); | |
11014 | return Py_BuildValue((char *)""); | |
11015 | } | |
11016 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11017 | PyObject *resultobj; | |
11018 | wxICOHandler *result; | |
11019 | char *kwnames[] = { | |
11020 | NULL | |
11021 | }; | |
11022 | ||
11023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11024 | { | |
11025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11026 | result = (wxICOHandler *)new wxICOHandler(); | |
11027 | ||
11028 | wxPyEndAllowThreads(__tstate); | |
11029 | if (PyErr_Occurred()) SWIG_fail; | |
11030 | } | |
11031 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxICOHandler, 1); | |
11032 | return resultobj; | |
11033 | fail: | |
11034 | return NULL; | |
11035 | } | |
11036 | ||
11037 | ||
11038 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11039 | PyObject *obj; | |
11040 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11041 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11042 | Py_INCREF(obj); | |
11043 | return Py_BuildValue((char *)""); | |
11044 | } | |
11045 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11046 | PyObject *resultobj; | |
11047 | wxCURHandler *result; | |
11048 | char *kwnames[] = { | |
11049 | NULL | |
11050 | }; | |
11051 | ||
11052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11053 | { | |
11054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11055 | result = (wxCURHandler *)new wxCURHandler(); | |
11056 | ||
11057 | wxPyEndAllowThreads(__tstate); | |
11058 | if (PyErr_Occurred()) SWIG_fail; | |
11059 | } | |
11060 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCURHandler, 1); | |
11061 | return resultobj; | |
11062 | fail: | |
11063 | return NULL; | |
11064 | } | |
11065 | ||
11066 | ||
11067 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11068 | PyObject *obj; | |
11069 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11070 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11071 | Py_INCREF(obj); | |
11072 | return Py_BuildValue((char *)""); | |
11073 | } | |
11074 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11075 | PyObject *resultobj; | |
11076 | wxANIHandler *result; | |
11077 | char *kwnames[] = { | |
11078 | NULL | |
11079 | }; | |
11080 | ||
11081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11082 | { | |
11083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11084 | result = (wxANIHandler *)new wxANIHandler(); | |
11085 | ||
11086 | wxPyEndAllowThreads(__tstate); | |
11087 | if (PyErr_Occurred()) SWIG_fail; | |
11088 | } | |
11089 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxANIHandler, 1); | |
11090 | return resultobj; | |
11091 | fail: | |
11092 | return NULL; | |
11093 | } | |
11094 | ||
11095 | ||
11096 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11097 | PyObject *obj; | |
11098 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11099 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11100 | Py_INCREF(obj); | |
11101 | return Py_BuildValue((char *)""); | |
11102 | } | |
11103 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11104 | PyObject *resultobj; | |
11105 | wxPNGHandler *result; | |
11106 | char *kwnames[] = { | |
11107 | NULL | |
11108 | }; | |
11109 | ||
11110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11111 | { | |
11112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11113 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11114 | ||
11115 | wxPyEndAllowThreads(__tstate); | |
11116 | if (PyErr_Occurred()) SWIG_fail; | |
11117 | } | |
11118 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNGHandler, 1); | |
11119 | return resultobj; | |
11120 | fail: | |
11121 | return NULL; | |
11122 | } | |
11123 | ||
11124 | ||
11125 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11126 | PyObject *obj; | |
11127 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11128 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11129 | Py_INCREF(obj); | |
11130 | return Py_BuildValue((char *)""); | |
11131 | } | |
11132 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11133 | PyObject *resultobj; | |
11134 | wxGIFHandler *result; | |
11135 | char *kwnames[] = { | |
11136 | NULL | |
11137 | }; | |
11138 | ||
11139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11140 | { | |
11141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11142 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11143 | ||
11144 | wxPyEndAllowThreads(__tstate); | |
11145 | if (PyErr_Occurred()) SWIG_fail; | |
11146 | } | |
11147 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGIFHandler, 1); | |
11148 | return resultobj; | |
11149 | fail: | |
11150 | return NULL; | |
11151 | } | |
11152 | ||
11153 | ||
11154 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11155 | PyObject *obj; | |
11156 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11157 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11158 | Py_INCREF(obj); | |
11159 | return Py_BuildValue((char *)""); | |
11160 | } | |
11161 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11162 | PyObject *resultobj; | |
11163 | wxPCXHandler *result; | |
11164 | char *kwnames[] = { | |
11165 | NULL | |
11166 | }; | |
11167 | ||
11168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11169 | { | |
11170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11171 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11172 | ||
11173 | wxPyEndAllowThreads(__tstate); | |
11174 | if (PyErr_Occurred()) SWIG_fail; | |
11175 | } | |
11176 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPCXHandler, 1); | |
11177 | return resultobj; | |
11178 | fail: | |
11179 | return NULL; | |
11180 | } | |
11181 | ||
11182 | ||
11183 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11184 | PyObject *obj; | |
11185 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11186 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11187 | Py_INCREF(obj); | |
11188 | return Py_BuildValue((char *)""); | |
11189 | } | |
11190 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11191 | PyObject *resultobj; | |
11192 | wxJPEGHandler *result; | |
11193 | char *kwnames[] = { | |
11194 | NULL | |
11195 | }; | |
11196 | ||
11197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11198 | { | |
11199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11200 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11201 | ||
11202 | wxPyEndAllowThreads(__tstate); | |
11203 | if (PyErr_Occurred()) SWIG_fail; | |
11204 | } | |
11205 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJPEGHandler, 1); | |
11206 | return resultobj; | |
11207 | fail: | |
11208 | return NULL; | |
11209 | } | |
11210 | ||
11211 | ||
11212 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11213 | PyObject *obj; | |
11214 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11215 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11216 | Py_INCREF(obj); | |
11217 | return Py_BuildValue((char *)""); | |
11218 | } | |
11219 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11220 | PyObject *resultobj; | |
11221 | wxPNMHandler *result; | |
11222 | char *kwnames[] = { | |
11223 | NULL | |
11224 | }; | |
11225 | ||
11226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11227 | { | |
11228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11229 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11230 | ||
11231 | wxPyEndAllowThreads(__tstate); | |
11232 | if (PyErr_Occurred()) SWIG_fail; | |
11233 | } | |
11234 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNMHandler, 1); | |
11235 | return resultobj; | |
11236 | fail: | |
11237 | return NULL; | |
11238 | } | |
11239 | ||
11240 | ||
11241 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11242 | PyObject *obj; | |
11243 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11244 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11245 | Py_INCREF(obj); | |
11246 | return Py_BuildValue((char *)""); | |
11247 | } | |
11248 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11249 | PyObject *resultobj; | |
11250 | wxXPMHandler *result; | |
11251 | char *kwnames[] = { | |
11252 | NULL | |
11253 | }; | |
11254 | ||
11255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11256 | { | |
11257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11258 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11259 | ||
11260 | wxPyEndAllowThreads(__tstate); | |
11261 | if (PyErr_Occurred()) SWIG_fail; | |
11262 | } | |
11263 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxXPMHandler, 1); | |
11264 | return resultobj; | |
11265 | fail: | |
11266 | return NULL; | |
11267 | } | |
11268 | ||
11269 | ||
11270 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11271 | PyObject *obj; | |
11272 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11273 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11274 | Py_INCREF(obj); | |
11275 | return Py_BuildValue((char *)""); | |
11276 | } | |
11277 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11278 | PyObject *resultobj; | |
11279 | wxTIFFHandler *result; | |
11280 | char *kwnames[] = { | |
11281 | NULL | |
11282 | }; | |
11283 | ||
11284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11285 | { | |
11286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11287 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11288 | ||
11289 | wxPyEndAllowThreads(__tstate); | |
11290 | if (PyErr_Occurred()) SWIG_fail; | |
11291 | } | |
11292 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTIFFHandler, 1); | |
11293 | return resultobj; | |
11294 | fail: | |
11295 | return NULL; | |
11296 | } | |
11297 | ||
11298 | ||
11299 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11300 | PyObject *obj; | |
11301 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11302 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11303 | Py_INCREF(obj); | |
11304 | return Py_BuildValue((char *)""); | |
11305 | } | |
11306 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11307 | PyObject *resultobj; | |
11308 | wxEvtHandler *result; | |
11309 | char *kwnames[] = { | |
11310 | NULL | |
11311 | }; | |
11312 | ||
11313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11314 | { | |
11315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11316 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11317 | ||
11318 | wxPyEndAllowThreads(__tstate); | |
11319 | if (PyErr_Occurred()) SWIG_fail; | |
11320 | } | |
11321 | { | |
11322 | resultobj = wxPyMake_wxObject(result); | |
11323 | } | |
11324 | return resultobj; | |
11325 | fail: | |
11326 | return NULL; | |
11327 | } | |
11328 | ||
11329 | ||
11330 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11331 | PyObject *resultobj; | |
11332 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11333 | wxEvtHandler *result; | |
11334 | PyObject * obj0 = 0 ; | |
11335 | char *kwnames[] = { | |
11336 | (char *) "self", NULL | |
11337 | }; | |
11338 | ||
11339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
11340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11341 | { | |
11342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11343 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11344 | ||
11345 | wxPyEndAllowThreads(__tstate); | |
11346 | if (PyErr_Occurred()) SWIG_fail; | |
11347 | } | |
11348 | { | |
11349 | resultobj = wxPyMake_wxObject(result); | |
11350 | } | |
11351 | return resultobj; | |
11352 | fail: | |
11353 | return NULL; | |
11354 | } | |
11355 | ||
11356 | ||
11357 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11358 | PyObject *resultobj; | |
11359 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11360 | wxEvtHandler *result; | |
11361 | PyObject * obj0 = 0 ; | |
11362 | char *kwnames[] = { | |
11363 | (char *) "self", NULL | |
11364 | }; | |
11365 | ||
11366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
11367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11368 | { | |
11369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11370 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11371 | ||
11372 | wxPyEndAllowThreads(__tstate); | |
11373 | if (PyErr_Occurred()) SWIG_fail; | |
11374 | } | |
11375 | { | |
11376 | resultobj = wxPyMake_wxObject(result); | |
11377 | } | |
11378 | return resultobj; | |
11379 | fail: | |
11380 | return NULL; | |
11381 | } | |
11382 | ||
11383 | ||
11384 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11385 | PyObject *resultobj; | |
11386 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11387 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11388 | PyObject * obj0 = 0 ; | |
11389 | PyObject * obj1 = 0 ; | |
11390 | char *kwnames[] = { | |
11391 | (char *) "self",(char *) "handler", NULL | |
11392 | }; | |
11393 | ||
11394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
11395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11396 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11397 | { | |
11398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11399 | (arg1)->SetNextHandler(arg2); | |
11400 | ||
11401 | wxPyEndAllowThreads(__tstate); | |
11402 | if (PyErr_Occurred()) SWIG_fail; | |
11403 | } | |
11404 | Py_INCREF(Py_None); resultobj = Py_None; | |
11405 | return resultobj; | |
11406 | fail: | |
11407 | return NULL; | |
11408 | } | |
11409 | ||
11410 | ||
11411 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11412 | PyObject *resultobj; | |
11413 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11414 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11415 | PyObject * obj0 = 0 ; | |
11416 | PyObject * obj1 = 0 ; | |
11417 | char *kwnames[] = { | |
11418 | (char *) "self",(char *) "handler", NULL | |
11419 | }; | |
11420 | ||
11421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
11422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11423 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11424 | { | |
11425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11426 | (arg1)->SetPreviousHandler(arg2); | |
11427 | ||
11428 | wxPyEndAllowThreads(__tstate); | |
11429 | if (PyErr_Occurred()) SWIG_fail; | |
11430 | } | |
11431 | Py_INCREF(Py_None); resultobj = Py_None; | |
11432 | return resultobj; | |
11433 | fail: | |
11434 | return NULL; | |
11435 | } | |
11436 | ||
11437 | ||
11438 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11439 | PyObject *resultobj; | |
11440 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11441 | bool result; | |
11442 | PyObject * obj0 = 0 ; | |
11443 | char *kwnames[] = { | |
11444 | (char *) "self", NULL | |
11445 | }; | |
11446 | ||
11447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
11448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11449 | { | |
11450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11451 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11452 | ||
11453 | wxPyEndAllowThreads(__tstate); | |
11454 | if (PyErr_Occurred()) SWIG_fail; | |
11455 | } | |
4e760a36 | 11456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11457 | return resultobj; |
11458 | fail: | |
11459 | return NULL; | |
11460 | } | |
11461 | ||
11462 | ||
11463 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11464 | PyObject *resultobj; | |
11465 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11466 | bool arg2 ; | |
11467 | PyObject * obj0 = 0 ; | |
11468 | PyObject * obj1 = 0 ; | |
11469 | char *kwnames[] = { | |
11470 | (char *) "self",(char *) "enabled", NULL | |
11471 | }; | |
11472 | ||
11473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
11474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 11475 | { |
8edf1c75 | 11476 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
11477 | if (PyErr_Occurred()) SWIG_fail; |
11478 | } | |
d14a1e28 RD |
11479 | { |
11480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11481 | (arg1)->SetEvtHandlerEnabled(arg2); | |
11482 | ||
11483 | wxPyEndAllowThreads(__tstate); | |
11484 | if (PyErr_Occurred()) SWIG_fail; | |
11485 | } | |
11486 | Py_INCREF(Py_None); resultobj = Py_None; | |
11487 | return resultobj; | |
11488 | fail: | |
11489 | return NULL; | |
11490 | } | |
11491 | ||
11492 | ||
11493 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11494 | PyObject *resultobj; | |
11495 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11496 | wxEvent *arg2 = 0 ; | |
11497 | bool result; | |
11498 | PyObject * obj0 = 0 ; | |
11499 | PyObject * obj1 = 0 ; | |
11500 | char *kwnames[] = { | |
11501 | (char *) "self",(char *) "event", NULL | |
11502 | }; | |
11503 | ||
11504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
11505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11506 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11507 | if (arg2 == NULL) { | |
11508 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11509 | } | |
11510 | { | |
11511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11512 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
11513 | ||
11514 | wxPyEndAllowThreads(__tstate); | |
11515 | if (PyErr_Occurred()) SWIG_fail; | |
11516 | } | |
4e760a36 | 11517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11518 | return resultobj; |
11519 | fail: | |
11520 | return NULL; | |
11521 | } | |
11522 | ||
11523 | ||
11524 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11525 | PyObject *resultobj; | |
11526 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11527 | wxEvent *arg2 = 0 ; | |
11528 | PyObject * obj0 = 0 ; | |
11529 | PyObject * obj1 = 0 ; | |
11530 | char *kwnames[] = { | |
11531 | (char *) "self",(char *) "event", NULL | |
11532 | }; | |
11533 | ||
11534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
11535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11536 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11537 | if (arg2 == NULL) { | |
11538 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11539 | } | |
11540 | { | |
11541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11542 | (arg1)->AddPendingEvent(*arg2); | |
11543 | ||
11544 | wxPyEndAllowThreads(__tstate); | |
11545 | if (PyErr_Occurred()) SWIG_fail; | |
11546 | } | |
11547 | Py_INCREF(Py_None); resultobj = Py_None; | |
11548 | return resultobj; | |
11549 | fail: | |
11550 | return NULL; | |
11551 | } | |
11552 | ||
11553 | ||
11554 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11555 | PyObject *resultobj; | |
11556 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11557 | PyObject * obj0 = 0 ; | |
11558 | char *kwnames[] = { | |
11559 | (char *) "self", NULL | |
11560 | }; | |
11561 | ||
11562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
11563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11564 | { | |
11565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11566 | (arg1)->ProcessPendingEvents(); | |
11567 | ||
11568 | wxPyEndAllowThreads(__tstate); | |
11569 | if (PyErr_Occurred()) SWIG_fail; | |
11570 | } | |
11571 | Py_INCREF(Py_None); resultobj = Py_None; | |
11572 | return resultobj; | |
11573 | fail: | |
11574 | return NULL; | |
11575 | } | |
11576 | ||
11577 | ||
11578 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11579 | PyObject *resultobj; | |
11580 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11581 | int arg2 ; | |
11582 | int arg3 ; | |
11583 | int arg4 ; | |
11584 | PyObject *arg5 = (PyObject *) 0 ; | |
11585 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11586 | PyObject * obj1 = 0 ; |
11587 | PyObject * obj2 = 0 ; | |
11588 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11589 | PyObject * obj4 = 0 ; |
11590 | char *kwnames[] = { | |
11591 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
11592 | }; | |
11593 | ||
8edf1c75 | 11594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 11595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11596 | { |
11597 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11598 | if (PyErr_Occurred()) SWIG_fail; | |
11599 | } | |
11600 | { | |
11601 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11602 | if (PyErr_Occurred()) SWIG_fail; | |
11603 | } | |
11604 | { | |
11605 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11606 | if (PyErr_Occurred()) SWIG_fail; | |
11607 | } | |
d14a1e28 RD |
11608 | arg5 = obj4; |
11609 | { | |
11610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11611 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
11612 | ||
11613 | wxPyEndAllowThreads(__tstate); | |
11614 | if (PyErr_Occurred()) SWIG_fail; | |
11615 | } | |
11616 | Py_INCREF(Py_None); resultobj = Py_None; | |
11617 | return resultobj; | |
11618 | fail: | |
11619 | return NULL; | |
11620 | } | |
11621 | ||
11622 | ||
11623 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11624 | PyObject *resultobj; | |
11625 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11626 | int arg2 ; | |
11627 | int arg3 = (int) -1 ; | |
11628 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
11629 | bool result; | |
11630 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11631 | PyObject * obj1 = 0 ; |
11632 | PyObject * obj2 = 0 ; | |
11633 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11634 | char *kwnames[] = { |
11635 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
11636 | }; | |
11637 | ||
8edf1c75 | 11638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 11639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11640 | { |
11641 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11642 | if (PyErr_Occurred()) SWIG_fail; | |
11643 | } | |
11644 | if (obj2) { | |
11645 | { | |
11646 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11647 | if (PyErr_Occurred()) SWIG_fail; | |
11648 | } | |
11649 | } | |
11650 | if (obj3) { | |
11651 | { | |
11652 | arg4 = (wxEventType) SWIG_PyObj_AsInt(obj3); | |
11653 | if (PyErr_Occurred()) SWIG_fail; | |
11654 | } | |
11655 | } | |
d14a1e28 RD |
11656 | { |
11657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11658 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
11659 | ||
11660 | wxPyEndAllowThreads(__tstate); | |
11661 | if (PyErr_Occurred()) SWIG_fail; | |
11662 | } | |
4e760a36 | 11663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11664 | return resultobj; |
11665 | fail: | |
11666 | return NULL; | |
11667 | } | |
11668 | ||
11669 | ||
11670 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11671 | PyObject *resultobj; | |
11672 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11673 | PyObject *arg2 = (PyObject *) 0 ; | |
11674 | PyObject * obj0 = 0 ; | |
11675 | PyObject * obj1 = 0 ; | |
11676 | char *kwnames[] = { | |
11677 | (char *) "self",(char *) "_self", NULL | |
11678 | }; | |
11679 | ||
11680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
11681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11682 | arg2 = obj1; | |
11683 | { | |
11684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11685 | wxEvtHandler__setOORInfo(arg1,arg2); | |
11686 | ||
11687 | wxPyEndAllowThreads(__tstate); | |
11688 | if (PyErr_Occurred()) SWIG_fail; | |
11689 | } | |
11690 | Py_INCREF(Py_None); resultobj = Py_None; | |
11691 | return resultobj; | |
11692 | fail: | |
11693 | return NULL; | |
11694 | } | |
11695 | ||
11696 | ||
11697 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
11698 | PyObject *obj; | |
11699 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11700 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
11701 | Py_INCREF(obj); | |
11702 | return Py_BuildValue((char *)""); | |
11703 | } | |
11704 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11705 | PyObject *resultobj; | |
11706 | wxEventType result; | |
11707 | char *kwnames[] = { | |
11708 | NULL | |
11709 | }; | |
11710 | ||
11711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
11712 | { | |
11713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11714 | result = (wxEventType)wxNewEventType(); | |
11715 | ||
11716 | wxPyEndAllowThreads(__tstate); | |
11717 | if (PyErr_Occurred()) SWIG_fail; | |
11718 | } | |
8edf1c75 | 11719 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11720 | return resultobj; |
11721 | fail: | |
11722 | return NULL; | |
11723 | } | |
11724 | ||
11725 | ||
11726 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11727 | PyObject *resultobj; | |
11728 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11729 | PyObject * obj0 = 0 ; | |
11730 | char *kwnames[] = { | |
11731 | (char *) "self", NULL | |
11732 | }; | |
11733 | ||
11734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
11735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11736 | { | |
11737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11738 | delete arg1; | |
11739 | ||
11740 | wxPyEndAllowThreads(__tstate); | |
11741 | if (PyErr_Occurred()) SWIG_fail; | |
11742 | } | |
11743 | Py_INCREF(Py_None); resultobj = Py_None; | |
11744 | return resultobj; | |
11745 | fail: | |
11746 | return NULL; | |
11747 | } | |
11748 | ||
11749 | ||
11750 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11751 | PyObject *resultobj; | |
11752 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11753 | wxEventType arg2 ; | |
11754 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11755 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11756 | char *kwnames[] = { |
11757 | (char *) "self",(char *) "typ", NULL | |
11758 | }; | |
11759 | ||
8edf1c75 | 11760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11762 | { |
11763 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
11764 | if (PyErr_Occurred()) SWIG_fail; | |
11765 | } | |
d14a1e28 RD |
11766 | { |
11767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11768 | (arg1)->SetEventType(arg2); | |
11769 | ||
11770 | wxPyEndAllowThreads(__tstate); | |
11771 | if (PyErr_Occurred()) SWIG_fail; | |
11772 | } | |
11773 | Py_INCREF(Py_None); resultobj = Py_None; | |
11774 | return resultobj; | |
11775 | fail: | |
11776 | return NULL; | |
11777 | } | |
11778 | ||
11779 | ||
11780 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11781 | PyObject *resultobj; | |
11782 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11783 | wxEventType result; | |
11784 | PyObject * obj0 = 0 ; | |
11785 | char *kwnames[] = { | |
11786 | (char *) "self", NULL | |
11787 | }; | |
11788 | ||
11789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
11790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11791 | { | |
11792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11793 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
11794 | ||
11795 | wxPyEndAllowThreads(__tstate); | |
11796 | if (PyErr_Occurred()) SWIG_fail; | |
11797 | } | |
8edf1c75 | 11798 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11799 | return resultobj; |
11800 | fail: | |
11801 | return NULL; | |
11802 | } | |
11803 | ||
11804 | ||
11805 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11806 | PyObject *resultobj; | |
11807 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11808 | wxObject *result; | |
11809 | PyObject * obj0 = 0 ; | |
11810 | char *kwnames[] = { | |
11811 | (char *) "self", NULL | |
11812 | }; | |
11813 | ||
11814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
11815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11816 | { | |
11817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11818 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
11819 | ||
11820 | wxPyEndAllowThreads(__tstate); | |
11821 | if (PyErr_Occurred()) SWIG_fail; | |
11822 | } | |
11823 | { | |
11824 | resultobj = wxPyMake_wxObject(result); | |
11825 | } | |
11826 | return resultobj; | |
11827 | fail: | |
11828 | return NULL; | |
11829 | } | |
11830 | ||
11831 | ||
11832 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11833 | PyObject *resultobj; | |
11834 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11835 | wxObject *arg2 = (wxObject *) 0 ; | |
11836 | PyObject * obj0 = 0 ; | |
11837 | PyObject * obj1 = 0 ; | |
11838 | char *kwnames[] = { | |
11839 | (char *) "self",(char *) "obj", NULL | |
11840 | }; | |
11841 | ||
11842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
11843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11844 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11845 | { | |
11846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11847 | (arg1)->SetEventObject(arg2); | |
11848 | ||
11849 | wxPyEndAllowThreads(__tstate); | |
11850 | if (PyErr_Occurred()) SWIG_fail; | |
11851 | } | |
11852 | Py_INCREF(Py_None); resultobj = Py_None; | |
11853 | return resultobj; | |
11854 | fail: | |
11855 | return NULL; | |
11856 | } | |
11857 | ||
11858 | ||
11859 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11860 | PyObject *resultobj; | |
11861 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11862 | long result; | |
11863 | PyObject * obj0 = 0 ; | |
11864 | char *kwnames[] = { | |
11865 | (char *) "self", NULL | |
11866 | }; | |
11867 | ||
11868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
11869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11870 | { | |
11871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11872 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
11873 | ||
11874 | wxPyEndAllowThreads(__tstate); | |
11875 | if (PyErr_Occurred()) SWIG_fail; | |
11876 | } | |
8edf1c75 | 11877 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
11878 | return resultobj; |
11879 | fail: | |
11880 | return NULL; | |
11881 | } | |
11882 | ||
11883 | ||
11884 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11885 | PyObject *resultobj; | |
11886 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11887 | long arg2 = (long) 0 ; | |
11888 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11889 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11890 | char *kwnames[] = { |
11891 | (char *) "self",(char *) "ts", NULL | |
11892 | }; | |
11893 | ||
8edf1c75 | 11894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11896 | if (obj1) { |
11897 | { | |
11898 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
11899 | if (PyErr_Occurred()) SWIG_fail; | |
11900 | } | |
11901 | } | |
d14a1e28 RD |
11902 | { |
11903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11904 | (arg1)->SetTimestamp(arg2); | |
11905 | ||
11906 | wxPyEndAllowThreads(__tstate); | |
11907 | if (PyErr_Occurred()) SWIG_fail; | |
11908 | } | |
11909 | Py_INCREF(Py_None); resultobj = Py_None; | |
11910 | return resultobj; | |
11911 | fail: | |
11912 | return NULL; | |
11913 | } | |
11914 | ||
11915 | ||
11916 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11917 | PyObject *resultobj; | |
11918 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11919 | int result; | |
11920 | PyObject * obj0 = 0 ; | |
11921 | char *kwnames[] = { | |
11922 | (char *) "self", NULL | |
11923 | }; | |
11924 | ||
11925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
11926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11927 | { | |
11928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11929 | result = (int)((wxEvent const *)arg1)->GetId(); | |
11930 | ||
11931 | wxPyEndAllowThreads(__tstate); | |
11932 | if (PyErr_Occurred()) SWIG_fail; | |
11933 | } | |
8edf1c75 | 11934 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11935 | return resultobj; |
11936 | fail: | |
11937 | return NULL; | |
11938 | } | |
11939 | ||
11940 | ||
11941 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11942 | PyObject *resultobj; | |
11943 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11944 | int arg2 ; | |
11945 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11946 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11947 | char *kwnames[] = { |
11948 | (char *) "self",(char *) "Id", NULL | |
11949 | }; | |
11950 | ||
8edf1c75 | 11951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11953 | { |
11954 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11955 | if (PyErr_Occurred()) SWIG_fail; | |
11956 | } | |
d14a1e28 RD |
11957 | { |
11958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11959 | (arg1)->SetId(arg2); | |
11960 | ||
11961 | wxPyEndAllowThreads(__tstate); | |
11962 | if (PyErr_Occurred()) SWIG_fail; | |
11963 | } | |
11964 | Py_INCREF(Py_None); resultobj = Py_None; | |
11965 | return resultobj; | |
11966 | fail: | |
11967 | return NULL; | |
11968 | } | |
11969 | ||
11970 | ||
11971 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11972 | PyObject *resultobj; | |
11973 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11974 | bool result; | |
11975 | PyObject * obj0 = 0 ; | |
11976 | char *kwnames[] = { | |
11977 | (char *) "self", NULL | |
11978 | }; | |
11979 | ||
11980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
11981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11982 | { | |
11983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11984 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
11985 | ||
11986 | wxPyEndAllowThreads(__tstate); | |
11987 | if (PyErr_Occurred()) SWIG_fail; | |
11988 | } | |
4e760a36 | 11989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11990 | return resultobj; |
11991 | fail: | |
11992 | return NULL; | |
11993 | } | |
11994 | ||
11995 | ||
11996 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11997 | PyObject *resultobj; | |
11998 | wxEvent *arg1 = (wxEvent *) 0 ; | |
423f194a | 11999 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12000 | PyObject * obj0 = 0 ; |
12001 | PyObject * obj1 = 0 ; | |
12002 | char *kwnames[] = { | |
12003 | (char *) "self",(char *) "skip", NULL | |
12004 | }; | |
12005 | ||
12006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
12007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12008 | if (obj1) { | |
83448d71 | 12009 | { |
8edf1c75 | 12010 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
12011 | if (PyErr_Occurred()) SWIG_fail; |
12012 | } | |
d14a1e28 RD |
12013 | } |
12014 | { | |
12015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12016 | (arg1)->Skip(arg2); | |
12017 | ||
12018 | wxPyEndAllowThreads(__tstate); | |
12019 | if (PyErr_Occurred()) SWIG_fail; | |
12020 | } | |
12021 | Py_INCREF(Py_None); resultobj = Py_None; | |
12022 | return resultobj; | |
12023 | fail: | |
12024 | return NULL; | |
12025 | } | |
12026 | ||
12027 | ||
12028 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12029 | PyObject *resultobj; | |
12030 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12031 | bool result; | |
12032 | PyObject * obj0 = 0 ; | |
12033 | char *kwnames[] = { | |
12034 | (char *) "self", NULL | |
12035 | }; | |
12036 | ||
12037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
12038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12039 | { | |
12040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12041 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12042 | ||
12043 | wxPyEndAllowThreads(__tstate); | |
12044 | if (PyErr_Occurred()) SWIG_fail; | |
12045 | } | |
4e760a36 | 12046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12047 | return resultobj; |
12048 | fail: | |
12049 | return NULL; | |
12050 | } | |
12051 | ||
12052 | ||
12053 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12054 | PyObject *resultobj; | |
12055 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12056 | bool result; | |
12057 | PyObject * obj0 = 0 ; | |
12058 | char *kwnames[] = { | |
12059 | (char *) "self", NULL | |
12060 | }; | |
12061 | ||
12062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
12063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12064 | { | |
12065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12066 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12067 | ||
12068 | wxPyEndAllowThreads(__tstate); | |
12069 | if (PyErr_Occurred()) SWIG_fail; | |
12070 | } | |
4e760a36 | 12071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12072 | return resultobj; |
12073 | fail: | |
12074 | return NULL; | |
12075 | } | |
12076 | ||
12077 | ||
12078 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12079 | PyObject *resultobj; | |
12080 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12081 | int result; | |
12082 | PyObject * obj0 = 0 ; | |
12083 | char *kwnames[] = { | |
12084 | (char *) "self", NULL | |
12085 | }; | |
12086 | ||
12087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
12088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12089 | { | |
12090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12091 | result = (int)(arg1)->StopPropagation(); | |
12092 | ||
12093 | wxPyEndAllowThreads(__tstate); | |
12094 | if (PyErr_Occurred()) SWIG_fail; | |
12095 | } | |
8edf1c75 | 12096 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12097 | return resultobj; |
12098 | fail: | |
12099 | return NULL; | |
12100 | } | |
12101 | ||
12102 | ||
12103 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12104 | PyObject *resultobj; | |
12105 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12106 | int arg2 ; | |
12107 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12108 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12109 | char *kwnames[] = { |
12110 | (char *) "self",(char *) "propagationLevel", NULL | |
12111 | }; | |
12112 | ||
8edf1c75 | 12113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12115 | { |
12116 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12117 | if (PyErr_Occurred()) SWIG_fail; | |
12118 | } | |
d14a1e28 RD |
12119 | { |
12120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12121 | (arg1)->ResumePropagation(arg2); | |
12122 | ||
12123 | wxPyEndAllowThreads(__tstate); | |
12124 | if (PyErr_Occurred()) SWIG_fail; | |
12125 | } | |
12126 | Py_INCREF(Py_None); resultobj = Py_None; | |
12127 | return resultobj; | |
12128 | fail: | |
12129 | return NULL; | |
12130 | } | |
12131 | ||
12132 | ||
12133 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12134 | PyObject *resultobj; | |
12135 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12136 | wxEvent *result; | |
12137 | PyObject * obj0 = 0 ; | |
12138 | char *kwnames[] = { | |
12139 | (char *) "self", NULL | |
12140 | }; | |
12141 | ||
12142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
12143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12144 | { | |
12145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12146 | result = (wxEvent *)(arg1)->Clone(); | |
12147 | ||
12148 | wxPyEndAllowThreads(__tstate); | |
12149 | if (PyErr_Occurred()) SWIG_fail; | |
12150 | } | |
12151 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
12152 | return resultobj; | |
12153 | fail: | |
12154 | return NULL; | |
12155 | } | |
12156 | ||
12157 | ||
12158 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12159 | PyObject *obj; | |
12160 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12161 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12162 | Py_INCREF(obj); | |
12163 | return Py_BuildValue((char *)""); | |
12164 | } | |
12165 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12166 | PyObject *resultobj; | |
12167 | wxEvent *arg1 = 0 ; | |
12168 | wxPropagationDisabler *result; | |
12169 | PyObject * obj0 = 0 ; | |
12170 | char *kwnames[] = { | |
12171 | (char *) "event", NULL | |
12172 | }; | |
12173 | ||
12174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12176 | if (arg1 == NULL) { | |
12177 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12178 | } | |
12179 | { | |
12180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12181 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12182 | ||
12183 | wxPyEndAllowThreads(__tstate); | |
12184 | if (PyErr_Occurred()) SWIG_fail; | |
12185 | } | |
12186 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagationDisabler, 1); | |
12187 | return resultobj; | |
12188 | fail: | |
12189 | return NULL; | |
12190 | } | |
12191 | ||
12192 | ||
12193 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12194 | PyObject *resultobj; | |
12195 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12196 | PyObject * obj0 = 0 ; | |
12197 | char *kwnames[] = { | |
12198 | (char *) "self", NULL | |
12199 | }; | |
12200 | ||
12201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagationDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12203 | { | |
12204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12205 | delete arg1; | |
12206 | ||
12207 | wxPyEndAllowThreads(__tstate); | |
12208 | if (PyErr_Occurred()) SWIG_fail; | |
12209 | } | |
12210 | Py_INCREF(Py_None); resultobj = Py_None; | |
12211 | return resultobj; | |
12212 | fail: | |
12213 | return NULL; | |
12214 | } | |
12215 | ||
12216 | ||
12217 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12218 | PyObject *obj; | |
12219 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12220 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12221 | Py_INCREF(obj); | |
12222 | return Py_BuildValue((char *)""); | |
12223 | } | |
12224 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12225 | PyObject *resultobj; | |
12226 | wxEvent *arg1 = 0 ; | |
12227 | wxPropagateOnce *result; | |
12228 | PyObject * obj0 = 0 ; | |
12229 | char *kwnames[] = { | |
12230 | (char *) "event", NULL | |
12231 | }; | |
12232 | ||
12233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
12234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12235 | if (arg1 == NULL) { | |
12236 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12237 | } | |
12238 | { | |
12239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12240 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12241 | ||
12242 | wxPyEndAllowThreads(__tstate); | |
12243 | if (PyErr_Occurred()) SWIG_fail; | |
12244 | } | |
12245 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagateOnce, 1); | |
12246 | return resultobj; | |
12247 | fail: | |
12248 | return NULL; | |
12249 | } | |
12250 | ||
12251 | ||
12252 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12253 | PyObject *resultobj; | |
12254 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12255 | PyObject * obj0 = 0 ; | |
12256 | char *kwnames[] = { | |
12257 | (char *) "self", NULL | |
12258 | }; | |
12259 | ||
12260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
12261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagateOnce,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12262 | { | |
12263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12264 | delete arg1; | |
12265 | ||
12266 | wxPyEndAllowThreads(__tstate); | |
12267 | if (PyErr_Occurred()) SWIG_fail; | |
12268 | } | |
12269 | Py_INCREF(Py_None); resultobj = Py_None; | |
12270 | return resultobj; | |
12271 | fail: | |
12272 | return NULL; | |
12273 | } | |
12274 | ||
12275 | ||
12276 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12277 | PyObject *obj; | |
12278 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12279 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12280 | Py_INCREF(obj); | |
12281 | return Py_BuildValue((char *)""); | |
12282 | } | |
12283 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12284 | PyObject *resultobj; | |
12285 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12286 | int arg2 = (int) 0 ; | |
12287 | wxCommandEvent *result; | |
8edf1c75 RD |
12288 | PyObject * obj0 = 0 ; |
12289 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12290 | char *kwnames[] = { |
12291 | (char *) "commandType",(char *) "winid", NULL | |
12292 | }; | |
12293 | ||
8edf1c75 RD |
12294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; |
12295 | if (obj0) { | |
12296 | { | |
12297 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
12298 | if (PyErr_Occurred()) SWIG_fail; | |
12299 | } | |
12300 | } | |
12301 | if (obj1) { | |
12302 | { | |
12303 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12304 | if (PyErr_Occurred()) SWIG_fail; | |
12305 | } | |
12306 | } | |
d14a1e28 RD |
12307 | { |
12308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12309 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12310 | ||
12311 | wxPyEndAllowThreads(__tstate); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | } | |
12314 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCommandEvent, 1); | |
12315 | return resultobj; | |
12316 | fail: | |
12317 | return NULL; | |
12318 | } | |
12319 | ||
12320 | ||
12321 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12322 | PyObject *resultobj; | |
12323 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12324 | int result; | |
12325 | PyObject * obj0 = 0 ; | |
12326 | char *kwnames[] = { | |
12327 | (char *) "self", NULL | |
12328 | }; | |
12329 | ||
12330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
12331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12332 | { | |
12333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12334 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12335 | ||
12336 | wxPyEndAllowThreads(__tstate); | |
12337 | if (PyErr_Occurred()) SWIG_fail; | |
12338 | } | |
8edf1c75 | 12339 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12340 | return resultobj; |
12341 | fail: | |
12342 | return NULL; | |
12343 | } | |
12344 | ||
12345 | ||
12346 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12347 | PyObject *resultobj; | |
12348 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12349 | wxString *arg2 = 0 ; | |
423f194a | 12350 | bool temp2 = False ; |
d14a1e28 RD |
12351 | PyObject * obj0 = 0 ; |
12352 | PyObject * obj1 = 0 ; | |
12353 | char *kwnames[] = { | |
12354 | (char *) "self",(char *) "s", NULL | |
12355 | }; | |
12356 | ||
12357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
12358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12359 | { | |
12360 | arg2 = wxString_in_helper(obj1); | |
12361 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12362 | temp2 = True; |
d14a1e28 RD |
12363 | } |
12364 | { | |
12365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12366 | (arg1)->SetString((wxString const &)*arg2); | |
12367 | ||
12368 | wxPyEndAllowThreads(__tstate); | |
12369 | if (PyErr_Occurred()) SWIG_fail; | |
12370 | } | |
12371 | Py_INCREF(Py_None); resultobj = Py_None; | |
12372 | { | |
12373 | if (temp2) | |
12374 | delete arg2; | |
12375 | } | |
12376 | return resultobj; | |
12377 | fail: | |
12378 | { | |
12379 | if (temp2) | |
12380 | delete arg2; | |
12381 | } | |
12382 | return NULL; | |
12383 | } | |
12384 | ||
12385 | ||
12386 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12387 | PyObject *resultobj; | |
12388 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12389 | wxString result; | |
12390 | PyObject * obj0 = 0 ; | |
12391 | char *kwnames[] = { | |
12392 | (char *) "self", NULL | |
12393 | }; | |
12394 | ||
12395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
12396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12397 | { | |
12398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12399 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12400 | ||
12401 | wxPyEndAllowThreads(__tstate); | |
12402 | if (PyErr_Occurred()) SWIG_fail; | |
12403 | } | |
12404 | { | |
12405 | #if wxUSE_UNICODE | |
12406 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12407 | #else | |
12408 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12409 | #endif | |
12410 | } | |
12411 | return resultobj; | |
12412 | fail: | |
12413 | return NULL; | |
12414 | } | |
12415 | ||
12416 | ||
12417 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12418 | PyObject *resultobj; | |
12419 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12420 | bool result; | |
12421 | PyObject * obj0 = 0 ; | |
12422 | char *kwnames[] = { | |
12423 | (char *) "self", NULL | |
12424 | }; | |
12425 | ||
12426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
12427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12428 | { | |
12429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12430 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12431 | ||
12432 | wxPyEndAllowThreads(__tstate); | |
12433 | if (PyErr_Occurred()) SWIG_fail; | |
12434 | } | |
4e760a36 | 12435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12436 | return resultobj; |
12437 | fail: | |
12438 | return NULL; | |
12439 | } | |
12440 | ||
12441 | ||
12442 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12443 | PyObject *resultobj; | |
12444 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12445 | bool result; | |
12446 | PyObject * obj0 = 0 ; | |
12447 | char *kwnames[] = { | |
12448 | (char *) "self", NULL | |
12449 | }; | |
12450 | ||
12451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
12452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12453 | { | |
12454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12455 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12456 | ||
12457 | wxPyEndAllowThreads(__tstate); | |
12458 | if (PyErr_Occurred()) SWIG_fail; | |
12459 | } | |
4e760a36 | 12460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12461 | return resultobj; |
12462 | fail: | |
12463 | return NULL; | |
12464 | } | |
12465 | ||
12466 | ||
12467 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12468 | PyObject *resultobj; | |
12469 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12470 | long arg2 ; | |
12471 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12472 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12473 | char *kwnames[] = { |
12474 | (char *) "self",(char *) "extraLong", NULL | |
12475 | }; | |
12476 | ||
8edf1c75 | 12477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12479 | { |
12480 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
12481 | if (PyErr_Occurred()) SWIG_fail; | |
12482 | } | |
d14a1e28 RD |
12483 | { |
12484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12485 | (arg1)->SetExtraLong(arg2); | |
12486 | ||
12487 | wxPyEndAllowThreads(__tstate); | |
12488 | if (PyErr_Occurred()) SWIG_fail; | |
12489 | } | |
12490 | Py_INCREF(Py_None); resultobj = Py_None; | |
12491 | return resultobj; | |
12492 | fail: | |
12493 | return NULL; | |
12494 | } | |
12495 | ||
12496 | ||
12497 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12498 | PyObject *resultobj; | |
12499 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12500 | long result; | |
12501 | PyObject * obj0 = 0 ; | |
12502 | char *kwnames[] = { | |
12503 | (char *) "self", NULL | |
12504 | }; | |
12505 | ||
12506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
12507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12508 | { | |
12509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12510 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
12511 | ||
12512 | wxPyEndAllowThreads(__tstate); | |
12513 | if (PyErr_Occurred()) SWIG_fail; | |
12514 | } | |
8edf1c75 | 12515 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
12516 | return resultobj; |
12517 | fail: | |
12518 | return NULL; | |
12519 | } | |
12520 | ||
12521 | ||
12522 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12523 | PyObject *resultobj; | |
12524 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12525 | int arg2 ; | |
12526 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12527 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12528 | char *kwnames[] = { |
12529 | (char *) "self",(char *) "i", NULL | |
12530 | }; | |
12531 | ||
8edf1c75 | 12532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12534 | { |
12535 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12536 | if (PyErr_Occurred()) SWIG_fail; | |
12537 | } | |
d14a1e28 RD |
12538 | { |
12539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12540 | (arg1)->SetInt(arg2); | |
12541 | ||
12542 | wxPyEndAllowThreads(__tstate); | |
12543 | if (PyErr_Occurred()) SWIG_fail; | |
12544 | } | |
12545 | Py_INCREF(Py_None); resultobj = Py_None; | |
12546 | return resultobj; | |
12547 | fail: | |
12548 | return NULL; | |
12549 | } | |
12550 | ||
12551 | ||
12552 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12553 | PyObject *resultobj; | |
12554 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12555 | long result; | |
12556 | PyObject * obj0 = 0 ; | |
12557 | char *kwnames[] = { | |
12558 | (char *) "self", NULL | |
12559 | }; | |
12560 | ||
12561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
12562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12563 | { | |
12564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12565 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
12566 | ||
12567 | wxPyEndAllowThreads(__tstate); | |
12568 | if (PyErr_Occurred()) SWIG_fail; | |
12569 | } | |
8edf1c75 | 12570 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
12571 | return resultobj; |
12572 | fail: | |
12573 | return NULL; | |
12574 | } | |
12575 | ||
12576 | ||
12577 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12578 | PyObject *resultobj; | |
12579 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12580 | wxEvent *result; | |
12581 | PyObject * obj0 = 0 ; | |
12582 | char *kwnames[] = { | |
12583 | (char *) "self", NULL | |
12584 | }; | |
12585 | ||
12586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
12587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12588 | { | |
12589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12590 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
12591 | ||
12592 | wxPyEndAllowThreads(__tstate); | |
12593 | if (PyErr_Occurred()) SWIG_fail; | |
12594 | } | |
12595 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
12596 | return resultobj; | |
12597 | fail: | |
12598 | return NULL; | |
12599 | } | |
12600 | ||
12601 | ||
12602 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
12603 | PyObject *obj; | |
12604 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12605 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
12606 | Py_INCREF(obj); | |
12607 | return Py_BuildValue((char *)""); | |
12608 | } | |
12609 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12610 | PyObject *resultobj; | |
12611 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12612 | int arg2 = (int) 0 ; | |
12613 | wxNotifyEvent *result; | |
8edf1c75 RD |
12614 | PyObject * obj0 = 0 ; |
12615 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12616 | char *kwnames[] = { |
12617 | (char *) "commandType",(char *) "winid", NULL | |
12618 | }; | |
12619 | ||
8edf1c75 RD |
12620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; |
12621 | if (obj0) { | |
12622 | { | |
12623 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
12624 | if (PyErr_Occurred()) SWIG_fail; | |
12625 | } | |
12626 | } | |
12627 | if (obj1) { | |
12628 | { | |
12629 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12630 | if (PyErr_Occurred()) SWIG_fail; | |
12631 | } | |
12632 | } | |
d14a1e28 RD |
12633 | { |
12634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12635 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
12636 | ||
12637 | wxPyEndAllowThreads(__tstate); | |
12638 | if (PyErr_Occurred()) SWIG_fail; | |
12639 | } | |
12640 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotifyEvent, 1); | |
12641 | return resultobj; | |
12642 | fail: | |
12643 | return NULL; | |
12644 | } | |
12645 | ||
12646 | ||
12647 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12648 | PyObject *resultobj; | |
12649 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12650 | PyObject * obj0 = 0 ; | |
12651 | char *kwnames[] = { | |
12652 | (char *) "self", NULL | |
12653 | }; | |
12654 | ||
12655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
12656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12657 | { | |
12658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12659 | (arg1)->Veto(); | |
12660 | ||
12661 | wxPyEndAllowThreads(__tstate); | |
12662 | if (PyErr_Occurred()) SWIG_fail; | |
12663 | } | |
12664 | Py_INCREF(Py_None); resultobj = Py_None; | |
12665 | return resultobj; | |
12666 | fail: | |
12667 | return NULL; | |
12668 | } | |
12669 | ||
12670 | ||
12671 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12672 | PyObject *resultobj; | |
12673 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12674 | PyObject * obj0 = 0 ; | |
12675 | char *kwnames[] = { | |
12676 | (char *) "self", NULL | |
12677 | }; | |
12678 | ||
12679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
12680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12681 | { | |
12682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12683 | (arg1)->Allow(); | |
12684 | ||
12685 | wxPyEndAllowThreads(__tstate); | |
12686 | if (PyErr_Occurred()) SWIG_fail; | |
12687 | } | |
12688 | Py_INCREF(Py_None); resultobj = Py_None; | |
12689 | return resultobj; | |
12690 | fail: | |
12691 | return NULL; | |
12692 | } | |
12693 | ||
12694 | ||
12695 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12696 | PyObject *resultobj; | |
12697 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12698 | bool result; | |
12699 | PyObject * obj0 = 0 ; | |
12700 | char *kwnames[] = { | |
12701 | (char *) "self", NULL | |
12702 | }; | |
12703 | ||
12704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
12705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12706 | { | |
12707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12708 | result = (bool)(arg1)->IsAllowed(); | |
12709 | ||
12710 | wxPyEndAllowThreads(__tstate); | |
12711 | if (PyErr_Occurred()) SWIG_fail; | |
12712 | } | |
4e760a36 | 12713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12714 | return resultobj; |
12715 | fail: | |
12716 | return NULL; | |
12717 | } | |
12718 | ||
12719 | ||
12720 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
12721 | PyObject *obj; | |
12722 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12723 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
12724 | Py_INCREF(obj); | |
12725 | return Py_BuildValue((char *)""); | |
12726 | } | |
12727 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12728 | PyObject *resultobj; | |
12729 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12730 | int arg2 = (int) 0 ; | |
12731 | int arg3 = (int) 0 ; | |
12732 | int arg4 = (int) 0 ; | |
12733 | wxScrollEvent *result; | |
8edf1c75 RD |
12734 | PyObject * obj0 = 0 ; |
12735 | PyObject * obj1 = 0 ; | |
12736 | PyObject * obj2 = 0 ; | |
12737 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12738 | char *kwnames[] = { |
12739 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
12740 | }; | |
12741 | ||
8edf1c75 RD |
12742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12743 | if (obj0) { | |
12744 | { | |
12745 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
12746 | if (PyErr_Occurred()) SWIG_fail; | |
12747 | } | |
12748 | } | |
12749 | if (obj1) { | |
12750 | { | |
12751 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12752 | if (PyErr_Occurred()) SWIG_fail; | |
12753 | } | |
12754 | } | |
12755 | if (obj2) { | |
12756 | { | |
12757 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12758 | if (PyErr_Occurred()) SWIG_fail; | |
12759 | } | |
12760 | } | |
12761 | if (obj3) { | |
12762 | { | |
12763 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12764 | if (PyErr_Occurred()) SWIG_fail; | |
12765 | } | |
12766 | } | |
d14a1e28 RD |
12767 | { |
12768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12769 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
12770 | ||
12771 | wxPyEndAllowThreads(__tstate); | |
12772 | if (PyErr_Occurred()) SWIG_fail; | |
12773 | } | |
12774 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollEvent, 1); | |
12775 | return resultobj; | |
12776 | fail: | |
12777 | return NULL; | |
12778 | } | |
12779 | ||
12780 | ||
12781 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12782 | PyObject *resultobj; | |
12783 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12784 | int result; | |
12785 | PyObject * obj0 = 0 ; | |
12786 | char *kwnames[] = { | |
12787 | (char *) "self", NULL | |
12788 | }; | |
12789 | ||
12790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
12791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12792 | { | |
12793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12794 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
12795 | ||
12796 | wxPyEndAllowThreads(__tstate); | |
12797 | if (PyErr_Occurred()) SWIG_fail; | |
12798 | } | |
8edf1c75 | 12799 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12800 | return resultobj; |
12801 | fail: | |
12802 | return NULL; | |
12803 | } | |
12804 | ||
12805 | ||
12806 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12807 | PyObject *resultobj; | |
12808 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12809 | int result; | |
12810 | PyObject * obj0 = 0 ; | |
12811 | char *kwnames[] = { | |
12812 | (char *) "self", NULL | |
12813 | }; | |
12814 | ||
12815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
12816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12817 | { | |
12818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12819 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
12820 | ||
12821 | wxPyEndAllowThreads(__tstate); | |
12822 | if (PyErr_Occurred()) SWIG_fail; | |
12823 | } | |
8edf1c75 | 12824 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12825 | return resultobj; |
12826 | fail: | |
12827 | return NULL; | |
12828 | } | |
12829 | ||
12830 | ||
12831 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12832 | PyObject *resultobj; | |
12833 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12834 | int arg2 ; | |
12835 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12836 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12837 | char *kwnames[] = { |
12838 | (char *) "self",(char *) "orient", NULL | |
12839 | }; | |
12840 | ||
8edf1c75 | 12841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12843 | { |
12844 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12845 | if (PyErr_Occurred()) SWIG_fail; | |
12846 | } | |
d14a1e28 RD |
12847 | { |
12848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12849 | (arg1)->SetOrientation(arg2); | |
12850 | ||
12851 | wxPyEndAllowThreads(__tstate); | |
12852 | if (PyErr_Occurred()) SWIG_fail; | |
12853 | } | |
12854 | Py_INCREF(Py_None); resultobj = Py_None; | |
12855 | return resultobj; | |
12856 | fail: | |
12857 | return NULL; | |
12858 | } | |
12859 | ||
12860 | ||
12861 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12862 | PyObject *resultobj; | |
12863 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12864 | int arg2 ; | |
12865 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12866 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12867 | char *kwnames[] = { |
12868 | (char *) "self",(char *) "pos", NULL | |
12869 | }; | |
12870 | ||
8edf1c75 | 12871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12873 | { |
12874 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12875 | if (PyErr_Occurred()) SWIG_fail; | |
12876 | } | |
d14a1e28 RD |
12877 | { |
12878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12879 | (arg1)->SetPosition(arg2); | |
12880 | ||
12881 | wxPyEndAllowThreads(__tstate); | |
12882 | if (PyErr_Occurred()) SWIG_fail; | |
12883 | } | |
12884 | Py_INCREF(Py_None); resultobj = Py_None; | |
12885 | return resultobj; | |
12886 | fail: | |
12887 | return NULL; | |
12888 | } | |
12889 | ||
12890 | ||
12891 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
12892 | PyObject *obj; | |
12893 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12894 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
12895 | Py_INCREF(obj); | |
12896 | return Py_BuildValue((char *)""); | |
12897 | } | |
12898 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12899 | PyObject *resultobj; | |
12900 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12901 | int arg2 = (int) 0 ; | |
12902 | int arg3 = (int) 0 ; | |
12903 | wxScrollWinEvent *result; | |
8edf1c75 RD |
12904 | PyObject * obj0 = 0 ; |
12905 | PyObject * obj1 = 0 ; | |
12906 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12907 | char *kwnames[] = { |
12908 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
12909 | }; | |
12910 | ||
8edf1c75 RD |
12911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
12912 | if (obj0) { | |
12913 | { | |
12914 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
12915 | if (PyErr_Occurred()) SWIG_fail; | |
12916 | } | |
12917 | } | |
12918 | if (obj1) { | |
12919 | { | |
12920 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12921 | if (PyErr_Occurred()) SWIG_fail; | |
12922 | } | |
12923 | } | |
12924 | if (obj2) { | |
12925 | { | |
12926 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12927 | if (PyErr_Occurred()) SWIG_fail; | |
12928 | } | |
12929 | } | |
d14a1e28 RD |
12930 | { |
12931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12932 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
12933 | ||
12934 | wxPyEndAllowThreads(__tstate); | |
12935 | if (PyErr_Occurred()) SWIG_fail; | |
12936 | } | |
12937 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollWinEvent, 1); | |
12938 | return resultobj; | |
12939 | fail: | |
12940 | return NULL; | |
12941 | } | |
12942 | ||
12943 | ||
12944 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12945 | PyObject *resultobj; | |
12946 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
12947 | int result; | |
12948 | PyObject * obj0 = 0 ; | |
12949 | char *kwnames[] = { | |
12950 | (char *) "self", NULL | |
12951 | }; | |
12952 | ||
12953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
12954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12955 | { | |
12956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12957 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
12958 | ||
12959 | wxPyEndAllowThreads(__tstate); | |
12960 | if (PyErr_Occurred()) SWIG_fail; | |
12961 | } | |
8edf1c75 | 12962 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12963 | return resultobj; |
12964 | fail: | |
12965 | return NULL; | |
12966 | } | |
12967 | ||
12968 | ||
12969 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12970 | PyObject *resultobj; | |
12971 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
12972 | int result; | |
12973 | PyObject * obj0 = 0 ; | |
12974 | char *kwnames[] = { | |
12975 | (char *) "self", NULL | |
12976 | }; | |
12977 | ||
12978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
12979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12980 | { | |
12981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12982 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
12983 | ||
12984 | wxPyEndAllowThreads(__tstate); | |
12985 | if (PyErr_Occurred()) SWIG_fail; | |
12986 | } | |
8edf1c75 | 12987 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12988 | return resultobj; |
12989 | fail: | |
12990 | return NULL; | |
12991 | } | |
12992 | ||
12993 | ||
12994 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12995 | PyObject *resultobj; | |
12996 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
12997 | int arg2 ; | |
12998 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12999 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13000 | char *kwnames[] = { |
13001 | (char *) "self",(char *) "orient", NULL | |
13002 | }; | |
13003 | ||
8edf1c75 | 13004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13006 | { |
13007 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13008 | if (PyErr_Occurred()) SWIG_fail; | |
13009 | } | |
d14a1e28 RD |
13010 | { |
13011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13012 | (arg1)->SetOrientation(arg2); | |
13013 | ||
13014 | wxPyEndAllowThreads(__tstate); | |
13015 | if (PyErr_Occurred()) SWIG_fail; | |
13016 | } | |
13017 | Py_INCREF(Py_None); resultobj = Py_None; | |
13018 | return resultobj; | |
13019 | fail: | |
13020 | return NULL; | |
13021 | } | |
13022 | ||
13023 | ||
13024 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13025 | PyObject *resultobj; | |
13026 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13027 | int arg2 ; | |
13028 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13029 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13030 | char *kwnames[] = { |
13031 | (char *) "self",(char *) "pos", NULL | |
13032 | }; | |
13033 | ||
8edf1c75 | 13034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13036 | { |
13037 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13038 | if (PyErr_Occurred()) SWIG_fail; | |
13039 | } | |
d14a1e28 RD |
13040 | { |
13041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13042 | (arg1)->SetPosition(arg2); | |
13043 | ||
13044 | wxPyEndAllowThreads(__tstate); | |
13045 | if (PyErr_Occurred()) SWIG_fail; | |
13046 | } | |
13047 | Py_INCREF(Py_None); resultobj = Py_None; | |
13048 | return resultobj; | |
13049 | fail: | |
13050 | return NULL; | |
13051 | } | |
13052 | ||
13053 | ||
13054 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13055 | PyObject *obj; | |
13056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13057 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13058 | Py_INCREF(obj); | |
13059 | return Py_BuildValue((char *)""); | |
13060 | } | |
13061 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13062 | PyObject *resultobj; | |
13063 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13064 | wxMouseEvent *result; | |
8edf1c75 | 13065 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
13066 | char *kwnames[] = { |
13067 | (char *) "mouseType", NULL | |
13068 | }; | |
13069 | ||
8edf1c75 RD |
13070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; |
13071 | if (obj0) { | |
13072 | { | |
13073 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13074 | if (PyErr_Occurred()) SWIG_fail; | |
13075 | } | |
13076 | } | |
d14a1e28 RD |
13077 | { |
13078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13079 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13080 | ||
13081 | wxPyEndAllowThreads(__tstate); | |
13082 | if (PyErr_Occurred()) SWIG_fail; | |
13083 | } | |
13084 | { | |
13085 | resultobj = wxPyMake_wxObject(result); | |
13086 | } | |
13087 | return resultobj; | |
13088 | fail: | |
13089 | return NULL; | |
13090 | } | |
13091 | ||
13092 | ||
13093 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13094 | PyObject *resultobj; | |
13095 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13096 | bool result; | |
13097 | PyObject * obj0 = 0 ; | |
13098 | char *kwnames[] = { | |
13099 | (char *) "self", NULL | |
13100 | }; | |
13101 | ||
13102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
13103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13104 | { | |
13105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13106 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13107 | ||
13108 | wxPyEndAllowThreads(__tstate); | |
13109 | if (PyErr_Occurred()) SWIG_fail; | |
13110 | } | |
4e760a36 | 13111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13112 | return resultobj; |
13113 | fail: | |
13114 | return NULL; | |
13115 | } | |
13116 | ||
13117 | ||
13118 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13119 | PyObject *resultobj; | |
13120 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13121 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13122 | bool result; | |
13123 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13124 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13125 | char *kwnames[] = { |
13126 | (char *) "self",(char *) "but", NULL | |
13127 | }; | |
13128 | ||
8edf1c75 | 13129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13131 | if (obj1) { |
13132 | { | |
13133 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13134 | if (PyErr_Occurred()) SWIG_fail; | |
13135 | } | |
13136 | } | |
d14a1e28 RD |
13137 | { |
13138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13139 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13140 | ||
13141 | wxPyEndAllowThreads(__tstate); | |
13142 | if (PyErr_Occurred()) SWIG_fail; | |
13143 | } | |
4e760a36 | 13144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13145 | return resultobj; |
13146 | fail: | |
13147 | return NULL; | |
13148 | } | |
13149 | ||
13150 | ||
13151 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13152 | PyObject *resultobj; | |
13153 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13154 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13155 | bool result; | |
13156 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13157 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13158 | char *kwnames[] = { |
13159 | (char *) "self",(char *) "but", NULL | |
13160 | }; | |
13161 | ||
8edf1c75 | 13162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13164 | if (obj1) { |
13165 | { | |
13166 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13167 | if (PyErr_Occurred()) SWIG_fail; | |
13168 | } | |
13169 | } | |
d14a1e28 RD |
13170 | { |
13171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13172 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13173 | ||
13174 | wxPyEndAllowThreads(__tstate); | |
13175 | if (PyErr_Occurred()) SWIG_fail; | |
13176 | } | |
4e760a36 | 13177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13178 | return resultobj; |
13179 | fail: | |
13180 | return NULL; | |
13181 | } | |
13182 | ||
13183 | ||
13184 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13185 | PyObject *resultobj; | |
13186 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13187 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13188 | bool result; | |
13189 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13190 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13191 | char *kwnames[] = { |
13192 | (char *) "self",(char *) "but", NULL | |
13193 | }; | |
13194 | ||
8edf1c75 | 13195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13197 | if (obj1) { |
13198 | { | |
13199 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13200 | if (PyErr_Occurred()) SWIG_fail; | |
13201 | } | |
13202 | } | |
d14a1e28 RD |
13203 | { |
13204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13205 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13206 | ||
13207 | wxPyEndAllowThreads(__tstate); | |
13208 | if (PyErr_Occurred()) SWIG_fail; | |
13209 | } | |
4e760a36 | 13210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13211 | return resultobj; |
13212 | fail: | |
13213 | return NULL; | |
13214 | } | |
13215 | ||
13216 | ||
13217 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13218 | PyObject *resultobj; | |
13219 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13220 | int arg2 ; | |
13221 | bool result; | |
13222 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13223 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13224 | char *kwnames[] = { |
13225 | (char *) "self",(char *) "but", NULL | |
13226 | }; | |
13227 | ||
8edf1c75 | 13228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13230 | { |
13231 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13232 | if (PyErr_Occurred()) SWIG_fail; | |
13233 | } | |
d14a1e28 RD |
13234 | { |
13235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13236 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13237 | ||
13238 | wxPyEndAllowThreads(__tstate); | |
13239 | if (PyErr_Occurred()) SWIG_fail; | |
13240 | } | |
4e760a36 | 13241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13242 | return resultobj; |
13243 | fail: | |
13244 | return NULL; | |
13245 | } | |
13246 | ||
13247 | ||
13248 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13249 | PyObject *resultobj; | |
13250 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13251 | int arg2 ; | |
13252 | bool result; | |
13253 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13254 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13255 | char *kwnames[] = { |
13256 | (char *) "self",(char *) "but", NULL | |
13257 | }; | |
13258 | ||
8edf1c75 | 13259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13261 | { |
13262 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13263 | if (PyErr_Occurred()) SWIG_fail; | |
13264 | } | |
d14a1e28 RD |
13265 | { |
13266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13267 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13268 | ||
13269 | wxPyEndAllowThreads(__tstate); | |
13270 | if (PyErr_Occurred()) SWIG_fail; | |
13271 | } | |
4e760a36 | 13272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13273 | return resultobj; |
13274 | fail: | |
13275 | return NULL; | |
13276 | } | |
13277 | ||
13278 | ||
13279 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13280 | PyObject *resultobj; | |
13281 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13282 | int result; | |
13283 | PyObject * obj0 = 0 ; | |
13284 | char *kwnames[] = { | |
13285 | (char *) "self", NULL | |
13286 | }; | |
13287 | ||
13288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
13289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13290 | { | |
13291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13292 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13293 | ||
13294 | wxPyEndAllowThreads(__tstate); | |
13295 | if (PyErr_Occurred()) SWIG_fail; | |
13296 | } | |
8edf1c75 | 13297 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13298 | return resultobj; |
13299 | fail: | |
13300 | return NULL; | |
13301 | } | |
13302 | ||
13303 | ||
13304 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13305 | PyObject *resultobj; | |
13306 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13307 | bool result; | |
13308 | PyObject * obj0 = 0 ; | |
13309 | char *kwnames[] = { | |
13310 | (char *) "self", NULL | |
13311 | }; | |
13312 | ||
13313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
13314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13315 | { | |
13316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13317 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13318 | ||
13319 | wxPyEndAllowThreads(__tstate); | |
13320 | if (PyErr_Occurred()) SWIG_fail; | |
13321 | } | |
4e760a36 | 13322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13323 | return resultobj; |
13324 | fail: | |
13325 | return NULL; | |
13326 | } | |
13327 | ||
13328 | ||
13329 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13330 | PyObject *resultobj; | |
13331 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13332 | bool result; | |
13333 | PyObject * obj0 = 0 ; | |
13334 | char *kwnames[] = { | |
13335 | (char *) "self", NULL | |
13336 | }; | |
13337 | ||
13338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
13339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13340 | { | |
13341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13342 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13343 | ||
13344 | wxPyEndAllowThreads(__tstate); | |
13345 | if (PyErr_Occurred()) SWIG_fail; | |
13346 | } | |
4e760a36 | 13347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13348 | return resultobj; |
13349 | fail: | |
13350 | return NULL; | |
13351 | } | |
13352 | ||
13353 | ||
13354 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13355 | PyObject *resultobj; | |
13356 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13357 | bool result; | |
13358 | PyObject * obj0 = 0 ; | |
13359 | char *kwnames[] = { | |
13360 | (char *) "self", NULL | |
13361 | }; | |
13362 | ||
13363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
13364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13365 | { | |
13366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13367 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13368 | ||
13369 | wxPyEndAllowThreads(__tstate); | |
13370 | if (PyErr_Occurred()) SWIG_fail; | |
13371 | } | |
4e760a36 | 13372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13373 | return resultobj; |
13374 | fail: | |
13375 | return NULL; | |
13376 | } | |
13377 | ||
13378 | ||
13379 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13380 | PyObject *resultobj; | |
13381 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13382 | bool result; | |
13383 | PyObject * obj0 = 0 ; | |
13384 | char *kwnames[] = { | |
13385 | (char *) "self", NULL | |
13386 | }; | |
13387 | ||
13388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
13389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13390 | { | |
13391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13392 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13393 | ||
13394 | wxPyEndAllowThreads(__tstate); | |
13395 | if (PyErr_Occurred()) SWIG_fail; | |
13396 | } | |
4e760a36 | 13397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13398 | return resultobj; |
13399 | fail: | |
13400 | return NULL; | |
13401 | } | |
13402 | ||
13403 | ||
13404 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13405 | PyObject *resultobj; | |
13406 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13407 | bool result; | |
13408 | PyObject * obj0 = 0 ; | |
13409 | char *kwnames[] = { | |
13410 | (char *) "self", NULL | |
13411 | }; | |
13412 | ||
13413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
13414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13415 | { | |
13416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13417 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
13418 | ||
13419 | wxPyEndAllowThreads(__tstate); | |
13420 | if (PyErr_Occurred()) SWIG_fail; | |
13421 | } | |
4e760a36 | 13422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13423 | return resultobj; |
13424 | fail: | |
13425 | return NULL; | |
13426 | } | |
13427 | ||
13428 | ||
13429 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13430 | PyObject *resultobj; | |
13431 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13432 | bool result; | |
13433 | PyObject * obj0 = 0 ; | |
13434 | char *kwnames[] = { | |
13435 | (char *) "self", NULL | |
13436 | }; | |
13437 | ||
13438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
13439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13440 | { | |
13441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13442 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13443 | ||
13444 | wxPyEndAllowThreads(__tstate); | |
13445 | if (PyErr_Occurred()) SWIG_fail; | |
13446 | } | |
4e760a36 | 13447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13448 | return resultobj; |
13449 | fail: | |
13450 | return NULL; | |
13451 | } | |
13452 | ||
13453 | ||
13454 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13455 | PyObject *resultobj; | |
13456 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13457 | bool result; | |
13458 | PyObject * obj0 = 0 ; | |
13459 | char *kwnames[] = { | |
13460 | (char *) "self", NULL | |
13461 | }; | |
13462 | ||
13463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
13464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13465 | { | |
13466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13467 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
13468 | ||
13469 | wxPyEndAllowThreads(__tstate); | |
13470 | if (PyErr_Occurred()) SWIG_fail; | |
13471 | } | |
4e760a36 | 13472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13473 | return resultobj; |
13474 | fail: | |
13475 | return NULL; | |
13476 | } | |
13477 | ||
13478 | ||
13479 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13480 | PyObject *resultobj; | |
13481 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13482 | bool result; | |
13483 | PyObject * obj0 = 0 ; | |
13484 | char *kwnames[] = { | |
13485 | (char *) "self", NULL | |
13486 | }; | |
13487 | ||
13488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
13489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13490 | { | |
13491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13492 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
13493 | ||
13494 | wxPyEndAllowThreads(__tstate); | |
13495 | if (PyErr_Occurred()) SWIG_fail; | |
13496 | } | |
4e760a36 | 13497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13498 | return resultobj; |
13499 | fail: | |
13500 | return NULL; | |
13501 | } | |
13502 | ||
13503 | ||
13504 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13505 | PyObject *resultobj; | |
13506 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13507 | bool result; | |
13508 | PyObject * obj0 = 0 ; | |
13509 | char *kwnames[] = { | |
13510 | (char *) "self", NULL | |
13511 | }; | |
13512 | ||
13513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
13514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13515 | { | |
13516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13517 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
13518 | ||
13519 | wxPyEndAllowThreads(__tstate); | |
13520 | if (PyErr_Occurred()) SWIG_fail; | |
13521 | } | |
4e760a36 | 13522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13523 | return resultobj; |
13524 | fail: | |
13525 | return NULL; | |
13526 | } | |
13527 | ||
13528 | ||
13529 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13530 | PyObject *resultobj; | |
13531 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13532 | bool result; | |
13533 | PyObject * obj0 = 0 ; | |
13534 | char *kwnames[] = { | |
13535 | (char *) "self", NULL | |
13536 | }; | |
13537 | ||
13538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
13539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13540 | { | |
13541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13542 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
13543 | ||
13544 | wxPyEndAllowThreads(__tstate); | |
13545 | if (PyErr_Occurred()) SWIG_fail; | |
13546 | } | |
4e760a36 | 13547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13548 | return resultobj; |
13549 | fail: | |
13550 | return NULL; | |
13551 | } | |
13552 | ||
13553 | ||
13554 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13555 | PyObject *resultobj; | |
13556 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13557 | bool result; | |
13558 | PyObject * obj0 = 0 ; | |
13559 | char *kwnames[] = { | |
13560 | (char *) "self", NULL | |
13561 | }; | |
13562 | ||
13563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
13564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13565 | { | |
13566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13567 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
13568 | ||
13569 | wxPyEndAllowThreads(__tstate); | |
13570 | if (PyErr_Occurred()) SWIG_fail; | |
13571 | } | |
4e760a36 | 13572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13573 | return resultobj; |
13574 | fail: | |
13575 | return NULL; | |
13576 | } | |
13577 | ||
13578 | ||
13579 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13580 | PyObject *resultobj; | |
13581 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13582 | bool result; | |
13583 | PyObject * obj0 = 0 ; | |
13584 | char *kwnames[] = { | |
13585 | (char *) "self", NULL | |
13586 | }; | |
13587 | ||
13588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
13589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13590 | { | |
13591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13592 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
13593 | ||
13594 | wxPyEndAllowThreads(__tstate); | |
13595 | if (PyErr_Occurred()) SWIG_fail; | |
13596 | } | |
4e760a36 | 13597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13598 | return resultobj; |
13599 | fail: | |
13600 | return NULL; | |
13601 | } | |
13602 | ||
13603 | ||
13604 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13605 | PyObject *resultobj; | |
13606 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13607 | bool result; | |
13608 | PyObject * obj0 = 0 ; | |
13609 | char *kwnames[] = { | |
13610 | (char *) "self", NULL | |
13611 | }; | |
13612 | ||
13613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
13614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13615 | { | |
13616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13617 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
13618 | ||
13619 | wxPyEndAllowThreads(__tstate); | |
13620 | if (PyErr_Occurred()) SWIG_fail; | |
13621 | } | |
4e760a36 | 13622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13623 | return resultobj; |
13624 | fail: | |
13625 | return NULL; | |
13626 | } | |
13627 | ||
13628 | ||
13629 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13630 | PyObject *resultobj; | |
13631 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13632 | bool result; | |
13633 | PyObject * obj0 = 0 ; | |
13634 | char *kwnames[] = { | |
13635 | (char *) "self", NULL | |
13636 | }; | |
13637 | ||
13638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
13639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13640 | { | |
13641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13642 | result = (bool)(arg1)->LeftIsDown(); | |
13643 | ||
13644 | wxPyEndAllowThreads(__tstate); | |
13645 | if (PyErr_Occurred()) SWIG_fail; | |
13646 | } | |
4e760a36 | 13647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13648 | return resultobj; |
13649 | fail: | |
13650 | return NULL; | |
13651 | } | |
13652 | ||
13653 | ||
13654 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13655 | PyObject *resultobj; | |
13656 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13657 | bool result; | |
13658 | PyObject * obj0 = 0 ; | |
13659 | char *kwnames[] = { | |
13660 | (char *) "self", NULL | |
13661 | }; | |
13662 | ||
13663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
13664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13665 | { | |
13666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13667 | result = (bool)(arg1)->MiddleIsDown(); | |
13668 | ||
13669 | wxPyEndAllowThreads(__tstate); | |
13670 | if (PyErr_Occurred()) SWIG_fail; | |
13671 | } | |
4e760a36 | 13672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13673 | return resultobj; |
13674 | fail: | |
13675 | return NULL; | |
13676 | } | |
13677 | ||
13678 | ||
13679 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13680 | PyObject *resultobj; | |
13681 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13682 | bool result; | |
13683 | PyObject * obj0 = 0 ; | |
13684 | char *kwnames[] = { | |
13685 | (char *) "self", NULL | |
13686 | }; | |
13687 | ||
13688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
13689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13690 | { | |
13691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13692 | result = (bool)(arg1)->RightIsDown(); | |
13693 | ||
13694 | wxPyEndAllowThreads(__tstate); | |
13695 | if (PyErr_Occurred()) SWIG_fail; | |
13696 | } | |
4e760a36 | 13697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13698 | return resultobj; |
13699 | fail: | |
13700 | return NULL; | |
13701 | } | |
13702 | ||
13703 | ||
13704 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13705 | PyObject *resultobj; | |
13706 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13707 | bool result; | |
13708 | PyObject * obj0 = 0 ; | |
13709 | char *kwnames[] = { | |
13710 | (char *) "self", NULL | |
13711 | }; | |
13712 | ||
13713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
13714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13715 | { | |
13716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13717 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
13718 | ||
13719 | wxPyEndAllowThreads(__tstate); | |
13720 | if (PyErr_Occurred()) SWIG_fail; | |
13721 | } | |
4e760a36 | 13722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13723 | return resultobj; |
13724 | fail: | |
13725 | return NULL; | |
13726 | } | |
13727 | ||
13728 | ||
13729 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13730 | PyObject *resultobj; | |
13731 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13732 | bool result; | |
13733 | PyObject * obj0 = 0 ; | |
13734 | char *kwnames[] = { | |
13735 | (char *) "self", NULL | |
13736 | }; | |
13737 | ||
13738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
13739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13740 | { | |
13741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13742 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
13743 | ||
13744 | wxPyEndAllowThreads(__tstate); | |
13745 | if (PyErr_Occurred()) SWIG_fail; | |
13746 | } | |
4e760a36 | 13747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13748 | return resultobj; |
13749 | fail: | |
13750 | return NULL; | |
13751 | } | |
13752 | ||
13753 | ||
13754 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13755 | PyObject *resultobj; | |
13756 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13757 | bool result; | |
13758 | PyObject * obj0 = 0 ; | |
13759 | char *kwnames[] = { | |
13760 | (char *) "self", NULL | |
13761 | }; | |
13762 | ||
13763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
13764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13765 | { | |
13766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13767 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
13768 | ||
13769 | wxPyEndAllowThreads(__tstate); | |
13770 | if (PyErr_Occurred()) SWIG_fail; | |
13771 | } | |
4e760a36 | 13772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13773 | return resultobj; |
13774 | fail: | |
13775 | return NULL; | |
13776 | } | |
13777 | ||
13778 | ||
13779 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13780 | PyObject *resultobj; | |
13781 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13782 | bool result; | |
13783 | PyObject * obj0 = 0 ; | |
13784 | char *kwnames[] = { | |
13785 | (char *) "self", NULL | |
13786 | }; | |
13787 | ||
13788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
13789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13790 | { | |
13791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13792 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
13793 | ||
13794 | wxPyEndAllowThreads(__tstate); | |
13795 | if (PyErr_Occurred()) SWIG_fail; | |
13796 | } | |
4e760a36 | 13797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13798 | return resultobj; |
13799 | fail: | |
13800 | return NULL; | |
13801 | } | |
13802 | ||
13803 | ||
13804 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13805 | PyObject *resultobj; | |
13806 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13807 | wxPoint result; | |
13808 | PyObject * obj0 = 0 ; | |
13809 | char *kwnames[] = { | |
13810 | (char *) "self", NULL | |
13811 | }; | |
13812 | ||
13813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13815 | { | |
13816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13817 | result = (arg1)->GetPosition(); | |
13818 | ||
13819 | wxPyEndAllowThreads(__tstate); | |
13820 | if (PyErr_Occurred()) SWIG_fail; | |
13821 | } | |
13822 | { | |
13823 | wxPoint * resultptr; | |
13824 | resultptr = new wxPoint((wxPoint &) result); | |
13825 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
13826 | } | |
13827 | return resultobj; | |
13828 | fail: | |
13829 | return NULL; | |
13830 | } | |
13831 | ||
13832 | ||
13833 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13834 | PyObject *resultobj; | |
13835 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13836 | long *arg2 = (long *) 0 ; | |
13837 | long *arg3 = (long *) 0 ; | |
13838 | long temp2 ; | |
13839 | long temp3 ; | |
13840 | PyObject * obj0 = 0 ; | |
13841 | char *kwnames[] = { | |
13842 | (char *) "self", NULL | |
13843 | }; | |
13844 | ||
13845 | arg2 = &temp2; | |
13846 | arg3 = &temp3; | |
13847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
13848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13849 | { | |
13850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13851 | (arg1)->GetPosition(arg2,arg3); | |
13852 | ||
13853 | wxPyEndAllowThreads(__tstate); | |
13854 | if (PyErr_Occurred()) SWIG_fail; | |
13855 | } | |
13856 | Py_INCREF(Py_None); resultobj = Py_None; | |
13857 | { | |
13858 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13859 | resultobj = t_output_helper(resultobj,o); | |
13860 | } | |
13861 | { | |
13862 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13863 | resultobj = t_output_helper(resultobj,o); | |
13864 | } | |
13865 | return resultobj; | |
13866 | fail: | |
13867 | return NULL; | |
13868 | } | |
13869 | ||
13870 | ||
13871 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13872 | PyObject *resultobj; | |
13873 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13874 | wxDC *arg2 = 0 ; | |
13875 | wxPoint result; | |
13876 | PyObject * obj0 = 0 ; | |
13877 | PyObject * obj1 = 0 ; | |
13878 | char *kwnames[] = { | |
13879 | (char *) "self",(char *) "dc", NULL | |
13880 | }; | |
13881 | ||
13882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
13883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13884 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13885 | if (arg2 == NULL) { | |
13886 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13887 | } | |
13888 | { | |
13889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13890 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
13891 | ||
13892 | wxPyEndAllowThreads(__tstate); | |
13893 | if (PyErr_Occurred()) SWIG_fail; | |
13894 | } | |
13895 | { | |
13896 | wxPoint * resultptr; | |
13897 | resultptr = new wxPoint((wxPoint &) result); | |
13898 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
13899 | } | |
13900 | return resultobj; | |
13901 | fail: | |
13902 | return NULL; | |
13903 | } | |
13904 | ||
13905 | ||
13906 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13907 | PyObject *resultobj; | |
13908 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 13909 | int result; |
d14a1e28 RD |
13910 | PyObject * obj0 = 0 ; |
13911 | char *kwnames[] = { | |
13912 | (char *) "self", NULL | |
13913 | }; | |
13914 | ||
13915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
13916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13917 | { | |
13918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13919 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
13920 | |
13921 | wxPyEndAllowThreads(__tstate); | |
13922 | if (PyErr_Occurred()) SWIG_fail; | |
13923 | } | |
8edf1c75 | 13924 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13925 | return resultobj; |
13926 | fail: | |
13927 | return NULL; | |
13928 | } | |
13929 | ||
13930 | ||
13931 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13932 | PyObject *resultobj; | |
13933 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 13934 | int result; |
d14a1e28 RD |
13935 | PyObject * obj0 = 0 ; |
13936 | char *kwnames[] = { | |
13937 | (char *) "self", NULL | |
13938 | }; | |
13939 | ||
13940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
13941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13942 | { | |
13943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13944 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
13945 | |
13946 | wxPyEndAllowThreads(__tstate); | |
13947 | if (PyErr_Occurred()) SWIG_fail; | |
13948 | } | |
8edf1c75 | 13949 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13950 | return resultobj; |
13951 | fail: | |
13952 | return NULL; | |
13953 | } | |
13954 | ||
13955 | ||
13956 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13957 | PyObject *resultobj; | |
13958 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13959 | int result; | |
13960 | PyObject * obj0 = 0 ; | |
13961 | char *kwnames[] = { | |
13962 | (char *) "self", NULL | |
13963 | }; | |
13964 | ||
13965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
13966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13967 | { | |
13968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13969 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
13970 | ||
13971 | wxPyEndAllowThreads(__tstate); | |
13972 | if (PyErr_Occurred()) SWIG_fail; | |
13973 | } | |
8edf1c75 | 13974 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13975 | return resultobj; |
13976 | fail: | |
13977 | return NULL; | |
13978 | } | |
13979 | ||
13980 | ||
13981 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13982 | PyObject *resultobj; | |
13983 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13984 | int result; | |
13985 | PyObject * obj0 = 0 ; | |
13986 | char *kwnames[] = { | |
13987 | (char *) "self", NULL | |
13988 | }; | |
13989 | ||
13990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
13991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13992 | { | |
13993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13994 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
13995 | ||
13996 | wxPyEndAllowThreads(__tstate); | |
13997 | if (PyErr_Occurred()) SWIG_fail; | |
13998 | } | |
8edf1c75 | 13999 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14000 | return resultobj; |
14001 | fail: | |
14002 | return NULL; | |
14003 | } | |
14004 | ||
14005 | ||
14006 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14007 | PyObject *resultobj; | |
14008 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14009 | int result; | |
14010 | PyObject * obj0 = 0 ; | |
14011 | char *kwnames[] = { | |
14012 | (char *) "self", NULL | |
14013 | }; | |
14014 | ||
14015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
14016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14017 | { | |
14018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14019 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14020 | ||
14021 | wxPyEndAllowThreads(__tstate); | |
14022 | if (PyErr_Occurred()) SWIG_fail; | |
14023 | } | |
8edf1c75 | 14024 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14025 | return resultobj; |
14026 | fail: | |
14027 | return NULL; | |
14028 | } | |
14029 | ||
14030 | ||
14031 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14032 | PyObject *resultobj; | |
14033 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14034 | bool result; | |
14035 | PyObject * obj0 = 0 ; | |
14036 | char *kwnames[] = { | |
14037 | (char *) "self", NULL | |
14038 | }; | |
14039 | ||
14040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
14041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14042 | { | |
14043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14044 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14045 | ||
14046 | wxPyEndAllowThreads(__tstate); | |
14047 | if (PyErr_Occurred()) SWIG_fail; | |
14048 | } | |
4e760a36 | 14049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14050 | return resultobj; |
14051 | fail: | |
14052 | return NULL; | |
14053 | } | |
14054 | ||
14055 | ||
14056 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14057 | PyObject *resultobj; | |
14058 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14059 | int arg2 ; |
d14a1e28 | 14060 | PyObject * obj0 = 0 ; |
8edf1c75 | 14061 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14062 | char *kwnames[] = { |
14063 | (char *) "self",(char *) "m_x", NULL | |
14064 | }; | |
14065 | ||
8edf1c75 | 14066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14068 | { |
14069 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14070 | if (PyErr_Occurred()) SWIG_fail; | |
14071 | } | |
d14a1e28 RD |
14072 | if (arg1) (arg1)->m_x = arg2; |
14073 | ||
14074 | Py_INCREF(Py_None); resultobj = Py_None; | |
14075 | return resultobj; | |
14076 | fail: | |
14077 | return NULL; | |
14078 | } | |
14079 | ||
14080 | ||
14081 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14082 | PyObject *resultobj; | |
14083 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14084 | int result; |
d14a1e28 RD |
14085 | PyObject * obj0 = 0 ; |
14086 | char *kwnames[] = { | |
14087 | (char *) "self", NULL | |
14088 | }; | |
14089 | ||
14090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
14091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14092 | result = (int) ((arg1)->m_x); |
d14a1e28 | 14093 | |
8edf1c75 | 14094 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14095 | return resultobj; |
14096 | fail: | |
14097 | return NULL; | |
14098 | } | |
14099 | ||
14100 | ||
14101 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14102 | PyObject *resultobj; | |
14103 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14104 | int arg2 ; |
d14a1e28 | 14105 | PyObject * obj0 = 0 ; |
8edf1c75 | 14106 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14107 | char *kwnames[] = { |
14108 | (char *) "self",(char *) "m_y", NULL | |
14109 | }; | |
14110 | ||
8edf1c75 | 14111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14113 | { |
14114 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14115 | if (PyErr_Occurred()) SWIG_fail; | |
14116 | } | |
d14a1e28 RD |
14117 | if (arg1) (arg1)->m_y = arg2; |
14118 | ||
14119 | Py_INCREF(Py_None); resultobj = Py_None; | |
14120 | return resultobj; | |
14121 | fail: | |
14122 | return NULL; | |
14123 | } | |
14124 | ||
14125 | ||
14126 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14127 | PyObject *resultobj; | |
14128 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14129 | int result; |
d14a1e28 RD |
14130 | PyObject * obj0 = 0 ; |
14131 | char *kwnames[] = { | |
14132 | (char *) "self", NULL | |
14133 | }; | |
14134 | ||
14135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
14136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14137 | result = (int) ((arg1)->m_y); |
d14a1e28 | 14138 | |
8edf1c75 | 14139 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14140 | return resultobj; |
14141 | fail: | |
14142 | return NULL; | |
14143 | } | |
14144 | ||
14145 | ||
14146 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14147 | PyObject *resultobj; | |
14148 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14149 | bool arg2 ; | |
14150 | PyObject * obj0 = 0 ; | |
14151 | PyObject * obj1 = 0 ; | |
14152 | char *kwnames[] = { | |
14153 | (char *) "self",(char *) "m_leftDown", NULL | |
14154 | }; | |
14155 | ||
14156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14158 | { |
8edf1c75 | 14159 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14160 | if (PyErr_Occurred()) SWIG_fail; |
14161 | } | |
d14a1e28 RD |
14162 | if (arg1) (arg1)->m_leftDown = arg2; |
14163 | ||
14164 | Py_INCREF(Py_None); resultobj = Py_None; | |
14165 | return resultobj; | |
14166 | fail: | |
14167 | return NULL; | |
14168 | } | |
14169 | ||
14170 | ||
14171 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14172 | PyObject *resultobj; | |
14173 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14174 | bool result; | |
14175 | PyObject * obj0 = 0 ; | |
14176 | char *kwnames[] = { | |
14177 | (char *) "self", NULL | |
14178 | }; | |
14179 | ||
14180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
14181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14182 | result = (bool) ((arg1)->m_leftDown); | |
14183 | ||
4e760a36 | 14184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14185 | return resultobj; |
14186 | fail: | |
14187 | return NULL; | |
14188 | } | |
14189 | ||
14190 | ||
14191 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14192 | PyObject *resultobj; | |
14193 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14194 | bool arg2 ; | |
14195 | PyObject * obj0 = 0 ; | |
14196 | PyObject * obj1 = 0 ; | |
14197 | char *kwnames[] = { | |
14198 | (char *) "self",(char *) "m_middleDown", NULL | |
14199 | }; | |
14200 | ||
14201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14203 | { |
8edf1c75 | 14204 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14205 | if (PyErr_Occurred()) SWIG_fail; |
14206 | } | |
d14a1e28 RD |
14207 | if (arg1) (arg1)->m_middleDown = arg2; |
14208 | ||
14209 | Py_INCREF(Py_None); resultobj = Py_None; | |
14210 | return resultobj; | |
14211 | fail: | |
14212 | return NULL; | |
14213 | } | |
14214 | ||
14215 | ||
14216 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14217 | PyObject *resultobj; | |
14218 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14219 | bool result; | |
14220 | PyObject * obj0 = 0 ; | |
14221 | char *kwnames[] = { | |
14222 | (char *) "self", NULL | |
14223 | }; | |
14224 | ||
14225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
14226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14227 | result = (bool) ((arg1)->m_middleDown); | |
14228 | ||
4e760a36 | 14229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14230 | return resultobj; |
14231 | fail: | |
14232 | return NULL; | |
14233 | } | |
14234 | ||
14235 | ||
14236 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14237 | PyObject *resultobj; | |
14238 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14239 | bool arg2 ; | |
14240 | PyObject * obj0 = 0 ; | |
14241 | PyObject * obj1 = 0 ; | |
14242 | char *kwnames[] = { | |
14243 | (char *) "self",(char *) "m_rightDown", NULL | |
14244 | }; | |
14245 | ||
14246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14248 | { |
8edf1c75 | 14249 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14250 | if (PyErr_Occurred()) SWIG_fail; |
14251 | } | |
d14a1e28 RD |
14252 | if (arg1) (arg1)->m_rightDown = arg2; |
14253 | ||
14254 | Py_INCREF(Py_None); resultobj = Py_None; | |
14255 | return resultobj; | |
14256 | fail: | |
14257 | return NULL; | |
14258 | } | |
14259 | ||
14260 | ||
14261 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14262 | PyObject *resultobj; | |
14263 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14264 | bool result; | |
14265 | PyObject * obj0 = 0 ; | |
14266 | char *kwnames[] = { | |
14267 | (char *) "self", NULL | |
14268 | }; | |
14269 | ||
14270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
14271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14272 | result = (bool) ((arg1)->m_rightDown); | |
14273 | ||
4e760a36 | 14274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14275 | return resultobj; |
14276 | fail: | |
14277 | return NULL; | |
14278 | } | |
14279 | ||
14280 | ||
14281 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14282 | PyObject *resultobj; | |
14283 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14284 | bool arg2 ; | |
14285 | PyObject * obj0 = 0 ; | |
14286 | PyObject * obj1 = 0 ; | |
14287 | char *kwnames[] = { | |
14288 | (char *) "self",(char *) "m_controlDown", NULL | |
14289 | }; | |
14290 | ||
14291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14293 | { |
8edf1c75 | 14294 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14295 | if (PyErr_Occurred()) SWIG_fail; |
14296 | } | |
d14a1e28 RD |
14297 | if (arg1) (arg1)->m_controlDown = arg2; |
14298 | ||
14299 | Py_INCREF(Py_None); resultobj = Py_None; | |
14300 | return resultobj; | |
14301 | fail: | |
14302 | return NULL; | |
14303 | } | |
14304 | ||
14305 | ||
14306 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14307 | PyObject *resultobj; | |
14308 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14309 | bool result; | |
14310 | PyObject * obj0 = 0 ; | |
14311 | char *kwnames[] = { | |
14312 | (char *) "self", NULL | |
14313 | }; | |
14314 | ||
14315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
14316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14317 | result = (bool) ((arg1)->m_controlDown); | |
14318 | ||
4e760a36 | 14319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14320 | return resultobj; |
14321 | fail: | |
14322 | return NULL; | |
14323 | } | |
14324 | ||
14325 | ||
14326 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14327 | PyObject *resultobj; | |
14328 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14329 | bool arg2 ; | |
14330 | PyObject * obj0 = 0 ; | |
14331 | PyObject * obj1 = 0 ; | |
14332 | char *kwnames[] = { | |
14333 | (char *) "self",(char *) "m_shiftDown", NULL | |
14334 | }; | |
14335 | ||
14336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14338 | { |
8edf1c75 | 14339 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14340 | if (PyErr_Occurred()) SWIG_fail; |
14341 | } | |
d14a1e28 RD |
14342 | if (arg1) (arg1)->m_shiftDown = arg2; |
14343 | ||
14344 | Py_INCREF(Py_None); resultobj = Py_None; | |
14345 | return resultobj; | |
14346 | fail: | |
14347 | return NULL; | |
14348 | } | |
14349 | ||
14350 | ||
14351 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14352 | PyObject *resultobj; | |
14353 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14354 | bool result; | |
14355 | PyObject * obj0 = 0 ; | |
14356 | char *kwnames[] = { | |
14357 | (char *) "self", NULL | |
14358 | }; | |
14359 | ||
14360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
14361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14362 | result = (bool) ((arg1)->m_shiftDown); | |
14363 | ||
4e760a36 | 14364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14365 | return resultobj; |
14366 | fail: | |
14367 | return NULL; | |
14368 | } | |
14369 | ||
14370 | ||
14371 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14372 | PyObject *resultobj; | |
14373 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14374 | bool arg2 ; | |
14375 | PyObject * obj0 = 0 ; | |
14376 | PyObject * obj1 = 0 ; | |
14377 | char *kwnames[] = { | |
14378 | (char *) "self",(char *) "m_altDown", NULL | |
14379 | }; | |
14380 | ||
14381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14383 | { |
8edf1c75 | 14384 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14385 | if (PyErr_Occurred()) SWIG_fail; |
14386 | } | |
d14a1e28 RD |
14387 | if (arg1) (arg1)->m_altDown = arg2; |
14388 | ||
14389 | Py_INCREF(Py_None); resultobj = Py_None; | |
14390 | return resultobj; | |
14391 | fail: | |
14392 | return NULL; | |
14393 | } | |
14394 | ||
14395 | ||
14396 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14397 | PyObject *resultobj; | |
14398 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14399 | bool result; | |
14400 | PyObject * obj0 = 0 ; | |
14401 | char *kwnames[] = { | |
14402 | (char *) "self", NULL | |
14403 | }; | |
14404 | ||
14405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
14406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14407 | result = (bool) ((arg1)->m_altDown); | |
14408 | ||
4e760a36 | 14409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14410 | return resultobj; |
14411 | fail: | |
14412 | return NULL; | |
14413 | } | |
14414 | ||
14415 | ||
14416 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14417 | PyObject *resultobj; | |
14418 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14419 | bool arg2 ; | |
14420 | PyObject * obj0 = 0 ; | |
14421 | PyObject * obj1 = 0 ; | |
14422 | char *kwnames[] = { | |
14423 | (char *) "self",(char *) "m_metaDown", NULL | |
14424 | }; | |
14425 | ||
14426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14428 | { |
8edf1c75 | 14429 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14430 | if (PyErr_Occurred()) SWIG_fail; |
14431 | } | |
d14a1e28 RD |
14432 | if (arg1) (arg1)->m_metaDown = arg2; |
14433 | ||
14434 | Py_INCREF(Py_None); resultobj = Py_None; | |
14435 | return resultobj; | |
14436 | fail: | |
14437 | return NULL; | |
14438 | } | |
14439 | ||
14440 | ||
14441 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14442 | PyObject *resultobj; | |
14443 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14444 | bool result; | |
14445 | PyObject * obj0 = 0 ; | |
14446 | char *kwnames[] = { | |
14447 | (char *) "self", NULL | |
14448 | }; | |
14449 | ||
14450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
14451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14452 | result = (bool) ((arg1)->m_metaDown); | |
14453 | ||
4e760a36 | 14454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14455 | return resultobj; |
14456 | fail: | |
14457 | return NULL; | |
14458 | } | |
14459 | ||
14460 | ||
14461 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14462 | PyObject *resultobj; | |
14463 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14464 | int arg2 ; | |
14465 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14466 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14467 | char *kwnames[] = { |
14468 | (char *) "self",(char *) "m_wheelRotation", NULL | |
14469 | }; | |
14470 | ||
8edf1c75 | 14471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14473 | { |
14474 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14475 | if (PyErr_Occurred()) SWIG_fail; | |
14476 | } | |
d14a1e28 RD |
14477 | if (arg1) (arg1)->m_wheelRotation = arg2; |
14478 | ||
14479 | Py_INCREF(Py_None); resultobj = Py_None; | |
14480 | return resultobj; | |
14481 | fail: | |
14482 | return NULL; | |
14483 | } | |
14484 | ||
14485 | ||
14486 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14487 | PyObject *resultobj; | |
14488 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14489 | int result; | |
14490 | PyObject * obj0 = 0 ; | |
14491 | char *kwnames[] = { | |
14492 | (char *) "self", NULL | |
14493 | }; | |
14494 | ||
14495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
14496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14497 | result = (int) ((arg1)->m_wheelRotation); | |
14498 | ||
8edf1c75 | 14499 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14500 | return resultobj; |
14501 | fail: | |
14502 | return NULL; | |
14503 | } | |
14504 | ||
14505 | ||
14506 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14507 | PyObject *resultobj; | |
14508 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14509 | int arg2 ; | |
14510 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14511 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14512 | char *kwnames[] = { |
14513 | (char *) "self",(char *) "m_wheelDelta", NULL | |
14514 | }; | |
14515 | ||
8edf1c75 | 14516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14518 | { |
14519 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14520 | if (PyErr_Occurred()) SWIG_fail; | |
14521 | } | |
d14a1e28 RD |
14522 | if (arg1) (arg1)->m_wheelDelta = arg2; |
14523 | ||
14524 | Py_INCREF(Py_None); resultobj = Py_None; | |
14525 | return resultobj; | |
14526 | fail: | |
14527 | return NULL; | |
14528 | } | |
14529 | ||
14530 | ||
14531 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14532 | PyObject *resultobj; | |
14533 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14534 | int result; | |
14535 | PyObject * obj0 = 0 ; | |
14536 | char *kwnames[] = { | |
14537 | (char *) "self", NULL | |
14538 | }; | |
14539 | ||
14540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
14541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14542 | result = (int) ((arg1)->m_wheelDelta); | |
14543 | ||
8edf1c75 | 14544 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14545 | return resultobj; |
14546 | fail: | |
14547 | return NULL; | |
14548 | } | |
14549 | ||
14550 | ||
14551 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14552 | PyObject *resultobj; | |
14553 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14554 | int arg2 ; | |
14555 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14557 | char *kwnames[] = { |
14558 | (char *) "self",(char *) "m_linesPerAction", NULL | |
14559 | }; | |
14560 | ||
8edf1c75 | 14561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14563 | { |
14564 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14565 | if (PyErr_Occurred()) SWIG_fail; | |
14566 | } | |
d14a1e28 RD |
14567 | if (arg1) (arg1)->m_linesPerAction = arg2; |
14568 | ||
14569 | Py_INCREF(Py_None); resultobj = Py_None; | |
14570 | return resultobj; | |
14571 | fail: | |
14572 | return NULL; | |
14573 | } | |
14574 | ||
14575 | ||
14576 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14577 | PyObject *resultobj; | |
14578 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14579 | int result; | |
14580 | PyObject * obj0 = 0 ; | |
14581 | char *kwnames[] = { | |
14582 | (char *) "self", NULL | |
14583 | }; | |
14584 | ||
14585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
14586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14587 | result = (int) ((arg1)->m_linesPerAction); | |
14588 | ||
8edf1c75 | 14589 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14590 | return resultobj; |
14591 | fail: | |
14592 | return NULL; | |
14593 | } | |
14594 | ||
14595 | ||
14596 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
14597 | PyObject *obj; | |
14598 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14599 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
14600 | Py_INCREF(obj); | |
14601 | return Py_BuildValue((char *)""); | |
14602 | } | |
14603 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14604 | PyObject *resultobj; | |
423f194a RD |
14605 | int arg1 = (int) 0 ; |
14606 | int arg2 = (int) 0 ; | |
d14a1e28 | 14607 | wxSetCursorEvent *result; |
8edf1c75 RD |
14608 | PyObject * obj0 = 0 ; |
14609 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
14610 | char *kwnames[] = { |
14611 | (char *) "x",(char *) "y", NULL | |
14612 | }; | |
14613 | ||
8edf1c75 RD |
14614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; |
14615 | if (obj0) { | |
14616 | { | |
14617 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
14618 | if (PyErr_Occurred()) SWIG_fail; | |
14619 | } | |
14620 | } | |
14621 | if (obj1) { | |
14622 | { | |
14623 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14624 | if (PyErr_Occurred()) SWIG_fail; | |
14625 | } | |
14626 | } | |
d14a1e28 RD |
14627 | { |
14628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14629 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
14630 | ||
14631 | wxPyEndAllowThreads(__tstate); | |
14632 | if (PyErr_Occurred()) SWIG_fail; | |
14633 | } | |
14634 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSetCursorEvent, 1); | |
14635 | return resultobj; | |
14636 | fail: | |
14637 | return NULL; | |
14638 | } | |
14639 | ||
14640 | ||
14641 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14642 | PyObject *resultobj; | |
14643 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 14644 | int result; |
d14a1e28 RD |
14645 | PyObject * obj0 = 0 ; |
14646 | char *kwnames[] = { | |
14647 | (char *) "self", NULL | |
14648 | }; | |
14649 | ||
14650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
14651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14652 | { | |
14653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14654 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14655 | |
14656 | wxPyEndAllowThreads(__tstate); | |
14657 | if (PyErr_Occurred()) SWIG_fail; | |
14658 | } | |
8edf1c75 | 14659 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14660 | return resultobj; |
14661 | fail: | |
14662 | return NULL; | |
14663 | } | |
14664 | ||
14665 | ||
14666 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14667 | PyObject *resultobj; | |
14668 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 14669 | int result; |
d14a1e28 RD |
14670 | PyObject * obj0 = 0 ; |
14671 | char *kwnames[] = { | |
14672 | (char *) "self", NULL | |
14673 | }; | |
14674 | ||
14675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
14676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14677 | { | |
14678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14679 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14680 | |
14681 | wxPyEndAllowThreads(__tstate); | |
14682 | if (PyErr_Occurred()) SWIG_fail; | |
14683 | } | |
8edf1c75 | 14684 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14685 | return resultobj; |
14686 | fail: | |
14687 | return NULL; | |
14688 | } | |
14689 | ||
14690 | ||
14691 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14692 | PyObject *resultobj; | |
14693 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
14694 | wxCursor *arg2 = 0 ; | |
14695 | PyObject * obj0 = 0 ; | |
14696 | PyObject * obj1 = 0 ; | |
14697 | char *kwnames[] = { | |
14698 | (char *) "self",(char *) "cursor", NULL | |
14699 | }; | |
14700 | ||
14701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
14702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14703 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14704 | if (arg2 == NULL) { | |
14705 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14706 | } | |
14707 | { | |
14708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14709 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
14710 | ||
14711 | wxPyEndAllowThreads(__tstate); | |
14712 | if (PyErr_Occurred()) SWIG_fail; | |
14713 | } | |
14714 | Py_INCREF(Py_None); resultobj = Py_None; | |
14715 | return resultobj; | |
14716 | fail: | |
14717 | return NULL; | |
14718 | } | |
14719 | ||
14720 | ||
14721 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14722 | PyObject *resultobj; | |
14723 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
14724 | wxCursor *result; | |
14725 | PyObject * obj0 = 0 ; | |
14726 | char *kwnames[] = { | |
14727 | (char *) "self", NULL | |
14728 | }; | |
14729 | ||
14730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
14731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14732 | { | |
14733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14734 | { | |
14735 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
14736 | result = (wxCursor *) &_result_ref; | |
14737 | } | |
14738 | ||
14739 | wxPyEndAllowThreads(__tstate); | |
14740 | if (PyErr_Occurred()) SWIG_fail; | |
14741 | } | |
14742 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
14743 | return resultobj; | |
14744 | fail: | |
14745 | return NULL; | |
14746 | } | |
14747 | ||
14748 | ||
14749 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14750 | PyObject *resultobj; | |
14751 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
14752 | bool result; | |
14753 | PyObject * obj0 = 0 ; | |
14754 | char *kwnames[] = { | |
14755 | (char *) "self", NULL | |
14756 | }; | |
14757 | ||
14758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
14759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14760 | { | |
14761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14762 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
14763 | ||
14764 | wxPyEndAllowThreads(__tstate); | |
14765 | if (PyErr_Occurred()) SWIG_fail; | |
14766 | } | |
4e760a36 | 14767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14768 | return resultobj; |
14769 | fail: | |
14770 | return NULL; | |
14771 | } | |
14772 | ||
14773 | ||
14774 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
14775 | PyObject *obj; | |
14776 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14777 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
14778 | Py_INCREF(obj); | |
14779 | return Py_BuildValue((char *)""); | |
14780 | } | |
14781 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14782 | PyObject *resultobj; | |
14783 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14784 | wxKeyEvent *result; | |
8edf1c75 | 14785 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
14786 | char *kwnames[] = { |
14787 | (char *) "keyType", NULL | |
14788 | }; | |
14789 | ||
8edf1c75 RD |
14790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; |
14791 | if (obj0) { | |
14792 | { | |
14793 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14794 | if (PyErr_Occurred()) SWIG_fail; | |
14795 | } | |
14796 | } | |
d14a1e28 RD |
14797 | { |
14798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14799 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
14800 | ||
14801 | wxPyEndAllowThreads(__tstate); | |
14802 | if (PyErr_Occurred()) SWIG_fail; | |
14803 | } | |
14804 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 1); | |
14805 | return resultobj; | |
14806 | fail: | |
14807 | return NULL; | |
14808 | } | |
14809 | ||
14810 | ||
14811 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14812 | PyObject *resultobj; | |
14813 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14814 | bool result; | |
14815 | PyObject * obj0 = 0 ; | |
14816 | char *kwnames[] = { | |
14817 | (char *) "self", NULL | |
14818 | }; | |
14819 | ||
14820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14822 | { | |
14823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14824 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
14825 | ||
14826 | wxPyEndAllowThreads(__tstate); | |
14827 | if (PyErr_Occurred()) SWIG_fail; | |
14828 | } | |
4e760a36 | 14829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14830 | return resultobj; |
14831 | fail: | |
14832 | return NULL; | |
14833 | } | |
14834 | ||
14835 | ||
14836 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14837 | PyObject *resultobj; | |
14838 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14839 | bool result; | |
14840 | PyObject * obj0 = 0 ; | |
14841 | char *kwnames[] = { | |
14842 | (char *) "self", NULL | |
14843 | }; | |
14844 | ||
14845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14847 | { | |
14848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14849 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
14850 | ||
14851 | wxPyEndAllowThreads(__tstate); | |
14852 | if (PyErr_Occurred()) SWIG_fail; | |
14853 | } | |
4e760a36 | 14854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14855 | return resultobj; |
14856 | fail: | |
14857 | return NULL; | |
14858 | } | |
14859 | ||
14860 | ||
14861 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14862 | PyObject *resultobj; | |
14863 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14864 | bool result; | |
14865 | PyObject * obj0 = 0 ; | |
14866 | char *kwnames[] = { | |
14867 | (char *) "self", NULL | |
14868 | }; | |
14869 | ||
14870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
14871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14872 | { | |
14873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14874 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
14875 | ||
14876 | wxPyEndAllowThreads(__tstate); | |
14877 | if (PyErr_Occurred()) SWIG_fail; | |
14878 | } | |
4e760a36 | 14879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14880 | return resultobj; |
14881 | fail: | |
14882 | return NULL; | |
14883 | } | |
14884 | ||
14885 | ||
14886 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14887 | PyObject *resultobj; | |
14888 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14889 | bool result; | |
14890 | PyObject * obj0 = 0 ; | |
14891 | char *kwnames[] = { | |
14892 | (char *) "self", NULL | |
14893 | }; | |
14894 | ||
14895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14897 | { | |
14898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14899 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
14900 | ||
14901 | wxPyEndAllowThreads(__tstate); | |
14902 | if (PyErr_Occurred()) SWIG_fail; | |
14903 | } | |
4e760a36 | 14904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14905 | return resultobj; |
14906 | fail: | |
14907 | return NULL; | |
14908 | } | |
14909 | ||
14910 | ||
14911 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14912 | PyObject *resultobj; | |
14913 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14914 | bool result; | |
14915 | PyObject * obj0 = 0 ; | |
14916 | char *kwnames[] = { | |
14917 | (char *) "self", NULL | |
14918 | }; | |
14919 | ||
14920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
14921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14922 | { | |
14923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14924 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
14925 | ||
14926 | wxPyEndAllowThreads(__tstate); | |
14927 | if (PyErr_Occurred()) SWIG_fail; | |
14928 | } | |
4e760a36 | 14929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14930 | return resultobj; |
14931 | fail: | |
14932 | return NULL; | |
14933 | } | |
14934 | ||
14935 | ||
14936 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14937 | PyObject *resultobj; | |
14938 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14939 | int result; | |
14940 | PyObject * obj0 = 0 ; | |
14941 | char *kwnames[] = { | |
14942 | (char *) "self", NULL | |
14943 | }; | |
14944 | ||
14945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
14946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14947 | { | |
14948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14949 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
14950 | ||
14951 | wxPyEndAllowThreads(__tstate); | |
14952 | if (PyErr_Occurred()) SWIG_fail; | |
14953 | } | |
8edf1c75 | 14954 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14955 | return resultobj; |
14956 | fail: | |
14957 | return NULL; | |
14958 | } | |
14959 | ||
14960 | ||
14961 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14962 | PyObject *resultobj; | |
14963 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14964 | int result; | |
14965 | PyObject * obj0 = 0 ; | |
14966 | char *kwnames[] = { | |
14967 | (char *) "self", NULL | |
14968 | }; | |
14969 | ||
14970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
14971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14972 | { | |
14973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14974 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
14975 | ||
14976 | wxPyEndAllowThreads(__tstate); | |
14977 | if (PyErr_Occurred()) SWIG_fail; | |
14978 | } | |
8edf1c75 | 14979 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14980 | return resultobj; |
14981 | fail: | |
14982 | return NULL; | |
14983 | } | |
14984 | ||
14985 | ||
14986 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14987 | PyObject *resultobj; | |
14988 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14989 | unsigned int result; |
d14a1e28 RD |
14990 | PyObject * obj0 = 0 ; |
14991 | char *kwnames[] = { | |
14992 | (char *) "self", NULL | |
14993 | }; | |
14994 | ||
14995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
14996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14997 | { | |
14998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14999 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
15000 | |
15001 | wxPyEndAllowThreads(__tstate); | |
15002 | if (PyErr_Occurred()) SWIG_fail; | |
15003 | } | |
8edf1c75 | 15004 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15005 | return resultobj; |
15006 | fail: | |
15007 | return NULL; | |
15008 | } | |
15009 | ||
15010 | ||
15011 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15012 | PyObject *resultobj; | |
15013 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15014 | unsigned int result; |
d14a1e28 RD |
15015 | PyObject * obj0 = 0 ; |
15016 | char *kwnames[] = { | |
15017 | (char *) "self", NULL | |
15018 | }; | |
15019 | ||
15020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
15021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15022 | { | |
15023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15024 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
15025 | |
15026 | wxPyEndAllowThreads(__tstate); | |
15027 | if (PyErr_Occurred()) SWIG_fail; | |
15028 | } | |
8edf1c75 | 15029 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15030 | return resultobj; |
15031 | fail: | |
15032 | return NULL; | |
15033 | } | |
15034 | ||
15035 | ||
15036 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15037 | PyObject *resultobj; | |
15038 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15039 | wxPoint result; | |
15040 | PyObject * obj0 = 0 ; | |
15041 | char *kwnames[] = { | |
15042 | (char *) "self", NULL | |
15043 | }; | |
15044 | ||
15045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15047 | { | |
15048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15049 | result = (arg1)->GetPosition(); | |
15050 | ||
15051 | wxPyEndAllowThreads(__tstate); | |
15052 | if (PyErr_Occurred()) SWIG_fail; | |
15053 | } | |
15054 | { | |
15055 | wxPoint * resultptr; | |
15056 | resultptr = new wxPoint((wxPoint &) result); | |
15057 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
15058 | } | |
15059 | return resultobj; | |
15060 | fail: | |
15061 | return NULL; | |
15062 | } | |
15063 | ||
15064 | ||
15065 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15066 | PyObject *resultobj; | |
15067 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15068 | long *arg2 = (long *) 0 ; | |
15069 | long *arg3 = (long *) 0 ; | |
15070 | long temp2 ; | |
15071 | long temp3 ; | |
15072 | PyObject * obj0 = 0 ; | |
15073 | char *kwnames[] = { | |
15074 | (char *) "self", NULL | |
15075 | }; | |
15076 | ||
15077 | arg2 = &temp2; | |
15078 | arg3 = &temp3; | |
15079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15081 | { | |
15082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15083 | (arg1)->GetPosition(arg2,arg3); | |
15084 | ||
15085 | wxPyEndAllowThreads(__tstate); | |
15086 | if (PyErr_Occurred()) SWIG_fail; | |
15087 | } | |
15088 | Py_INCREF(Py_None); resultobj = Py_None; | |
15089 | { | |
15090 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15091 | resultobj = t_output_helper(resultobj,o); | |
15092 | } | |
15093 | { | |
15094 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15095 | resultobj = t_output_helper(resultobj,o); | |
15096 | } | |
15097 | return resultobj; | |
15098 | fail: | |
15099 | return NULL; | |
15100 | } | |
15101 | ||
15102 | ||
15103 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15104 | PyObject *resultobj; | |
15105 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15106 | int result; |
d14a1e28 RD |
15107 | PyObject * obj0 = 0 ; |
15108 | char *kwnames[] = { | |
15109 | (char *) "self", NULL | |
15110 | }; | |
15111 | ||
15112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
15113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15114 | { | |
15115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15116 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15117 | |
15118 | wxPyEndAllowThreads(__tstate); | |
15119 | if (PyErr_Occurred()) SWIG_fail; | |
15120 | } | |
8edf1c75 | 15121 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15122 | return resultobj; |
15123 | fail: | |
15124 | return NULL; | |
15125 | } | |
15126 | ||
15127 | ||
15128 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15129 | PyObject *resultobj; | |
15130 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15131 | int result; |
d14a1e28 RD |
15132 | PyObject * obj0 = 0 ; |
15133 | char *kwnames[] = { | |
15134 | (char *) "self", NULL | |
15135 | }; | |
15136 | ||
15137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
15138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15139 | { | |
15140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15141 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15142 | |
15143 | wxPyEndAllowThreads(__tstate); | |
15144 | if (PyErr_Occurred()) SWIG_fail; | |
15145 | } | |
8edf1c75 | 15146 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15147 | return resultobj; |
15148 | fail: | |
15149 | return NULL; | |
15150 | } | |
15151 | ||
15152 | ||
15153 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15154 | PyObject *resultobj; | |
15155 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15156 | int arg2 ; |
d14a1e28 | 15157 | PyObject * obj0 = 0 ; |
8edf1c75 | 15158 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15159 | char *kwnames[] = { |
15160 | (char *) "self",(char *) "m_x", NULL | |
15161 | }; | |
15162 | ||
8edf1c75 | 15163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15165 | { |
15166 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15167 | if (PyErr_Occurred()) SWIG_fail; | |
15168 | } | |
d14a1e28 RD |
15169 | if (arg1) (arg1)->m_x = arg2; |
15170 | ||
15171 | Py_INCREF(Py_None); resultobj = Py_None; | |
15172 | return resultobj; | |
15173 | fail: | |
15174 | return NULL; | |
15175 | } | |
15176 | ||
15177 | ||
15178 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15179 | PyObject *resultobj; | |
15180 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15181 | int result; |
d14a1e28 RD |
15182 | PyObject * obj0 = 0 ; |
15183 | char *kwnames[] = { | |
15184 | (char *) "self", NULL | |
15185 | }; | |
15186 | ||
15187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 15189 | result = (int) ((arg1)->m_x); |
d14a1e28 | 15190 | |
8edf1c75 | 15191 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15192 | return resultobj; |
15193 | fail: | |
15194 | return NULL; | |
15195 | } | |
15196 | ||
15197 | ||
15198 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15199 | PyObject *resultobj; | |
15200 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15201 | int arg2 ; |
d14a1e28 | 15202 | PyObject * obj0 = 0 ; |
8edf1c75 | 15203 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15204 | char *kwnames[] = { |
15205 | (char *) "self",(char *) "m_y", NULL | |
15206 | }; | |
15207 | ||
8edf1c75 | 15208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15210 | { |
15211 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15212 | if (PyErr_Occurred()) SWIG_fail; | |
15213 | } | |
d14a1e28 RD |
15214 | if (arg1) (arg1)->m_y = arg2; |
15215 | ||
15216 | Py_INCREF(Py_None); resultobj = Py_None; | |
15217 | return resultobj; | |
15218 | fail: | |
15219 | return NULL; | |
15220 | } | |
15221 | ||
15222 | ||
15223 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15224 | PyObject *resultobj; | |
15225 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15226 | int result; |
d14a1e28 RD |
15227 | PyObject * obj0 = 0 ; |
15228 | char *kwnames[] = { | |
15229 | (char *) "self", NULL | |
15230 | }; | |
15231 | ||
15232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 15234 | result = (int) ((arg1)->m_y); |
d14a1e28 | 15235 | |
8edf1c75 | 15236 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15237 | return resultobj; |
15238 | fail: | |
15239 | return NULL; | |
15240 | } | |
15241 | ||
15242 | ||
15243 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15244 | PyObject *resultobj; | |
15245 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15246 | long arg2 ; | |
15247 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15248 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15249 | char *kwnames[] = { |
15250 | (char *) "self",(char *) "m_keyCode", NULL | |
15251 | }; | |
15252 | ||
8edf1c75 | 15253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15255 | { |
15256 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
15257 | if (PyErr_Occurred()) SWIG_fail; | |
15258 | } | |
d14a1e28 RD |
15259 | if (arg1) (arg1)->m_keyCode = arg2; |
15260 | ||
15261 | Py_INCREF(Py_None); resultobj = Py_None; | |
15262 | return resultobj; | |
15263 | fail: | |
15264 | return NULL; | |
15265 | } | |
15266 | ||
15267 | ||
15268 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15269 | PyObject *resultobj; | |
15270 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15271 | long result; | |
15272 | PyObject * obj0 = 0 ; | |
15273 | char *kwnames[] = { | |
15274 | (char *) "self", NULL | |
15275 | }; | |
15276 | ||
15277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
15278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15279 | result = (long) ((arg1)->m_keyCode); | |
15280 | ||
8edf1c75 | 15281 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
15282 | return resultobj; |
15283 | fail: | |
15284 | return NULL; | |
15285 | } | |
15286 | ||
15287 | ||
15288 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15289 | PyObject *resultobj; | |
15290 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15291 | bool arg2 ; | |
15292 | PyObject * obj0 = 0 ; | |
15293 | PyObject * obj1 = 0 ; | |
15294 | char *kwnames[] = { | |
15295 | (char *) "self",(char *) "m_controlDown", NULL | |
15296 | }; | |
15297 | ||
15298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15300 | { |
8edf1c75 | 15301 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15302 | if (PyErr_Occurred()) SWIG_fail; |
15303 | } | |
d14a1e28 RD |
15304 | if (arg1) (arg1)->m_controlDown = arg2; |
15305 | ||
15306 | Py_INCREF(Py_None); resultobj = Py_None; | |
15307 | return resultobj; | |
15308 | fail: | |
15309 | return NULL; | |
15310 | } | |
15311 | ||
15312 | ||
15313 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15314 | PyObject *resultobj; | |
15315 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15316 | bool result; | |
15317 | PyObject * obj0 = 0 ; | |
15318 | char *kwnames[] = { | |
15319 | (char *) "self", NULL | |
15320 | }; | |
15321 | ||
15322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15324 | result = (bool) ((arg1)->m_controlDown); | |
15325 | ||
4e760a36 | 15326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15327 | return resultobj; |
15328 | fail: | |
15329 | return NULL; | |
15330 | } | |
15331 | ||
15332 | ||
15333 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15334 | PyObject *resultobj; | |
15335 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15336 | bool arg2 ; | |
15337 | PyObject * obj0 = 0 ; | |
15338 | PyObject * obj1 = 0 ; | |
15339 | char *kwnames[] = { | |
15340 | (char *) "self",(char *) "m_shiftDown", NULL | |
15341 | }; | |
15342 | ||
15343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15345 | { |
8edf1c75 | 15346 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15347 | if (PyErr_Occurred()) SWIG_fail; |
15348 | } | |
d14a1e28 RD |
15349 | if (arg1) (arg1)->m_shiftDown = arg2; |
15350 | ||
15351 | Py_INCREF(Py_None); resultobj = Py_None; | |
15352 | return resultobj; | |
15353 | fail: | |
15354 | return NULL; | |
15355 | } | |
15356 | ||
15357 | ||
15358 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15359 | PyObject *resultobj; | |
15360 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15361 | bool result; | |
15362 | PyObject * obj0 = 0 ; | |
15363 | char *kwnames[] = { | |
15364 | (char *) "self", NULL | |
15365 | }; | |
15366 | ||
15367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15369 | result = (bool) ((arg1)->m_shiftDown); | |
15370 | ||
4e760a36 | 15371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15372 | return resultobj; |
15373 | fail: | |
15374 | return NULL; | |
15375 | } | |
15376 | ||
15377 | ||
15378 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15379 | PyObject *resultobj; | |
15380 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15381 | bool arg2 ; | |
15382 | PyObject * obj0 = 0 ; | |
15383 | PyObject * obj1 = 0 ; | |
15384 | char *kwnames[] = { | |
15385 | (char *) "self",(char *) "m_altDown", NULL | |
15386 | }; | |
15387 | ||
15388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15390 | { |
8edf1c75 | 15391 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15392 | if (PyErr_Occurred()) SWIG_fail; |
15393 | } | |
d14a1e28 RD |
15394 | if (arg1) (arg1)->m_altDown = arg2; |
15395 | ||
15396 | Py_INCREF(Py_None); resultobj = Py_None; | |
15397 | return resultobj; | |
15398 | fail: | |
15399 | return NULL; | |
15400 | } | |
15401 | ||
15402 | ||
15403 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15404 | PyObject *resultobj; | |
15405 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15406 | bool result; | |
15407 | PyObject * obj0 = 0 ; | |
15408 | char *kwnames[] = { | |
15409 | (char *) "self", NULL | |
15410 | }; | |
15411 | ||
15412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15414 | result = (bool) ((arg1)->m_altDown); | |
15415 | ||
4e760a36 | 15416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15417 | return resultobj; |
15418 | fail: | |
15419 | return NULL; | |
15420 | } | |
15421 | ||
15422 | ||
15423 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15424 | PyObject *resultobj; | |
15425 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15426 | bool arg2 ; | |
15427 | PyObject * obj0 = 0 ; | |
15428 | PyObject * obj1 = 0 ; | |
15429 | char *kwnames[] = { | |
15430 | (char *) "self",(char *) "m_metaDown", NULL | |
15431 | }; | |
15432 | ||
15433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15435 | { |
8edf1c75 | 15436 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15437 | if (PyErr_Occurred()) SWIG_fail; |
15438 | } | |
d14a1e28 RD |
15439 | if (arg1) (arg1)->m_metaDown = arg2; |
15440 | ||
15441 | Py_INCREF(Py_None); resultobj = Py_None; | |
15442 | return resultobj; | |
15443 | fail: | |
15444 | return NULL; | |
15445 | } | |
15446 | ||
15447 | ||
15448 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15449 | PyObject *resultobj; | |
15450 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15451 | bool result; | |
15452 | PyObject * obj0 = 0 ; | |
15453 | char *kwnames[] = { | |
15454 | (char *) "self", NULL | |
15455 | }; | |
15456 | ||
15457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15459 | result = (bool) ((arg1)->m_metaDown); | |
15460 | ||
4e760a36 | 15461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15462 | return resultobj; |
15463 | fail: | |
15464 | return NULL; | |
15465 | } | |
15466 | ||
15467 | ||
15468 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15469 | PyObject *resultobj; | |
15470 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15471 | bool arg2 ; | |
15472 | PyObject * obj0 = 0 ; | |
15473 | PyObject * obj1 = 0 ; | |
15474 | char *kwnames[] = { | |
15475 | (char *) "self",(char *) "m_scanCode", NULL | |
15476 | }; | |
15477 | ||
15478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15480 | { |
8edf1c75 | 15481 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15482 | if (PyErr_Occurred()) SWIG_fail; |
15483 | } | |
d14a1e28 RD |
15484 | if (arg1) (arg1)->m_scanCode = arg2; |
15485 | ||
15486 | Py_INCREF(Py_None); resultobj = Py_None; | |
15487 | return resultobj; | |
15488 | fail: | |
15489 | return NULL; | |
15490 | } | |
15491 | ||
15492 | ||
15493 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15494 | PyObject *resultobj; | |
15495 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15496 | bool result; | |
15497 | PyObject * obj0 = 0 ; | |
15498 | char *kwnames[] = { | |
15499 | (char *) "self", NULL | |
15500 | }; | |
15501 | ||
15502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
15503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15504 | result = (bool) ((arg1)->m_scanCode); | |
15505 | ||
4e760a36 | 15506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15507 | return resultobj; |
15508 | fail: | |
15509 | return NULL; | |
15510 | } | |
15511 | ||
15512 | ||
15513 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15514 | PyObject *resultobj; | |
15515 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15516 | unsigned int arg2 ; |
d14a1e28 RD |
15517 | PyObject * obj0 = 0 ; |
15518 | PyObject * obj1 = 0 ; | |
15519 | char *kwnames[] = { | |
15520 | (char *) "self",(char *) "m_rawCode", NULL | |
15521 | }; | |
15522 | ||
15523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15525 | { |
8edf1c75 | 15526 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
83448d71 RD |
15527 | if (PyErr_Occurred()) SWIG_fail; |
15528 | } | |
d14a1e28 RD |
15529 | if (arg1) (arg1)->m_rawCode = arg2; |
15530 | ||
15531 | Py_INCREF(Py_None); resultobj = Py_None; | |
15532 | return resultobj; | |
15533 | fail: | |
15534 | return NULL; | |
15535 | } | |
15536 | ||
15537 | ||
15538 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15539 | PyObject *resultobj; | |
15540 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15541 | unsigned int result; |
d14a1e28 RD |
15542 | PyObject * obj0 = 0 ; |
15543 | char *kwnames[] = { | |
15544 | (char *) "self", NULL | |
15545 | }; | |
15546 | ||
15547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
15548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 15549 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 15550 | |
8edf1c75 | 15551 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15552 | return resultobj; |
15553 | fail: | |
15554 | return NULL; | |
15555 | } | |
15556 | ||
15557 | ||
15558 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15559 | PyObject *resultobj; | |
15560 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15561 | unsigned int arg2 ; |
d14a1e28 RD |
15562 | PyObject * obj0 = 0 ; |
15563 | PyObject * obj1 = 0 ; | |
15564 | char *kwnames[] = { | |
15565 | (char *) "self",(char *) "m_rawFlags", NULL | |
15566 | }; | |
15567 | ||
15568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
15569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15570 | { |
8edf1c75 | 15571 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
83448d71 RD |
15572 | if (PyErr_Occurred()) SWIG_fail; |
15573 | } | |
d14a1e28 RD |
15574 | if (arg1) (arg1)->m_rawFlags = arg2; |
15575 | ||
15576 | Py_INCREF(Py_None); resultobj = Py_None; | |
15577 | return resultobj; | |
15578 | fail: | |
15579 | return NULL; | |
15580 | } | |
15581 | ||
15582 | ||
15583 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15584 | PyObject *resultobj; | |
15585 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15586 | unsigned int result; |
d14a1e28 RD |
15587 | PyObject * obj0 = 0 ; |
15588 | char *kwnames[] = { | |
15589 | (char *) "self", NULL | |
15590 | }; | |
15591 | ||
15592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
15593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 15594 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 15595 | |
8edf1c75 | 15596 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15597 | return resultobj; |
15598 | fail: | |
15599 | return NULL; | |
15600 | } | |
15601 | ||
15602 | ||
15603 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
15604 | PyObject *obj; | |
15605 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15606 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
15607 | Py_INCREF(obj); | |
15608 | return Py_BuildValue((char *)""); | |
15609 | } | |
15610 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15611 | PyObject *resultobj; | |
15612 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
15613 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
15614 | int arg2 = (int) 0 ; | |
15615 | wxSizeEvent *result; | |
15616 | wxSize temp1 ; | |
15617 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15618 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15619 | char *kwnames[] = { |
15620 | (char *) "sz",(char *) "winid", NULL | |
15621 | }; | |
15622 | ||
8edf1c75 | 15623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
15624 | if (obj0) { |
15625 | { | |
15626 | arg1 = &temp1; | |
15627 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
15628 | } | |
15629 | } | |
8edf1c75 RD |
15630 | if (obj1) { |
15631 | { | |
15632 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15633 | if (PyErr_Occurred()) SWIG_fail; | |
15634 | } | |
15635 | } | |
d14a1e28 RD |
15636 | { |
15637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15638 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
15639 | ||
15640 | wxPyEndAllowThreads(__tstate); | |
15641 | if (PyErr_Occurred()) SWIG_fail; | |
15642 | } | |
15643 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizeEvent, 1); | |
15644 | return resultobj; | |
15645 | fail: | |
15646 | return NULL; | |
15647 | } | |
15648 | ||
15649 | ||
15650 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15651 | PyObject *resultobj; | |
15652 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15653 | wxSize result; | |
15654 | PyObject * obj0 = 0 ; | |
15655 | char *kwnames[] = { | |
15656 | (char *) "self", NULL | |
15657 | }; | |
15658 | ||
15659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
15660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15661 | { | |
15662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15663 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
15664 | ||
15665 | wxPyEndAllowThreads(__tstate); | |
15666 | if (PyErr_Occurred()) SWIG_fail; | |
15667 | } | |
15668 | { | |
15669 | wxSize * resultptr; | |
15670 | resultptr = new wxSize((wxSize &) result); | |
15671 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15672 | } | |
15673 | return resultobj; | |
15674 | fail: | |
15675 | return NULL; | |
15676 | } | |
15677 | ||
15678 | ||
15679 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15680 | PyObject *resultobj; | |
15681 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15682 | wxRect result; | |
15683 | PyObject * obj0 = 0 ; | |
15684 | char *kwnames[] = { | |
15685 | (char *) "self", NULL | |
15686 | }; | |
15687 | ||
15688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
15689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15690 | { | |
15691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15692 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
15693 | ||
15694 | wxPyEndAllowThreads(__tstate); | |
15695 | if (PyErr_Occurred()) SWIG_fail; | |
15696 | } | |
15697 | { | |
15698 | wxRect * resultptr; | |
15699 | resultptr = new wxRect((wxRect &) result); | |
15700 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
15701 | } | |
15702 | return resultobj; | |
15703 | fail: | |
15704 | return NULL; | |
15705 | } | |
15706 | ||
15707 | ||
15708 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15709 | PyObject *resultobj; | |
15710 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15711 | wxRect arg2 ; | |
15712 | wxRect *argp2 ; | |
15713 | PyObject * obj0 = 0 ; | |
15714 | PyObject * obj1 = 0 ; | |
15715 | char *kwnames[] = { | |
15716 | (char *) "self",(char *) "rect", NULL | |
15717 | }; | |
15718 | ||
15719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15721 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15722 | arg2 = *argp2; | |
15723 | { | |
15724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15725 | (arg1)->SetRect(arg2); | |
15726 | ||
15727 | wxPyEndAllowThreads(__tstate); | |
15728 | if (PyErr_Occurred()) SWIG_fail; | |
15729 | } | |
15730 | Py_INCREF(Py_None); resultobj = Py_None; | |
15731 | return resultobj; | |
15732 | fail: | |
15733 | return NULL; | |
15734 | } | |
15735 | ||
15736 | ||
15737 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15738 | PyObject *resultobj; | |
15739 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15740 | wxSize arg2 ; | |
15741 | wxSize *argp2 ; | |
15742 | PyObject * obj0 = 0 ; | |
15743 | PyObject * obj1 = 0 ; | |
15744 | char *kwnames[] = { | |
15745 | (char *) "self",(char *) "size", NULL | |
15746 | }; | |
15747 | ||
15748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15750 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15751 | arg2 = *argp2; | |
15752 | { | |
15753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15754 | wxSizeEvent_SetSize(arg1,arg2); | |
15755 | ||
15756 | wxPyEndAllowThreads(__tstate); | |
15757 | if (PyErr_Occurred()) SWIG_fail; | |
15758 | } | |
15759 | Py_INCREF(Py_None); resultobj = Py_None; | |
15760 | return resultobj; | |
15761 | fail: | |
15762 | return NULL; | |
15763 | } | |
15764 | ||
15765 | ||
15766 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15767 | PyObject *resultobj; | |
15768 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15769 | wxSize *arg2 = (wxSize *) 0 ; | |
15770 | PyObject * obj0 = 0 ; | |
15771 | PyObject * obj1 = 0 ; | |
15772 | char *kwnames[] = { | |
15773 | (char *) "self",(char *) "m_size", NULL | |
15774 | }; | |
15775 | ||
15776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
15777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15778 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15779 | if (arg1) (arg1)->m_size = *arg2; | |
15780 | ||
15781 | Py_INCREF(Py_None); resultobj = Py_None; | |
15782 | return resultobj; | |
15783 | fail: | |
15784 | return NULL; | |
15785 | } | |
15786 | ||
15787 | ||
15788 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15789 | PyObject *resultobj; | |
15790 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15791 | wxSize *result; | |
15792 | PyObject * obj0 = 0 ; | |
15793 | char *kwnames[] = { | |
15794 | (char *) "self", NULL | |
15795 | }; | |
15796 | ||
15797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
15798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15799 | result = (wxSize *)& ((arg1)->m_size); | |
15800 | ||
15801 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
15802 | return resultobj; | |
15803 | fail: | |
15804 | return NULL; | |
15805 | } | |
15806 | ||
15807 | ||
15808 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15809 | PyObject *resultobj; | |
15810 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15811 | wxRect *arg2 = (wxRect *) 0 ; | |
15812 | PyObject * obj0 = 0 ; | |
15813 | PyObject * obj1 = 0 ; | |
15814 | char *kwnames[] = { | |
15815 | (char *) "self",(char *) "m_rect", NULL | |
15816 | }; | |
15817 | ||
15818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15820 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15821 | if (arg1) (arg1)->m_rect = *arg2; | |
15822 | ||
15823 | Py_INCREF(Py_None); resultobj = Py_None; | |
15824 | return resultobj; | |
15825 | fail: | |
15826 | return NULL; | |
15827 | } | |
15828 | ||
15829 | ||
15830 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15831 | PyObject *resultobj; | |
15832 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15833 | wxRect *result; | |
15834 | PyObject * obj0 = 0 ; | |
15835 | char *kwnames[] = { | |
15836 | (char *) "self", NULL | |
15837 | }; | |
15838 | ||
15839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15841 | result = (wxRect *)& ((arg1)->m_rect); | |
15842 | ||
15843 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
15844 | return resultobj; | |
15845 | fail: | |
15846 | return NULL; | |
15847 | } | |
15848 | ||
15849 | ||
15850 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
15851 | PyObject *obj; | |
15852 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15853 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
15854 | Py_INCREF(obj); | |
15855 | return Py_BuildValue((char *)""); | |
15856 | } | |
15857 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15858 | PyObject *resultobj; | |
15859 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
15860 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
15861 | int arg2 = (int) 0 ; | |
15862 | wxMoveEvent *result; | |
15863 | wxPoint temp1 ; | |
15864 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15865 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15866 | char *kwnames[] = { |
15867 | (char *) "pos",(char *) "winid", NULL | |
15868 | }; | |
15869 | ||
8edf1c75 | 15870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
15871 | if (obj0) { |
15872 | { | |
15873 | arg1 = &temp1; | |
15874 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
15875 | } | |
15876 | } | |
8edf1c75 RD |
15877 | if (obj1) { |
15878 | { | |
15879 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15880 | if (PyErr_Occurred()) SWIG_fail; | |
15881 | } | |
15882 | } | |
d14a1e28 RD |
15883 | { |
15884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15885 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
15886 | ||
15887 | wxPyEndAllowThreads(__tstate); | |
15888 | if (PyErr_Occurred()) SWIG_fail; | |
15889 | } | |
15890 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMoveEvent, 1); | |
15891 | return resultobj; | |
15892 | fail: | |
15893 | return NULL; | |
15894 | } | |
15895 | ||
15896 | ||
15897 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15898 | PyObject *resultobj; | |
15899 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15900 | wxPoint result; | |
15901 | PyObject * obj0 = 0 ; | |
15902 | char *kwnames[] = { | |
15903 | (char *) "self", NULL | |
15904 | }; | |
15905 | ||
15906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15908 | { | |
15909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15910 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
15911 | ||
15912 | wxPyEndAllowThreads(__tstate); | |
15913 | if (PyErr_Occurred()) SWIG_fail; | |
15914 | } | |
15915 | { | |
15916 | wxPoint * resultptr; | |
15917 | resultptr = new wxPoint((wxPoint &) result); | |
15918 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
15919 | } | |
15920 | return resultobj; | |
15921 | fail: | |
15922 | return NULL; | |
15923 | } | |
15924 | ||
15925 | ||
15926 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15927 | PyObject *resultobj; | |
15928 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15929 | wxRect result; | |
15930 | PyObject * obj0 = 0 ; | |
15931 | char *kwnames[] = { | |
15932 | (char *) "self", NULL | |
15933 | }; | |
15934 | ||
15935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
15936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15937 | { | |
15938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15939 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
15940 | ||
15941 | wxPyEndAllowThreads(__tstate); | |
15942 | if (PyErr_Occurred()) SWIG_fail; | |
15943 | } | |
15944 | { | |
15945 | wxRect * resultptr; | |
15946 | resultptr = new wxRect((wxRect &) result); | |
15947 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
15948 | } | |
15949 | return resultobj; | |
15950 | fail: | |
15951 | return NULL; | |
15952 | } | |
15953 | ||
15954 | ||
15955 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15956 | PyObject *resultobj; | |
15957 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15958 | wxRect arg2 ; | |
15959 | wxRect *argp2 ; | |
15960 | PyObject * obj0 = 0 ; | |
15961 | PyObject * obj1 = 0 ; | |
15962 | char *kwnames[] = { | |
15963 | (char *) "self",(char *) "rect", NULL | |
15964 | }; | |
15965 | ||
15966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15968 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15969 | arg2 = *argp2; | |
15970 | { | |
15971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15972 | (arg1)->SetRect(arg2); | |
15973 | ||
15974 | wxPyEndAllowThreads(__tstate); | |
15975 | if (PyErr_Occurred()) SWIG_fail; | |
15976 | } | |
15977 | Py_INCREF(Py_None); resultobj = Py_None; | |
15978 | return resultobj; | |
15979 | fail: | |
15980 | return NULL; | |
15981 | } | |
15982 | ||
15983 | ||
15984 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15985 | PyObject *resultobj; | |
15986 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15987 | wxPoint arg2 ; | |
15988 | wxPoint *argp2 ; | |
15989 | PyObject * obj0 = 0 ; | |
15990 | PyObject * obj1 = 0 ; | |
15991 | char *kwnames[] = { | |
15992 | (char *) "self",(char *) "pos", NULL | |
15993 | }; | |
15994 | ||
15995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15997 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15998 | arg2 = *argp2; | |
15999 | { | |
16000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16001 | wxMoveEvent_SetPosition(arg1,arg2); | |
16002 | ||
16003 | wxPyEndAllowThreads(__tstate); | |
16004 | if (PyErr_Occurred()) SWIG_fail; | |
16005 | } | |
16006 | Py_INCREF(Py_None); resultobj = Py_None; | |
16007 | return resultobj; | |
16008 | fail: | |
16009 | return NULL; | |
16010 | } | |
16011 | ||
16012 | ||
16013 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16014 | PyObject *resultobj; | |
16015 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16016 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16017 | PyObject * obj0 = 0 ; | |
16018 | PyObject * obj1 = 0 ; | |
16019 | char *kwnames[] = { | |
16020 | (char *) "self",(char *) "m_pos", NULL | |
16021 | }; | |
16022 | ||
16023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
16024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16025 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16026 | if (arg1) (arg1)->m_pos = *arg2; | |
16027 | ||
16028 | Py_INCREF(Py_None); resultobj = Py_None; | |
16029 | return resultobj; | |
16030 | fail: | |
16031 | return NULL; | |
16032 | } | |
16033 | ||
16034 | ||
16035 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16036 | PyObject *resultobj; | |
16037 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16038 | wxPoint *result; | |
16039 | PyObject * obj0 = 0 ; | |
16040 | char *kwnames[] = { | |
16041 | (char *) "self", NULL | |
16042 | }; | |
16043 | ||
16044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
16045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16046 | result = (wxPoint *)& ((arg1)->m_pos); | |
16047 | ||
16048 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
16049 | return resultobj; | |
16050 | fail: | |
16051 | return NULL; | |
16052 | } | |
16053 | ||
16054 | ||
16055 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16056 | PyObject *resultobj; | |
16057 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16058 | wxRect *arg2 = (wxRect *) 0 ; | |
16059 | PyObject * obj0 = 0 ; | |
16060 | PyObject * obj1 = 0 ; | |
16061 | char *kwnames[] = { | |
16062 | (char *) "self",(char *) "m_rect", NULL | |
16063 | }; | |
16064 | ||
16065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16067 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16068 | if (arg1) (arg1)->m_rect = *arg2; | |
16069 | ||
16070 | Py_INCREF(Py_None); resultobj = Py_None; | |
16071 | return resultobj; | |
16072 | fail: | |
16073 | return NULL; | |
16074 | } | |
16075 | ||
16076 | ||
16077 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16078 | PyObject *resultobj; | |
16079 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16080 | wxRect *result; | |
16081 | PyObject * obj0 = 0 ; | |
16082 | char *kwnames[] = { | |
16083 | (char *) "self", NULL | |
16084 | }; | |
16085 | ||
16086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16088 | result = (wxRect *)& ((arg1)->m_rect); | |
16089 | ||
16090 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
16091 | return resultobj; | |
16092 | fail: | |
16093 | return NULL; | |
16094 | } | |
16095 | ||
16096 | ||
16097 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16098 | PyObject *obj; | |
16099 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16100 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16101 | Py_INCREF(obj); | |
16102 | return Py_BuildValue((char *)""); | |
16103 | } | |
16104 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16105 | PyObject *resultobj; | |
16106 | int arg1 = (int) 0 ; | |
16107 | wxPaintEvent *result; | |
8edf1c75 | 16108 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16109 | char *kwnames[] = { |
16110 | (char *) "Id", NULL | |
16111 | }; | |
16112 | ||
8edf1c75 RD |
16113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; |
16114 | if (obj0) { | |
16115 | { | |
16116 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16117 | if (PyErr_Occurred()) SWIG_fail; | |
16118 | } | |
16119 | } | |
d14a1e28 RD |
16120 | { |
16121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16122 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16123 | ||
16124 | wxPyEndAllowThreads(__tstate); | |
16125 | if (PyErr_Occurred()) SWIG_fail; | |
16126 | } | |
16127 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintEvent, 1); | |
16128 | return resultobj; | |
16129 | fail: | |
16130 | return NULL; | |
16131 | } | |
16132 | ||
16133 | ||
16134 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16135 | PyObject *obj; | |
16136 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16137 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16138 | Py_INCREF(obj); | |
16139 | return Py_BuildValue((char *)""); | |
16140 | } | |
16141 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16142 | PyObject *resultobj; | |
16143 | int arg1 = (int) 0 ; | |
16144 | wxNcPaintEvent *result; | |
8edf1c75 | 16145 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16146 | char *kwnames[] = { |
16147 | (char *) "winid", NULL | |
16148 | }; | |
16149 | ||
8edf1c75 RD |
16150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; |
16151 | if (obj0) { | |
16152 | { | |
16153 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16154 | if (PyErr_Occurred()) SWIG_fail; | |
16155 | } | |
16156 | } | |
d14a1e28 RD |
16157 | { |
16158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16159 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16160 | ||
16161 | wxPyEndAllowThreads(__tstate); | |
16162 | if (PyErr_Occurred()) SWIG_fail; | |
16163 | } | |
16164 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNcPaintEvent, 1); | |
16165 | return resultobj; | |
16166 | fail: | |
16167 | return NULL; | |
16168 | } | |
16169 | ||
16170 | ||
16171 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16172 | PyObject *obj; | |
16173 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16174 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16175 | Py_INCREF(obj); | |
16176 | return Py_BuildValue((char *)""); | |
16177 | } | |
16178 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16179 | PyObject *resultobj; | |
16180 | int arg1 = (int) 0 ; | |
16181 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16182 | wxEraseEvent *result; | |
8edf1c75 | 16183 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16184 | PyObject * obj1 = 0 ; |
16185 | char *kwnames[] = { | |
16186 | (char *) "Id",(char *) "dc", NULL | |
16187 | }; | |
16188 | ||
8edf1c75 RD |
16189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; |
16190 | if (obj0) { | |
16191 | { | |
16192 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16193 | if (PyErr_Occurred()) SWIG_fail; | |
16194 | } | |
16195 | } | |
d14a1e28 RD |
16196 | if (obj1) { |
16197 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16198 | } | |
16199 | { | |
16200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16201 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16202 | ||
16203 | wxPyEndAllowThreads(__tstate); | |
16204 | if (PyErr_Occurred()) SWIG_fail; | |
16205 | } | |
16206 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEraseEvent, 1); | |
16207 | return resultobj; | |
16208 | fail: | |
16209 | return NULL; | |
16210 | } | |
16211 | ||
16212 | ||
16213 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16214 | PyObject *resultobj; | |
16215 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16216 | wxDC *result; | |
16217 | PyObject * obj0 = 0 ; | |
16218 | char *kwnames[] = { | |
16219 | (char *) "self", NULL | |
16220 | }; | |
16221 | ||
16222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
16223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEraseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16224 | { | |
16225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16226 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16227 | ||
16228 | wxPyEndAllowThreads(__tstate); | |
16229 | if (PyErr_Occurred()) SWIG_fail; | |
16230 | } | |
16231 | { | |
16232 | resultobj = wxPyMake_wxObject(result); | |
16233 | } | |
16234 | return resultobj; | |
16235 | fail: | |
16236 | return NULL; | |
16237 | } | |
16238 | ||
16239 | ||
16240 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
16241 | PyObject *obj; | |
16242 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16243 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16244 | Py_INCREF(obj); | |
16245 | return Py_BuildValue((char *)""); | |
16246 | } | |
16247 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16248 | PyObject *resultobj; | |
16249 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16250 | int arg2 = (int) 0 ; | |
16251 | wxFocusEvent *result; | |
8edf1c75 RD |
16252 | PyObject * obj0 = 0 ; |
16253 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16254 | char *kwnames[] = { |
16255 | (char *) "type",(char *) "winid", NULL | |
16256 | }; | |
16257 | ||
8edf1c75 RD |
16258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; |
16259 | if (obj0) { | |
16260 | { | |
16261 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
16262 | if (PyErr_Occurred()) SWIG_fail; | |
16263 | } | |
16264 | } | |
16265 | if (obj1) { | |
16266 | { | |
16267 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16268 | if (PyErr_Occurred()) SWIG_fail; | |
16269 | } | |
16270 | } | |
d14a1e28 RD |
16271 | { |
16272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16273 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16274 | ||
16275 | wxPyEndAllowThreads(__tstate); | |
16276 | if (PyErr_Occurred()) SWIG_fail; | |
16277 | } | |
16278 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFocusEvent, 1); | |
16279 | return resultobj; | |
16280 | fail: | |
16281 | return NULL; | |
16282 | } | |
16283 | ||
16284 | ||
16285 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16286 | PyObject *resultobj; | |
16287 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16288 | wxWindow *result; | |
16289 | PyObject * obj0 = 0 ; | |
16290 | char *kwnames[] = { | |
16291 | (char *) "self", NULL | |
16292 | }; | |
16293 | ||
16294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16296 | { | |
16297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16298 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
16299 | ||
16300 | wxPyEndAllowThreads(__tstate); | |
16301 | if (PyErr_Occurred()) SWIG_fail; | |
16302 | } | |
16303 | { | |
16304 | resultobj = wxPyMake_wxObject(result); | |
16305 | } | |
16306 | return resultobj; | |
16307 | fail: | |
16308 | return NULL; | |
16309 | } | |
16310 | ||
16311 | ||
16312 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16313 | PyObject *resultobj; | |
16314 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16315 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16316 | PyObject * obj0 = 0 ; | |
16317 | PyObject * obj1 = 0 ; | |
16318 | char *kwnames[] = { | |
16319 | (char *) "self",(char *) "win", NULL | |
16320 | }; | |
16321 | ||
16322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
16323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16324 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16325 | { | |
16326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16327 | (arg1)->SetWindow(arg2); | |
16328 | ||
16329 | wxPyEndAllowThreads(__tstate); | |
16330 | if (PyErr_Occurred()) SWIG_fail; | |
16331 | } | |
16332 | Py_INCREF(Py_None); resultobj = Py_None; | |
16333 | return resultobj; | |
16334 | fail: | |
16335 | return NULL; | |
16336 | } | |
16337 | ||
16338 | ||
16339 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16340 | PyObject *obj; | |
16341 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16342 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
16343 | Py_INCREF(obj); | |
16344 | return Py_BuildValue((char *)""); | |
16345 | } | |
16346 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16347 | PyObject *resultobj; | |
16348 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16349 | wxChildFocusEvent *result; | |
16350 | PyObject * obj0 = 0 ; | |
16351 | char *kwnames[] = { | |
16352 | (char *) "win", NULL | |
16353 | }; | |
16354 | ||
16355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
16356 | if (obj0) { | |
16357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16358 | } | |
16359 | { | |
16360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16361 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
16362 | ||
16363 | wxPyEndAllowThreads(__tstate); | |
16364 | if (PyErr_Occurred()) SWIG_fail; | |
16365 | } | |
16366 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChildFocusEvent, 1); | |
16367 | return resultobj; | |
16368 | fail: | |
16369 | return NULL; | |
16370 | } | |
16371 | ||
16372 | ||
16373 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16374 | PyObject *resultobj; | |
16375 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
16376 | wxWindow *result; | |
16377 | PyObject * obj0 = 0 ; | |
16378 | char *kwnames[] = { | |
16379 | (char *) "self", NULL | |
16380 | }; | |
16381 | ||
16382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChildFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16384 | { | |
16385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16386 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
16387 | ||
16388 | wxPyEndAllowThreads(__tstate); | |
16389 | if (PyErr_Occurred()) SWIG_fail; | |
16390 | } | |
16391 | { | |
16392 | resultobj = wxPyMake_wxObject(result); | |
16393 | } | |
16394 | return resultobj; | |
16395 | fail: | |
16396 | return NULL; | |
16397 | } | |
16398 | ||
16399 | ||
16400 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16401 | PyObject *obj; | |
16402 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16403 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
16404 | Py_INCREF(obj); | |
16405 | return Py_BuildValue((char *)""); | |
16406 | } | |
16407 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16408 | PyObject *resultobj; | |
16409 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 16410 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16411 | int arg3 = (int) 0 ; |
16412 | wxActivateEvent *result; | |
8edf1c75 | 16413 | PyObject * obj0 = 0 ; |
d14a1e28 | 16414 | PyObject * obj1 = 0 ; |
8edf1c75 | 16415 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16416 | char *kwnames[] = { |
16417 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
16418 | }; | |
16419 | ||
8edf1c75 RD |
16420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16421 | if (obj0) { | |
16422 | { | |
16423 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
16424 | if (PyErr_Occurred()) SWIG_fail; | |
16425 | } | |
16426 | } | |
d14a1e28 | 16427 | if (obj1) { |
83448d71 | 16428 | { |
8edf1c75 RD |
16429 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
16430 | if (PyErr_Occurred()) SWIG_fail; | |
16431 | } | |
16432 | } | |
16433 | if (obj2) { | |
16434 | { | |
16435 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
16436 | if (PyErr_Occurred()) SWIG_fail; |
16437 | } | |
d14a1e28 RD |
16438 | } |
16439 | { | |
16440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16441 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
16442 | ||
16443 | wxPyEndAllowThreads(__tstate); | |
16444 | if (PyErr_Occurred()) SWIG_fail; | |
16445 | } | |
16446 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxActivateEvent, 1); | |
16447 | return resultobj; | |
16448 | fail: | |
16449 | return NULL; | |
16450 | } | |
16451 | ||
16452 | ||
16453 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16454 | PyObject *resultobj; | |
16455 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
16456 | bool result; | |
16457 | PyObject * obj0 = 0 ; | |
16458 | char *kwnames[] = { | |
16459 | (char *) "self", NULL | |
16460 | }; | |
16461 | ||
16462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
16463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxActivateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16464 | { | |
16465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16466 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
16467 | ||
16468 | wxPyEndAllowThreads(__tstate); | |
16469 | if (PyErr_Occurred()) SWIG_fail; | |
16470 | } | |
4e760a36 | 16471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16472 | return resultobj; |
16473 | fail: | |
16474 | return NULL; | |
16475 | } | |
16476 | ||
16477 | ||
16478 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
16479 | PyObject *obj; | |
16480 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16481 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
16482 | Py_INCREF(obj); | |
16483 | return Py_BuildValue((char *)""); | |
16484 | } | |
16485 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16486 | PyObject *resultobj; | |
16487 | int arg1 = (int) 0 ; | |
16488 | wxInitDialogEvent *result; | |
8edf1c75 | 16489 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16490 | char *kwnames[] = { |
16491 | (char *) "Id", NULL | |
16492 | }; | |
16493 | ||
8edf1c75 RD |
16494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; |
16495 | if (obj0) { | |
16496 | { | |
16497 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16498 | if (PyErr_Occurred()) SWIG_fail; | |
16499 | } | |
16500 | } | |
d14a1e28 RD |
16501 | { |
16502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16503 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
16504 | ||
16505 | wxPyEndAllowThreads(__tstate); | |
16506 | if (PyErr_Occurred()) SWIG_fail; | |
16507 | } | |
16508 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInitDialogEvent, 1); | |
16509 | return resultobj; | |
16510 | fail: | |
16511 | return NULL; | |
16512 | } | |
16513 | ||
16514 | ||
16515 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
16516 | PyObject *obj; | |
16517 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16518 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
16519 | Py_INCREF(obj); | |
16520 | return Py_BuildValue((char *)""); | |
16521 | } | |
16522 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16523 | PyObject *resultobj; | |
16524 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16525 | int arg2 = (int) 0 ; | |
16526 | wxMenu *arg3 = (wxMenu *) NULL ; | |
16527 | wxMenuEvent *result; | |
8edf1c75 RD |
16528 | PyObject * obj0 = 0 ; |
16529 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16530 | PyObject * obj2 = 0 ; |
16531 | char *kwnames[] = { | |
16532 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
16533 | }; | |
16534 | ||
8edf1c75 RD |
16535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16536 | if (obj0) { | |
16537 | { | |
16538 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
16539 | if (PyErr_Occurred()) SWIG_fail; | |
16540 | } | |
16541 | } | |
16542 | if (obj1) { | |
16543 | { | |
16544 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16545 | if (PyErr_Occurred()) SWIG_fail; | |
16546 | } | |
16547 | } | |
d14a1e28 RD |
16548 | if (obj2) { |
16549 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16550 | } | |
16551 | { | |
16552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16553 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
16554 | ||
16555 | wxPyEndAllowThreads(__tstate); | |
16556 | if (PyErr_Occurred()) SWIG_fail; | |
16557 | } | |
16558 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMenuEvent, 1); | |
16559 | return resultobj; | |
16560 | fail: | |
16561 | return NULL; | |
16562 | } | |
16563 | ||
16564 | ||
16565 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16566 | PyObject *resultobj; | |
16567 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16568 | int result; | |
16569 | PyObject * obj0 = 0 ; | |
16570 | char *kwnames[] = { | |
16571 | (char *) "self", NULL | |
16572 | }; | |
16573 | ||
16574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
16575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16576 | { | |
16577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16578 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
16579 | ||
16580 | wxPyEndAllowThreads(__tstate); | |
16581 | if (PyErr_Occurred()) SWIG_fail; | |
16582 | } | |
8edf1c75 | 16583 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16584 | return resultobj; |
16585 | fail: | |
16586 | return NULL; | |
16587 | } | |
16588 | ||
16589 | ||
16590 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16591 | PyObject *resultobj; | |
16592 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16593 | bool result; | |
16594 | PyObject * obj0 = 0 ; | |
16595 | char *kwnames[] = { | |
16596 | (char *) "self", NULL | |
16597 | }; | |
16598 | ||
16599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
16600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16601 | { | |
16602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16603 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
16604 | ||
16605 | wxPyEndAllowThreads(__tstate); | |
16606 | if (PyErr_Occurred()) SWIG_fail; | |
16607 | } | |
4e760a36 | 16608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16609 | return resultobj; |
16610 | fail: | |
16611 | return NULL; | |
16612 | } | |
16613 | ||
16614 | ||
16615 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16616 | PyObject *resultobj; | |
16617 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16618 | wxMenu *result; | |
16619 | PyObject * obj0 = 0 ; | |
16620 | char *kwnames[] = { | |
16621 | (char *) "self", NULL | |
16622 | }; | |
16623 | ||
16624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
16625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16626 | { | |
16627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16628 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
16629 | ||
16630 | wxPyEndAllowThreads(__tstate); | |
16631 | if (PyErr_Occurred()) SWIG_fail; | |
16632 | } | |
16633 | { | |
16634 | resultobj = wxPyMake_wxObject(result); | |
16635 | } | |
16636 | return resultobj; | |
16637 | fail: | |
16638 | return NULL; | |
16639 | } | |
16640 | ||
16641 | ||
16642 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
16643 | PyObject *obj; | |
16644 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16645 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
16646 | Py_INCREF(obj); | |
16647 | return Py_BuildValue((char *)""); | |
16648 | } | |
16649 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16650 | PyObject *resultobj; | |
16651 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16652 | int arg2 = (int) 0 ; | |
16653 | wxCloseEvent *result; | |
8edf1c75 RD |
16654 | PyObject * obj0 = 0 ; |
16655 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16656 | char *kwnames[] = { |
16657 | (char *) "type",(char *) "winid", NULL | |
16658 | }; | |
16659 | ||
8edf1c75 RD |
16660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; |
16661 | if (obj0) { | |
16662 | { | |
16663 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
16664 | if (PyErr_Occurred()) SWIG_fail; | |
16665 | } | |
16666 | } | |
16667 | if (obj1) { | |
16668 | { | |
16669 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16670 | if (PyErr_Occurred()) SWIG_fail; | |
16671 | } | |
16672 | } | |
d14a1e28 RD |
16673 | { |
16674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16675 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
16676 | ||
16677 | wxPyEndAllowThreads(__tstate); | |
16678 | if (PyErr_Occurred()) SWIG_fail; | |
16679 | } | |
16680 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCloseEvent, 1); | |
16681 | return resultobj; | |
16682 | fail: | |
16683 | return NULL; | |
16684 | } | |
16685 | ||
16686 | ||
16687 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16688 | PyObject *resultobj; | |
16689 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16690 | bool arg2 ; | |
16691 | PyObject * obj0 = 0 ; | |
16692 | PyObject * obj1 = 0 ; | |
16693 | char *kwnames[] = { | |
16694 | (char *) "self",(char *) "logOff", NULL | |
16695 | }; | |
16696 | ||
16697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
16698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16699 | { |
8edf1c75 | 16700 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16701 | if (PyErr_Occurred()) SWIG_fail; |
16702 | } | |
d14a1e28 RD |
16703 | { |
16704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16705 | (arg1)->SetLoggingOff(arg2); | |
16706 | ||
16707 | wxPyEndAllowThreads(__tstate); | |
16708 | if (PyErr_Occurred()) SWIG_fail; | |
16709 | } | |
16710 | Py_INCREF(Py_None); resultobj = Py_None; | |
16711 | return resultobj; | |
16712 | fail: | |
16713 | return NULL; | |
16714 | } | |
16715 | ||
16716 | ||
16717 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16718 | PyObject *resultobj; | |
16719 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16720 | bool result; | |
16721 | PyObject * obj0 = 0 ; | |
16722 | char *kwnames[] = { | |
16723 | (char *) "self", NULL | |
16724 | }; | |
16725 | ||
16726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
16727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16728 | { | |
16729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16730 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
16731 | ||
16732 | wxPyEndAllowThreads(__tstate); | |
16733 | if (PyErr_Occurred()) SWIG_fail; | |
16734 | } | |
4e760a36 | 16735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16736 | return resultobj; |
16737 | fail: | |
16738 | return NULL; | |
16739 | } | |
16740 | ||
16741 | ||
16742 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16743 | PyObject *resultobj; | |
16744 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
423f194a | 16745 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16746 | PyObject * obj0 = 0 ; |
16747 | PyObject * obj1 = 0 ; | |
16748 | char *kwnames[] = { | |
16749 | (char *) "self",(char *) "veto", NULL | |
16750 | }; | |
16751 | ||
16752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
16753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16754 | if (obj1) { | |
83448d71 | 16755 | { |
8edf1c75 | 16756 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16757 | if (PyErr_Occurred()) SWIG_fail; |
16758 | } | |
d14a1e28 RD |
16759 | } |
16760 | { | |
16761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16762 | (arg1)->Veto(arg2); | |
16763 | ||
16764 | wxPyEndAllowThreads(__tstate); | |
16765 | if (PyErr_Occurred()) SWIG_fail; | |
16766 | } | |
16767 | Py_INCREF(Py_None); resultobj = Py_None; | |
16768 | return resultobj; | |
16769 | fail: | |
16770 | return NULL; | |
16771 | } | |
16772 | ||
16773 | ||
16774 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16775 | PyObject *resultobj; | |
16776 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16777 | bool arg2 ; | |
16778 | PyObject * obj0 = 0 ; | |
16779 | PyObject * obj1 = 0 ; | |
16780 | char *kwnames[] = { | |
16781 | (char *) "self",(char *) "canVeto", NULL | |
16782 | }; | |
16783 | ||
16784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
16785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16786 | { |
8edf1c75 | 16787 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16788 | if (PyErr_Occurred()) SWIG_fail; |
16789 | } | |
d14a1e28 RD |
16790 | { |
16791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16792 | (arg1)->SetCanVeto(arg2); | |
16793 | ||
16794 | wxPyEndAllowThreads(__tstate); | |
16795 | if (PyErr_Occurred()) SWIG_fail; | |
16796 | } | |
16797 | Py_INCREF(Py_None); resultobj = Py_None; | |
16798 | return resultobj; | |
16799 | fail: | |
16800 | return NULL; | |
16801 | } | |
16802 | ||
16803 | ||
16804 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16805 | PyObject *resultobj; | |
16806 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16807 | bool result; | |
16808 | PyObject * obj0 = 0 ; | |
16809 | char *kwnames[] = { | |
16810 | (char *) "self", NULL | |
16811 | }; | |
16812 | ||
16813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
16814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16815 | { | |
16816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16817 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
16818 | ||
16819 | wxPyEndAllowThreads(__tstate); | |
16820 | if (PyErr_Occurred()) SWIG_fail; | |
16821 | } | |
4e760a36 | 16822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16823 | return resultobj; |
16824 | fail: | |
16825 | return NULL; | |
16826 | } | |
16827 | ||
16828 | ||
16829 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16830 | PyObject *resultobj; | |
16831 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16832 | bool result; | |
16833 | PyObject * obj0 = 0 ; | |
16834 | char *kwnames[] = { | |
16835 | (char *) "self", NULL | |
16836 | }; | |
16837 | ||
16838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
16839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16840 | { | |
16841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16842 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
16843 | ||
16844 | wxPyEndAllowThreads(__tstate); | |
16845 | if (PyErr_Occurred()) SWIG_fail; | |
16846 | } | |
4e760a36 | 16847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16848 | return resultobj; |
16849 | fail: | |
16850 | return NULL; | |
16851 | } | |
16852 | ||
16853 | ||
16854 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
16855 | PyObject *obj; | |
16856 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16857 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
16858 | Py_INCREF(obj); | |
16859 | return Py_BuildValue((char *)""); | |
16860 | } | |
16861 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16862 | PyObject *resultobj; | |
16863 | int arg1 = (int) 0 ; | |
423f194a | 16864 | bool arg2 = (bool) False ; |
d14a1e28 | 16865 | wxShowEvent *result; |
8edf1c75 | 16866 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16867 | PyObject * obj1 = 0 ; |
16868 | char *kwnames[] = { | |
16869 | (char *) "winid",(char *) "show", NULL | |
16870 | }; | |
16871 | ||
8edf1c75 RD |
16872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; |
16873 | if (obj0) { | |
16874 | { | |
16875 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16876 | if (PyErr_Occurred()) SWIG_fail; | |
16877 | } | |
16878 | } | |
d14a1e28 | 16879 | if (obj1) { |
83448d71 | 16880 | { |
8edf1c75 | 16881 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16882 | if (PyErr_Occurred()) SWIG_fail; |
16883 | } | |
d14a1e28 RD |
16884 | } |
16885 | { | |
16886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16887 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
16888 | ||
16889 | wxPyEndAllowThreads(__tstate); | |
16890 | if (PyErr_Occurred()) SWIG_fail; | |
16891 | } | |
16892 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxShowEvent, 1); | |
16893 | return resultobj; | |
16894 | fail: | |
16895 | return NULL; | |
16896 | } | |
16897 | ||
16898 | ||
16899 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16900 | PyObject *resultobj; | |
16901 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
16902 | bool arg2 ; | |
16903 | PyObject * obj0 = 0 ; | |
16904 | PyObject * obj1 = 0 ; | |
16905 | char *kwnames[] = { | |
16906 | (char *) "self",(char *) "show", NULL | |
16907 | }; | |
16908 | ||
16909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
16910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16911 | { |
8edf1c75 | 16912 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16913 | if (PyErr_Occurred()) SWIG_fail; |
16914 | } | |
d14a1e28 RD |
16915 | { |
16916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16917 | (arg1)->SetShow(arg2); | |
16918 | ||
16919 | wxPyEndAllowThreads(__tstate); | |
16920 | if (PyErr_Occurred()) SWIG_fail; | |
16921 | } | |
16922 | Py_INCREF(Py_None); resultobj = Py_None; | |
16923 | return resultobj; | |
16924 | fail: | |
16925 | return NULL; | |
16926 | } | |
16927 | ||
16928 | ||
16929 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16930 | PyObject *resultobj; | |
16931 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
16932 | bool result; | |
16933 | PyObject * obj0 = 0 ; | |
16934 | char *kwnames[] = { | |
16935 | (char *) "self", NULL | |
16936 | }; | |
16937 | ||
16938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
16939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16940 | { | |
16941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16942 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
16943 | ||
16944 | wxPyEndAllowThreads(__tstate); | |
16945 | if (PyErr_Occurred()) SWIG_fail; | |
16946 | } | |
4e760a36 | 16947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16948 | return resultobj; |
16949 | fail: | |
16950 | return NULL; | |
16951 | } | |
16952 | ||
16953 | ||
16954 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
16955 | PyObject *obj; | |
16956 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16957 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
16958 | Py_INCREF(obj); | |
16959 | return Py_BuildValue((char *)""); | |
16960 | } | |
16961 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16962 | PyObject *resultobj; | |
16963 | int arg1 = (int) 0 ; | |
423f194a | 16964 | bool arg2 = (bool) True ; |
d14a1e28 | 16965 | wxIconizeEvent *result; |
8edf1c75 | 16966 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16967 | PyObject * obj1 = 0 ; |
16968 | char *kwnames[] = { | |
16969 | (char *) "id",(char *) "iconized", NULL | |
16970 | }; | |
16971 | ||
8edf1c75 RD |
16972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; |
16973 | if (obj0) { | |
16974 | { | |
16975 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16976 | if (PyErr_Occurred()) SWIG_fail; | |
16977 | } | |
16978 | } | |
d14a1e28 | 16979 | if (obj1) { |
83448d71 | 16980 | { |
8edf1c75 | 16981 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16982 | if (PyErr_Occurred()) SWIG_fail; |
16983 | } | |
d14a1e28 RD |
16984 | } |
16985 | { | |
16986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16987 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
16988 | ||
16989 | wxPyEndAllowThreads(__tstate); | |
16990 | if (PyErr_Occurred()) SWIG_fail; | |
16991 | } | |
16992 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconizeEvent, 1); | |
16993 | return resultobj; | |
16994 | fail: | |
16995 | return NULL; | |
16996 | } | |
16997 | ||
16998 | ||
16999 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17000 | PyObject *resultobj; | |
17001 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17002 | bool result; | |
17003 | PyObject * obj0 = 0 ; | |
17004 | char *kwnames[] = { | |
17005 | (char *) "self", NULL | |
17006 | }; | |
17007 | ||
17008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
17009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17010 | { | |
17011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17012 | result = (bool)(arg1)->Iconized(); | |
17013 | ||
17014 | wxPyEndAllowThreads(__tstate); | |
17015 | if (PyErr_Occurred()) SWIG_fail; | |
17016 | } | |
4e760a36 | 17017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17018 | return resultobj; |
17019 | fail: | |
17020 | return NULL; | |
17021 | } | |
17022 | ||
17023 | ||
17024 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17025 | PyObject *obj; | |
17026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17027 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17028 | Py_INCREF(obj); | |
17029 | return Py_BuildValue((char *)""); | |
17030 | } | |
17031 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17032 | PyObject *resultobj; | |
17033 | int arg1 = (int) 0 ; | |
17034 | wxMaximizeEvent *result; | |
8edf1c75 | 17035 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17036 | char *kwnames[] = { |
17037 | (char *) "id", NULL | |
17038 | }; | |
17039 | ||
8edf1c75 RD |
17040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; |
17041 | if (obj0) { | |
17042 | { | |
17043 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17044 | if (PyErr_Occurred()) SWIG_fail; | |
17045 | } | |
17046 | } | |
d14a1e28 RD |
17047 | { |
17048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17049 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17050 | ||
17051 | wxPyEndAllowThreads(__tstate); | |
17052 | if (PyErr_Occurred()) SWIG_fail; | |
17053 | } | |
17054 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMaximizeEvent, 1); | |
17055 | return resultobj; | |
17056 | fail: | |
17057 | return NULL; | |
17058 | } | |
17059 | ||
17060 | ||
17061 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17062 | PyObject *obj; | |
17063 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17064 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17065 | Py_INCREF(obj); | |
17066 | return Py_BuildValue((char *)""); | |
17067 | } | |
17068 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17069 | PyObject *resultobj; | |
17070 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17071 | wxPoint result; | |
17072 | PyObject * obj0 = 0 ; | |
17073 | char *kwnames[] = { | |
17074 | (char *) "self", NULL | |
17075 | }; | |
17076 | ||
17077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
17078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17079 | { | |
17080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17081 | result = (arg1)->GetPosition(); | |
17082 | ||
17083 | wxPyEndAllowThreads(__tstate); | |
17084 | if (PyErr_Occurred()) SWIG_fail; | |
17085 | } | |
17086 | { | |
17087 | wxPoint * resultptr; | |
17088 | resultptr = new wxPoint((wxPoint &) result); | |
17089 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
17090 | } | |
17091 | return resultobj; | |
17092 | fail: | |
17093 | return NULL; | |
17094 | } | |
17095 | ||
17096 | ||
17097 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17098 | PyObject *resultobj; | |
17099 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17100 | int result; | |
17101 | PyObject * obj0 = 0 ; | |
17102 | char *kwnames[] = { | |
17103 | (char *) "self", NULL | |
17104 | }; | |
17105 | ||
17106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
17107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17108 | { | |
17109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17110 | result = (int)(arg1)->GetNumberOfFiles(); | |
17111 | ||
17112 | wxPyEndAllowThreads(__tstate); | |
17113 | if (PyErr_Occurred()) SWIG_fail; | |
17114 | } | |
8edf1c75 | 17115 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17116 | return resultobj; |
17117 | fail: | |
17118 | return NULL; | |
17119 | } | |
17120 | ||
17121 | ||
17122 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17123 | PyObject *resultobj; | |
17124 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17125 | PyObject *result; | |
17126 | PyObject * obj0 = 0 ; | |
17127 | char *kwnames[] = { | |
17128 | (char *) "self", NULL | |
17129 | }; | |
17130 | ||
17131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
17132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17133 | { | |
17134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17135 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17136 | ||
17137 | wxPyEndAllowThreads(__tstate); | |
17138 | if (PyErr_Occurred()) SWIG_fail; | |
17139 | } | |
17140 | resultobj = result; | |
17141 | return resultobj; | |
17142 | fail: | |
17143 | return NULL; | |
17144 | } | |
17145 | ||
17146 | ||
17147 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17148 | PyObject *obj; | |
17149 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17150 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17151 | Py_INCREF(obj); | |
17152 | return Py_BuildValue((char *)""); | |
17153 | } | |
17154 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17155 | PyObject *resultobj; | |
423f194a | 17156 | int arg1 = (int) 0 ; |
d14a1e28 | 17157 | wxUpdateUIEvent *result; |
8edf1c75 | 17158 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17159 | char *kwnames[] = { |
17160 | (char *) "commandId", NULL | |
17161 | }; | |
17162 | ||
8edf1c75 RD |
17163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; |
17164 | if (obj0) { | |
17165 | { | |
17166 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17167 | if (PyErr_Occurred()) SWIG_fail; | |
17168 | } | |
17169 | } | |
d14a1e28 RD |
17170 | { |
17171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17172 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17173 | ||
17174 | wxPyEndAllowThreads(__tstate); | |
17175 | if (PyErr_Occurred()) SWIG_fail; | |
17176 | } | |
17177 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxUpdateUIEvent, 1); | |
17178 | return resultobj; | |
17179 | fail: | |
17180 | return NULL; | |
17181 | } | |
17182 | ||
17183 | ||
17184 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17185 | PyObject *resultobj; | |
17186 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17187 | bool result; | |
17188 | PyObject * obj0 = 0 ; | |
17189 | char *kwnames[] = { | |
17190 | (char *) "self", NULL | |
17191 | }; | |
17192 | ||
17193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
17194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17195 | { | |
17196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17197 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17198 | ||
17199 | wxPyEndAllowThreads(__tstate); | |
17200 | if (PyErr_Occurred()) SWIG_fail; | |
17201 | } | |
4e760a36 | 17202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17203 | return resultobj; |
17204 | fail: | |
17205 | return NULL; | |
17206 | } | |
17207 | ||
17208 | ||
17209 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17210 | PyObject *resultobj; | |
17211 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17212 | bool result; | |
17213 | PyObject * obj0 = 0 ; | |
17214 | char *kwnames[] = { | |
17215 | (char *) "self", NULL | |
17216 | }; | |
17217 | ||
17218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
17219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17220 | { | |
17221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17222 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17223 | ||
17224 | wxPyEndAllowThreads(__tstate); | |
17225 | if (PyErr_Occurred()) SWIG_fail; | |
17226 | } | |
4e760a36 | 17227 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17228 | return resultobj; |
17229 | fail: | |
17230 | return NULL; | |
17231 | } | |
17232 | ||
17233 | ||
17234 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17235 | PyObject *resultobj; | |
17236 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17237 | wxString result; | |
17238 | PyObject * obj0 = 0 ; | |
17239 | char *kwnames[] = { | |
17240 | (char *) "self", NULL | |
17241 | }; | |
17242 | ||
17243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
17244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17245 | { | |
17246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17247 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17248 | ||
17249 | wxPyEndAllowThreads(__tstate); | |
17250 | if (PyErr_Occurred()) SWIG_fail; | |
17251 | } | |
17252 | { | |
17253 | #if wxUSE_UNICODE | |
17254 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17255 | #else | |
17256 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17257 | #endif | |
17258 | } | |
17259 | return resultobj; | |
17260 | fail: | |
17261 | return NULL; | |
17262 | } | |
17263 | ||
17264 | ||
17265 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17266 | PyObject *resultobj; | |
17267 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17268 | bool result; | |
17269 | PyObject * obj0 = 0 ; | |
17270 | char *kwnames[] = { | |
17271 | (char *) "self", NULL | |
17272 | }; | |
17273 | ||
17274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
17275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17276 | { | |
17277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17278 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17279 | ||
17280 | wxPyEndAllowThreads(__tstate); | |
17281 | if (PyErr_Occurred()) SWIG_fail; | |
17282 | } | |
4e760a36 | 17283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17284 | return resultobj; |
17285 | fail: | |
17286 | return NULL; | |
17287 | } | |
17288 | ||
17289 | ||
17290 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17291 | PyObject *resultobj; | |
17292 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17293 | bool result; | |
17294 | PyObject * obj0 = 0 ; | |
17295 | char *kwnames[] = { | |
17296 | (char *) "self", NULL | |
17297 | }; | |
17298 | ||
17299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
17300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17301 | { | |
17302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17303 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
17304 | ||
17305 | wxPyEndAllowThreads(__tstate); | |
17306 | if (PyErr_Occurred()) SWIG_fail; | |
17307 | } | |
4e760a36 | 17308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17309 | return resultobj; |
17310 | fail: | |
17311 | return NULL; | |
17312 | } | |
17313 | ||
17314 | ||
17315 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17316 | PyObject *resultobj; | |
17317 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17318 | bool result; | |
17319 | PyObject * obj0 = 0 ; | |
17320 | char *kwnames[] = { | |
17321 | (char *) "self", NULL | |
17322 | }; | |
17323 | ||
17324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
17325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17326 | { | |
17327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17328 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
17329 | ||
17330 | wxPyEndAllowThreads(__tstate); | |
17331 | if (PyErr_Occurred()) SWIG_fail; | |
17332 | } | |
4e760a36 | 17333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17334 | return resultobj; |
17335 | fail: | |
17336 | return NULL; | |
17337 | } | |
17338 | ||
17339 | ||
17340 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17341 | PyObject *resultobj; | |
17342 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17343 | bool arg2 ; | |
17344 | PyObject * obj0 = 0 ; | |
17345 | PyObject * obj1 = 0 ; | |
17346 | char *kwnames[] = { | |
17347 | (char *) "self",(char *) "check", NULL | |
17348 | }; | |
17349 | ||
17350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
17351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 17352 | { |
8edf1c75 | 17353 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
17354 | if (PyErr_Occurred()) SWIG_fail; |
17355 | } | |
d14a1e28 RD |
17356 | { |
17357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17358 | (arg1)->Check(arg2); | |
17359 | ||
17360 | wxPyEndAllowThreads(__tstate); | |
17361 | if (PyErr_Occurred()) SWIG_fail; | |
17362 | } | |
17363 | Py_INCREF(Py_None); resultobj = Py_None; | |
17364 | return resultobj; | |
17365 | fail: | |
17366 | return NULL; | |
17367 | } | |
17368 | ||
17369 | ||
17370 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17371 | PyObject *resultobj; | |
17372 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17373 | bool arg2 ; | |
17374 | PyObject * obj0 = 0 ; | |
17375 | PyObject * obj1 = 0 ; | |
17376 | char *kwnames[] = { | |
17377 | (char *) "self",(char *) "enable", NULL | |
17378 | }; | |
17379 | ||
17380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
17381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 17382 | { |
8edf1c75 | 17383 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
17384 | if (PyErr_Occurred()) SWIG_fail; |
17385 | } | |
d14a1e28 RD |
17386 | { |
17387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17388 | (arg1)->Enable(arg2); | |
17389 | ||
17390 | wxPyEndAllowThreads(__tstate); | |
17391 | if (PyErr_Occurred()) SWIG_fail; | |
17392 | } | |
17393 | Py_INCREF(Py_None); resultobj = Py_None; | |
17394 | return resultobj; | |
17395 | fail: | |
17396 | return NULL; | |
17397 | } | |
17398 | ||
17399 | ||
17400 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17401 | PyObject *resultobj; | |
17402 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17403 | wxString *arg2 = 0 ; | |
423f194a | 17404 | bool temp2 = False ; |
d14a1e28 RD |
17405 | PyObject * obj0 = 0 ; |
17406 | PyObject * obj1 = 0 ; | |
17407 | char *kwnames[] = { | |
17408 | (char *) "self",(char *) "text", NULL | |
17409 | }; | |
17410 | ||
17411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
17412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17413 | { | |
17414 | arg2 = wxString_in_helper(obj1); | |
17415 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17416 | temp2 = True; |
d14a1e28 RD |
17417 | } |
17418 | { | |
17419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17420 | (arg1)->SetText((wxString const &)*arg2); | |
17421 | ||
17422 | wxPyEndAllowThreads(__tstate); | |
17423 | if (PyErr_Occurred()) SWIG_fail; | |
17424 | } | |
17425 | Py_INCREF(Py_None); resultobj = Py_None; | |
17426 | { | |
17427 | if (temp2) | |
17428 | delete arg2; | |
17429 | } | |
17430 | return resultobj; | |
17431 | fail: | |
17432 | { | |
17433 | if (temp2) | |
17434 | delete arg2; | |
17435 | } | |
17436 | return NULL; | |
17437 | } | |
17438 | ||
17439 | ||
17440 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17441 | PyObject *resultobj; | |
17442 | long arg1 ; | |
8edf1c75 | 17443 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17444 | char *kwnames[] = { |
17445 | (char *) "updateInterval", NULL | |
17446 | }; | |
17447 | ||
8edf1c75 RD |
17448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; |
17449 | { | |
17450 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
17451 | if (PyErr_Occurred()) SWIG_fail; | |
17452 | } | |
d14a1e28 RD |
17453 | { |
17454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17455 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
17456 | ||
17457 | wxPyEndAllowThreads(__tstate); | |
17458 | if (PyErr_Occurred()) SWIG_fail; | |
17459 | } | |
17460 | Py_INCREF(Py_None); resultobj = Py_None; | |
17461 | return resultobj; | |
17462 | fail: | |
17463 | return NULL; | |
17464 | } | |
17465 | ||
17466 | ||
17467 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17468 | PyObject *resultobj; | |
17469 | long result; | |
17470 | char *kwnames[] = { | |
17471 | NULL | |
17472 | }; | |
17473 | ||
17474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
17475 | { | |
17476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17477 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
17478 | ||
17479 | wxPyEndAllowThreads(__tstate); | |
17480 | if (PyErr_Occurred()) SWIG_fail; | |
17481 | } | |
8edf1c75 | 17482 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
17483 | return resultobj; |
17484 | fail: | |
17485 | return NULL; | |
17486 | } | |
17487 | ||
17488 | ||
17489 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17490 | PyObject *resultobj; | |
17491 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17492 | bool result; | |
17493 | PyObject * obj0 = 0 ; | |
17494 | char *kwnames[] = { | |
17495 | (char *) "win", NULL | |
17496 | }; | |
17497 | ||
17498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
17499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17500 | { | |
17501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17502 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
17503 | ||
17504 | wxPyEndAllowThreads(__tstate); | |
17505 | if (PyErr_Occurred()) SWIG_fail; | |
17506 | } | |
4e760a36 | 17507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17508 | return resultobj; |
17509 | fail: | |
17510 | return NULL; | |
17511 | } | |
17512 | ||
17513 | ||
17514 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17515 | PyObject *resultobj; | |
17516 | char *kwnames[] = { | |
17517 | NULL | |
17518 | }; | |
17519 | ||
17520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
17521 | { | |
17522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17523 | wxUpdateUIEvent::ResetUpdateTime(); | |
17524 | ||
17525 | wxPyEndAllowThreads(__tstate); | |
17526 | if (PyErr_Occurred()) SWIG_fail; | |
17527 | } | |
17528 | Py_INCREF(Py_None); resultobj = Py_None; | |
17529 | return resultobj; | |
17530 | fail: | |
17531 | return NULL; | |
17532 | } | |
17533 | ||
17534 | ||
17535 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17536 | PyObject *resultobj; | |
17537 | int arg1 ; | |
8edf1c75 | 17538 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17539 | char *kwnames[] = { |
17540 | (char *) "mode", NULL | |
17541 | }; | |
17542 | ||
8edf1c75 RD |
17543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; |
17544 | { | |
17545 | arg1 = (wxUpdateUIMode) SWIG_PyObj_AsInt(obj0); | |
17546 | if (PyErr_Occurred()) SWIG_fail; | |
17547 | } | |
d14a1e28 RD |
17548 | { |
17549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17550 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
17551 | ||
17552 | wxPyEndAllowThreads(__tstate); | |
17553 | if (PyErr_Occurred()) SWIG_fail; | |
17554 | } | |
17555 | Py_INCREF(Py_None); resultobj = Py_None; | |
17556 | return resultobj; | |
17557 | fail: | |
17558 | return NULL; | |
17559 | } | |
17560 | ||
17561 | ||
17562 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17563 | PyObject *resultobj; | |
17564 | int result; | |
17565 | char *kwnames[] = { | |
17566 | NULL | |
17567 | }; | |
17568 | ||
17569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
17570 | { | |
17571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17572 | result = (int)wxUpdateUIEvent::GetMode(); | |
17573 | ||
17574 | wxPyEndAllowThreads(__tstate); | |
17575 | if (PyErr_Occurred()) SWIG_fail; | |
17576 | } | |
8edf1c75 | 17577 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17578 | return resultobj; |
17579 | fail: | |
17580 | return NULL; | |
17581 | } | |
17582 | ||
17583 | ||
17584 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
17585 | PyObject *obj; | |
17586 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17587 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
17588 | Py_INCREF(obj); | |
17589 | return Py_BuildValue((char *)""); | |
17590 | } | |
17591 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17592 | PyObject *resultobj; | |
17593 | wxSysColourChangedEvent *result; | |
17594 | char *kwnames[] = { | |
17595 | NULL | |
17596 | }; | |
17597 | ||
17598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
17599 | { | |
17600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17601 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
17602 | ||
17603 | wxPyEndAllowThreads(__tstate); | |
17604 | if (PyErr_Occurred()) SWIG_fail; | |
17605 | } | |
17606 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
17607 | return resultobj; | |
17608 | fail: | |
17609 | return NULL; | |
17610 | } | |
17611 | ||
17612 | ||
17613 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17614 | PyObject *obj; | |
17615 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17616 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
17617 | Py_INCREF(obj); | |
17618 | return Py_BuildValue((char *)""); | |
17619 | } | |
17620 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17621 | PyObject *resultobj; | |
423f194a | 17622 | int arg1 = (int) 0 ; |
d14a1e28 RD |
17623 | wxWindow *arg2 = (wxWindow *) NULL ; |
17624 | wxMouseCaptureChangedEvent *result; | |
8edf1c75 | 17625 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17626 | PyObject * obj1 = 0 ; |
17627 | char *kwnames[] = { | |
17628 | (char *) "winid",(char *) "gainedCapture", NULL | |
17629 | }; | |
17630 | ||
8edf1c75 RD |
17631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; |
17632 | if (obj0) { | |
17633 | { | |
17634 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17635 | if (PyErr_Occurred()) SWIG_fail; | |
17636 | } | |
17637 | } | |
d14a1e28 RD |
17638 | if (obj1) { |
17639 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17640 | } | |
17641 | { | |
17642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17643 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
17644 | ||
17645 | wxPyEndAllowThreads(__tstate); | |
17646 | if (PyErr_Occurred()) SWIG_fail; | |
17647 | } | |
17648 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
17649 | return resultobj; | |
17650 | fail: | |
17651 | return NULL; | |
17652 | } | |
17653 | ||
17654 | ||
17655 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17656 | PyObject *resultobj; | |
17657 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
17658 | wxWindow *result; | |
17659 | PyObject * obj0 = 0 ; | |
17660 | char *kwnames[] = { | |
17661 | (char *) "self", NULL | |
17662 | }; | |
17663 | ||
17664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
17665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseCaptureChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17666 | { | |
17667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17668 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
17669 | ||
17670 | wxPyEndAllowThreads(__tstate); | |
17671 | if (PyErr_Occurred()) SWIG_fail; | |
17672 | } | |
17673 | { | |
17674 | resultobj = wxPyMake_wxObject(result); | |
17675 | } | |
17676 | return resultobj; | |
17677 | fail: | |
17678 | return NULL; | |
17679 | } | |
17680 | ||
17681 | ||
17682 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17683 | PyObject *obj; | |
17684 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17685 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
17686 | Py_INCREF(obj); | |
17687 | return Py_BuildValue((char *)""); | |
17688 | } | |
17689 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17690 | PyObject *resultobj; | |
17691 | wxDisplayChangedEvent *result; | |
17692 | char *kwnames[] = { | |
17693 | NULL | |
17694 | }; | |
17695 | ||
17696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
17697 | { | |
17698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17699 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
17700 | ||
17701 | wxPyEndAllowThreads(__tstate); | |
17702 | if (PyErr_Occurred()) SWIG_fail; | |
17703 | } | |
17704 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
17705 | return resultobj; | |
17706 | fail: | |
17707 | return NULL; | |
17708 | } | |
17709 | ||
17710 | ||
17711 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17712 | PyObject *obj; | |
17713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17714 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
17715 | Py_INCREF(obj); | |
17716 | return Py_BuildValue((char *)""); | |
17717 | } | |
17718 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17719 | PyObject *resultobj; | |
423f194a | 17720 | int arg1 = (int) 0 ; |
d14a1e28 | 17721 | wxPaletteChangedEvent *result; |
8edf1c75 | 17722 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17723 | char *kwnames[] = { |
17724 | (char *) "id", NULL | |
17725 | }; | |
17726 | ||
8edf1c75 RD |
17727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; |
17728 | if (obj0) { | |
17729 | { | |
17730 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17731 | if (PyErr_Occurred()) SWIG_fail; | |
17732 | } | |
17733 | } | |
d14a1e28 RD |
17734 | { |
17735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17736 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
17737 | ||
17738 | wxPyEndAllowThreads(__tstate); | |
17739 | if (PyErr_Occurred()) SWIG_fail; | |
17740 | } | |
17741 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
17742 | return resultobj; | |
17743 | fail: | |
17744 | return NULL; | |
17745 | } | |
17746 | ||
17747 | ||
17748 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17749 | PyObject *resultobj; | |
17750 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
17751 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17752 | PyObject * obj0 = 0 ; | |
17753 | PyObject * obj1 = 0 ; | |
17754 | char *kwnames[] = { | |
17755 | (char *) "self",(char *) "win", NULL | |
17756 | }; | |
17757 | ||
17758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
17759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17760 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17761 | { | |
17762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17763 | (arg1)->SetChangedWindow(arg2); | |
17764 | ||
17765 | wxPyEndAllowThreads(__tstate); | |
17766 | if (PyErr_Occurred()) SWIG_fail; | |
17767 | } | |
17768 | Py_INCREF(Py_None); resultobj = Py_None; | |
17769 | return resultobj; | |
17770 | fail: | |
17771 | return NULL; | |
17772 | } | |
17773 | ||
17774 | ||
17775 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17776 | PyObject *resultobj; | |
17777 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
17778 | wxWindow *result; | |
17779 | PyObject * obj0 = 0 ; | |
17780 | char *kwnames[] = { | |
17781 | (char *) "self", NULL | |
17782 | }; | |
17783 | ||
17784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
17785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17786 | { | |
17787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17788 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
17789 | ||
17790 | wxPyEndAllowThreads(__tstate); | |
17791 | if (PyErr_Occurred()) SWIG_fail; | |
17792 | } | |
17793 | { | |
17794 | resultobj = wxPyMake_wxObject(result); | |
17795 | } | |
17796 | return resultobj; | |
17797 | fail: | |
17798 | return NULL; | |
17799 | } | |
17800 | ||
17801 | ||
17802 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17803 | PyObject *obj; | |
17804 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17805 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
17806 | Py_INCREF(obj); | |
17807 | return Py_BuildValue((char *)""); | |
17808 | } | |
17809 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17810 | PyObject *resultobj; | |
423f194a | 17811 | int arg1 = (int) 0 ; |
d14a1e28 | 17812 | wxQueryNewPaletteEvent *result; |
8edf1c75 | 17813 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17814 | char *kwnames[] = { |
17815 | (char *) "winid", NULL | |
17816 | }; | |
17817 | ||
8edf1c75 RD |
17818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; |
17819 | if (obj0) { | |
17820 | { | |
17821 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17822 | if (PyErr_Occurred()) SWIG_fail; | |
17823 | } | |
17824 | } | |
d14a1e28 RD |
17825 | { |
17826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17827 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
17828 | ||
17829 | wxPyEndAllowThreads(__tstate); | |
17830 | if (PyErr_Occurred()) SWIG_fail; | |
17831 | } | |
17832 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
17833 | return resultobj; | |
17834 | fail: | |
17835 | return NULL; | |
17836 | } | |
17837 | ||
17838 | ||
17839 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17840 | PyObject *resultobj; | |
17841 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
17842 | bool arg2 ; | |
17843 | PyObject * obj0 = 0 ; | |
17844 | PyObject * obj1 = 0 ; | |
17845 | char *kwnames[] = { | |
17846 | (char *) "self",(char *) "realized", NULL | |
17847 | }; | |
17848 | ||
17849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
17850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 17851 | { |
8edf1c75 | 17852 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
17853 | if (PyErr_Occurred()) SWIG_fail; |
17854 | } | |
d14a1e28 RD |
17855 | { |
17856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17857 | (arg1)->SetPaletteRealized(arg2); | |
17858 | ||
17859 | wxPyEndAllowThreads(__tstate); | |
17860 | if (PyErr_Occurred()) SWIG_fail; | |
17861 | } | |
17862 | Py_INCREF(Py_None); resultobj = Py_None; | |
17863 | return resultobj; | |
17864 | fail: | |
17865 | return NULL; | |
17866 | } | |
17867 | ||
17868 | ||
17869 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17870 | PyObject *resultobj; | |
17871 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
17872 | bool result; | |
17873 | PyObject * obj0 = 0 ; | |
17874 | char *kwnames[] = { | |
17875 | (char *) "self", NULL | |
17876 | }; | |
17877 | ||
17878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
17879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17880 | { | |
17881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17882 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
17883 | ||
17884 | wxPyEndAllowThreads(__tstate); | |
17885 | if (PyErr_Occurred()) SWIG_fail; | |
17886 | } | |
4e760a36 | 17887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17888 | return resultobj; |
17889 | fail: | |
17890 | return NULL; | |
17891 | } | |
17892 | ||
17893 | ||
17894 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
17895 | PyObject *obj; | |
17896 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17897 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
17898 | Py_INCREF(obj); | |
17899 | return Py_BuildValue((char *)""); | |
17900 | } | |
17901 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17902 | PyObject *resultobj; | |
17903 | wxNavigationKeyEvent *result; | |
17904 | char *kwnames[] = { | |
17905 | NULL | |
17906 | }; | |
17907 | ||
17908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
17909 | { | |
17910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17911 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
17912 | ||
17913 | wxPyEndAllowThreads(__tstate); | |
17914 | if (PyErr_Occurred()) SWIG_fail; | |
17915 | } | |
17916 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
17917 | return resultobj; | |
17918 | fail: | |
17919 | return NULL; | |
17920 | } | |
17921 | ||
17922 | ||
17923 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17924 | PyObject *resultobj; | |
17925 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
17926 | bool result; | |
17927 | PyObject * obj0 = 0 ; | |
17928 | char *kwnames[] = { | |
17929 | (char *) "self", NULL | |
17930 | }; | |
17931 | ||
17932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
17933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17934 | { | |
17935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17936 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
17937 | ||
17938 | wxPyEndAllowThreads(__tstate); | |
17939 | if (PyErr_Occurred()) SWIG_fail; | |
17940 | } | |
4e760a36 | 17941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17942 | return resultobj; |
17943 | fail: | |
17944 | return NULL; | |
17945 | } | |
17946 | ||
17947 | ||
17948 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17949 | PyObject *resultobj; | |
17950 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
17951 | bool arg2 ; | |
17952 | PyObject * obj0 = 0 ; | |
17953 | PyObject * obj1 = 0 ; | |
17954 | char *kwnames[] = { | |
17955 | (char *) "self",(char *) "bForward", NULL | |
17956 | }; | |
17957 | ||
17958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
17959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 17960 | { |
8edf1c75 | 17961 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
17962 | if (PyErr_Occurred()) SWIG_fail; |
17963 | } | |
d14a1e28 RD |
17964 | { |
17965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17966 | (arg1)->SetDirection(arg2); | |
17967 | ||
17968 | wxPyEndAllowThreads(__tstate); | |
17969 | if (PyErr_Occurred()) SWIG_fail; | |
17970 | } | |
17971 | Py_INCREF(Py_None); resultobj = Py_None; | |
17972 | return resultobj; | |
17973 | fail: | |
17974 | return NULL; | |
17975 | } | |
17976 | ||
17977 | ||
17978 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17979 | PyObject *resultobj; | |
17980 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
17981 | bool result; | |
17982 | PyObject * obj0 = 0 ; | |
17983 | char *kwnames[] = { | |
17984 | (char *) "self", NULL | |
17985 | }; | |
17986 | ||
17987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
17988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17989 | { | |
17990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17991 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
17992 | ||
17993 | wxPyEndAllowThreads(__tstate); | |
17994 | if (PyErr_Occurred()) SWIG_fail; | |
17995 | } | |
4e760a36 | 17996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17997 | return resultobj; |
17998 | fail: | |
17999 | return NULL; | |
18000 | } | |
18001 | ||
18002 | ||
18003 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18004 | PyObject *resultobj; | |
18005 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18006 | bool arg2 ; | |
18007 | PyObject * obj0 = 0 ; | |
18008 | PyObject * obj1 = 0 ; | |
18009 | char *kwnames[] = { | |
18010 | (char *) "self",(char *) "bIs", NULL | |
18011 | }; | |
18012 | ||
18013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
18014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 18015 | { |
8edf1c75 | 18016 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
18017 | if (PyErr_Occurred()) SWIG_fail; |
18018 | } | |
d14a1e28 RD |
18019 | { |
18020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18021 | (arg1)->SetWindowChange(arg2); | |
18022 | ||
18023 | wxPyEndAllowThreads(__tstate); | |
18024 | if (PyErr_Occurred()) SWIG_fail; | |
18025 | } | |
18026 | Py_INCREF(Py_None); resultobj = Py_None; | |
18027 | return resultobj; | |
18028 | fail: | |
18029 | return NULL; | |
18030 | } | |
18031 | ||
18032 | ||
18033 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18034 | PyObject *resultobj; | |
18035 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18036 | wxWindow *result; | |
18037 | PyObject * obj0 = 0 ; | |
18038 | char *kwnames[] = { | |
18039 | (char *) "self", NULL | |
18040 | }; | |
18041 | ||
18042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
18043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18044 | { | |
18045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18046 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18047 | ||
18048 | wxPyEndAllowThreads(__tstate); | |
18049 | if (PyErr_Occurred()) SWIG_fail; | |
18050 | } | |
18051 | { | |
18052 | resultobj = wxPyMake_wxObject(result); | |
18053 | } | |
18054 | return resultobj; | |
18055 | fail: | |
18056 | return NULL; | |
18057 | } | |
18058 | ||
18059 | ||
18060 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18061 | PyObject *resultobj; | |
18062 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18063 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18064 | PyObject * obj0 = 0 ; | |
18065 | PyObject * obj1 = 0 ; | |
18066 | char *kwnames[] = { | |
18067 | (char *) "self",(char *) "win", NULL | |
18068 | }; | |
18069 | ||
18070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
18071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18072 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18073 | { | |
18074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18075 | (arg1)->SetCurrentFocus(arg2); | |
18076 | ||
18077 | wxPyEndAllowThreads(__tstate); | |
18078 | if (PyErr_Occurred()) SWIG_fail; | |
18079 | } | |
18080 | Py_INCREF(Py_None); resultobj = Py_None; | |
18081 | return resultobj; | |
18082 | fail: | |
18083 | return NULL; | |
18084 | } | |
18085 | ||
18086 | ||
18087 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18088 | PyObject *obj; | |
18089 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18090 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18091 | Py_INCREF(obj); | |
18092 | return Py_BuildValue((char *)""); | |
18093 | } | |
18094 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18095 | PyObject *resultobj; | |
18096 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18097 | wxWindowCreateEvent *result; | |
18098 | PyObject * obj0 = 0 ; | |
18099 | char *kwnames[] = { | |
18100 | (char *) "win", NULL | |
18101 | }; | |
18102 | ||
18103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18104 | if (obj0) { | |
18105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18106 | } | |
18107 | { | |
18108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18109 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18110 | ||
18111 | wxPyEndAllowThreads(__tstate); | |
18112 | if (PyErr_Occurred()) SWIG_fail; | |
18113 | } | |
18114 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowCreateEvent, 1); | |
18115 | return resultobj; | |
18116 | fail: | |
18117 | return NULL; | |
18118 | } | |
18119 | ||
18120 | ||
18121 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18122 | PyObject *resultobj; | |
18123 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18124 | wxWindow *result; | |
18125 | PyObject * obj0 = 0 ; | |
18126 | char *kwnames[] = { | |
18127 | (char *) "self", NULL | |
18128 | }; | |
18129 | ||
18130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
18131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowCreateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18132 | { | |
18133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18134 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18135 | ||
18136 | wxPyEndAllowThreads(__tstate); | |
18137 | if (PyErr_Occurred()) SWIG_fail; | |
18138 | } | |
18139 | { | |
18140 | resultobj = wxPyMake_wxObject(result); | |
18141 | } | |
18142 | return resultobj; | |
18143 | fail: | |
18144 | return NULL; | |
18145 | } | |
18146 | ||
18147 | ||
18148 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18149 | PyObject *obj; | |
18150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18151 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18152 | Py_INCREF(obj); | |
18153 | return Py_BuildValue((char *)""); | |
18154 | } | |
18155 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18156 | PyObject *resultobj; | |
18157 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18158 | wxWindowDestroyEvent *result; | |
18159 | PyObject * obj0 = 0 ; | |
18160 | char *kwnames[] = { | |
18161 | (char *) "win", NULL | |
18162 | }; | |
18163 | ||
18164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18165 | if (obj0) { | |
18166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18167 | } | |
18168 | { | |
18169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18170 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18171 | ||
18172 | wxPyEndAllowThreads(__tstate); | |
18173 | if (PyErr_Occurred()) SWIG_fail; | |
18174 | } | |
18175 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
18176 | return resultobj; | |
18177 | fail: | |
18178 | return NULL; | |
18179 | } | |
18180 | ||
18181 | ||
18182 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18183 | PyObject *resultobj; | |
18184 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18185 | wxWindow *result; | |
18186 | PyObject * obj0 = 0 ; | |
18187 | char *kwnames[] = { | |
18188 | (char *) "self", NULL | |
18189 | }; | |
18190 | ||
18191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
18192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDestroyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18193 | { | |
18194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18195 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18196 | ||
18197 | wxPyEndAllowThreads(__tstate); | |
18198 | if (PyErr_Occurred()) SWIG_fail; | |
18199 | } | |
18200 | { | |
18201 | resultobj = wxPyMake_wxObject(result); | |
18202 | } | |
18203 | return resultobj; | |
18204 | fail: | |
18205 | return NULL; | |
18206 | } | |
18207 | ||
18208 | ||
18209 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
18210 | PyObject *obj; | |
18211 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18212 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18213 | Py_INCREF(obj); | |
18214 | return Py_BuildValue((char *)""); | |
18215 | } | |
18216 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18217 | PyObject *resultobj; | |
18218 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 18219 | int arg2 = (int) 0 ; |
d14a1e28 RD |
18220 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18221 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18222 | wxContextMenuEvent *result; | |
18223 | wxPoint temp3 ; | |
8edf1c75 RD |
18224 | PyObject * obj0 = 0 ; |
18225 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18226 | PyObject * obj2 = 0 ; |
18227 | char *kwnames[] = { | |
18228 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18229 | }; | |
18230 | ||
8edf1c75 RD |
18231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18232 | if (obj0) { | |
18233 | { | |
18234 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
18235 | if (PyErr_Occurred()) SWIG_fail; | |
18236 | } | |
18237 | } | |
18238 | if (obj1) { | |
18239 | { | |
18240 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18241 | if (PyErr_Occurred()) SWIG_fail; | |
18242 | } | |
18243 | } | |
d14a1e28 RD |
18244 | if (obj2) { |
18245 | { | |
18246 | arg3 = &temp3; | |
18247 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18248 | } | |
18249 | } | |
18250 | { | |
18251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18252 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18253 | ||
18254 | wxPyEndAllowThreads(__tstate); | |
18255 | if (PyErr_Occurred()) SWIG_fail; | |
18256 | } | |
18257 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextMenuEvent, 1); | |
18258 | return resultobj; | |
18259 | fail: | |
18260 | return NULL; | |
18261 | } | |
18262 | ||
18263 | ||
18264 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18265 | PyObject *resultobj; | |
18266 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18267 | wxPoint *result; | |
18268 | PyObject * obj0 = 0 ; | |
18269 | char *kwnames[] = { | |
18270 | (char *) "self", NULL | |
18271 | }; | |
18272 | ||
18273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
18274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18275 | { | |
18276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18277 | { | |
18278 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
18279 | result = (wxPoint *) &_result_ref; | |
18280 | } | |
18281 | ||
18282 | wxPyEndAllowThreads(__tstate); | |
18283 | if (PyErr_Occurred()) SWIG_fail; | |
18284 | } | |
18285 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
18286 | return resultobj; | |
18287 | fail: | |
18288 | return NULL; | |
18289 | } | |
18290 | ||
18291 | ||
18292 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18293 | PyObject *resultobj; | |
18294 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18295 | wxPoint *arg2 = 0 ; | |
18296 | wxPoint temp2 ; | |
18297 | PyObject * obj0 = 0 ; | |
18298 | PyObject * obj1 = 0 ; | |
18299 | char *kwnames[] = { | |
18300 | (char *) "self",(char *) "pos", NULL | |
18301 | }; | |
18302 | ||
18303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
18304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18305 | { | |
18306 | arg2 = &temp2; | |
18307 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18308 | } | |
18309 | { | |
18310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18311 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
18312 | ||
18313 | wxPyEndAllowThreads(__tstate); | |
18314 | if (PyErr_Occurred()) SWIG_fail; | |
18315 | } | |
18316 | Py_INCREF(Py_None); resultobj = Py_None; | |
18317 | return resultobj; | |
18318 | fail: | |
18319 | return NULL; | |
18320 | } | |
18321 | ||
18322 | ||
18323 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
18324 | PyObject *obj; | |
18325 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18326 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
18327 | Py_INCREF(obj); | |
18328 | return Py_BuildValue((char *)""); | |
18329 | } | |
18330 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18331 | PyObject *resultobj; | |
18332 | wxIdleEvent *result; | |
18333 | char *kwnames[] = { | |
18334 | NULL | |
18335 | }; | |
18336 | ||
18337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
18338 | { | |
18339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18340 | result = (wxIdleEvent *)new wxIdleEvent(); | |
18341 | ||
18342 | wxPyEndAllowThreads(__tstate); | |
18343 | if (PyErr_Occurred()) SWIG_fail; | |
18344 | } | |
18345 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIdleEvent, 1); | |
18346 | return resultobj; | |
18347 | fail: | |
18348 | return NULL; | |
18349 | } | |
18350 | ||
18351 | ||
18352 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18353 | PyObject *resultobj; | |
18354 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
423f194a | 18355 | bool arg2 = (bool) True ; |
d14a1e28 RD |
18356 | PyObject * obj0 = 0 ; |
18357 | PyObject * obj1 = 0 ; | |
18358 | char *kwnames[] = { | |
18359 | (char *) "self",(char *) "needMore", NULL | |
18360 | }; | |
18361 | ||
18362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
18363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18364 | if (obj1) { | |
83448d71 | 18365 | { |
8edf1c75 | 18366 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
18367 | if (PyErr_Occurred()) SWIG_fail; |
18368 | } | |
d14a1e28 RD |
18369 | } |
18370 | { | |
18371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18372 | (arg1)->RequestMore(arg2); | |
18373 | ||
18374 | wxPyEndAllowThreads(__tstate); | |
18375 | if (PyErr_Occurred()) SWIG_fail; | |
18376 | } | |
18377 | Py_INCREF(Py_None); resultobj = Py_None; | |
18378 | return resultobj; | |
18379 | fail: | |
18380 | return NULL; | |
18381 | } | |
18382 | ||
18383 | ||
18384 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18385 | PyObject *resultobj; | |
18386 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
18387 | bool result; | |
18388 | PyObject * obj0 = 0 ; | |
18389 | char *kwnames[] = { | |
18390 | (char *) "self", NULL | |
18391 | }; | |
18392 | ||
18393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
18394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18395 | { | |
18396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18397 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
18398 | ||
18399 | wxPyEndAllowThreads(__tstate); | |
18400 | if (PyErr_Occurred()) SWIG_fail; | |
18401 | } | |
4e760a36 | 18402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18403 | return resultobj; |
18404 | fail: | |
18405 | return NULL; | |
18406 | } | |
18407 | ||
18408 | ||
18409 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18410 | PyObject *resultobj; | |
18411 | int arg1 ; | |
8edf1c75 | 18412 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18413 | char *kwnames[] = { |
18414 | (char *) "mode", NULL | |
18415 | }; | |
18416 | ||
8edf1c75 RD |
18417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; |
18418 | { | |
18419 | arg1 = (wxIdleMode) SWIG_PyObj_AsInt(obj0); | |
18420 | if (PyErr_Occurred()) SWIG_fail; | |
18421 | } | |
d14a1e28 RD |
18422 | { |
18423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18424 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
18425 | ||
18426 | wxPyEndAllowThreads(__tstate); | |
18427 | if (PyErr_Occurred()) SWIG_fail; | |
18428 | } | |
18429 | Py_INCREF(Py_None); resultobj = Py_None; | |
18430 | return resultobj; | |
18431 | fail: | |
18432 | return NULL; | |
18433 | } | |
18434 | ||
18435 | ||
18436 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18437 | PyObject *resultobj; | |
18438 | int result; | |
18439 | char *kwnames[] = { | |
18440 | NULL | |
18441 | }; | |
18442 | ||
18443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
18444 | { | |
18445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18446 | result = (int)wxIdleEvent::GetMode(); | |
18447 | ||
18448 | wxPyEndAllowThreads(__tstate); | |
18449 | if (PyErr_Occurred()) SWIG_fail; | |
18450 | } | |
8edf1c75 | 18451 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18452 | return resultobj; |
18453 | fail: | |
18454 | return NULL; | |
18455 | } | |
18456 | ||
18457 | ||
18458 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18459 | PyObject *resultobj; | |
18460 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18461 | bool result; | |
18462 | PyObject * obj0 = 0 ; | |
18463 | char *kwnames[] = { | |
18464 | (char *) "win", NULL | |
18465 | }; | |
18466 | ||
18467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
18468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18469 | { | |
18470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18471 | result = (bool)wxIdleEvent::CanSend(arg1); | |
18472 | ||
18473 | wxPyEndAllowThreads(__tstate); | |
18474 | if (PyErr_Occurred()) SWIG_fail; | |
18475 | } | |
4e760a36 | 18476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18477 | return resultobj; |
18478 | fail: | |
18479 | return NULL; | |
18480 | } | |
18481 | ||
18482 | ||
18483 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
18484 | PyObject *obj; | |
18485 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18486 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
18487 | Py_INCREF(obj); | |
18488 | return Py_BuildValue((char *)""); | |
18489 | } | |
18490 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18491 | PyObject *resultobj; | |
18492 | int arg1 = (int) 0 ; | |
18493 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
18494 | wxPyEvent *result; | |
8edf1c75 RD |
18495 | PyObject * obj0 = 0 ; |
18496 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18497 | char *kwnames[] = { |
18498 | (char *) "winid",(char *) "commandType", NULL | |
18499 | }; | |
18500 | ||
8edf1c75 RD |
18501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; |
18502 | if (obj0) { | |
18503 | { | |
18504 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
18505 | if (PyErr_Occurred()) SWIG_fail; | |
18506 | } | |
18507 | } | |
18508 | if (obj1) { | |
18509 | { | |
18510 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
18511 | if (PyErr_Occurred()) SWIG_fail; | |
18512 | } | |
18513 | } | |
d14a1e28 RD |
18514 | { |
18515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18516 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
18517 | ||
18518 | wxPyEndAllowThreads(__tstate); | |
18519 | if (PyErr_Occurred()) SWIG_fail; | |
18520 | } | |
18521 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyEvent, 1); | |
18522 | return resultobj; | |
18523 | fail: | |
18524 | return NULL; | |
18525 | } | |
18526 | ||
18527 | ||
18528 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18529 | PyObject *resultobj; | |
18530 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18531 | PyObject * obj0 = 0 ; | |
18532 | char *kwnames[] = { | |
18533 | (char *) "self", NULL | |
18534 | }; | |
18535 | ||
18536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
18537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18538 | { | |
18539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18540 | delete arg1; | |
18541 | ||
18542 | wxPyEndAllowThreads(__tstate); | |
18543 | if (PyErr_Occurred()) SWIG_fail; | |
18544 | } | |
18545 | Py_INCREF(Py_None); resultobj = Py_None; | |
18546 | return resultobj; | |
18547 | fail: | |
18548 | return NULL; | |
18549 | } | |
18550 | ||
18551 | ||
18552 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18553 | PyObject *resultobj; | |
18554 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18555 | PyObject *arg2 = (PyObject *) 0 ; | |
18556 | PyObject * obj0 = 0 ; | |
18557 | PyObject * obj1 = 0 ; | |
18558 | char *kwnames[] = { | |
18559 | (char *) "self",(char *) "self", NULL | |
18560 | }; | |
18561 | ||
18562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
18563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18564 | arg2 = obj1; | |
18565 | { | |
18566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18567 | (arg1)->SetSelf(arg2); | |
18568 | ||
18569 | wxPyEndAllowThreads(__tstate); | |
18570 | if (PyErr_Occurred()) SWIG_fail; | |
18571 | } | |
18572 | Py_INCREF(Py_None); resultobj = Py_None; | |
18573 | return resultobj; | |
18574 | fail: | |
18575 | return NULL; | |
18576 | } | |
18577 | ||
18578 | ||
18579 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18580 | PyObject *resultobj; | |
18581 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18582 | PyObject *result; | |
18583 | PyObject * obj0 = 0 ; | |
18584 | char *kwnames[] = { | |
18585 | (char *) "self", NULL | |
18586 | }; | |
18587 | ||
18588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
18589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18590 | { | |
18591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18592 | result = (PyObject *)(arg1)->GetSelf(); | |
18593 | ||
18594 | wxPyEndAllowThreads(__tstate); | |
18595 | if (PyErr_Occurred()) SWIG_fail; | |
18596 | } | |
18597 | resultobj = result; | |
18598 | return resultobj; | |
18599 | fail: | |
18600 | return NULL; | |
18601 | } | |
18602 | ||
18603 | ||
18604 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
18605 | PyObject *obj; | |
18606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18607 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
18608 | Py_INCREF(obj); | |
18609 | return Py_BuildValue((char *)""); | |
18610 | } | |
18611 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18612 | PyObject *resultobj; | |
18613 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18614 | int arg2 = (int) 0 ; | |
18615 | wxPyCommandEvent *result; | |
8edf1c75 RD |
18616 | PyObject * obj0 = 0 ; |
18617 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18618 | char *kwnames[] = { |
18619 | (char *) "commandType",(char *) "id", NULL | |
18620 | }; | |
18621 | ||
8edf1c75 RD |
18622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; |
18623 | if (obj0) { | |
18624 | { | |
18625 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
18626 | if (PyErr_Occurred()) SWIG_fail; | |
18627 | } | |
18628 | } | |
18629 | if (obj1) { | |
18630 | { | |
18631 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18632 | if (PyErr_Occurred()) SWIG_fail; | |
18633 | } | |
18634 | } | |
d14a1e28 RD |
18635 | { |
18636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18637 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
18638 | ||
18639 | wxPyEndAllowThreads(__tstate); | |
18640 | if (PyErr_Occurred()) SWIG_fail; | |
18641 | } | |
18642 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyCommandEvent, 1); | |
18643 | return resultobj; | |
18644 | fail: | |
18645 | return NULL; | |
18646 | } | |
18647 | ||
18648 | ||
18649 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18650 | PyObject *resultobj; | |
18651 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18652 | PyObject * obj0 = 0 ; | |
18653 | char *kwnames[] = { | |
18654 | (char *) "self", NULL | |
18655 | }; | |
18656 | ||
18657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
18658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18659 | { | |
18660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18661 | delete arg1; | |
18662 | ||
18663 | wxPyEndAllowThreads(__tstate); | |
18664 | if (PyErr_Occurred()) SWIG_fail; | |
18665 | } | |
18666 | Py_INCREF(Py_None); resultobj = Py_None; | |
18667 | return resultobj; | |
18668 | fail: | |
18669 | return NULL; | |
18670 | } | |
18671 | ||
18672 | ||
18673 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18674 | PyObject *resultobj; | |
18675 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18676 | PyObject *arg2 = (PyObject *) 0 ; | |
18677 | PyObject * obj0 = 0 ; | |
18678 | PyObject * obj1 = 0 ; | |
18679 | char *kwnames[] = { | |
18680 | (char *) "self",(char *) "self", NULL | |
18681 | }; | |
18682 | ||
18683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
18684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18685 | arg2 = obj1; | |
18686 | { | |
18687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18688 | (arg1)->SetSelf(arg2); | |
18689 | ||
18690 | wxPyEndAllowThreads(__tstate); | |
18691 | if (PyErr_Occurred()) SWIG_fail; | |
18692 | } | |
18693 | Py_INCREF(Py_None); resultobj = Py_None; | |
18694 | return resultobj; | |
18695 | fail: | |
18696 | return NULL; | |
18697 | } | |
18698 | ||
18699 | ||
18700 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18701 | PyObject *resultobj; | |
18702 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18703 | PyObject *result; | |
18704 | PyObject * obj0 = 0 ; | |
18705 | char *kwnames[] = { | |
18706 | (char *) "self", NULL | |
18707 | }; | |
18708 | ||
18709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
18710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18711 | { | |
18712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18713 | result = (PyObject *)(arg1)->GetSelf(); | |
18714 | ||
18715 | wxPyEndAllowThreads(__tstate); | |
18716 | if (PyErr_Occurred()) SWIG_fail; | |
18717 | } | |
18718 | resultobj = result; | |
18719 | return resultobj; | |
18720 | fail: | |
18721 | return NULL; | |
18722 | } | |
18723 | ||
18724 | ||
18725 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
18726 | PyObject *obj; | |
18727 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18728 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
18729 | Py_INCREF(obj); | |
18730 | return Py_BuildValue((char *)""); | |
18731 | } | |
18732 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18733 | PyObject *resultobj; | |
18734 | wxPyApp *result; | |
18735 | char *kwnames[] = { | |
18736 | NULL | |
18737 | }; | |
18738 | ||
18739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
18740 | { | |
18741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18742 | result = (wxPyApp *)new_wxPyApp(); | |
18743 | ||
18744 | wxPyEndAllowThreads(__tstate); | |
18745 | if (PyErr_Occurred()) SWIG_fail; | |
18746 | } | |
18747 | { | |
18748 | resultobj = wxPyMake_wxObject(result); | |
18749 | } | |
18750 | return resultobj; | |
18751 | fail: | |
18752 | return NULL; | |
18753 | } | |
18754 | ||
18755 | ||
18756 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18757 | PyObject *resultobj; | |
18758 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18759 | PyObject * obj0 = 0 ; | |
18760 | char *kwnames[] = { | |
18761 | (char *) "self", NULL | |
18762 | }; | |
18763 | ||
18764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
18765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18766 | { | |
18767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18768 | delete arg1; | |
18769 | ||
18770 | wxPyEndAllowThreads(__tstate); | |
18771 | if (PyErr_Occurred()) SWIG_fail; | |
18772 | } | |
18773 | Py_INCREF(Py_None); resultobj = Py_None; | |
18774 | return resultobj; | |
18775 | fail: | |
18776 | return NULL; | |
18777 | } | |
18778 | ||
18779 | ||
18780 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18781 | PyObject *resultobj; | |
18782 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18783 | PyObject *arg2 = (PyObject *) 0 ; | |
18784 | PyObject *arg3 = (PyObject *) 0 ; | |
18785 | PyObject * obj0 = 0 ; | |
18786 | PyObject * obj1 = 0 ; | |
18787 | PyObject * obj2 = 0 ; | |
18788 | char *kwnames[] = { | |
18789 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
18790 | }; | |
18791 | ||
18792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18794 | arg2 = obj1; | |
18795 | arg3 = obj2; | |
18796 | { | |
18797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18798 | (arg1)->_setCallbackInfo(arg2,arg3); | |
18799 | ||
18800 | wxPyEndAllowThreads(__tstate); | |
18801 | if (PyErr_Occurred()) SWIG_fail; | |
18802 | } | |
18803 | Py_INCREF(Py_None); resultobj = Py_None; | |
18804 | return resultobj; | |
18805 | fail: | |
18806 | return NULL; | |
18807 | } | |
18808 | ||
18809 | ||
18810 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18811 | PyObject *resultobj; | |
18812 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18813 | wxString result; | |
18814 | PyObject * obj0 = 0 ; | |
18815 | char *kwnames[] = { | |
18816 | (char *) "self", NULL | |
18817 | }; | |
18818 | ||
18819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
18820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18821 | { | |
18822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18823 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
18824 | ||
18825 | wxPyEndAllowThreads(__tstate); | |
18826 | if (PyErr_Occurred()) SWIG_fail; | |
18827 | } | |
18828 | { | |
18829 | #if wxUSE_UNICODE | |
18830 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18831 | #else | |
18832 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18833 | #endif | |
18834 | } | |
18835 | return resultobj; | |
18836 | fail: | |
18837 | return NULL; | |
18838 | } | |
18839 | ||
18840 | ||
18841 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18842 | PyObject *resultobj; | |
18843 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18844 | wxString *arg2 = 0 ; | |
423f194a | 18845 | bool temp2 = False ; |
d14a1e28 RD |
18846 | PyObject * obj0 = 0 ; |
18847 | PyObject * obj1 = 0 ; | |
18848 | char *kwnames[] = { | |
18849 | (char *) "self",(char *) "name", NULL | |
18850 | }; | |
18851 | ||
18852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
18853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18854 | { | |
18855 | arg2 = wxString_in_helper(obj1); | |
18856 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18857 | temp2 = True; |
d14a1e28 RD |
18858 | } |
18859 | { | |
18860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18861 | (arg1)->SetAppName((wxString const &)*arg2); | |
18862 | ||
18863 | wxPyEndAllowThreads(__tstate); | |
18864 | if (PyErr_Occurred()) SWIG_fail; | |
18865 | } | |
18866 | Py_INCREF(Py_None); resultobj = Py_None; | |
18867 | { | |
18868 | if (temp2) | |
18869 | delete arg2; | |
18870 | } | |
18871 | return resultobj; | |
18872 | fail: | |
18873 | { | |
18874 | if (temp2) | |
18875 | delete arg2; | |
18876 | } | |
18877 | return NULL; | |
18878 | } | |
18879 | ||
18880 | ||
18881 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18882 | PyObject *resultobj; | |
18883 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18884 | wxString result; | |
18885 | PyObject * obj0 = 0 ; | |
18886 | char *kwnames[] = { | |
18887 | (char *) "self", NULL | |
18888 | }; | |
18889 | ||
18890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
18891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18892 | { | |
18893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18894 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
18895 | ||
18896 | wxPyEndAllowThreads(__tstate); | |
18897 | if (PyErr_Occurred()) SWIG_fail; | |
18898 | } | |
18899 | { | |
18900 | #if wxUSE_UNICODE | |
18901 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18902 | #else | |
18903 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18904 | #endif | |
18905 | } | |
18906 | return resultobj; | |
18907 | fail: | |
18908 | return NULL; | |
18909 | } | |
18910 | ||
18911 | ||
18912 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18913 | PyObject *resultobj; | |
18914 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18915 | wxString *arg2 = 0 ; | |
423f194a | 18916 | bool temp2 = False ; |
d14a1e28 RD |
18917 | PyObject * obj0 = 0 ; |
18918 | PyObject * obj1 = 0 ; | |
18919 | char *kwnames[] = { | |
18920 | (char *) "self",(char *) "name", NULL | |
18921 | }; | |
18922 | ||
18923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
18924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18925 | { | |
18926 | arg2 = wxString_in_helper(obj1); | |
18927 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18928 | temp2 = True; |
d14a1e28 RD |
18929 | } |
18930 | { | |
18931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18932 | (arg1)->SetClassName((wxString const &)*arg2); | |
18933 | ||
18934 | wxPyEndAllowThreads(__tstate); | |
18935 | if (PyErr_Occurred()) SWIG_fail; | |
18936 | } | |
18937 | Py_INCREF(Py_None); resultobj = Py_None; | |
18938 | { | |
18939 | if (temp2) | |
18940 | delete arg2; | |
18941 | } | |
18942 | return resultobj; | |
18943 | fail: | |
18944 | { | |
18945 | if (temp2) | |
18946 | delete arg2; | |
18947 | } | |
18948 | return NULL; | |
18949 | } | |
18950 | ||
18951 | ||
18952 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18953 | PyObject *resultobj; | |
18954 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18955 | wxString *result; | |
18956 | PyObject * obj0 = 0 ; | |
18957 | char *kwnames[] = { | |
18958 | (char *) "self", NULL | |
18959 | }; | |
18960 | ||
18961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
18962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18963 | { | |
18964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18965 | { | |
18966 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
18967 | result = (wxString *) &_result_ref; | |
18968 | } | |
18969 | ||
18970 | wxPyEndAllowThreads(__tstate); | |
18971 | if (PyErr_Occurred()) SWIG_fail; | |
18972 | } | |
f0983263 RD |
18973 | { |
18974 | #if wxUSE_UNICODE | |
18975 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18976 | #else | |
18977 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18978 | #endif | |
18979 | } | |
d14a1e28 RD |
18980 | return resultobj; |
18981 | fail: | |
18982 | return NULL; | |
18983 | } | |
18984 | ||
18985 | ||
18986 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18987 | PyObject *resultobj; | |
18988 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18989 | wxString *arg2 = 0 ; | |
423f194a | 18990 | bool temp2 = False ; |
d14a1e28 RD |
18991 | PyObject * obj0 = 0 ; |
18992 | PyObject * obj1 = 0 ; | |
18993 | char *kwnames[] = { | |
18994 | (char *) "self",(char *) "name", NULL | |
18995 | }; | |
18996 | ||
18997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
18998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18999 | { | |
19000 | arg2 = wxString_in_helper(obj1); | |
19001 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19002 | temp2 = True; |
d14a1e28 RD |
19003 | } |
19004 | { | |
19005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19006 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19007 | ||
19008 | wxPyEndAllowThreads(__tstate); | |
19009 | if (PyErr_Occurred()) SWIG_fail; | |
19010 | } | |
19011 | Py_INCREF(Py_None); resultobj = Py_None; | |
19012 | { | |
19013 | if (temp2) | |
19014 | delete arg2; | |
19015 | } | |
19016 | return resultobj; | |
19017 | fail: | |
19018 | { | |
19019 | if (temp2) | |
19020 | delete arg2; | |
19021 | } | |
19022 | return NULL; | |
19023 | } | |
19024 | ||
19025 | ||
19026 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19027 | PyObject *resultobj; | |
19028 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19029 | wxAppTraits *result; | |
19030 | PyObject * obj0 = 0 ; | |
19031 | char *kwnames[] = { | |
19032 | (char *) "self", NULL | |
19033 | }; | |
19034 | ||
19035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
19036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19037 | { | |
19038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19039 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19040 | ||
19041 | wxPyEndAllowThreads(__tstate); | |
19042 | if (PyErr_Occurred()) SWIG_fail; | |
19043 | } | |
19044 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAppTraits, 0); | |
19045 | return resultobj; | |
19046 | fail: | |
19047 | return NULL; | |
19048 | } | |
19049 | ||
19050 | ||
19051 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19052 | PyObject *resultobj; | |
19053 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19054 | PyObject * obj0 = 0 ; | |
19055 | char *kwnames[] = { | |
19056 | (char *) "self", NULL | |
19057 | }; | |
19058 | ||
19059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
19060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19061 | { | |
19062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19063 | (arg1)->ProcessPendingEvents(); | |
19064 | ||
19065 | wxPyEndAllowThreads(__tstate); | |
19066 | if (PyErr_Occurred()) SWIG_fail; | |
19067 | } | |
19068 | Py_INCREF(Py_None); resultobj = Py_None; | |
19069 | return resultobj; | |
19070 | fail: | |
19071 | return NULL; | |
19072 | } | |
19073 | ||
19074 | ||
19075 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19076 | PyObject *resultobj; | |
19077 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
423f194a | 19078 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19079 | bool result; |
19080 | PyObject * obj0 = 0 ; | |
19081 | PyObject * obj1 = 0 ; | |
19082 | char *kwnames[] = { | |
19083 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19084 | }; | |
19085 | ||
19086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
19087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19088 | if (obj1) { | |
83448d71 | 19089 | { |
8edf1c75 | 19090 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19091 | if (PyErr_Occurred()) SWIG_fail; |
19092 | } | |
d14a1e28 RD |
19093 | } |
19094 | { | |
19095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19096 | result = (bool)(arg1)->Yield(arg2); | |
19097 | ||
19098 | wxPyEndAllowThreads(__tstate); | |
19099 | if (PyErr_Occurred()) SWIG_fail; | |
19100 | } | |
4e760a36 | 19101 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19102 | return resultobj; |
19103 | fail: | |
19104 | return NULL; | |
19105 | } | |
19106 | ||
19107 | ||
19108 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19109 | PyObject *resultobj; | |
19110 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19111 | PyObject * obj0 = 0 ; | |
19112 | char *kwnames[] = { | |
19113 | (char *) "self", NULL | |
19114 | }; | |
19115 | ||
19116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
19117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19118 | { | |
19119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19120 | (arg1)->WakeUpIdle(); | |
19121 | ||
19122 | wxPyEndAllowThreads(__tstate); | |
19123 | if (PyErr_Occurred()) SWIG_fail; | |
19124 | } | |
19125 | Py_INCREF(Py_None); resultobj = Py_None; | |
19126 | return resultobj; | |
19127 | fail: | |
19128 | return NULL; | |
19129 | } | |
19130 | ||
19131 | ||
19132 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19133 | PyObject *resultobj; | |
19134 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19135 | int result; | |
19136 | PyObject * obj0 = 0 ; | |
19137 | char *kwnames[] = { | |
19138 | (char *) "self", NULL | |
19139 | }; | |
19140 | ||
19141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
19142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19143 | { | |
19144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19145 | result = (int)(arg1)->MainLoop(); | |
19146 | ||
19147 | wxPyEndAllowThreads(__tstate); | |
19148 | if (PyErr_Occurred()) SWIG_fail; | |
19149 | } | |
8edf1c75 | 19150 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19151 | return resultobj; |
19152 | fail: | |
19153 | return NULL; | |
19154 | } | |
19155 | ||
19156 | ||
19157 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19158 | PyObject *resultobj; | |
19159 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19160 | PyObject * obj0 = 0 ; | |
19161 | char *kwnames[] = { | |
19162 | (char *) "self", NULL | |
19163 | }; | |
19164 | ||
19165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
19166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19167 | { | |
19168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19169 | (arg1)->Exit(); | |
19170 | ||
19171 | wxPyEndAllowThreads(__tstate); | |
19172 | if (PyErr_Occurred()) SWIG_fail; | |
19173 | } | |
19174 | Py_INCREF(Py_None); resultobj = Py_None; | |
19175 | return resultobj; | |
19176 | fail: | |
19177 | return NULL; | |
19178 | } | |
19179 | ||
19180 | ||
19181 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19182 | PyObject *resultobj; | |
19183 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19184 | PyObject * obj0 = 0 ; | |
19185 | char *kwnames[] = { | |
19186 | (char *) "self", NULL | |
19187 | }; | |
19188 | ||
19189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
19190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19191 | { | |
19192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19193 | (arg1)->ExitMainLoop(); | |
19194 | ||
19195 | wxPyEndAllowThreads(__tstate); | |
19196 | if (PyErr_Occurred()) SWIG_fail; | |
19197 | } | |
19198 | Py_INCREF(Py_None); resultobj = Py_None; | |
19199 | return resultobj; | |
19200 | fail: | |
19201 | return NULL; | |
19202 | } | |
19203 | ||
19204 | ||
19205 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19206 | PyObject *resultobj; | |
19207 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19208 | bool result; | |
19209 | PyObject * obj0 = 0 ; | |
19210 | char *kwnames[] = { | |
19211 | (char *) "self", NULL | |
19212 | }; | |
19213 | ||
19214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
19215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19216 | { | |
19217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19218 | result = (bool)(arg1)->Pending(); | |
19219 | ||
19220 | wxPyEndAllowThreads(__tstate); | |
19221 | if (PyErr_Occurred()) SWIG_fail; | |
19222 | } | |
4e760a36 | 19223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19224 | return resultobj; |
19225 | fail: | |
19226 | return NULL; | |
19227 | } | |
19228 | ||
19229 | ||
19230 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19231 | PyObject *resultobj; | |
19232 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19233 | bool result; | |
19234 | PyObject * obj0 = 0 ; | |
19235 | char *kwnames[] = { | |
19236 | (char *) "self", NULL | |
19237 | }; | |
19238 | ||
19239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
19240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19241 | { | |
19242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19243 | result = (bool)(arg1)->Dispatch(); | |
19244 | ||
19245 | wxPyEndAllowThreads(__tstate); | |
19246 | if (PyErr_Occurred()) SWIG_fail; | |
19247 | } | |
4e760a36 | 19248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19249 | return resultobj; |
19250 | fail: | |
19251 | return NULL; | |
19252 | } | |
19253 | ||
19254 | ||
19255 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19256 | PyObject *resultobj; | |
19257 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19258 | bool result; | |
19259 | PyObject * obj0 = 0 ; | |
19260 | char *kwnames[] = { | |
19261 | (char *) "self", NULL | |
19262 | }; | |
19263 | ||
19264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
19265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19266 | { | |
19267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19268 | result = (bool)(arg1)->ProcessIdle(); | |
19269 | ||
19270 | wxPyEndAllowThreads(__tstate); | |
19271 | if (PyErr_Occurred()) SWIG_fail; | |
19272 | } | |
4e760a36 | 19273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19274 | return resultobj; |
19275 | fail: | |
19276 | return NULL; | |
19277 | } | |
19278 | ||
19279 | ||
19280 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19281 | PyObject *resultobj; | |
19282 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19283 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19284 | wxIdleEvent *arg3 = 0 ; | |
19285 | bool result; | |
19286 | PyObject * obj0 = 0 ; | |
19287 | PyObject * obj1 = 0 ; | |
19288 | PyObject * obj2 = 0 ; | |
19289 | char *kwnames[] = { | |
19290 | (char *) "self",(char *) "win",(char *) "event", NULL | |
19291 | }; | |
19292 | ||
19293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19295 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19296 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19297 | if (arg3 == NULL) { | |
19298 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19299 | } | |
19300 | { | |
19301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19302 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
19303 | ||
19304 | wxPyEndAllowThreads(__tstate); | |
19305 | if (PyErr_Occurred()) SWIG_fail; | |
19306 | } | |
4e760a36 | 19307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19308 | return resultobj; |
19309 | fail: | |
19310 | return NULL; | |
19311 | } | |
19312 | ||
19313 | ||
d14a1e28 RD |
19314 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
19315 | PyObject *resultobj; | |
19316 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19317 | bool result; | |
19318 | PyObject * obj0 = 0 ; | |
19319 | char *kwnames[] = { | |
19320 | (char *) "self", NULL | |
19321 | }; | |
19322 | ||
19323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
19324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19325 | { | |
19326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19327 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
19328 | ||
19329 | wxPyEndAllowThreads(__tstate); | |
19330 | if (PyErr_Occurred()) SWIG_fail; | |
19331 | } | |
4e760a36 | 19332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19333 | return resultobj; |
19334 | fail: | |
19335 | return NULL; | |
19336 | } | |
19337 | ||
19338 | ||
19339 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19340 | PyObject *resultobj; | |
19341 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19342 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19343 | PyObject * obj0 = 0 ; | |
19344 | PyObject * obj1 = 0 ; | |
19345 | char *kwnames[] = { | |
19346 | (char *) "self",(char *) "win", NULL | |
19347 | }; | |
19348 | ||
19349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
19350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19351 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19352 | { | |
19353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19354 | (arg1)->SetTopWindow(arg2); | |
19355 | ||
19356 | wxPyEndAllowThreads(__tstate); | |
19357 | if (PyErr_Occurred()) SWIG_fail; | |
19358 | } | |
19359 | Py_INCREF(Py_None); resultobj = Py_None; | |
19360 | return resultobj; | |
19361 | fail: | |
19362 | return NULL; | |
19363 | } | |
19364 | ||
19365 | ||
19366 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19367 | PyObject *resultobj; | |
19368 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19369 | wxWindow *result; | |
19370 | PyObject * obj0 = 0 ; | |
19371 | char *kwnames[] = { | |
19372 | (char *) "self", NULL | |
19373 | }; | |
19374 | ||
19375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
19376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19377 | { | |
19378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19379 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
19380 | ||
19381 | wxPyEndAllowThreads(__tstate); | |
19382 | if (PyErr_Occurred()) SWIG_fail; | |
19383 | } | |
19384 | { | |
19385 | resultobj = wxPyMake_wxObject(result); | |
19386 | } | |
19387 | return resultobj; | |
19388 | fail: | |
19389 | return NULL; | |
19390 | } | |
19391 | ||
19392 | ||
19393 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19394 | PyObject *resultobj; | |
19395 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19396 | bool arg2 ; | |
19397 | PyObject * obj0 = 0 ; | |
19398 | PyObject * obj1 = 0 ; | |
19399 | char *kwnames[] = { | |
19400 | (char *) "self",(char *) "flag", NULL | |
19401 | }; | |
19402 | ||
19403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
19404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19405 | { |
8edf1c75 | 19406 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19407 | if (PyErr_Occurred()) SWIG_fail; |
19408 | } | |
d14a1e28 RD |
19409 | { |
19410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19411 | (arg1)->SetExitOnFrameDelete(arg2); | |
19412 | ||
19413 | wxPyEndAllowThreads(__tstate); | |
19414 | if (PyErr_Occurred()) SWIG_fail; | |
19415 | } | |
19416 | Py_INCREF(Py_None); resultobj = Py_None; | |
19417 | return resultobj; | |
19418 | fail: | |
19419 | return NULL; | |
19420 | } | |
19421 | ||
19422 | ||
19423 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19424 | PyObject *resultobj; | |
19425 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19426 | bool result; | |
19427 | PyObject * obj0 = 0 ; | |
19428 | char *kwnames[] = { | |
19429 | (char *) "self", NULL | |
19430 | }; | |
19431 | ||
19432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
19433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19434 | { | |
19435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19436 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
19437 | ||
19438 | wxPyEndAllowThreads(__tstate); | |
19439 | if (PyErr_Occurred()) SWIG_fail; | |
19440 | } | |
4e760a36 | 19441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19442 | return resultobj; |
19443 | fail: | |
19444 | return NULL; | |
19445 | } | |
19446 | ||
19447 | ||
19448 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19449 | PyObject *resultobj; | |
19450 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19451 | bool arg2 ; | |
19452 | PyObject * obj0 = 0 ; | |
19453 | PyObject * obj1 = 0 ; | |
19454 | char *kwnames[] = { | |
19455 | (char *) "self",(char *) "flag", NULL | |
19456 | }; | |
19457 | ||
19458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
19459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19460 | { |
8edf1c75 | 19461 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19462 | if (PyErr_Occurred()) SWIG_fail; |
19463 | } | |
d14a1e28 RD |
19464 | { |
19465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19466 | (arg1)->SetUseBestVisual(arg2); | |
19467 | ||
19468 | wxPyEndAllowThreads(__tstate); | |
19469 | if (PyErr_Occurred()) SWIG_fail; | |
19470 | } | |
19471 | Py_INCREF(Py_None); resultobj = Py_None; | |
19472 | return resultobj; | |
19473 | fail: | |
19474 | return NULL; | |
19475 | } | |
19476 | ||
19477 | ||
19478 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19479 | PyObject *resultobj; | |
19480 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19481 | bool result; | |
19482 | PyObject * obj0 = 0 ; | |
19483 | char *kwnames[] = { | |
19484 | (char *) "self", NULL | |
19485 | }; | |
19486 | ||
19487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
19488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19489 | { | |
19490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19491 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
19492 | ||
19493 | wxPyEndAllowThreads(__tstate); | |
19494 | if (PyErr_Occurred()) SWIG_fail; | |
19495 | } | |
4e760a36 | 19496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19497 | return resultobj; |
19498 | fail: | |
19499 | return NULL; | |
19500 | } | |
19501 | ||
19502 | ||
19503 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19504 | PyObject *resultobj; | |
19505 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19506 | int arg2 ; | |
19507 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19508 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19509 | char *kwnames[] = { |
19510 | (char *) "self",(char *) "mode", NULL | |
19511 | }; | |
19512 | ||
8edf1c75 | 19513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19515 | { |
19516 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19517 | if (PyErr_Occurred()) SWIG_fail; | |
19518 | } | |
d14a1e28 RD |
19519 | { |
19520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19521 | (arg1)->SetPrintMode(arg2); | |
19522 | ||
19523 | wxPyEndAllowThreads(__tstate); | |
19524 | if (PyErr_Occurred()) SWIG_fail; | |
19525 | } | |
19526 | Py_INCREF(Py_None); resultobj = Py_None; | |
19527 | return resultobj; | |
19528 | fail: | |
19529 | return NULL; | |
19530 | } | |
19531 | ||
19532 | ||
19533 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19534 | PyObject *resultobj; | |
19535 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19536 | int result; | |
19537 | PyObject * obj0 = 0 ; | |
19538 | char *kwnames[] = { | |
19539 | (char *) "self", NULL | |
19540 | }; | |
19541 | ||
19542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
19543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19544 | { | |
19545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19546 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
19547 | ||
19548 | wxPyEndAllowThreads(__tstate); | |
19549 | if (PyErr_Occurred()) SWIG_fail; | |
19550 | } | |
8edf1c75 | 19551 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19552 | return resultobj; |
19553 | fail: | |
19554 | return NULL; | |
19555 | } | |
19556 | ||
19557 | ||
44127b65 | 19558 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19559 | PyObject *resultobj; |
19560 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 19561 | int arg2 ; |
d14a1e28 | 19562 | PyObject * obj0 = 0 ; |
8edf1c75 | 19563 | PyObject * obj1 = 0 ; |
d14a1e28 | 19564 | char *kwnames[] = { |
44127b65 | 19565 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
19566 | }; |
19567 | ||
8edf1c75 | 19568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19570 | { |
19571 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19572 | if (PyErr_Occurred()) SWIG_fail; | |
19573 | } | |
d14a1e28 RD |
19574 | { |
19575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19576 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
19577 | |
19578 | wxPyEndAllowThreads(__tstate); | |
19579 | if (PyErr_Occurred()) SWIG_fail; | |
19580 | } | |
44127b65 | 19581 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
19582 | return resultobj; |
19583 | fail: | |
19584 | return NULL; | |
19585 | } | |
19586 | ||
19587 | ||
44127b65 | 19588 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19589 | PyObject *resultobj; |
19590 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 19591 | int result; |
d14a1e28 RD |
19592 | PyObject * obj0 = 0 ; |
19593 | char *kwnames[] = { | |
44127b65 | 19594 | (char *) "self", NULL |
d14a1e28 RD |
19595 | }; |
19596 | ||
44127b65 | 19597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
19598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
19599 | { | |
19600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19601 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
19602 | |
19603 | wxPyEndAllowThreads(__tstate); | |
19604 | if (PyErr_Occurred()) SWIG_fail; | |
19605 | } | |
8edf1c75 | 19606 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19607 | return resultobj; |
19608 | fail: | |
19609 | return NULL; | |
19610 | } | |
19611 | ||
19612 | ||
19613 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19614 | PyObject *resultobj; | |
19615 | bool result; | |
19616 | char *kwnames[] = { | |
19617 | NULL | |
19618 | }; | |
19619 | ||
19620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
19621 | { | |
19622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19623 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
19624 | ||
19625 | wxPyEndAllowThreads(__tstate); | |
19626 | if (PyErr_Occurred()) SWIG_fail; | |
19627 | } | |
4e760a36 | 19628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19629 | return resultobj; |
19630 | fail: | |
19631 | return NULL; | |
19632 | } | |
19633 | ||
19634 | ||
19635 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19636 | PyObject *resultobj; | |
19637 | long result; | |
19638 | char *kwnames[] = { | |
19639 | NULL | |
19640 | }; | |
19641 | ||
19642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
19643 | { | |
19644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19645 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
19646 | ||
19647 | wxPyEndAllowThreads(__tstate); | |
19648 | if (PyErr_Occurred()) SWIG_fail; | |
19649 | } | |
8edf1c75 | 19650 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19651 | return resultobj; |
19652 | fail: | |
19653 | return NULL; | |
19654 | } | |
19655 | ||
19656 | ||
19657 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19658 | PyObject *resultobj; | |
19659 | long result; | |
19660 | char *kwnames[] = { | |
19661 | NULL | |
19662 | }; | |
19663 | ||
19664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
19665 | { | |
19666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19667 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
19668 | ||
19669 | wxPyEndAllowThreads(__tstate); | |
19670 | if (PyErr_Occurred()) SWIG_fail; | |
19671 | } | |
8edf1c75 | 19672 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19673 | return resultobj; |
19674 | fail: | |
19675 | return NULL; | |
19676 | } | |
19677 | ||
19678 | ||
19679 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19680 | PyObject *resultobj; | |
19681 | long result; | |
19682 | char *kwnames[] = { | |
19683 | NULL | |
19684 | }; | |
19685 | ||
19686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
19687 | { | |
19688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19689 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
19690 | ||
19691 | wxPyEndAllowThreads(__tstate); | |
19692 | if (PyErr_Occurred()) SWIG_fail; | |
19693 | } | |
8edf1c75 | 19694 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19695 | return resultobj; |
19696 | fail: | |
19697 | return NULL; | |
19698 | } | |
19699 | ||
19700 | ||
19701 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19702 | PyObject *resultobj; | |
19703 | wxString result; | |
19704 | char *kwnames[] = { | |
19705 | NULL | |
19706 | }; | |
19707 | ||
19708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
19709 | { | |
19710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19711 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
19712 | ||
19713 | wxPyEndAllowThreads(__tstate); | |
19714 | if (PyErr_Occurred()) SWIG_fail; | |
19715 | } | |
19716 | { | |
19717 | #if wxUSE_UNICODE | |
19718 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19719 | #else | |
19720 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19721 | #endif | |
19722 | } | |
19723 | return resultobj; | |
19724 | fail: | |
19725 | return NULL; | |
19726 | } | |
19727 | ||
19728 | ||
19729 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19730 | PyObject *resultobj; | |
19731 | bool arg1 ; | |
19732 | PyObject * obj0 = 0 ; | |
19733 | char *kwnames[] = { | |
19734 | (char *) "val", NULL | |
19735 | }; | |
19736 | ||
19737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
83448d71 | 19738 | { |
8edf1c75 | 19739 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
83448d71 RD |
19740 | if (PyErr_Occurred()) SWIG_fail; |
19741 | } | |
d14a1e28 RD |
19742 | { |
19743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19744 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
19745 | ||
19746 | wxPyEndAllowThreads(__tstate); | |
19747 | if (PyErr_Occurred()) SWIG_fail; | |
19748 | } | |
19749 | Py_INCREF(Py_None); resultobj = Py_None; | |
19750 | return resultobj; | |
19751 | fail: | |
19752 | return NULL; | |
19753 | } | |
19754 | ||
19755 | ||
19756 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19757 | PyObject *resultobj; | |
19758 | long arg1 ; | |
8edf1c75 | 19759 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19760 | char *kwnames[] = { |
19761 | (char *) "val", NULL | |
19762 | }; | |
19763 | ||
8edf1c75 RD |
19764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; |
19765 | { | |
19766 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
19767 | if (PyErr_Occurred()) SWIG_fail; | |
19768 | } | |
d14a1e28 RD |
19769 | { |
19770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19771 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
19772 | ||
19773 | wxPyEndAllowThreads(__tstate); | |
19774 | if (PyErr_Occurred()) SWIG_fail; | |
19775 | } | |
19776 | Py_INCREF(Py_None); resultobj = Py_None; | |
19777 | return resultobj; | |
19778 | fail: | |
19779 | return NULL; | |
19780 | } | |
19781 | ||
19782 | ||
19783 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19784 | PyObject *resultobj; | |
19785 | long arg1 ; | |
8edf1c75 | 19786 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19787 | char *kwnames[] = { |
19788 | (char *) "val", NULL | |
19789 | }; | |
19790 | ||
8edf1c75 RD |
19791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; |
19792 | { | |
19793 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
19794 | if (PyErr_Occurred()) SWIG_fail; | |
19795 | } | |
d14a1e28 RD |
19796 | { |
19797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19798 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
19799 | ||
19800 | wxPyEndAllowThreads(__tstate); | |
19801 | if (PyErr_Occurred()) SWIG_fail; | |
19802 | } | |
19803 | Py_INCREF(Py_None); resultobj = Py_None; | |
19804 | return resultobj; | |
19805 | fail: | |
19806 | return NULL; | |
19807 | } | |
19808 | ||
19809 | ||
19810 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19811 | PyObject *resultobj; | |
19812 | long arg1 ; | |
8edf1c75 | 19813 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19814 | char *kwnames[] = { |
19815 | (char *) "val", NULL | |
19816 | }; | |
19817 | ||
8edf1c75 RD |
19818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; |
19819 | { | |
19820 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
19821 | if (PyErr_Occurred()) SWIG_fail; | |
19822 | } | |
d14a1e28 RD |
19823 | { |
19824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19825 | wxPyApp::SetMacExitMenuItemId(arg1); | |
19826 | ||
19827 | wxPyEndAllowThreads(__tstate); | |
19828 | if (PyErr_Occurred()) SWIG_fail; | |
19829 | } | |
19830 | Py_INCREF(Py_None); resultobj = Py_None; | |
19831 | return resultobj; | |
19832 | fail: | |
19833 | return NULL; | |
19834 | } | |
19835 | ||
19836 | ||
19837 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19838 | PyObject *resultobj; | |
19839 | wxString *arg1 = 0 ; | |
423f194a | 19840 | bool temp1 = False ; |
d14a1e28 RD |
19841 | PyObject * obj0 = 0 ; |
19842 | char *kwnames[] = { | |
19843 | (char *) "val", NULL | |
19844 | }; | |
19845 | ||
19846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
19847 | { | |
19848 | arg1 = wxString_in_helper(obj0); | |
19849 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 19850 | temp1 = True; |
d14a1e28 RD |
19851 | } |
19852 | { | |
19853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19854 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
19855 | ||
19856 | wxPyEndAllowThreads(__tstate); | |
19857 | if (PyErr_Occurred()) SWIG_fail; | |
19858 | } | |
19859 | Py_INCREF(Py_None); resultobj = Py_None; | |
19860 | { | |
19861 | if (temp1) | |
19862 | delete arg1; | |
19863 | } | |
19864 | return resultobj; | |
19865 | fail: | |
19866 | { | |
19867 | if (temp1) | |
19868 | delete arg1; | |
19869 | } | |
19870 | return NULL; | |
19871 | } | |
19872 | ||
19873 | ||
19874 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19875 | PyObject *resultobj; | |
19876 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19877 | PyObject * obj0 = 0 ; | |
19878 | char *kwnames[] = { | |
19879 | (char *) "self", NULL | |
19880 | }; | |
19881 | ||
19882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
19883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19884 | { | |
19885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19886 | (arg1)->_BootstrapApp(); | |
19887 | ||
19888 | wxPyEndAllowThreads(__tstate); | |
19889 | if (PyErr_Occurred()) SWIG_fail; | |
19890 | } | |
19891 | Py_INCREF(Py_None); resultobj = Py_None; | |
19892 | return resultobj; | |
19893 | fail: | |
19894 | return NULL; | |
19895 | } | |
19896 | ||
19897 | ||
19898 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19899 | PyObject *resultobj; | |
19900 | int result; | |
19901 | char *kwnames[] = { | |
19902 | NULL | |
19903 | }; | |
19904 | ||
19905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
19906 | { | |
19907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19908 | result = (int)wxPyApp::GetComCtl32Version(); | |
19909 | ||
19910 | wxPyEndAllowThreads(__tstate); | |
19911 | if (PyErr_Occurred()) SWIG_fail; | |
19912 | } | |
8edf1c75 | 19913 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19914 | return resultobj; |
19915 | fail: | |
19916 | return NULL; | |
19917 | } | |
19918 | ||
19919 | ||
19920 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
19921 | PyObject *obj; | |
19922 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19923 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
19924 | Py_INCREF(obj); | |
19925 | return Py_BuildValue((char *)""); | |
19926 | } | |
19927 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19928 | PyObject *resultobj; | |
19929 | char *kwnames[] = { | |
19930 | NULL | |
19931 | }; | |
19932 | ||
19933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
19934 | { | |
19935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19936 | wxExit(); | |
19937 | ||
19938 | wxPyEndAllowThreads(__tstate); | |
19939 | if (PyErr_Occurred()) SWIG_fail; | |
19940 | } | |
19941 | Py_INCREF(Py_None); resultobj = Py_None; | |
19942 | return resultobj; | |
19943 | fail: | |
19944 | return NULL; | |
19945 | } | |
19946 | ||
19947 | ||
19948 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19949 | PyObject *resultobj; | |
19950 | bool result; | |
19951 | char *kwnames[] = { | |
19952 | NULL | |
19953 | }; | |
19954 | ||
19955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
19956 | { | |
19957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19958 | result = (bool)wxYield(); | |
19959 | ||
19960 | wxPyEndAllowThreads(__tstate); | |
19961 | if (PyErr_Occurred()) SWIG_fail; | |
19962 | } | |
4e760a36 | 19963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19964 | return resultobj; |
19965 | fail: | |
19966 | return NULL; | |
19967 | } | |
19968 | ||
19969 | ||
19970 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19971 | PyObject *resultobj; | |
19972 | bool result; | |
19973 | char *kwnames[] = { | |
19974 | NULL | |
19975 | }; | |
19976 | ||
19977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
19978 | { | |
19979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19980 | result = (bool)wxYieldIfNeeded(); | |
19981 | ||
19982 | wxPyEndAllowThreads(__tstate); | |
19983 | if (PyErr_Occurred()) SWIG_fail; | |
19984 | } | |
4e760a36 | 19985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19986 | return resultobj; |
19987 | fail: | |
19988 | return NULL; | |
19989 | } | |
19990 | ||
19991 | ||
19992 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19993 | PyObject *resultobj; | |
19994 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 19995 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19996 | bool result; |
19997 | PyObject * obj0 = 0 ; | |
19998 | PyObject * obj1 = 0 ; | |
19999 | char *kwnames[] = { | |
20000 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20001 | }; | |
20002 | ||
20003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20004 | if (obj0) { | |
20005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20006 | } | |
20007 | if (obj1) { | |
83448d71 | 20008 | { |
8edf1c75 | 20009 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
20010 | if (PyErr_Occurred()) SWIG_fail; |
20011 | } | |
d14a1e28 RD |
20012 | } |
20013 | { | |
20014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20015 | result = (bool)wxSafeYield(arg1,arg2); | |
20016 | ||
20017 | wxPyEndAllowThreads(__tstate); | |
20018 | if (PyErr_Occurred()) SWIG_fail; | |
20019 | } | |
4e760a36 | 20020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20021 | return resultobj; |
20022 | fail: | |
20023 | return NULL; | |
20024 | } | |
20025 | ||
20026 | ||
20027 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20028 | PyObject *resultobj; | |
20029 | char *kwnames[] = { | |
20030 | NULL | |
20031 | }; | |
20032 | ||
20033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20034 | { | |
20035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20036 | wxWakeUpIdle(); | |
20037 | ||
20038 | wxPyEndAllowThreads(__tstate); | |
20039 | if (PyErr_Occurred()) SWIG_fail; | |
20040 | } | |
20041 | Py_INCREF(Py_None); resultobj = Py_None; | |
20042 | return resultobj; | |
20043 | fail: | |
20044 | return NULL; | |
20045 | } | |
20046 | ||
20047 | ||
20048 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20049 | PyObject *resultobj; | |
20050 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20051 | wxEvent *arg2 = 0 ; | |
20052 | PyObject * obj0 = 0 ; | |
20053 | PyObject * obj1 = 0 ; | |
20054 | char *kwnames[] = { | |
20055 | (char *) "dest",(char *) "event", NULL | |
20056 | }; | |
20057 | ||
20058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
20059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20060 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20061 | if (arg2 == NULL) { | |
20062 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20063 | } | |
20064 | { | |
20065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20066 | wxPostEvent(arg1,*arg2); | |
20067 | ||
20068 | wxPyEndAllowThreads(__tstate); | |
20069 | if (PyErr_Occurred()) SWIG_fail; | |
20070 | } | |
20071 | Py_INCREF(Py_None); resultobj = Py_None; | |
20072 | return resultobj; | |
20073 | fail: | |
20074 | return NULL; | |
20075 | } | |
20076 | ||
20077 | ||
20078 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20079 | PyObject *resultobj; | |
20080 | char *kwnames[] = { | |
20081 | NULL | |
20082 | }; | |
20083 | ||
20084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20085 | { | |
20086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20087 | wxApp_CleanUp(); | |
20088 | ||
20089 | wxPyEndAllowThreads(__tstate); | |
20090 | if (PyErr_Occurred()) SWIG_fail; | |
20091 | } | |
20092 | Py_INCREF(Py_None); resultobj = Py_None; | |
20093 | return resultobj; | |
20094 | fail: | |
20095 | return NULL; | |
20096 | } | |
20097 | ||
20098 | ||
20099 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20100 | PyObject *resultobj; | |
20101 | wxPyApp *result; | |
20102 | char *kwnames[] = { | |
20103 | NULL | |
20104 | }; | |
20105 | ||
20106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20107 | { | |
20108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20109 | result = (wxPyApp *)wxGetApp(); | |
20110 | ||
20111 | wxPyEndAllowThreads(__tstate); | |
20112 | if (PyErr_Occurred()) SWIG_fail; | |
20113 | } | |
20114 | { | |
20115 | resultobj = wxPyMake_wxObject(result); | |
20116 | } | |
20117 | return resultobj; | |
20118 | fail: | |
20119 | return NULL; | |
20120 | } | |
20121 | ||
20122 | ||
41f1cec7 RD |
20123 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { |
20124 | PyObject *resultobj; | |
20125 | int arg1 = (int) 0 ; | |
20126 | int arg2 = (int) 0 ; | |
20127 | int arg3 = (int) 0 ; | |
20128 | wxMenuItem *arg4 = (wxMenuItem *) NULL ; | |
20129 | wxAcceleratorEntry *result; | |
8edf1c75 RD |
20130 | PyObject * obj0 = 0 ; |
20131 | PyObject * obj1 = 0 ; | |
20132 | PyObject * obj2 = 0 ; | |
41f1cec7 RD |
20133 | PyObject * obj3 = 0 ; |
20134 | char *kwnames[] = { | |
20135 | (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20136 | }; | |
20137 | ||
8edf1c75 RD |
20138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
20139 | if (obj0) { | |
20140 | { | |
20141 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
20142 | if (PyErr_Occurred()) SWIG_fail; | |
20143 | } | |
20144 | } | |
20145 | if (obj1) { | |
20146 | { | |
20147 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20148 | if (PyErr_Occurred()) SWIG_fail; | |
20149 | } | |
20150 | } | |
20151 | if (obj2) { | |
20152 | { | |
20153 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20154 | if (PyErr_Occurred()) SWIG_fail; | |
20155 | } | |
20156 | } | |
41f1cec7 RD |
20157 | if (obj3) { |
20158 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20159 | } | |
20160 | { | |
20161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20162 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); | |
20163 | ||
20164 | wxPyEndAllowThreads(__tstate); | |
20165 | if (PyErr_Occurred()) SWIG_fail; | |
20166 | } | |
20167 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 1); | |
20168 | return resultobj; | |
20169 | fail: | |
20170 | return NULL; | |
20171 | } | |
20172 | ||
20173 | ||
20174 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20175 | PyObject *resultobj; | |
20176 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20177 | PyObject * obj0 = 0 ; | |
20178 | char *kwnames[] = { | |
20179 | (char *) "self", NULL | |
20180 | }; | |
20181 | ||
20182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
20183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20184 | { | |
20185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20186 | delete arg1; | |
20187 | ||
20188 | wxPyEndAllowThreads(__tstate); | |
20189 | if (PyErr_Occurred()) SWIG_fail; | |
20190 | } | |
20191 | Py_INCREF(Py_None); resultobj = Py_None; | |
20192 | return resultobj; | |
20193 | fail: | |
20194 | return NULL; | |
20195 | } | |
20196 | ||
20197 | ||
20198 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20199 | PyObject *resultobj; | |
20200 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20201 | int arg2 ; | |
20202 | int arg3 ; | |
20203 | int arg4 ; | |
20204 | wxMenuItem *arg5 = (wxMenuItem *) NULL ; | |
20205 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20206 | PyObject * obj1 = 0 ; |
20207 | PyObject * obj2 = 0 ; | |
20208 | PyObject * obj3 = 0 ; | |
41f1cec7 RD |
20209 | PyObject * obj4 = 0 ; |
20210 | char *kwnames[] = { | |
20211 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20212 | }; | |
20213 | ||
8edf1c75 | 20214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
41f1cec7 | 20215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20216 | { |
20217 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20218 | if (PyErr_Occurred()) SWIG_fail; | |
20219 | } | |
20220 | { | |
20221 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20222 | if (PyErr_Occurred()) SWIG_fail; | |
20223 | } | |
20224 | { | |
20225 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20226 | if (PyErr_Occurred()) SWIG_fail; | |
20227 | } | |
41f1cec7 RD |
20228 | if (obj4) { |
20229 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20230 | } | |
20231 | { | |
20232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20233 | (arg1)->Set(arg2,arg3,arg4,arg5); | |
20234 | ||
20235 | wxPyEndAllowThreads(__tstate); | |
20236 | if (PyErr_Occurred()) SWIG_fail; | |
20237 | } | |
20238 | Py_INCREF(Py_None); resultobj = Py_None; | |
20239 | return resultobj; | |
20240 | fail: | |
20241 | return NULL; | |
20242 | } | |
20243 | ||
20244 | ||
20245 | static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20246 | PyObject *resultobj; | |
20247 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20248 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
20249 | PyObject * obj0 = 0 ; | |
20250 | PyObject * obj1 = 0 ; | |
20251 | char *kwnames[] = { | |
20252 | (char *) "self",(char *) "item", NULL | |
20253 | }; | |
20254 | ||
20255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; | |
20256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20257 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20258 | { | |
20259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20260 | (arg1)->SetMenuItem(arg2); | |
20261 | ||
20262 | wxPyEndAllowThreads(__tstate); | |
20263 | if (PyErr_Occurred()) SWIG_fail; | |
20264 | } | |
20265 | Py_INCREF(Py_None); resultobj = Py_None; | |
20266 | return resultobj; | |
20267 | fail: | |
20268 | return NULL; | |
20269 | } | |
20270 | ||
20271 | ||
20272 | static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20273 | PyObject *resultobj; | |
20274 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20275 | wxMenuItem *result; | |
20276 | PyObject * obj0 = 0 ; | |
20277 | char *kwnames[] = { | |
20278 | (char *) "self", NULL | |
20279 | }; | |
20280 | ||
20281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; | |
20282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20283 | { | |
20284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20285 | result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); | |
20286 | ||
20287 | wxPyEndAllowThreads(__tstate); | |
20288 | if (PyErr_Occurred()) SWIG_fail; | |
20289 | } | |
20290 | { | |
20291 | resultobj = wxPyMake_wxObject(result); | |
20292 | } | |
20293 | return resultobj; | |
20294 | fail: | |
20295 | return NULL; | |
20296 | } | |
20297 | ||
20298 | ||
20299 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20300 | PyObject *resultobj; | |
20301 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20302 | int result; | |
20303 | PyObject * obj0 = 0 ; | |
20304 | char *kwnames[] = { | |
20305 | (char *) "self", NULL | |
20306 | }; | |
20307 | ||
20308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
20309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20310 | { | |
20311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20312 | result = (int)(arg1)->GetFlags(); | |
20313 | ||
20314 | wxPyEndAllowThreads(__tstate); | |
20315 | if (PyErr_Occurred()) SWIG_fail; | |
20316 | } | |
8edf1c75 | 20317 | resultobj = SWIG_PyObj_FromInt((int)result); |
41f1cec7 RD |
20318 | return resultobj; |
20319 | fail: | |
20320 | return NULL; | |
20321 | } | |
20322 | ||
20323 | ||
20324 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20325 | PyObject *resultobj; | |
20326 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20327 | int result; | |
20328 | PyObject * obj0 = 0 ; | |
20329 | char *kwnames[] = { | |
20330 | (char *) "self", NULL | |
20331 | }; | |
20332 | ||
20333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
20334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20335 | { | |
20336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20337 | result = (int)(arg1)->GetKeyCode(); | |
20338 | ||
20339 | wxPyEndAllowThreads(__tstate); | |
20340 | if (PyErr_Occurred()) SWIG_fail; | |
20341 | } | |
8edf1c75 | 20342 | resultobj = SWIG_PyObj_FromInt((int)result); |
41f1cec7 RD |
20343 | return resultobj; |
20344 | fail: | |
20345 | return NULL; | |
20346 | } | |
20347 | ||
20348 | ||
20349 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20350 | PyObject *resultobj; | |
20351 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20352 | int result; | |
20353 | PyObject * obj0 = 0 ; | |
20354 | char *kwnames[] = { | |
20355 | (char *) "self", NULL | |
20356 | }; | |
20357 | ||
20358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
20359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20360 | { | |
20361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20362 | result = (int)(arg1)->GetCommand(); | |
20363 | ||
20364 | wxPyEndAllowThreads(__tstate); | |
20365 | if (PyErr_Occurred()) SWIG_fail; | |
20366 | } | |
8edf1c75 | 20367 | resultobj = SWIG_PyObj_FromInt((int)result); |
41f1cec7 RD |
20368 | return resultobj; |
20369 | fail: | |
20370 | return NULL; | |
20371 | } | |
20372 | ||
20373 | ||
20374 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
20375 | PyObject *obj; | |
20376 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20377 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
20378 | Py_INCREF(obj); | |
20379 | return Py_BuildValue((char *)""); | |
20380 | } | |
20381 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20382 | PyObject *resultobj; | |
20383 | int arg1 ; | |
20384 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
20385 | wxAcceleratorTable *result; | |
20386 | PyObject * obj0 = 0 ; | |
20387 | char *kwnames[] = { | |
20388 | (char *) "n", NULL | |
20389 | }; | |
20390 | ||
20391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
20392 | { | |
20393 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
20394 | if (arg2) arg1 = PyList_Size(obj0); | |
20395 | else arg1 = 0; | |
20396 | } | |
20397 | { | |
20398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20399 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
20400 | ||
20401 | wxPyEndAllowThreads(__tstate); | |
20402 | if (PyErr_Occurred()) SWIG_fail; | |
20403 | } | |
20404 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 1); | |
20405 | { | |
20406 | delete [] arg2; | |
20407 | } | |
20408 | return resultobj; | |
20409 | fail: | |
20410 | { | |
20411 | delete [] arg2; | |
20412 | } | |
20413 | return NULL; | |
20414 | } | |
20415 | ||
20416 | ||
20417 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20418 | PyObject *resultobj; | |
20419 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
20420 | PyObject * obj0 = 0 ; | |
20421 | char *kwnames[] = { | |
20422 | (char *) "self", NULL | |
20423 | }; | |
20424 | ||
20425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
20426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20427 | { | |
20428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20429 | delete arg1; | |
20430 | ||
20431 | wxPyEndAllowThreads(__tstate); | |
20432 | if (PyErr_Occurred()) SWIG_fail; | |
20433 | } | |
20434 | Py_INCREF(Py_None); resultobj = Py_None; | |
20435 | return resultobj; | |
20436 | fail: | |
20437 | return NULL; | |
20438 | } | |
20439 | ||
20440 | ||
20441 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20442 | PyObject *resultobj; | |
20443 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
20444 | bool result; | |
20445 | PyObject * obj0 = 0 ; | |
20446 | char *kwnames[] = { | |
20447 | (char *) "self", NULL | |
20448 | }; | |
20449 | ||
20450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
20451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20452 | { | |
20453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20454 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
20455 | ||
20456 | wxPyEndAllowThreads(__tstate); | |
20457 | if (PyErr_Occurred()) SWIG_fail; | |
20458 | } | |
4e760a36 | 20459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
41f1cec7 RD |
20460 | return resultobj; |
20461 | fail: | |
20462 | return NULL; | |
20463 | } | |
20464 | ||
20465 | ||
20466 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
20467 | PyObject *obj; | |
20468 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20469 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
20470 | Py_INCREF(obj); | |
20471 | return Py_BuildValue((char *)""); | |
20472 | } | |
8edf1c75 | 20473 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
41f1cec7 RD |
20474 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
20475 | return 1; | |
20476 | } | |
20477 | ||
20478 | ||
20479 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
20480 | PyObject *pyobj; | |
20481 | ||
20482 | pyobj = SWIG_NewPointerObj((void *) &wxNullAcceleratorTable, SWIGTYPE_p_wxAcceleratorTable, 0); | |
20483 | return pyobj; | |
20484 | } | |
20485 | ||
20486 | ||
20487 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20488 | PyObject *resultobj; | |
20489 | wxString *arg1 = 0 ; | |
20490 | wxAcceleratorEntry *result; | |
20491 | bool temp1 = False ; | |
20492 | PyObject * obj0 = 0 ; | |
20493 | char *kwnames[] = { | |
20494 | (char *) "label", NULL | |
20495 | }; | |
20496 | ||
20497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
20498 | { | |
20499 | arg1 = wxString_in_helper(obj0); | |
20500 | if (arg1 == NULL) SWIG_fail; | |
20501 | temp1 = True; | |
20502 | } | |
20503 | { | |
20504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20505 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
20506 | ||
20507 | wxPyEndAllowThreads(__tstate); | |
20508 | if (PyErr_Occurred()) SWIG_fail; | |
20509 | } | |
20510 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0); | |
20511 | { | |
20512 | if (temp1) | |
20513 | delete arg1; | |
20514 | } | |
20515 | return resultobj; | |
20516 | fail: | |
20517 | { | |
20518 | if (temp1) | |
20519 | delete arg1; | |
20520 | } | |
20521 | return NULL; | |
20522 | } | |
20523 | ||
20524 | ||
8edf1c75 | 20525 | static int _wrap_PanelNameStr_set(PyObject *) { |
423f194a RD |
20526 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
20527 | return 1; | |
20528 | } | |
20529 | ||
20530 | ||
20531 | static PyObject *_wrap_PanelNameStr_get() { | |
20532 | PyObject *pyobj; | |
20533 | ||
20534 | { | |
20535 | #if wxUSE_UNICODE | |
20536 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
20537 | #else | |
20538 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
20539 | #endif | |
20540 | } | |
20541 | return pyobj; | |
20542 | } | |
20543 | ||
20544 | ||
d14a1e28 RD |
20545 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { |
20546 | PyObject *resultobj; | |
20547 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20548 | int arg2 ; |
d14a1e28 RD |
20549 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20550 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20551 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20552 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20553 | long arg5 = (long) 0 ; | |
20554 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
20555 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20556 | wxWindow *result; | |
20557 | wxPoint temp3 ; | |
20558 | wxSize temp4 ; | |
423f194a | 20559 | bool temp6 = False ; |
d14a1e28 | 20560 | PyObject * obj0 = 0 ; |
8edf1c75 | 20561 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20562 | PyObject * obj2 = 0 ; |
20563 | PyObject * obj3 = 0 ; | |
8edf1c75 | 20564 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20565 | PyObject * obj5 = 0 ; |
20566 | char *kwnames[] = { | |
20567 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20568 | }; | |
20569 | ||
8edf1c75 | 20570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 20571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20572 | { |
20573 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
20574 | if (PyErr_Occurred()) SWIG_fail; | |
20575 | } | |
d14a1e28 RD |
20576 | if (obj2) { |
20577 | { | |
20578 | arg3 = &temp3; | |
20579 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20580 | } | |
20581 | } | |
20582 | if (obj3) { | |
20583 | { | |
20584 | arg4 = &temp4; | |
20585 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20586 | } | |
20587 | } | |
8edf1c75 RD |
20588 | if (obj4) { |
20589 | { | |
20590 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
20591 | if (PyErr_Occurred()) SWIG_fail; | |
20592 | } | |
20593 | } | |
d14a1e28 RD |
20594 | if (obj5) { |
20595 | { | |
20596 | arg6 = wxString_in_helper(obj5); | |
20597 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 20598 | temp6 = True; |
d14a1e28 RD |
20599 | } |
20600 | } | |
20601 | { | |
20602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20603 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20604 | ||
20605 | wxPyEndAllowThreads(__tstate); | |
20606 | if (PyErr_Occurred()) SWIG_fail; | |
20607 | } | |
20608 | { | |
20609 | resultobj = wxPyMake_wxObject(result); | |
20610 | } | |
20611 | { | |
20612 | if (temp6) | |
20613 | delete arg6; | |
20614 | } | |
20615 | return resultobj; | |
20616 | fail: | |
20617 | { | |
20618 | if (temp6) | |
20619 | delete arg6; | |
20620 | } | |
20621 | return NULL; | |
20622 | } | |
20623 | ||
20624 | ||
20625 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20626 | PyObject *resultobj; | |
20627 | wxWindow *result; | |
20628 | char *kwnames[] = { | |
20629 | NULL | |
20630 | }; | |
20631 | ||
20632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
20633 | { | |
20634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20635 | result = (wxWindow *)new wxWindow(); | |
20636 | ||
20637 | wxPyEndAllowThreads(__tstate); | |
20638 | if (PyErr_Occurred()) SWIG_fail; | |
20639 | } | |
20640 | { | |
20641 | resultobj = wxPyMake_wxObject(result); | |
20642 | } | |
20643 | return resultobj; | |
20644 | fail: | |
20645 | return NULL; | |
20646 | } | |
20647 | ||
20648 | ||
20649 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20650 | PyObject *resultobj; | |
20651 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20652 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 20653 | int arg3 ; |
d14a1e28 RD |
20654 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20655 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20656 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20657 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20658 | long arg6 = (long) 0 ; | |
20659 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
20660 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20661 | bool result; | |
20662 | wxPoint temp4 ; | |
20663 | wxSize temp5 ; | |
423f194a | 20664 | bool temp7 = False ; |
d14a1e28 RD |
20665 | PyObject * obj0 = 0 ; |
20666 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20667 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20668 | PyObject * obj3 = 0 ; |
20669 | PyObject * obj4 = 0 ; | |
8edf1c75 | 20670 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20671 | PyObject * obj6 = 0 ; |
20672 | char *kwnames[] = { | |
20673 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20674 | }; | |
20675 | ||
8edf1c75 | 20676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
20677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20678 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
20679 | { |
20680 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
20681 | if (PyErr_Occurred()) SWIG_fail; | |
20682 | } | |
d14a1e28 RD |
20683 | if (obj3) { |
20684 | { | |
20685 | arg4 = &temp4; | |
20686 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20687 | } | |
20688 | } | |
20689 | if (obj4) { | |
20690 | { | |
20691 | arg5 = &temp5; | |
20692 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20693 | } | |
20694 | } | |
8edf1c75 RD |
20695 | if (obj5) { |
20696 | { | |
20697 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
20698 | if (PyErr_Occurred()) SWIG_fail; | |
20699 | } | |
20700 | } | |
d14a1e28 RD |
20701 | if (obj6) { |
20702 | { | |
20703 | arg7 = wxString_in_helper(obj6); | |
20704 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 20705 | temp7 = True; |
d14a1e28 RD |
20706 | } |
20707 | } | |
20708 | { | |
20709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20710 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20711 | ||
20712 | wxPyEndAllowThreads(__tstate); | |
20713 | if (PyErr_Occurred()) SWIG_fail; | |
20714 | } | |
4e760a36 | 20715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20716 | { |
20717 | if (temp7) | |
20718 | delete arg7; | |
20719 | } | |
20720 | return resultobj; | |
20721 | fail: | |
20722 | { | |
20723 | if (temp7) | |
20724 | delete arg7; | |
20725 | } | |
20726 | return NULL; | |
20727 | } | |
20728 | ||
20729 | ||
20730 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20731 | PyObject *resultobj; | |
20732 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20733 | bool arg2 = (bool) False ; |
d14a1e28 RD |
20734 | bool result; |
20735 | PyObject * obj0 = 0 ; | |
20736 | PyObject * obj1 = 0 ; | |
20737 | char *kwnames[] = { | |
20738 | (char *) "self",(char *) "force", NULL | |
20739 | }; | |
20740 | ||
20741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
20742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20743 | if (obj1) { | |
83448d71 | 20744 | { |
8edf1c75 | 20745 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
20746 | if (PyErr_Occurred()) SWIG_fail; |
20747 | } | |
d14a1e28 RD |
20748 | } |
20749 | { | |
20750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20751 | result = (bool)(arg1)->Close(arg2); | |
20752 | ||
20753 | wxPyEndAllowThreads(__tstate); | |
20754 | if (PyErr_Occurred()) SWIG_fail; | |
20755 | } | |
4e760a36 | 20756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20757 | return resultobj; |
20758 | fail: | |
20759 | return NULL; | |
20760 | } | |
20761 | ||
20762 | ||
20763 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20764 | PyObject *resultobj; | |
20765 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20766 | bool result; | |
20767 | PyObject * obj0 = 0 ; | |
20768 | char *kwnames[] = { | |
20769 | (char *) "self", NULL | |
20770 | }; | |
20771 | ||
20772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
20773 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20774 | { | |
20775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20776 | result = (bool)(arg1)->Destroy(); | |
20777 | ||
20778 | wxPyEndAllowThreads(__tstate); | |
20779 | if (PyErr_Occurred()) SWIG_fail; | |
20780 | } | |
4e760a36 | 20781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20782 | return resultobj; |
20783 | fail: | |
20784 | return NULL; | |
20785 | } | |
20786 | ||
20787 | ||
20788 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20789 | PyObject *resultobj; | |
20790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20791 | bool result; | |
20792 | PyObject * obj0 = 0 ; | |
20793 | char *kwnames[] = { | |
20794 | (char *) "self", NULL | |
20795 | }; | |
20796 | ||
20797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
20798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20799 | { | |
20800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20801 | result = (bool)(arg1)->DestroyChildren(); | |
20802 | ||
20803 | wxPyEndAllowThreads(__tstate); | |
20804 | if (PyErr_Occurred()) SWIG_fail; | |
20805 | } | |
4e760a36 | 20806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20807 | return resultobj; |
20808 | fail: | |
20809 | return NULL; | |
20810 | } | |
20811 | ||
20812 | ||
20813 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20814 | PyObject *resultobj; | |
20815 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20816 | bool result; | |
20817 | PyObject * obj0 = 0 ; | |
20818 | char *kwnames[] = { | |
20819 | (char *) "self", NULL | |
20820 | }; | |
20821 | ||
20822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
20823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20824 | { | |
20825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20826 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
20827 | ||
20828 | wxPyEndAllowThreads(__tstate); | |
20829 | if (PyErr_Occurred()) SWIG_fail; | |
20830 | } | |
4e760a36 | 20831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20832 | return resultobj; |
20833 | fail: | |
20834 | return NULL; | |
20835 | } | |
20836 | ||
20837 | ||
20838 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20839 | PyObject *resultobj; | |
20840 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20841 | wxString *arg2 = 0 ; | |
423f194a | 20842 | bool temp2 = False ; |
d14a1e28 RD |
20843 | PyObject * obj0 = 0 ; |
20844 | PyObject * obj1 = 0 ; | |
20845 | char *kwnames[] = { | |
20846 | (char *) "self",(char *) "title", NULL | |
20847 | }; | |
20848 | ||
20849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
20850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20851 | { | |
20852 | arg2 = wxString_in_helper(obj1); | |
20853 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20854 | temp2 = True; |
d14a1e28 RD |
20855 | } |
20856 | { | |
20857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20858 | (arg1)->SetTitle((wxString const &)*arg2); | |
20859 | ||
20860 | wxPyEndAllowThreads(__tstate); | |
20861 | if (PyErr_Occurred()) SWIG_fail; | |
20862 | } | |
20863 | Py_INCREF(Py_None); resultobj = Py_None; | |
20864 | { | |
20865 | if (temp2) | |
20866 | delete arg2; | |
20867 | } | |
20868 | return resultobj; | |
20869 | fail: | |
20870 | { | |
20871 | if (temp2) | |
20872 | delete arg2; | |
20873 | } | |
20874 | return NULL; | |
20875 | } | |
20876 | ||
20877 | ||
20878 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20879 | PyObject *resultobj; | |
20880 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20881 | wxString result; | |
20882 | PyObject * obj0 = 0 ; | |
20883 | char *kwnames[] = { | |
20884 | (char *) "self", NULL | |
20885 | }; | |
20886 | ||
20887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
20888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20889 | { | |
20890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20891 | result = ((wxWindow const *)arg1)->GetTitle(); | |
20892 | ||
20893 | wxPyEndAllowThreads(__tstate); | |
20894 | if (PyErr_Occurred()) SWIG_fail; | |
20895 | } | |
20896 | { | |
20897 | #if wxUSE_UNICODE | |
20898 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20899 | #else | |
20900 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20901 | #endif | |
20902 | } | |
20903 | return resultobj; | |
20904 | fail: | |
20905 | return NULL; | |
20906 | } | |
20907 | ||
20908 | ||
20909 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20910 | PyObject *resultobj; | |
20911 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20912 | wxString *arg2 = 0 ; | |
423f194a | 20913 | bool temp2 = False ; |
d14a1e28 RD |
20914 | PyObject * obj0 = 0 ; |
20915 | PyObject * obj1 = 0 ; | |
20916 | char *kwnames[] = { | |
20917 | (char *) "self",(char *) "label", NULL | |
20918 | }; | |
20919 | ||
20920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
20921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20922 | { | |
20923 | arg2 = wxString_in_helper(obj1); | |
20924 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20925 | temp2 = True; |
d14a1e28 RD |
20926 | } |
20927 | { | |
20928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20929 | (arg1)->SetLabel((wxString const &)*arg2); | |
20930 | ||
20931 | wxPyEndAllowThreads(__tstate); | |
20932 | if (PyErr_Occurred()) SWIG_fail; | |
20933 | } | |
20934 | Py_INCREF(Py_None); resultobj = Py_None; | |
20935 | { | |
20936 | if (temp2) | |
20937 | delete arg2; | |
20938 | } | |
20939 | return resultobj; | |
20940 | fail: | |
20941 | { | |
20942 | if (temp2) | |
20943 | delete arg2; | |
20944 | } | |
20945 | return NULL; | |
20946 | } | |
20947 | ||
20948 | ||
20949 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20950 | PyObject *resultobj; | |
20951 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20952 | wxString result; | |
20953 | PyObject * obj0 = 0 ; | |
20954 | char *kwnames[] = { | |
20955 | (char *) "self", NULL | |
20956 | }; | |
20957 | ||
20958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
20959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20960 | { | |
20961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20962 | result = ((wxWindow const *)arg1)->GetLabel(); | |
20963 | ||
20964 | wxPyEndAllowThreads(__tstate); | |
20965 | if (PyErr_Occurred()) SWIG_fail; | |
20966 | } | |
20967 | { | |
20968 | #if wxUSE_UNICODE | |
20969 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20970 | #else | |
20971 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20972 | #endif | |
20973 | } | |
20974 | return resultobj; | |
20975 | fail: | |
20976 | return NULL; | |
20977 | } | |
20978 | ||
20979 | ||
20980 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20981 | PyObject *resultobj; | |
20982 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20983 | wxString *arg2 = 0 ; | |
423f194a | 20984 | bool temp2 = False ; |
d14a1e28 RD |
20985 | PyObject * obj0 = 0 ; |
20986 | PyObject * obj1 = 0 ; | |
20987 | char *kwnames[] = { | |
20988 | (char *) "self",(char *) "name", NULL | |
20989 | }; | |
20990 | ||
20991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
20992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20993 | { | |
20994 | arg2 = wxString_in_helper(obj1); | |
20995 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20996 | temp2 = True; |
d14a1e28 RD |
20997 | } |
20998 | { | |
20999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21000 | (arg1)->SetName((wxString const &)*arg2); | |
21001 | ||
21002 | wxPyEndAllowThreads(__tstate); | |
21003 | if (PyErr_Occurred()) SWIG_fail; | |
21004 | } | |
21005 | Py_INCREF(Py_None); resultobj = Py_None; | |
21006 | { | |
21007 | if (temp2) | |
21008 | delete arg2; | |
21009 | } | |
21010 | return resultobj; | |
21011 | fail: | |
21012 | { | |
21013 | if (temp2) | |
21014 | delete arg2; | |
21015 | } | |
21016 | return NULL; | |
21017 | } | |
21018 | ||
21019 | ||
21020 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21021 | PyObject *resultobj; | |
21022 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21023 | wxString result; | |
21024 | PyObject * obj0 = 0 ; | |
21025 | char *kwnames[] = { | |
21026 | (char *) "self", NULL | |
21027 | }; | |
21028 | ||
21029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
21030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21031 | { | |
21032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21033 | result = ((wxWindow const *)arg1)->GetName(); | |
21034 | ||
21035 | wxPyEndAllowThreads(__tstate); | |
21036 | if (PyErr_Occurred()) SWIG_fail; | |
21037 | } | |
21038 | { | |
21039 | #if wxUSE_UNICODE | |
21040 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21041 | #else | |
21042 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21043 | #endif | |
21044 | } | |
21045 | return resultobj; | |
21046 | fail: | |
21047 | return NULL; | |
21048 | } | |
21049 | ||
21050 | ||
21051 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21052 | PyObject *resultobj; | |
21053 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21054 | int arg2 ; |
d14a1e28 | 21055 | PyObject * obj0 = 0 ; |
8edf1c75 | 21056 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21057 | char *kwnames[] = { |
21058 | (char *) "self",(char *) "winid", NULL | |
21059 | }; | |
21060 | ||
8edf1c75 | 21061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21063 | { |
21064 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21065 | if (PyErr_Occurred()) SWIG_fail; | |
21066 | } | |
d14a1e28 RD |
21067 | { |
21068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21069 | (arg1)->SetId(arg2); | |
21070 | ||
21071 | wxPyEndAllowThreads(__tstate); | |
21072 | if (PyErr_Occurred()) SWIG_fail; | |
21073 | } | |
21074 | Py_INCREF(Py_None); resultobj = Py_None; | |
21075 | return resultobj; | |
21076 | fail: | |
21077 | return NULL; | |
21078 | } | |
21079 | ||
21080 | ||
21081 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21082 | PyObject *resultobj; | |
21083 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21084 | int result; |
d14a1e28 RD |
21085 | PyObject * obj0 = 0 ; |
21086 | char *kwnames[] = { | |
21087 | (char *) "self", NULL | |
21088 | }; | |
21089 | ||
21090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
21091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21092 | { | |
21093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21094 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
21095 | |
21096 | wxPyEndAllowThreads(__tstate); | |
21097 | if (PyErr_Occurred()) SWIG_fail; | |
21098 | } | |
8edf1c75 | 21099 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21100 | return resultobj; |
21101 | fail: | |
21102 | return NULL; | |
21103 | } | |
21104 | ||
21105 | ||
21106 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21107 | PyObject *resultobj; | |
21108 | int result; | |
21109 | char *kwnames[] = { | |
21110 | NULL | |
21111 | }; | |
21112 | ||
21113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
21114 | { | |
21115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21116 | result = (int)wxWindow::NewControlId(); | |
21117 | ||
21118 | wxPyEndAllowThreads(__tstate); | |
21119 | if (PyErr_Occurred()) SWIG_fail; | |
21120 | } | |
8edf1c75 | 21121 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21122 | return resultobj; |
21123 | fail: | |
21124 | return NULL; | |
21125 | } | |
21126 | ||
21127 | ||
21128 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21129 | PyObject *resultobj; | |
21130 | int arg1 ; | |
21131 | int result; | |
8edf1c75 | 21132 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21133 | char *kwnames[] = { |
21134 | (char *) "winid", NULL | |
21135 | }; | |
21136 | ||
8edf1c75 RD |
21137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; |
21138 | { | |
21139 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
21140 | if (PyErr_Occurred()) SWIG_fail; | |
21141 | } | |
d14a1e28 RD |
21142 | { |
21143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21144 | result = (int)wxWindow::NextControlId(arg1); | |
21145 | ||
21146 | wxPyEndAllowThreads(__tstate); | |
21147 | if (PyErr_Occurred()) SWIG_fail; | |
21148 | } | |
8edf1c75 | 21149 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21150 | return resultobj; |
21151 | fail: | |
21152 | return NULL; | |
21153 | } | |
21154 | ||
21155 | ||
21156 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21157 | PyObject *resultobj; | |
21158 | int arg1 ; | |
21159 | int result; | |
8edf1c75 | 21160 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21161 | char *kwnames[] = { |
21162 | (char *) "winid", NULL | |
21163 | }; | |
21164 | ||
8edf1c75 RD |
21165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; |
21166 | { | |
21167 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
21168 | if (PyErr_Occurred()) SWIG_fail; | |
21169 | } | |
d14a1e28 RD |
21170 | { |
21171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21172 | result = (int)wxWindow::PrevControlId(arg1); | |
21173 | ||
21174 | wxPyEndAllowThreads(__tstate); | |
21175 | if (PyErr_Occurred()) SWIG_fail; | |
21176 | } | |
8edf1c75 | 21177 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21178 | return resultobj; |
21179 | fail: | |
21180 | return NULL; | |
21181 | } | |
21182 | ||
21183 | ||
21184 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21185 | PyObject *resultobj; | |
21186 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21187 | wxSize *arg2 = 0 ; | |
21188 | wxSize temp2 ; | |
21189 | PyObject * obj0 = 0 ; | |
21190 | PyObject * obj1 = 0 ; | |
21191 | char *kwnames[] = { | |
21192 | (char *) "self",(char *) "size", NULL | |
21193 | }; | |
21194 | ||
21195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
21196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21197 | { | |
21198 | arg2 = &temp2; | |
21199 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21200 | } | |
21201 | { | |
21202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21203 | (arg1)->SetSize((wxSize const &)*arg2); | |
21204 | ||
21205 | wxPyEndAllowThreads(__tstate); | |
21206 | if (PyErr_Occurred()) SWIG_fail; | |
21207 | } | |
21208 | Py_INCREF(Py_None); resultobj = Py_None; | |
21209 | return resultobj; | |
21210 | fail: | |
21211 | return NULL; | |
21212 | } | |
21213 | ||
21214 | ||
21215 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21216 | PyObject *resultobj; | |
21217 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21218 | int arg2 ; | |
21219 | int arg3 ; | |
21220 | int arg4 ; | |
21221 | int arg5 ; | |
21222 | int arg6 = (int) wxSIZE_AUTO ; | |
21223 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21224 | PyObject * obj1 = 0 ; |
21225 | PyObject * obj2 = 0 ; | |
21226 | PyObject * obj3 = 0 ; | |
21227 | PyObject * obj4 = 0 ; | |
21228 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
21229 | char *kwnames[] = { |
21230 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21231 | }; | |
21232 | ||
8edf1c75 | 21233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 21234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21235 | { |
21236 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21237 | if (PyErr_Occurred()) SWIG_fail; | |
21238 | } | |
21239 | { | |
21240 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21241 | if (PyErr_Occurred()) SWIG_fail; | |
21242 | } | |
21243 | { | |
21244 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21245 | if (PyErr_Occurred()) SWIG_fail; | |
21246 | } | |
21247 | { | |
21248 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
21249 | if (PyErr_Occurred()) SWIG_fail; | |
21250 | } | |
21251 | if (obj5) { | |
21252 | { | |
21253 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
21254 | if (PyErr_Occurred()) SWIG_fail; | |
21255 | } | |
21256 | } | |
d14a1e28 RD |
21257 | { |
21258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21259 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
21260 | ||
21261 | wxPyEndAllowThreads(__tstate); | |
21262 | if (PyErr_Occurred()) SWIG_fail; | |
21263 | } | |
21264 | Py_INCREF(Py_None); resultobj = Py_None; | |
21265 | return resultobj; | |
21266 | fail: | |
21267 | return NULL; | |
21268 | } | |
21269 | ||
21270 | ||
21271 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21272 | PyObject *resultobj; | |
21273 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21274 | wxRect *arg2 = 0 ; | |
21275 | int arg3 = (int) wxSIZE_AUTO ; | |
21276 | wxRect temp2 ; | |
21277 | PyObject * obj0 = 0 ; | |
21278 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21279 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21280 | char *kwnames[] = { |
21281 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
21282 | }; | |
21283 | ||
8edf1c75 | 21284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
21285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21286 | { | |
21287 | arg2 = &temp2; | |
21288 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
21289 | } | |
8edf1c75 RD |
21290 | if (obj2) { |
21291 | { | |
21292 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21293 | if (PyErr_Occurred()) SWIG_fail; | |
21294 | } | |
21295 | } | |
d14a1e28 RD |
21296 | { |
21297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21298 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
21299 | ||
21300 | wxPyEndAllowThreads(__tstate); | |
21301 | if (PyErr_Occurred()) SWIG_fail; | |
21302 | } | |
21303 | Py_INCREF(Py_None); resultobj = Py_None; | |
21304 | return resultobj; | |
21305 | fail: | |
21306 | return NULL; | |
21307 | } | |
21308 | ||
21309 | ||
21310 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21311 | PyObject *resultobj; | |
21312 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21313 | int arg2 ; | |
21314 | int arg3 ; | |
21315 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21316 | PyObject * obj1 = 0 ; |
21317 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21318 | char *kwnames[] = { |
21319 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21320 | }; | |
21321 | ||
8edf1c75 | 21322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21324 | { |
21325 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21326 | if (PyErr_Occurred()) SWIG_fail; | |
21327 | } | |
21328 | { | |
21329 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21330 | if (PyErr_Occurred()) SWIG_fail; | |
21331 | } | |
d14a1e28 RD |
21332 | { |
21333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21334 | (arg1)->SetSize(arg2,arg3); | |
21335 | ||
21336 | wxPyEndAllowThreads(__tstate); | |
21337 | if (PyErr_Occurred()) SWIG_fail; | |
21338 | } | |
21339 | Py_INCREF(Py_None); resultobj = Py_None; | |
21340 | return resultobj; | |
21341 | fail: | |
21342 | return NULL; | |
21343 | } | |
21344 | ||
21345 | ||
21346 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21347 | PyObject *resultobj; | |
21348 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21349 | wxPoint *arg2 = 0 ; | |
21350 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
21351 | wxPoint temp2 ; | |
21352 | PyObject * obj0 = 0 ; | |
21353 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21354 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21355 | char *kwnames[] = { |
21356 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
21357 | }; | |
21358 | ||
8edf1c75 | 21359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
21360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21361 | { | |
21362 | arg2 = &temp2; | |
21363 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21364 | } | |
8edf1c75 RD |
21365 | if (obj2) { |
21366 | { | |
21367 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21368 | if (PyErr_Occurred()) SWIG_fail; | |
21369 | } | |
21370 | } | |
d14a1e28 RD |
21371 | { |
21372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21373 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
21374 | ||
21375 | wxPyEndAllowThreads(__tstate); | |
21376 | if (PyErr_Occurred()) SWIG_fail; | |
21377 | } | |
21378 | Py_INCREF(Py_None); resultobj = Py_None; | |
21379 | return resultobj; | |
21380 | fail: | |
21381 | return NULL; | |
21382 | } | |
21383 | ||
21384 | ||
21385 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21386 | PyObject *resultobj; | |
21387 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21388 | int arg2 ; | |
21389 | int arg3 ; | |
21390 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
21391 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21392 | PyObject * obj1 = 0 ; |
21393 | PyObject * obj2 = 0 ; | |
21394 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21395 | char *kwnames[] = { |
21396 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
21397 | }; | |
21398 | ||
8edf1c75 | 21399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21401 | { |
21402 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21403 | if (PyErr_Occurred()) SWIG_fail; | |
21404 | } | |
21405 | { | |
21406 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21407 | if (PyErr_Occurred()) SWIG_fail; | |
21408 | } | |
21409 | if (obj3) { | |
21410 | { | |
21411 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21412 | if (PyErr_Occurred()) SWIG_fail; | |
21413 | } | |
21414 | } | |
d14a1e28 RD |
21415 | { |
21416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21417 | (arg1)->Move(arg2,arg3,arg4); | |
21418 | ||
21419 | wxPyEndAllowThreads(__tstate); | |
21420 | if (PyErr_Occurred()) SWIG_fail; | |
21421 | } | |
21422 | Py_INCREF(Py_None); resultobj = Py_None; | |
21423 | return resultobj; | |
21424 | fail: | |
21425 | return NULL; | |
21426 | } | |
21427 | ||
21428 | ||
21429 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21430 | PyObject *resultobj; | |
21431 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21432 | PyObject * obj0 = 0 ; | |
21433 | char *kwnames[] = { | |
21434 | (char *) "self", NULL | |
21435 | }; | |
21436 | ||
21437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
21438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21439 | { | |
21440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21441 | (arg1)->Raise(); | |
21442 | ||
21443 | wxPyEndAllowThreads(__tstate); | |
21444 | if (PyErr_Occurred()) SWIG_fail; | |
21445 | } | |
21446 | Py_INCREF(Py_None); resultobj = Py_None; | |
21447 | return resultobj; | |
21448 | fail: | |
21449 | return NULL; | |
21450 | } | |
21451 | ||
21452 | ||
21453 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21454 | PyObject *resultobj; | |
21455 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21456 | PyObject * obj0 = 0 ; | |
21457 | char *kwnames[] = { | |
21458 | (char *) "self", NULL | |
21459 | }; | |
21460 | ||
21461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
21462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21463 | { | |
21464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21465 | (arg1)->Lower(); | |
21466 | ||
21467 | wxPyEndAllowThreads(__tstate); | |
21468 | if (PyErr_Occurred()) SWIG_fail; | |
21469 | } | |
21470 | Py_INCREF(Py_None); resultobj = Py_None; | |
21471 | return resultobj; | |
21472 | fail: | |
21473 | return NULL; | |
21474 | } | |
21475 | ||
21476 | ||
21477 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21478 | PyObject *resultobj; | |
21479 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21480 | wxSize *arg2 = 0 ; | |
21481 | wxSize temp2 ; | |
21482 | PyObject * obj0 = 0 ; | |
21483 | PyObject * obj1 = 0 ; | |
21484 | char *kwnames[] = { | |
21485 | (char *) "self",(char *) "size", NULL | |
21486 | }; | |
21487 | ||
21488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
21489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21490 | { | |
21491 | arg2 = &temp2; | |
21492 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21493 | } | |
21494 | { | |
21495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21496 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
21497 | ||
21498 | wxPyEndAllowThreads(__tstate); | |
21499 | if (PyErr_Occurred()) SWIG_fail; | |
21500 | } | |
21501 | Py_INCREF(Py_None); resultobj = Py_None; | |
21502 | return resultobj; | |
21503 | fail: | |
21504 | return NULL; | |
21505 | } | |
21506 | ||
21507 | ||
21508 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21509 | PyObject *resultobj; | |
21510 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21511 | int arg2 ; | |
21512 | int arg3 ; | |
21513 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21514 | PyObject * obj1 = 0 ; |
21515 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21516 | char *kwnames[] = { |
21517 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21518 | }; | |
21519 | ||
8edf1c75 | 21520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21522 | { |
21523 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21524 | if (PyErr_Occurred()) SWIG_fail; | |
21525 | } | |
21526 | { | |
21527 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21528 | if (PyErr_Occurred()) SWIG_fail; | |
21529 | } | |
d14a1e28 RD |
21530 | { |
21531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21532 | (arg1)->SetClientSize(arg2,arg3); | |
21533 | ||
21534 | wxPyEndAllowThreads(__tstate); | |
21535 | if (PyErr_Occurred()) SWIG_fail; | |
21536 | } | |
21537 | Py_INCREF(Py_None); resultobj = Py_None; | |
21538 | return resultobj; | |
21539 | fail: | |
21540 | return NULL; | |
21541 | } | |
21542 | ||
21543 | ||
21544 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21545 | PyObject *resultobj; | |
21546 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21547 | wxRect *arg2 = 0 ; | |
21548 | wxRect temp2 ; | |
21549 | PyObject * obj0 = 0 ; | |
21550 | PyObject * obj1 = 0 ; | |
21551 | char *kwnames[] = { | |
21552 | (char *) "self",(char *) "rect", NULL | |
21553 | }; | |
21554 | ||
21555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
21556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21557 | { | |
21558 | arg2 = &temp2; | |
21559 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
21560 | } | |
21561 | { | |
21562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21563 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
21564 | ||
21565 | wxPyEndAllowThreads(__tstate); | |
21566 | if (PyErr_Occurred()) SWIG_fail; | |
21567 | } | |
21568 | Py_INCREF(Py_None); resultobj = Py_None; | |
21569 | return resultobj; | |
21570 | fail: | |
21571 | return NULL; | |
21572 | } | |
21573 | ||
21574 | ||
21575 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21576 | PyObject *resultobj; | |
21577 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21578 | wxPoint result; | |
21579 | PyObject * obj0 = 0 ; | |
21580 | char *kwnames[] = { | |
21581 | (char *) "self", NULL | |
21582 | }; | |
21583 | ||
21584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
21585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21586 | { | |
21587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21588 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
21589 | |
21590 | wxPyEndAllowThreads(__tstate); | |
21591 | if (PyErr_Occurred()) SWIG_fail; | |
21592 | } | |
21593 | { | |
21594 | wxPoint * resultptr; | |
21595 | resultptr = new wxPoint((wxPoint &) result); | |
21596 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
21597 | } | |
21598 | return resultobj; | |
21599 | fail: | |
21600 | return NULL; | |
21601 | } | |
21602 | ||
21603 | ||
21604 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21605 | PyObject *resultobj; | |
21606 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21607 | int *arg2 = (int *) 0 ; | |
21608 | int *arg3 = (int *) 0 ; | |
21609 | int temp2 ; | |
21610 | int temp3 ; | |
21611 | PyObject * obj0 = 0 ; | |
21612 | char *kwnames[] = { | |
21613 | (char *) "self", NULL | |
21614 | }; | |
21615 | ||
21616 | arg2 = &temp2; | |
21617 | arg3 = &temp3; | |
21618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
21619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21620 | { | |
21621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21622 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
21623 | |
21624 | wxPyEndAllowThreads(__tstate); | |
21625 | if (PyErr_Occurred()) SWIG_fail; | |
21626 | } | |
21627 | Py_INCREF(Py_None); resultobj = Py_None; | |
21628 | { | |
21629 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21630 | resultobj = t_output_helper(resultobj,o); | |
21631 | } | |
21632 | { | |
21633 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21634 | resultobj = t_output_helper(resultobj,o); | |
21635 | } | |
21636 | return resultobj; | |
21637 | fail: | |
21638 | return NULL; | |
21639 | } | |
21640 | ||
21641 | ||
21642 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21643 | PyObject *resultobj; | |
21644 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21645 | wxSize result; | |
21646 | PyObject * obj0 = 0 ; | |
21647 | char *kwnames[] = { | |
21648 | (char *) "self", NULL | |
21649 | }; | |
21650 | ||
21651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
21652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21653 | { | |
21654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21655 | result = ((wxWindow const *)arg1)->GetSize(); | |
21656 | ||
21657 | wxPyEndAllowThreads(__tstate); | |
21658 | if (PyErr_Occurred()) SWIG_fail; | |
21659 | } | |
21660 | { | |
21661 | wxSize * resultptr; | |
21662 | resultptr = new wxSize((wxSize &) result); | |
21663 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21664 | } | |
21665 | return resultobj; | |
21666 | fail: | |
21667 | return NULL; | |
21668 | } | |
21669 | ||
21670 | ||
21671 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21672 | PyObject *resultobj; | |
21673 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21674 | int *arg2 = (int *) 0 ; | |
21675 | int *arg3 = (int *) 0 ; | |
21676 | int temp2 ; | |
21677 | int temp3 ; | |
21678 | PyObject * obj0 = 0 ; | |
21679 | char *kwnames[] = { | |
21680 | (char *) "self", NULL | |
21681 | }; | |
21682 | ||
21683 | arg2 = &temp2; | |
21684 | arg3 = &temp3; | |
21685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
21686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21687 | { | |
21688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21689 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
21690 | ||
21691 | wxPyEndAllowThreads(__tstate); | |
21692 | if (PyErr_Occurred()) SWIG_fail; | |
21693 | } | |
21694 | Py_INCREF(Py_None); resultobj = Py_None; | |
21695 | { | |
21696 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21697 | resultobj = t_output_helper(resultobj,o); | |
21698 | } | |
21699 | { | |
21700 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21701 | resultobj = t_output_helper(resultobj,o); | |
21702 | } | |
21703 | return resultobj; | |
21704 | fail: | |
21705 | return NULL; | |
21706 | } | |
21707 | ||
21708 | ||
21709 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21710 | PyObject *resultobj; | |
21711 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21712 | wxRect result; | |
21713 | PyObject * obj0 = 0 ; | |
21714 | char *kwnames[] = { | |
21715 | (char *) "self", NULL | |
21716 | }; | |
21717 | ||
21718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
21719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21720 | { | |
21721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21722 | result = ((wxWindow const *)arg1)->GetRect(); | |
21723 | ||
21724 | wxPyEndAllowThreads(__tstate); | |
21725 | if (PyErr_Occurred()) SWIG_fail; | |
21726 | } | |
21727 | { | |
21728 | wxRect * resultptr; | |
21729 | resultptr = new wxRect((wxRect &) result); | |
21730 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
21731 | } | |
21732 | return resultobj; | |
21733 | fail: | |
21734 | return NULL; | |
21735 | } | |
21736 | ||
21737 | ||
21738 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21739 | PyObject *resultobj; | |
21740 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21741 | wxSize result; | |
21742 | PyObject * obj0 = 0 ; | |
21743 | char *kwnames[] = { | |
21744 | (char *) "self", NULL | |
21745 | }; | |
21746 | ||
21747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
21748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21749 | { | |
21750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21751 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
21752 | ||
21753 | wxPyEndAllowThreads(__tstate); | |
21754 | if (PyErr_Occurred()) SWIG_fail; | |
21755 | } | |
21756 | { | |
21757 | wxSize * resultptr; | |
21758 | resultptr = new wxSize((wxSize &) result); | |
21759 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21760 | } | |
21761 | return resultobj; | |
21762 | fail: | |
21763 | return NULL; | |
21764 | } | |
21765 | ||
21766 | ||
21767 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21768 | PyObject *resultobj; | |
21769 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21770 | int *arg2 = (int *) 0 ; | |
21771 | int *arg3 = (int *) 0 ; | |
21772 | int temp2 ; | |
21773 | int temp3 ; | |
21774 | PyObject * obj0 = 0 ; | |
21775 | char *kwnames[] = { | |
21776 | (char *) "self", NULL | |
21777 | }; | |
21778 | ||
21779 | arg2 = &temp2; | |
21780 | arg3 = &temp3; | |
21781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
21782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21783 | { | |
21784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21785 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
21786 | ||
21787 | wxPyEndAllowThreads(__tstate); | |
21788 | if (PyErr_Occurred()) SWIG_fail; | |
21789 | } | |
21790 | Py_INCREF(Py_None); resultobj = Py_None; | |
21791 | { | |
21792 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21793 | resultobj = t_output_helper(resultobj,o); | |
21794 | } | |
21795 | { | |
21796 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21797 | resultobj = t_output_helper(resultobj,o); | |
21798 | } | |
21799 | return resultobj; | |
21800 | fail: | |
21801 | return NULL; | |
21802 | } | |
21803 | ||
21804 | ||
21805 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21806 | PyObject *resultobj; | |
21807 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21808 | wxPoint result; | |
21809 | PyObject * obj0 = 0 ; | |
21810 | char *kwnames[] = { | |
21811 | (char *) "self", NULL | |
21812 | }; | |
21813 | ||
21814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
21815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21816 | { | |
21817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21818 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
21819 | ||
21820 | wxPyEndAllowThreads(__tstate); | |
21821 | if (PyErr_Occurred()) SWIG_fail; | |
21822 | } | |
21823 | { | |
21824 | wxPoint * resultptr; | |
21825 | resultptr = new wxPoint((wxPoint &) result); | |
21826 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
21827 | } | |
21828 | return resultobj; | |
21829 | fail: | |
21830 | return NULL; | |
21831 | } | |
21832 | ||
21833 | ||
21834 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21835 | PyObject *resultobj; | |
21836 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21837 | wxRect result; | |
21838 | PyObject * obj0 = 0 ; | |
21839 | char *kwnames[] = { | |
21840 | (char *) "self", NULL | |
21841 | }; | |
21842 | ||
21843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
21844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21845 | { | |
21846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21847 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
21848 | ||
21849 | wxPyEndAllowThreads(__tstate); | |
21850 | if (PyErr_Occurred()) SWIG_fail; | |
21851 | } | |
21852 | { | |
21853 | wxRect * resultptr; | |
21854 | resultptr = new wxRect((wxRect &) result); | |
21855 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
21856 | } | |
21857 | return resultobj; | |
21858 | fail: | |
21859 | return NULL; | |
21860 | } | |
21861 | ||
21862 | ||
21863 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21864 | PyObject *resultobj; | |
21865 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21866 | wxSize result; | |
21867 | PyObject * obj0 = 0 ; | |
21868 | char *kwnames[] = { | |
21869 | (char *) "self", NULL | |
21870 | }; | |
21871 | ||
21872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
21873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21874 | { | |
21875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21876 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
21877 | ||
21878 | wxPyEndAllowThreads(__tstate); | |
21879 | if (PyErr_Occurred()) SWIG_fail; | |
21880 | } | |
21881 | { | |
21882 | wxSize * resultptr; | |
21883 | resultptr = new wxSize((wxSize &) result); | |
21884 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21885 | } | |
21886 | return resultobj; | |
21887 | fail: | |
21888 | return NULL; | |
21889 | } | |
21890 | ||
21891 | ||
21892 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21893 | PyObject *resultobj; | |
21894 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21895 | int *arg2 = (int *) 0 ; | |
21896 | int *arg3 = (int *) 0 ; | |
21897 | int temp2 ; | |
21898 | int temp3 ; | |
21899 | PyObject * obj0 = 0 ; | |
21900 | char *kwnames[] = { | |
21901 | (char *) "self", NULL | |
21902 | }; | |
21903 | ||
21904 | arg2 = &temp2; | |
21905 | arg3 = &temp3; | |
21906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
21907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21908 | { | |
21909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21910 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
21911 | ||
21912 | wxPyEndAllowThreads(__tstate); | |
21913 | if (PyErr_Occurred()) SWIG_fail; | |
21914 | } | |
21915 | Py_INCREF(Py_None); resultobj = Py_None; | |
21916 | { | |
21917 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21918 | resultobj = t_output_helper(resultobj,o); | |
21919 | } | |
21920 | { | |
21921 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21922 | resultobj = t_output_helper(resultobj,o); | |
21923 | } | |
21924 | return resultobj; | |
21925 | fail: | |
21926 | return NULL; | |
21927 | } | |
21928 | ||
21929 | ||
21930 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21931 | PyObject *resultobj; | |
21932 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21933 | wxSize result; | |
21934 | PyObject * obj0 = 0 ; | |
21935 | char *kwnames[] = { | |
21936 | (char *) "self", NULL | |
21937 | }; | |
21938 | ||
21939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
21940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21941 | { | |
21942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21943 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
21944 | ||
21945 | wxPyEndAllowThreads(__tstate); | |
21946 | if (PyErr_Occurred()) SWIG_fail; | |
21947 | } | |
21948 | { | |
21949 | wxSize * resultptr; | |
21950 | resultptr = new wxSize((wxSize &) result); | |
21951 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21952 | } | |
21953 | return resultobj; | |
21954 | fail: | |
21955 | return NULL; | |
21956 | } | |
21957 | ||
21958 | ||
21959 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21960 | PyObject *resultobj; | |
21961 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21962 | int arg2 = (int) wxBOTH ; | |
21963 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21964 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21965 | char *kwnames[] = { |
21966 | (char *) "self",(char *) "direction", NULL | |
21967 | }; | |
21968 | ||
8edf1c75 | 21969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21971 | if (obj1) { |
21972 | { | |
21973 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21974 | if (PyErr_Occurred()) SWIG_fail; | |
21975 | } | |
21976 | } | |
d14a1e28 RD |
21977 | { |
21978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21979 | (arg1)->Center(arg2); | |
21980 | ||
21981 | wxPyEndAllowThreads(__tstate); | |
21982 | if (PyErr_Occurred()) SWIG_fail; | |
21983 | } | |
21984 | Py_INCREF(Py_None); resultobj = Py_None; | |
21985 | return resultobj; | |
21986 | fail: | |
21987 | return NULL; | |
21988 | } | |
21989 | ||
21990 | ||
21991 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21992 | PyObject *resultobj; | |
21993 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21994 | int arg2 = (int) wxBOTH ; | |
21995 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21996 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21997 | char *kwnames[] = { |
21998 | (char *) "self",(char *) "dir", NULL | |
21999 | }; | |
22000 | ||
8edf1c75 | 22001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22003 | if (obj1) { |
22004 | { | |
22005 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22006 | if (PyErr_Occurred()) SWIG_fail; | |
22007 | } | |
22008 | } | |
d14a1e28 RD |
22009 | { |
22010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22011 | (arg1)->CenterOnScreen(arg2); | |
22012 | ||
22013 | wxPyEndAllowThreads(__tstate); | |
22014 | if (PyErr_Occurred()) SWIG_fail; | |
22015 | } | |
22016 | Py_INCREF(Py_None); resultobj = Py_None; | |
22017 | return resultobj; | |
22018 | fail: | |
22019 | return NULL; | |
22020 | } | |
22021 | ||
22022 | ||
22023 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22024 | PyObject *resultobj; | |
22025 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22026 | int arg2 = (int) wxBOTH ; | |
22027 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22028 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22029 | char *kwnames[] = { |
22030 | (char *) "self",(char *) "dir", NULL | |
22031 | }; | |
22032 | ||
8edf1c75 | 22033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22035 | if (obj1) { |
22036 | { | |
22037 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22038 | if (PyErr_Occurred()) SWIG_fail; | |
22039 | } | |
22040 | } | |
d14a1e28 RD |
22041 | { |
22042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22043 | (arg1)->CenterOnParent(arg2); | |
22044 | ||
22045 | wxPyEndAllowThreads(__tstate); | |
22046 | if (PyErr_Occurred()) SWIG_fail; | |
22047 | } | |
22048 | Py_INCREF(Py_None); resultobj = Py_None; | |
22049 | return resultobj; | |
22050 | fail: | |
22051 | return NULL; | |
22052 | } | |
22053 | ||
22054 | ||
22055 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22056 | PyObject *resultobj; | |
22057 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22058 | PyObject * obj0 = 0 ; | |
22059 | char *kwnames[] = { | |
22060 | (char *) "self", NULL | |
22061 | }; | |
22062 | ||
22063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
22064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22065 | { | |
22066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22067 | (arg1)->Fit(); | |
22068 | ||
22069 | wxPyEndAllowThreads(__tstate); | |
22070 | if (PyErr_Occurred()) SWIG_fail; | |
22071 | } | |
22072 | Py_INCREF(Py_None); resultobj = Py_None; | |
22073 | return resultobj; | |
22074 | fail: | |
22075 | return NULL; | |
22076 | } | |
22077 | ||
22078 | ||
22079 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22080 | PyObject *resultobj; | |
22081 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22082 | PyObject * obj0 = 0 ; | |
22083 | char *kwnames[] = { | |
22084 | (char *) "self", NULL | |
22085 | }; | |
22086 | ||
22087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
22088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22089 | { | |
22090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22091 | (arg1)->FitInside(); | |
22092 | ||
22093 | wxPyEndAllowThreads(__tstate); | |
22094 | if (PyErr_Occurred()) SWIG_fail; | |
22095 | } | |
22096 | Py_INCREF(Py_None); resultobj = Py_None; | |
22097 | return resultobj; | |
22098 | fail: | |
22099 | return NULL; | |
22100 | } | |
22101 | ||
22102 | ||
22103 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22104 | PyObject *resultobj; | |
22105 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22106 | int arg2 ; | |
22107 | int arg3 ; | |
22108 | int arg4 = (int) -1 ; | |
22109 | int arg5 = (int) -1 ; | |
22110 | int arg6 = (int) -1 ; | |
22111 | int arg7 = (int) -1 ; | |
22112 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22113 | PyObject * obj1 = 0 ; |
22114 | PyObject * obj2 = 0 ; | |
22115 | PyObject * obj3 = 0 ; | |
22116 | PyObject * obj4 = 0 ; | |
22117 | PyObject * obj5 = 0 ; | |
22118 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
22119 | char *kwnames[] = { |
22120 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
22121 | }; | |
22122 | ||
8edf1c75 | 22123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 22124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22125 | { |
22126 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22127 | if (PyErr_Occurred()) SWIG_fail; | |
22128 | } | |
22129 | { | |
22130 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22131 | if (PyErr_Occurred()) SWIG_fail; | |
22132 | } | |
22133 | if (obj3) { | |
22134 | { | |
22135 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
22136 | if (PyErr_Occurred()) SWIG_fail; | |
22137 | } | |
22138 | } | |
22139 | if (obj4) { | |
22140 | { | |
22141 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
22142 | if (PyErr_Occurred()) SWIG_fail; | |
22143 | } | |
22144 | } | |
22145 | if (obj5) { | |
22146 | { | |
22147 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
22148 | if (PyErr_Occurred()) SWIG_fail; | |
22149 | } | |
22150 | } | |
22151 | if (obj6) { | |
22152 | { | |
22153 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
22154 | if (PyErr_Occurred()) SWIG_fail; | |
22155 | } | |
22156 | } | |
d14a1e28 RD |
22157 | { |
22158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22159 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
22160 | ||
22161 | wxPyEndAllowThreads(__tstate); | |
22162 | if (PyErr_Occurred()) SWIG_fail; | |
22163 | } | |
22164 | Py_INCREF(Py_None); resultobj = Py_None; | |
22165 | return resultobj; | |
22166 | fail: | |
22167 | return NULL; | |
22168 | } | |
22169 | ||
22170 | ||
22171 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22172 | PyObject *resultobj; | |
22173 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22174 | int arg2 ; | |
22175 | int arg3 ; | |
22176 | int arg4 = (int) -1 ; | |
22177 | int arg5 = (int) -1 ; | |
22178 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22179 | PyObject * obj1 = 0 ; |
22180 | PyObject * obj2 = 0 ; | |
22181 | PyObject * obj3 = 0 ; | |
22182 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
22183 | char *kwnames[] = { |
22184 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
22185 | }; | |
22186 | ||
8edf1c75 | 22187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 22188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22189 | { |
22190 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22191 | if (PyErr_Occurred()) SWIG_fail; | |
22192 | } | |
22193 | { | |
22194 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22195 | if (PyErr_Occurred()) SWIG_fail; | |
22196 | } | |
22197 | if (obj3) { | |
22198 | { | |
22199 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
22200 | if (PyErr_Occurred()) SWIG_fail; | |
22201 | } | |
22202 | } | |
22203 | if (obj4) { | |
22204 | { | |
22205 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
22206 | if (PyErr_Occurred()) SWIG_fail; | |
22207 | } | |
22208 | } | |
d14a1e28 RD |
22209 | { |
22210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22211 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
22212 | ||
22213 | wxPyEndAllowThreads(__tstate); | |
22214 | if (PyErr_Occurred()) SWIG_fail; | |
22215 | } | |
22216 | Py_INCREF(Py_None); resultobj = Py_None; | |
22217 | return resultobj; | |
22218 | fail: | |
22219 | return NULL; | |
22220 | } | |
22221 | ||
22222 | ||
22223 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22224 | PyObject *resultobj; | |
22225 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22226 | int result; | |
22227 | PyObject * obj0 = 0 ; | |
22228 | char *kwnames[] = { | |
22229 | (char *) "self", NULL | |
22230 | }; | |
22231 | ||
22232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
22233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22234 | { | |
22235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22236 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
22237 | ||
22238 | wxPyEndAllowThreads(__tstate); | |
22239 | if (PyErr_Occurred()) SWIG_fail; | |
22240 | } | |
8edf1c75 | 22241 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22242 | return resultobj; |
22243 | fail: | |
22244 | return NULL; | |
22245 | } | |
22246 | ||
22247 | ||
22248 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22249 | PyObject *resultobj; | |
22250 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22251 | int result; | |
22252 | PyObject * obj0 = 0 ; | |
22253 | char *kwnames[] = { | |
22254 | (char *) "self", NULL | |
22255 | }; | |
22256 | ||
22257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
22258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22259 | { | |
22260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22261 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
22262 | ||
22263 | wxPyEndAllowThreads(__tstate); | |
22264 | if (PyErr_Occurred()) SWIG_fail; | |
22265 | } | |
8edf1c75 | 22266 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22267 | return resultobj; |
22268 | fail: | |
22269 | return NULL; | |
22270 | } | |
22271 | ||
22272 | ||
22273 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22274 | PyObject *resultobj; | |
22275 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22276 | int result; | |
22277 | PyObject * obj0 = 0 ; | |
22278 | char *kwnames[] = { | |
22279 | (char *) "self", NULL | |
22280 | }; | |
22281 | ||
22282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
22283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22284 | { | |
22285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22286 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
22287 | ||
22288 | wxPyEndAllowThreads(__tstate); | |
22289 | if (PyErr_Occurred()) SWIG_fail; | |
22290 | } | |
8edf1c75 | 22291 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22292 | return resultobj; |
22293 | fail: | |
22294 | return NULL; | |
22295 | } | |
22296 | ||
22297 | ||
22298 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22299 | PyObject *resultobj; | |
22300 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22301 | int result; | |
22302 | PyObject * obj0 = 0 ; | |
22303 | char *kwnames[] = { | |
22304 | (char *) "self", NULL | |
22305 | }; | |
22306 | ||
22307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
22308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22309 | { | |
22310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22311 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
22312 | ||
22313 | wxPyEndAllowThreads(__tstate); | |
22314 | if (PyErr_Occurred()) SWIG_fail; | |
22315 | } | |
8edf1c75 | 22316 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22317 | return resultobj; |
22318 | fail: | |
22319 | return NULL; | |
22320 | } | |
22321 | ||
22322 | ||
22323 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22324 | PyObject *resultobj; | |
22325 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22326 | wxSize result; | |
22327 | PyObject * obj0 = 0 ; | |
22328 | char *kwnames[] = { | |
22329 | (char *) "self", NULL | |
22330 | }; | |
22331 | ||
22332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
22333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22334 | { | |
22335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22336 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
22337 | ||
22338 | wxPyEndAllowThreads(__tstate); | |
22339 | if (PyErr_Occurred()) SWIG_fail; | |
22340 | } | |
22341 | { | |
22342 | wxSize * resultptr; | |
22343 | resultptr = new wxSize((wxSize &) result); | |
22344 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22345 | } | |
22346 | return resultobj; | |
22347 | fail: | |
22348 | return NULL; | |
22349 | } | |
22350 | ||
22351 | ||
22352 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22353 | PyObject *resultobj; | |
22354 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22355 | wxSize *arg2 = 0 ; | |
22356 | wxSize temp2 ; | |
22357 | PyObject * obj0 = 0 ; | |
22358 | PyObject * obj1 = 0 ; | |
22359 | char *kwnames[] = { | |
22360 | (char *) "self",(char *) "size", NULL | |
22361 | }; | |
22362 | ||
22363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
22364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22365 | { | |
22366 | arg2 = &temp2; | |
22367 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22368 | } | |
22369 | { | |
22370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22371 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
22372 | ||
22373 | wxPyEndAllowThreads(__tstate); | |
22374 | if (PyErr_Occurred()) SWIG_fail; | |
22375 | } | |
22376 | Py_INCREF(Py_None); resultobj = Py_None; | |
22377 | return resultobj; | |
22378 | fail: | |
22379 | return NULL; | |
22380 | } | |
22381 | ||
22382 | ||
22383 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22384 | PyObject *resultobj; | |
22385 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22386 | int arg2 ; | |
22387 | int arg3 ; | |
22388 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22389 | PyObject * obj1 = 0 ; |
22390 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22391 | char *kwnames[] = { |
22392 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22393 | }; | |
22394 | ||
8edf1c75 | 22395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22397 | { |
22398 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22399 | if (PyErr_Occurred()) SWIG_fail; | |
22400 | } | |
22401 | { | |
22402 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22403 | if (PyErr_Occurred()) SWIG_fail; | |
22404 | } | |
d14a1e28 RD |
22405 | { |
22406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22407 | (arg1)->SetVirtualSize(arg2,arg3); | |
22408 | ||
22409 | wxPyEndAllowThreads(__tstate); | |
22410 | if (PyErr_Occurred()) SWIG_fail; | |
22411 | } | |
22412 | Py_INCREF(Py_None); resultobj = Py_None; | |
22413 | return resultobj; | |
22414 | fail: | |
22415 | return NULL; | |
22416 | } | |
22417 | ||
22418 | ||
22419 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22420 | PyObject *resultobj; | |
22421 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22422 | wxSize result; | |
22423 | PyObject * obj0 = 0 ; | |
22424 | char *kwnames[] = { | |
22425 | (char *) "self", NULL | |
22426 | }; | |
22427 | ||
22428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
22429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22430 | { | |
22431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22432 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
22433 | ||
22434 | wxPyEndAllowThreads(__tstate); | |
22435 | if (PyErr_Occurred()) SWIG_fail; | |
22436 | } | |
22437 | { | |
22438 | wxSize * resultptr; | |
22439 | resultptr = new wxSize((wxSize &) result); | |
22440 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22441 | } | |
22442 | return resultobj; | |
22443 | fail: | |
22444 | return NULL; | |
22445 | } | |
22446 | ||
22447 | ||
22448 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22449 | PyObject *resultobj; | |
22450 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22451 | int *arg2 = (int *) 0 ; | |
22452 | int *arg3 = (int *) 0 ; | |
22453 | int temp2 ; | |
22454 | int temp3 ; | |
22455 | PyObject * obj0 = 0 ; | |
22456 | char *kwnames[] = { | |
22457 | (char *) "self", NULL | |
22458 | }; | |
22459 | ||
22460 | arg2 = &temp2; | |
22461 | arg3 = &temp3; | |
22462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
22463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22464 | { | |
22465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22466 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
22467 | ||
22468 | wxPyEndAllowThreads(__tstate); | |
22469 | if (PyErr_Occurred()) SWIG_fail; | |
22470 | } | |
22471 | Py_INCREF(Py_None); resultobj = Py_None; | |
22472 | { | |
22473 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22474 | resultobj = t_output_helper(resultobj,o); | |
22475 | } | |
22476 | { | |
22477 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22478 | resultobj = t_output_helper(resultobj,o); | |
22479 | } | |
22480 | return resultobj; | |
22481 | fail: | |
22482 | return NULL; | |
22483 | } | |
22484 | ||
22485 | ||
22486 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22487 | PyObject *resultobj; | |
22488 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22489 | wxSize result; | |
22490 | PyObject * obj0 = 0 ; | |
22491 | char *kwnames[] = { | |
22492 | (char *) "self", NULL | |
22493 | }; | |
22494 | ||
22495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
22496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22497 | { | |
22498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22499 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
22500 | ||
22501 | wxPyEndAllowThreads(__tstate); | |
22502 | if (PyErr_Occurred()) SWIG_fail; | |
22503 | } | |
22504 | { | |
22505 | wxSize * resultptr; | |
22506 | resultptr = new wxSize((wxSize &) result); | |
22507 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22508 | } | |
22509 | return resultobj; | |
22510 | fail: | |
22511 | return NULL; | |
22512 | } | |
22513 | ||
22514 | ||
22515 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22516 | PyObject *resultobj; | |
22517 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22518 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22519 | bool result; |
22520 | PyObject * obj0 = 0 ; | |
22521 | PyObject * obj1 = 0 ; | |
22522 | char *kwnames[] = { | |
22523 | (char *) "self",(char *) "show", NULL | |
22524 | }; | |
22525 | ||
22526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
22527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22528 | if (obj1) { | |
83448d71 | 22529 | { |
8edf1c75 | 22530 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
22531 | if (PyErr_Occurred()) SWIG_fail; |
22532 | } | |
d14a1e28 RD |
22533 | } |
22534 | { | |
22535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22536 | result = (bool)(arg1)->Show(arg2); | |
22537 | ||
22538 | wxPyEndAllowThreads(__tstate); | |
22539 | if (PyErr_Occurred()) SWIG_fail; | |
22540 | } | |
4e760a36 | 22541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22542 | return resultobj; |
22543 | fail: | |
22544 | return NULL; | |
22545 | } | |
22546 | ||
22547 | ||
22548 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22549 | PyObject *resultobj; | |
22550 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22551 | bool result; | |
22552 | PyObject * obj0 = 0 ; | |
22553 | char *kwnames[] = { | |
22554 | (char *) "self", NULL | |
22555 | }; | |
22556 | ||
22557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
22558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22559 | { | |
22560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22561 | result = (bool)(arg1)->Hide(); | |
22562 | ||
22563 | wxPyEndAllowThreads(__tstate); | |
22564 | if (PyErr_Occurred()) SWIG_fail; | |
22565 | } | |
4e760a36 | 22566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22567 | return resultobj; |
22568 | fail: | |
22569 | return NULL; | |
22570 | } | |
22571 | ||
22572 | ||
22573 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22574 | PyObject *resultobj; | |
22575 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22576 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22577 | bool result; |
22578 | PyObject * obj0 = 0 ; | |
22579 | PyObject * obj1 = 0 ; | |
22580 | char *kwnames[] = { | |
22581 | (char *) "self",(char *) "enable", NULL | |
22582 | }; | |
22583 | ||
22584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
22585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22586 | if (obj1) { | |
83448d71 | 22587 | { |
8edf1c75 | 22588 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
22589 | if (PyErr_Occurred()) SWIG_fail; |
22590 | } | |
d14a1e28 RD |
22591 | } |
22592 | { | |
22593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22594 | result = (bool)(arg1)->Enable(arg2); | |
22595 | ||
22596 | wxPyEndAllowThreads(__tstate); | |
22597 | if (PyErr_Occurred()) SWIG_fail; | |
22598 | } | |
4e760a36 | 22599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22600 | return resultobj; |
22601 | fail: | |
22602 | return NULL; | |
22603 | } | |
22604 | ||
22605 | ||
22606 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22607 | PyObject *resultobj; | |
22608 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22609 | bool result; | |
22610 | PyObject * obj0 = 0 ; | |
22611 | char *kwnames[] = { | |
22612 | (char *) "self", NULL | |
22613 | }; | |
22614 | ||
22615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
22616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22617 | { | |
22618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22619 | result = (bool)(arg1)->Disable(); | |
22620 | ||
22621 | wxPyEndAllowThreads(__tstate); | |
22622 | if (PyErr_Occurred()) SWIG_fail; | |
22623 | } | |
4e760a36 | 22624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22625 | return resultobj; |
22626 | fail: | |
22627 | return NULL; | |
22628 | } | |
22629 | ||
22630 | ||
22631 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22632 | PyObject *resultobj; | |
22633 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22634 | bool result; | |
22635 | PyObject * obj0 = 0 ; | |
22636 | char *kwnames[] = { | |
22637 | (char *) "self", NULL | |
22638 | }; | |
22639 | ||
22640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
22641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22642 | { | |
22643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22644 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
22645 | ||
22646 | wxPyEndAllowThreads(__tstate); | |
22647 | if (PyErr_Occurred()) SWIG_fail; | |
22648 | } | |
4e760a36 | 22649 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22650 | return resultobj; |
22651 | fail: | |
22652 | return NULL; | |
22653 | } | |
22654 | ||
22655 | ||
22656 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22657 | PyObject *resultobj; | |
22658 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22659 | bool result; | |
22660 | PyObject * obj0 = 0 ; | |
22661 | char *kwnames[] = { | |
22662 | (char *) "self", NULL | |
22663 | }; | |
22664 | ||
22665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
22666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22667 | { | |
22668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22669 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
22670 | ||
22671 | wxPyEndAllowThreads(__tstate); | |
22672 | if (PyErr_Occurred()) SWIG_fail; | |
22673 | } | |
4e760a36 | 22674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22675 | return resultobj; |
22676 | fail: | |
22677 | return NULL; | |
22678 | } | |
22679 | ||
22680 | ||
22681 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22682 | PyObject *resultobj; | |
22683 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22684 | long arg2 ; | |
22685 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22686 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22687 | char *kwnames[] = { |
22688 | (char *) "self",(char *) "style", NULL | |
22689 | }; | |
22690 | ||
8edf1c75 | 22691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22693 | { |
22694 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22695 | if (PyErr_Occurred()) SWIG_fail; | |
22696 | } | |
d14a1e28 RD |
22697 | { |
22698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22699 | (arg1)->SetWindowStyleFlag(arg2); | |
22700 | ||
22701 | wxPyEndAllowThreads(__tstate); | |
22702 | if (PyErr_Occurred()) SWIG_fail; | |
22703 | } | |
22704 | Py_INCREF(Py_None); resultobj = Py_None; | |
22705 | return resultobj; | |
22706 | fail: | |
22707 | return NULL; | |
22708 | } | |
22709 | ||
22710 | ||
22711 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22712 | PyObject *resultobj; | |
22713 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22714 | long result; | |
22715 | PyObject * obj0 = 0 ; | |
22716 | char *kwnames[] = { | |
22717 | (char *) "self", NULL | |
22718 | }; | |
22719 | ||
22720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
22721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22722 | { | |
22723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22724 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
22725 | ||
22726 | wxPyEndAllowThreads(__tstate); | |
22727 | if (PyErr_Occurred()) SWIG_fail; | |
22728 | } | |
8edf1c75 | 22729 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22730 | return resultobj; |
22731 | fail: | |
22732 | return NULL; | |
22733 | } | |
22734 | ||
22735 | ||
22736 | static PyObject *_wrap_Window_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22737 | PyObject *resultobj; | |
22738 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22739 | long arg2 ; | |
22740 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22741 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22742 | char *kwnames[] = { |
22743 | (char *) "self",(char *) "style", NULL | |
22744 | }; | |
22745 | ||
8edf1c75 | 22746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22748 | { |
22749 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22750 | if (PyErr_Occurred()) SWIG_fail; | |
22751 | } | |
d14a1e28 RD |
22752 | { |
22753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22754 | (arg1)->SetWindowStyle(arg2); | |
22755 | ||
22756 | wxPyEndAllowThreads(__tstate); | |
22757 | if (PyErr_Occurred()) SWIG_fail; | |
22758 | } | |
22759 | Py_INCREF(Py_None); resultobj = Py_None; | |
22760 | return resultobj; | |
22761 | fail: | |
22762 | return NULL; | |
22763 | } | |
22764 | ||
22765 | ||
22766 | static PyObject *_wrap_Window_GetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22767 | PyObject *resultobj; | |
22768 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22769 | long result; | |
22770 | PyObject * obj0 = 0 ; | |
22771 | char *kwnames[] = { | |
22772 | (char *) "self", NULL | |
22773 | }; | |
22774 | ||
22775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyle",kwnames,&obj0)) goto fail; | |
22776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22777 | { | |
22778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22779 | result = (long)((wxWindow const *)arg1)->GetWindowStyle(); | |
22780 | ||
22781 | wxPyEndAllowThreads(__tstate); | |
22782 | if (PyErr_Occurred()) SWIG_fail; | |
22783 | } | |
8edf1c75 | 22784 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22785 | return resultobj; |
22786 | fail: | |
22787 | return NULL; | |
22788 | } | |
22789 | ||
22790 | ||
22791 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22792 | PyObject *resultobj; | |
22793 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22794 | int arg2 ; | |
22795 | bool result; | |
22796 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22797 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22798 | char *kwnames[] = { |
22799 | (char *) "self",(char *) "flag", NULL | |
22800 | }; | |
22801 | ||
8edf1c75 | 22802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22804 | { |
22805 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22806 | if (PyErr_Occurred()) SWIG_fail; | |
22807 | } | |
d14a1e28 RD |
22808 | { |
22809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22810 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
22811 | ||
22812 | wxPyEndAllowThreads(__tstate); | |
22813 | if (PyErr_Occurred()) SWIG_fail; | |
22814 | } | |
4e760a36 | 22815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22816 | return resultobj; |
22817 | fail: | |
22818 | return NULL; | |
22819 | } | |
22820 | ||
22821 | ||
22822 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22823 | PyObject *resultobj; | |
22824 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22825 | bool result; | |
22826 | PyObject * obj0 = 0 ; | |
22827 | char *kwnames[] = { | |
22828 | (char *) "self", NULL | |
22829 | }; | |
22830 | ||
22831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
22832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22833 | { | |
22834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22835 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
22836 | ||
22837 | wxPyEndAllowThreads(__tstate); | |
22838 | if (PyErr_Occurred()) SWIG_fail; | |
22839 | } | |
4e760a36 | 22840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22841 | return resultobj; |
22842 | fail: | |
22843 | return NULL; | |
22844 | } | |
22845 | ||
22846 | ||
22847 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22848 | PyObject *resultobj; | |
22849 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22850 | long arg2 ; | |
22851 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22852 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22853 | char *kwnames[] = { |
22854 | (char *) "self",(char *) "exStyle", NULL | |
22855 | }; | |
22856 | ||
8edf1c75 | 22857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22859 | { |
22860 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22861 | if (PyErr_Occurred()) SWIG_fail; | |
22862 | } | |
d14a1e28 RD |
22863 | { |
22864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22865 | (arg1)->SetExtraStyle(arg2); | |
22866 | ||
22867 | wxPyEndAllowThreads(__tstate); | |
22868 | if (PyErr_Occurred()) SWIG_fail; | |
22869 | } | |
22870 | Py_INCREF(Py_None); resultobj = Py_None; | |
22871 | return resultobj; | |
22872 | fail: | |
22873 | return NULL; | |
22874 | } | |
22875 | ||
22876 | ||
22877 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22878 | PyObject *resultobj; | |
22879 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22880 | long result; | |
22881 | PyObject * obj0 = 0 ; | |
22882 | char *kwnames[] = { | |
22883 | (char *) "self", NULL | |
22884 | }; | |
22885 | ||
22886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
22887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22888 | { | |
22889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22890 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
22891 | ||
22892 | wxPyEndAllowThreads(__tstate); | |
22893 | if (PyErr_Occurred()) SWIG_fail; | |
22894 | } | |
8edf1c75 | 22895 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22896 | return resultobj; |
22897 | fail: | |
22898 | return NULL; | |
22899 | } | |
22900 | ||
22901 | ||
22902 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22903 | PyObject *resultobj; | |
22904 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22905 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22906 | PyObject * obj0 = 0 ; |
22907 | PyObject * obj1 = 0 ; | |
22908 | char *kwnames[] = { | |
22909 | (char *) "self",(char *) "modal", NULL | |
22910 | }; | |
22911 | ||
22912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
22913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22914 | if (obj1) { | |
83448d71 | 22915 | { |
8edf1c75 | 22916 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
22917 | if (PyErr_Occurred()) SWIG_fail; |
22918 | } | |
d14a1e28 RD |
22919 | } |
22920 | { | |
22921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22922 | (arg1)->MakeModal(arg2); | |
22923 | ||
22924 | wxPyEndAllowThreads(__tstate); | |
22925 | if (PyErr_Occurred()) SWIG_fail; | |
22926 | } | |
22927 | Py_INCREF(Py_None); resultobj = Py_None; | |
22928 | return resultobj; | |
22929 | fail: | |
22930 | return NULL; | |
22931 | } | |
22932 | ||
22933 | ||
22934 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22935 | PyObject *resultobj; | |
22936 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22937 | bool arg2 ; | |
22938 | PyObject * obj0 = 0 ; | |
22939 | PyObject * obj1 = 0 ; | |
22940 | char *kwnames[] = { | |
22941 | (char *) "self",(char *) "enableTheme", NULL | |
22942 | }; | |
22943 | ||
22944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
22945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 22946 | { |
8edf1c75 | 22947 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
22948 | if (PyErr_Occurred()) SWIG_fail; |
22949 | } | |
d14a1e28 RD |
22950 | { |
22951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22952 | (arg1)->SetThemeEnabled(arg2); | |
22953 | ||
22954 | wxPyEndAllowThreads(__tstate); | |
22955 | if (PyErr_Occurred()) SWIG_fail; | |
22956 | } | |
22957 | Py_INCREF(Py_None); resultobj = Py_None; | |
22958 | return resultobj; | |
22959 | fail: | |
22960 | return NULL; | |
22961 | } | |
22962 | ||
22963 | ||
22964 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22965 | PyObject *resultobj; | |
22966 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22967 | bool result; | |
22968 | PyObject * obj0 = 0 ; | |
22969 | char *kwnames[] = { | |
22970 | (char *) "self", NULL | |
22971 | }; | |
22972 | ||
22973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
22974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22975 | { | |
22976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22977 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
22978 | ||
22979 | wxPyEndAllowThreads(__tstate); | |
22980 | if (PyErr_Occurred()) SWIG_fail; | |
22981 | } | |
4e760a36 | 22982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22983 | return resultobj; |
22984 | fail: | |
22985 | return NULL; | |
22986 | } | |
22987 | ||
22988 | ||
22989 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22990 | PyObject *resultobj; | |
22991 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22992 | bool result; | |
22993 | PyObject * obj0 = 0 ; | |
22994 | char *kwnames[] = { | |
22995 | (char *) "self", NULL | |
22996 | }; | |
22997 | ||
22998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
22999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23000 | { | |
23001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23002 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
23003 | ||
23004 | wxPyEndAllowThreads(__tstate); | |
23005 | if (PyErr_Occurred()) SWIG_fail; | |
23006 | } | |
4e760a36 | 23007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23008 | return resultobj; |
23009 | fail: | |
23010 | return NULL; | |
23011 | } | |
23012 | ||
23013 | ||
23014 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23015 | PyObject *resultobj; | |
23016 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23017 | PyObject * obj0 = 0 ; | |
23018 | char *kwnames[] = { | |
23019 | (char *) "self", NULL | |
23020 | }; | |
23021 | ||
23022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
23023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23024 | { | |
23025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23026 | (arg1)->SetFocus(); | |
23027 | ||
23028 | wxPyEndAllowThreads(__tstate); | |
23029 | if (PyErr_Occurred()) SWIG_fail; | |
23030 | } | |
23031 | Py_INCREF(Py_None); resultobj = Py_None; | |
23032 | return resultobj; | |
23033 | fail: | |
23034 | return NULL; | |
23035 | } | |
23036 | ||
23037 | ||
23038 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23039 | PyObject *resultobj; | |
23040 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23041 | PyObject * obj0 = 0 ; | |
23042 | char *kwnames[] = { | |
23043 | (char *) "self", NULL | |
23044 | }; | |
23045 | ||
23046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
23047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23048 | { | |
23049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23050 | (arg1)->SetFocusFromKbd(); | |
23051 | ||
23052 | wxPyEndAllowThreads(__tstate); | |
23053 | if (PyErr_Occurred()) SWIG_fail; | |
23054 | } | |
23055 | Py_INCREF(Py_None); resultobj = Py_None; | |
23056 | return resultobj; | |
23057 | fail: | |
23058 | return NULL; | |
23059 | } | |
23060 | ||
23061 | ||
23062 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23063 | PyObject *resultobj; | |
23064 | wxWindow *result; | |
23065 | char *kwnames[] = { | |
23066 | NULL | |
23067 | }; | |
23068 | ||
23069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
23070 | { | |
23071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23072 | result = (wxWindow *)wxWindow::FindFocus(); | |
23073 | ||
23074 | wxPyEndAllowThreads(__tstate); | |
23075 | if (PyErr_Occurred()) SWIG_fail; | |
23076 | } | |
23077 | { | |
23078 | resultobj = wxPyMake_wxObject(result); | |
23079 | } | |
23080 | return resultobj; | |
23081 | fail: | |
23082 | return NULL; | |
23083 | } | |
23084 | ||
23085 | ||
23086 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23087 | PyObject *resultobj; | |
23088 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23089 | bool result; | |
23090 | PyObject * obj0 = 0 ; | |
23091 | char *kwnames[] = { | |
23092 | (char *) "self", NULL | |
23093 | }; | |
23094 | ||
23095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
23096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23097 | { | |
23098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23099 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
23100 | ||
23101 | wxPyEndAllowThreads(__tstate); | |
23102 | if (PyErr_Occurred()) SWIG_fail; | |
23103 | } | |
4e760a36 | 23104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23105 | return resultobj; |
23106 | fail: | |
23107 | return NULL; | |
23108 | } | |
23109 | ||
23110 | ||
23111 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23112 | PyObject *resultobj; | |
23113 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23114 | bool result; | |
23115 | PyObject * obj0 = 0 ; | |
23116 | char *kwnames[] = { | |
23117 | (char *) "self", NULL | |
23118 | }; | |
23119 | ||
23120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
23121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23122 | { | |
23123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23124 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
23125 | ||
23126 | wxPyEndAllowThreads(__tstate); | |
23127 | if (PyErr_Occurred()) SWIG_fail; | |
23128 | } | |
4e760a36 | 23129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23130 | return resultobj; |
23131 | fail: | |
23132 | return NULL; | |
23133 | } | |
23134 | ||
23135 | ||
23136 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23137 | PyObject *resultobj; | |
23138 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23139 | wxWindow *result; | |
23140 | PyObject * obj0 = 0 ; | |
23141 | char *kwnames[] = { | |
23142 | (char *) "self", NULL | |
23143 | }; | |
23144 | ||
23145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
23146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23147 | { | |
23148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23149 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
23150 | ||
23151 | wxPyEndAllowThreads(__tstate); | |
23152 | if (PyErr_Occurred()) SWIG_fail; | |
23153 | } | |
23154 | { | |
23155 | resultobj = wxPyMake_wxObject(result); | |
23156 | } | |
23157 | return resultobj; | |
23158 | fail: | |
23159 | return NULL; | |
23160 | } | |
23161 | ||
23162 | ||
23163 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23164 | PyObject *resultobj; | |
23165 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23166 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23167 | wxWindow *result; | |
23168 | PyObject * obj0 = 0 ; | |
23169 | PyObject * obj1 = 0 ; | |
23170 | char *kwnames[] = { | |
23171 | (char *) "self",(char *) "child", NULL | |
23172 | }; | |
23173 | ||
23174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
23175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23176 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23177 | { | |
23178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23179 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
23180 | ||
23181 | wxPyEndAllowThreads(__tstate); | |
23182 | if (PyErr_Occurred()) SWIG_fail; | |
23183 | } | |
23184 | { | |
23185 | resultobj = wxPyMake_wxObject(result); | |
23186 | } | |
23187 | return resultobj; | |
23188 | fail: | |
23189 | return NULL; | |
23190 | } | |
23191 | ||
23192 | ||
23193 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23194 | PyObject *resultobj; | |
23195 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23196 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23197 | PyObject * obj0 = 0 ; | |
23198 | PyObject * obj1 = 0 ; | |
23199 | char *kwnames[] = { | |
23200 | (char *) "self",(char *) "win", NULL | |
23201 | }; | |
23202 | ||
23203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
23204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23205 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23206 | { | |
23207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23208 | (arg1)->SetTmpDefaultItem(arg2); | |
23209 | ||
23210 | wxPyEndAllowThreads(__tstate); | |
23211 | if (PyErr_Occurred()) SWIG_fail; | |
23212 | } | |
23213 | Py_INCREF(Py_None); resultobj = Py_None; | |
23214 | return resultobj; | |
23215 | fail: | |
23216 | return NULL; | |
23217 | } | |
23218 | ||
23219 | ||
23220 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23221 | PyObject *resultobj; | |
23222 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23223 | PyObject *result; | |
23224 | PyObject * obj0 = 0 ; | |
23225 | char *kwnames[] = { | |
23226 | (char *) "self", NULL | |
23227 | }; | |
23228 | ||
23229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
23230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23231 | { | |
23232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23233 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
23234 | ||
23235 | wxPyEndAllowThreads(__tstate); | |
23236 | if (PyErr_Occurred()) SWIG_fail; | |
23237 | } | |
23238 | resultobj = result; | |
23239 | return resultobj; | |
23240 | fail: | |
23241 | return NULL; | |
23242 | } | |
23243 | ||
23244 | ||
23245 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23246 | PyObject *resultobj; | |
23247 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23248 | wxWindow *result; | |
23249 | PyObject * obj0 = 0 ; | |
23250 | char *kwnames[] = { | |
23251 | (char *) "self", NULL | |
23252 | }; | |
23253 | ||
23254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
23255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23256 | { | |
23257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23258 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
23259 | ||
23260 | wxPyEndAllowThreads(__tstate); | |
23261 | if (PyErr_Occurred()) SWIG_fail; | |
23262 | } | |
23263 | { | |
23264 | resultobj = wxPyMake_wxObject(result); | |
23265 | } | |
23266 | return resultobj; | |
23267 | fail: | |
23268 | return NULL; | |
23269 | } | |
23270 | ||
23271 | ||
23272 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23273 | PyObject *resultobj; | |
23274 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23275 | wxWindow *result; | |
23276 | PyObject * obj0 = 0 ; | |
23277 | char *kwnames[] = { | |
23278 | (char *) "self", NULL | |
23279 | }; | |
23280 | ||
23281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
23282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23283 | { | |
23284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23285 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
23286 | ||
23287 | wxPyEndAllowThreads(__tstate); | |
23288 | if (PyErr_Occurred()) SWIG_fail; | |
23289 | } | |
23290 | { | |
23291 | resultobj = wxPyMake_wxObject(result); | |
23292 | } | |
23293 | return resultobj; | |
23294 | fail: | |
23295 | return NULL; | |
23296 | } | |
23297 | ||
23298 | ||
23299 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23300 | PyObject *resultobj; | |
23301 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23302 | bool result; | |
23303 | PyObject * obj0 = 0 ; | |
23304 | char *kwnames[] = { | |
23305 | (char *) "self", NULL | |
23306 | }; | |
23307 | ||
23308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
23309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23310 | { | |
23311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23312 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
23313 | ||
23314 | wxPyEndAllowThreads(__tstate); | |
23315 | if (PyErr_Occurred()) SWIG_fail; | |
23316 | } | |
4e760a36 | 23317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23318 | return resultobj; |
23319 | fail: | |
23320 | return NULL; | |
23321 | } | |
23322 | ||
23323 | ||
23324 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23325 | PyObject *resultobj; | |
23326 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23327 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23328 | bool result; | |
23329 | PyObject * obj0 = 0 ; | |
23330 | PyObject * obj1 = 0 ; | |
23331 | char *kwnames[] = { | |
23332 | (char *) "self",(char *) "newParent", NULL | |
23333 | }; | |
23334 | ||
23335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
23336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23337 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23338 | { | |
23339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23340 | result = (bool)(arg1)->Reparent(arg2); | |
23341 | ||
23342 | wxPyEndAllowThreads(__tstate); | |
23343 | if (PyErr_Occurred()) SWIG_fail; | |
23344 | } | |
4e760a36 | 23345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23346 | return resultobj; |
23347 | fail: | |
23348 | return NULL; | |
23349 | } | |
23350 | ||
23351 | ||
23352 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23353 | PyObject *resultobj; | |
23354 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23355 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23356 | PyObject * obj0 = 0 ; | |
23357 | PyObject * obj1 = 0 ; | |
23358 | char *kwnames[] = { | |
23359 | (char *) "self",(char *) "child", NULL | |
23360 | }; | |
23361 | ||
23362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
23363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23364 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23365 | { | |
23366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23367 | (arg1)->AddChild(arg2); | |
23368 | ||
23369 | wxPyEndAllowThreads(__tstate); | |
23370 | if (PyErr_Occurred()) SWIG_fail; | |
23371 | } | |
23372 | Py_INCREF(Py_None); resultobj = Py_None; | |
23373 | return resultobj; | |
23374 | fail: | |
23375 | return NULL; | |
23376 | } | |
23377 | ||
23378 | ||
23379 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23380 | PyObject *resultobj; | |
23381 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23382 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23383 | PyObject * obj0 = 0 ; | |
23384 | PyObject * obj1 = 0 ; | |
23385 | char *kwnames[] = { | |
23386 | (char *) "self",(char *) "child", NULL | |
23387 | }; | |
23388 | ||
23389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
23390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23391 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23392 | { | |
23393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23394 | (arg1)->RemoveChild(arg2); | |
23395 | ||
23396 | wxPyEndAllowThreads(__tstate); | |
23397 | if (PyErr_Occurred()) SWIG_fail; | |
23398 | } | |
23399 | Py_INCREF(Py_None); resultobj = Py_None; | |
23400 | return resultobj; | |
23401 | fail: | |
23402 | return NULL; | |
23403 | } | |
23404 | ||
23405 | ||
23406 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23407 | PyObject *resultobj; | |
23408 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23409 | long arg2 ; | |
23410 | wxWindow *result; | |
23411 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23412 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23413 | char *kwnames[] = { |
23414 | (char *) "self",(char *) "winid", NULL | |
23415 | }; | |
23416 | ||
8edf1c75 | 23417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23419 | { |
23420 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
23421 | if (PyErr_Occurred()) SWIG_fail; | |
23422 | } | |
d14a1e28 RD |
23423 | { |
23424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23425 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
23426 | ||
23427 | wxPyEndAllowThreads(__tstate); | |
23428 | if (PyErr_Occurred()) SWIG_fail; | |
23429 | } | |
23430 | { | |
23431 | resultobj = wxPyMake_wxObject(result); | |
23432 | } | |
23433 | return resultobj; | |
23434 | fail: | |
23435 | return NULL; | |
23436 | } | |
23437 | ||
23438 | ||
23439 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23440 | PyObject *resultobj; | |
23441 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23442 | wxString *arg2 = 0 ; | |
23443 | wxWindow *result; | |
423f194a | 23444 | bool temp2 = False ; |
d14a1e28 RD |
23445 | PyObject * obj0 = 0 ; |
23446 | PyObject * obj1 = 0 ; | |
23447 | char *kwnames[] = { | |
23448 | (char *) "self",(char *) "name", NULL | |
23449 | }; | |
23450 | ||
23451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
23452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23453 | { | |
23454 | arg2 = wxString_in_helper(obj1); | |
23455 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23456 | temp2 = True; |
d14a1e28 RD |
23457 | } |
23458 | { | |
23459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23460 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
23461 | ||
23462 | wxPyEndAllowThreads(__tstate); | |
23463 | if (PyErr_Occurred()) SWIG_fail; | |
23464 | } | |
23465 | { | |
23466 | resultobj = wxPyMake_wxObject(result); | |
23467 | } | |
23468 | { | |
23469 | if (temp2) | |
23470 | delete arg2; | |
23471 | } | |
23472 | return resultobj; | |
23473 | fail: | |
23474 | { | |
23475 | if (temp2) | |
23476 | delete arg2; | |
23477 | } | |
23478 | return NULL; | |
23479 | } | |
23480 | ||
23481 | ||
23482 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23483 | PyObject *resultobj; | |
23484 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23485 | wxEvtHandler *result; | |
23486 | PyObject * obj0 = 0 ; | |
23487 | char *kwnames[] = { | |
23488 | (char *) "self", NULL | |
23489 | }; | |
23490 | ||
23491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
23492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23493 | { | |
23494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23495 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
23496 | ||
23497 | wxPyEndAllowThreads(__tstate); | |
23498 | if (PyErr_Occurred()) SWIG_fail; | |
23499 | } | |
23500 | { | |
23501 | resultobj = wxPyMake_wxObject(result); | |
23502 | } | |
23503 | return resultobj; | |
23504 | fail: | |
23505 | return NULL; | |
23506 | } | |
23507 | ||
23508 | ||
23509 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23510 | PyObject *resultobj; | |
23511 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23512 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23513 | PyObject * obj0 = 0 ; | |
23514 | PyObject * obj1 = 0 ; | |
23515 | char *kwnames[] = { | |
23516 | (char *) "self",(char *) "handler", NULL | |
23517 | }; | |
23518 | ||
23519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
23520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23521 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23522 | { | |
23523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23524 | (arg1)->SetEventHandler(arg2); | |
23525 | ||
23526 | wxPyEndAllowThreads(__tstate); | |
23527 | if (PyErr_Occurred()) SWIG_fail; | |
23528 | } | |
23529 | Py_INCREF(Py_None); resultobj = Py_None; | |
23530 | return resultobj; | |
23531 | fail: | |
23532 | return NULL; | |
23533 | } | |
23534 | ||
23535 | ||
23536 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23537 | PyObject *resultobj; | |
23538 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23539 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23540 | PyObject * obj0 = 0 ; | |
23541 | PyObject * obj1 = 0 ; | |
23542 | char *kwnames[] = { | |
23543 | (char *) "self",(char *) "handler", NULL | |
23544 | }; | |
23545 | ||
23546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
23547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23548 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23549 | { | |
23550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23551 | (arg1)->PushEventHandler(arg2); | |
23552 | ||
23553 | wxPyEndAllowThreads(__tstate); | |
23554 | if (PyErr_Occurred()) SWIG_fail; | |
23555 | } | |
23556 | Py_INCREF(Py_None); resultobj = Py_None; | |
23557 | return resultobj; | |
23558 | fail: | |
23559 | return NULL; | |
23560 | } | |
23561 | ||
23562 | ||
23563 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23564 | PyObject *resultobj; | |
23565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23566 | bool arg2 = (bool) False ; |
d14a1e28 RD |
23567 | wxEvtHandler *result; |
23568 | PyObject * obj0 = 0 ; | |
23569 | PyObject * obj1 = 0 ; | |
23570 | char *kwnames[] = { | |
23571 | (char *) "self",(char *) "deleteHandler", NULL | |
23572 | }; | |
23573 | ||
23574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
23575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23576 | if (obj1) { | |
83448d71 | 23577 | { |
8edf1c75 | 23578 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
23579 | if (PyErr_Occurred()) SWIG_fail; |
23580 | } | |
d14a1e28 RD |
23581 | } |
23582 | { | |
23583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23584 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
23585 | ||
23586 | wxPyEndAllowThreads(__tstate); | |
23587 | if (PyErr_Occurred()) SWIG_fail; | |
23588 | } | |
23589 | { | |
23590 | resultobj = wxPyMake_wxObject(result); | |
23591 | } | |
23592 | return resultobj; | |
23593 | fail: | |
23594 | return NULL; | |
23595 | } | |
23596 | ||
23597 | ||
23598 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23599 | PyObject *resultobj; | |
23600 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23601 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23602 | bool result; | |
23603 | PyObject * obj0 = 0 ; | |
23604 | PyObject * obj1 = 0 ; | |
23605 | char *kwnames[] = { | |
23606 | (char *) "self",(char *) "handler", NULL | |
23607 | }; | |
23608 | ||
23609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
23610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23611 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23612 | { | |
23613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23614 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
23615 | ||
23616 | wxPyEndAllowThreads(__tstate); | |
23617 | if (PyErr_Occurred()) SWIG_fail; | |
23618 | } | |
4e760a36 | 23619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23620 | return resultobj; |
23621 | fail: | |
23622 | return NULL; | |
23623 | } | |
23624 | ||
23625 | ||
23626 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23627 | PyObject *resultobj; | |
23628 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23629 | wxValidator *arg2 = 0 ; | |
23630 | PyObject * obj0 = 0 ; | |
23631 | PyObject * obj1 = 0 ; | |
23632 | char *kwnames[] = { | |
23633 | (char *) "self",(char *) "validator", NULL | |
23634 | }; | |
23635 | ||
23636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
23637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23638 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23639 | if (arg2 == NULL) { | |
23640 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23641 | } | |
23642 | { | |
23643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23644 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
23645 | ||
23646 | wxPyEndAllowThreads(__tstate); | |
23647 | if (PyErr_Occurred()) SWIG_fail; | |
23648 | } | |
23649 | Py_INCREF(Py_None); resultobj = Py_None; | |
23650 | return resultobj; | |
23651 | fail: | |
23652 | return NULL; | |
23653 | } | |
23654 | ||
23655 | ||
23656 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23657 | PyObject *resultobj; | |
23658 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23659 | wxValidator *result; | |
23660 | PyObject * obj0 = 0 ; | |
23661 | char *kwnames[] = { | |
23662 | (char *) "self", NULL | |
23663 | }; | |
23664 | ||
23665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
23666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23667 | { | |
23668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23669 | result = (wxValidator *)(arg1)->GetValidator(); | |
23670 | ||
23671 | wxPyEndAllowThreads(__tstate); | |
23672 | if (PyErr_Occurred()) SWIG_fail; | |
23673 | } | |
23674 | { | |
23675 | resultobj = wxPyMake_wxObject(result); | |
23676 | } | |
23677 | return resultobj; | |
23678 | fail: | |
23679 | return NULL; | |
23680 | } | |
23681 | ||
23682 | ||
23683 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23684 | PyObject *resultobj; | |
23685 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23686 | wxAcceleratorTable *arg2 = 0 ; | |
23687 | PyObject * obj0 = 0 ; | |
23688 | PyObject * obj1 = 0 ; | |
23689 | char *kwnames[] = { | |
23690 | (char *) "self",(char *) "accel", NULL | |
23691 | }; | |
23692 | ||
23693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
23694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23695 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23696 | if (arg2 == NULL) { | |
23697 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23698 | } | |
23699 | { | |
23700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23701 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
23702 | ||
23703 | wxPyEndAllowThreads(__tstate); | |
23704 | if (PyErr_Occurred()) SWIG_fail; | |
23705 | } | |
23706 | Py_INCREF(Py_None); resultobj = Py_None; | |
23707 | return resultobj; | |
23708 | fail: | |
23709 | return NULL; | |
23710 | } | |
23711 | ||
23712 | ||
23713 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23714 | PyObject *resultobj; | |
23715 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23716 | wxAcceleratorTable *result; | |
23717 | PyObject * obj0 = 0 ; | |
23718 | char *kwnames[] = { | |
23719 | (char *) "self", NULL | |
23720 | }; | |
23721 | ||
23722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
23723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23724 | { | |
23725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23726 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
23727 | ||
23728 | wxPyEndAllowThreads(__tstate); | |
23729 | if (PyErr_Occurred()) SWIG_fail; | |
23730 | } | |
23731 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 0); | |
23732 | return resultobj; | |
23733 | fail: | |
23734 | return NULL; | |
23735 | } | |
23736 | ||
23737 | ||
23738 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23739 | PyObject *resultobj; | |
23740 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23741 | int arg2 ; | |
23742 | int arg3 ; | |
23743 | int arg4 ; | |
23744 | bool result; | |
23745 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23746 | PyObject * obj1 = 0 ; |
23747 | PyObject * obj2 = 0 ; | |
23748 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
23749 | char *kwnames[] = { |
23750 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
23751 | }; | |
23752 | ||
8edf1c75 | 23753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 23754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23755 | { |
23756 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23757 | if (PyErr_Occurred()) SWIG_fail; | |
23758 | } | |
23759 | { | |
23760 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
23761 | if (PyErr_Occurred()) SWIG_fail; | |
23762 | } | |
23763 | { | |
23764 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
23765 | if (PyErr_Occurred()) SWIG_fail; | |
23766 | } | |
d14a1e28 RD |
23767 | { |
23768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23769 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
23770 | ||
23771 | wxPyEndAllowThreads(__tstate); | |
23772 | if (PyErr_Occurred()) SWIG_fail; | |
23773 | } | |
4e760a36 | 23774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23775 | return resultobj; |
23776 | fail: | |
23777 | return NULL; | |
23778 | } | |
23779 | ||
23780 | ||
23781 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23782 | PyObject *resultobj; | |
23783 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23784 | int arg2 ; | |
23785 | bool result; | |
23786 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23787 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23788 | char *kwnames[] = { |
23789 | (char *) "self",(char *) "hotkeyId", NULL | |
23790 | }; | |
23791 | ||
8edf1c75 | 23792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23794 | { |
23795 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23796 | if (PyErr_Occurred()) SWIG_fail; | |
23797 | } | |
d14a1e28 RD |
23798 | { |
23799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23800 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
23801 | ||
23802 | wxPyEndAllowThreads(__tstate); | |
23803 | if (PyErr_Occurred()) SWIG_fail; | |
23804 | } | |
4e760a36 | 23805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23806 | return resultobj; |
23807 | fail: | |
23808 | return NULL; | |
23809 | } | |
23810 | ||
23811 | ||
23812 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23813 | PyObject *resultobj; | |
23814 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23815 | wxPoint *arg2 = 0 ; | |
23816 | wxPoint result; | |
23817 | wxPoint temp2 ; | |
23818 | PyObject * obj0 = 0 ; | |
23819 | PyObject * obj1 = 0 ; | |
23820 | char *kwnames[] = { | |
23821 | (char *) "self",(char *) "pt", NULL | |
23822 | }; | |
23823 | ||
23824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
23825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23826 | { | |
23827 | arg2 = &temp2; | |
23828 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23829 | } | |
23830 | { | |
23831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23832 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
23833 | ||
23834 | wxPyEndAllowThreads(__tstate); | |
23835 | if (PyErr_Occurred()) SWIG_fail; | |
23836 | } | |
23837 | { | |
23838 | wxPoint * resultptr; | |
23839 | resultptr = new wxPoint((wxPoint &) result); | |
23840 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23841 | } | |
23842 | return resultobj; | |
23843 | fail: | |
23844 | return NULL; | |
23845 | } | |
23846 | ||
23847 | ||
23848 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23849 | PyObject *resultobj; | |
23850 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23851 | wxSize *arg2 = 0 ; | |
23852 | wxSize result; | |
23853 | wxSize temp2 ; | |
23854 | PyObject * obj0 = 0 ; | |
23855 | PyObject * obj1 = 0 ; | |
23856 | char *kwnames[] = { | |
23857 | (char *) "self",(char *) "sz", NULL | |
23858 | }; | |
23859 | ||
23860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
23861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23862 | { | |
23863 | arg2 = &temp2; | |
23864 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23865 | } | |
23866 | { | |
23867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23868 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
23869 | ||
23870 | wxPyEndAllowThreads(__tstate); | |
23871 | if (PyErr_Occurred()) SWIG_fail; | |
23872 | } | |
23873 | { | |
23874 | wxSize * resultptr; | |
23875 | resultptr = new wxSize((wxSize &) result); | |
23876 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
23877 | } | |
23878 | return resultobj; | |
23879 | fail: | |
23880 | return NULL; | |
23881 | } | |
23882 | ||
23883 | ||
23884 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23885 | PyObject *resultobj; | |
23886 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23887 | wxPoint *arg2 = 0 ; | |
23888 | wxPoint result; | |
23889 | wxPoint temp2 ; | |
23890 | PyObject * obj0 = 0 ; | |
23891 | PyObject * obj1 = 0 ; | |
23892 | char *kwnames[] = { | |
23893 | (char *) "self",(char *) "pt", NULL | |
23894 | }; | |
23895 | ||
23896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
23897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23898 | { | |
23899 | arg2 = &temp2; | |
23900 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23901 | } | |
23902 | { | |
23903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23904 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
23905 | ||
23906 | wxPyEndAllowThreads(__tstate); | |
23907 | if (PyErr_Occurred()) SWIG_fail; | |
23908 | } | |
23909 | { | |
23910 | wxPoint * resultptr; | |
23911 | resultptr = new wxPoint((wxPoint &) result); | |
23912 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23913 | } | |
23914 | return resultobj; | |
23915 | fail: | |
23916 | return NULL; | |
23917 | } | |
23918 | ||
23919 | ||
23920 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23921 | PyObject *resultobj; | |
23922 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23923 | wxSize *arg2 = 0 ; | |
23924 | wxSize result; | |
23925 | wxSize temp2 ; | |
23926 | PyObject * obj0 = 0 ; | |
23927 | PyObject * obj1 = 0 ; | |
23928 | char *kwnames[] = { | |
23929 | (char *) "self",(char *) "sz", NULL | |
23930 | }; | |
23931 | ||
23932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
23933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23934 | { | |
23935 | arg2 = &temp2; | |
23936 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23937 | } | |
23938 | { | |
23939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23940 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
23941 | ||
23942 | wxPyEndAllowThreads(__tstate); | |
23943 | if (PyErr_Occurred()) SWIG_fail; | |
23944 | } | |
23945 | { | |
23946 | wxSize * resultptr; | |
23947 | resultptr = new wxSize((wxSize &) result); | |
23948 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
23949 | } | |
23950 | return resultobj; | |
23951 | fail: | |
23952 | return NULL; | |
23953 | } | |
23954 | ||
23955 | ||
23956 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23957 | PyObject *resultobj; | |
23958 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23959 | wxPoint *arg2 = 0 ; | |
23960 | wxPoint result; | |
23961 | wxPoint temp2 ; | |
23962 | PyObject * obj0 = 0 ; | |
23963 | PyObject * obj1 = 0 ; | |
23964 | char *kwnames[] = { | |
23965 | (char *) "self",(char *) "pt", NULL | |
23966 | }; | |
23967 | ||
23968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
23969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23970 | { | |
23971 | arg2 = &temp2; | |
23972 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23973 | } | |
23974 | { | |
23975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23976 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
23977 | ||
23978 | wxPyEndAllowThreads(__tstate); | |
23979 | if (PyErr_Occurred()) SWIG_fail; | |
23980 | } | |
23981 | { | |
23982 | wxPoint * resultptr; | |
23983 | resultptr = new wxPoint((wxPoint &) result); | |
23984 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23985 | } | |
23986 | return resultobj; | |
23987 | fail: | |
23988 | return NULL; | |
23989 | } | |
23990 | ||
23991 | ||
23992 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23993 | PyObject *resultobj; | |
23994 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23995 | wxSize *arg2 = 0 ; | |
23996 | wxSize result; | |
23997 | wxSize temp2 ; | |
23998 | PyObject * obj0 = 0 ; | |
23999 | PyObject * obj1 = 0 ; | |
24000 | char *kwnames[] = { | |
24001 | (char *) "self",(char *) "sz", NULL | |
24002 | }; | |
24003 | ||
24004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
24005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24006 | { | |
24007 | arg2 = &temp2; | |
24008 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24009 | } | |
24010 | { | |
24011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24012 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
24013 | ||
24014 | wxPyEndAllowThreads(__tstate); | |
24015 | if (PyErr_Occurred()) SWIG_fail; | |
24016 | } | |
24017 | { | |
24018 | wxSize * resultptr; | |
24019 | resultptr = new wxSize((wxSize &) result); | |
24020 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24021 | } | |
24022 | return resultobj; | |
24023 | fail: | |
24024 | return NULL; | |
24025 | } | |
24026 | ||
24027 | ||
24028 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24029 | PyObject *resultobj; | |
24030 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24031 | int arg2 ; | |
24032 | int arg3 ; | |
24033 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24034 | PyObject * obj1 = 0 ; |
24035 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24036 | char *kwnames[] = { |
24037 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24038 | }; | |
24039 | ||
8edf1c75 | 24040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 24041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
24042 | { |
24043 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
24044 | if (PyErr_Occurred()) SWIG_fail; | |
24045 | } | |
24046 | { | |
24047 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24048 | if (PyErr_Occurred()) SWIG_fail; | |
24049 | } | |
d14a1e28 RD |
24050 | { |
24051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24052 | (arg1)->WarpPointer(arg2,arg3); | |
24053 | ||
24054 | wxPyEndAllowThreads(__tstate); | |
24055 | if (PyErr_Occurred()) SWIG_fail; | |
24056 | } | |
24057 | Py_INCREF(Py_None); resultobj = Py_None; | |
24058 | return resultobj; | |
24059 | fail: | |
24060 | return NULL; | |
24061 | } | |
24062 | ||
24063 | ||
24064 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24065 | PyObject *resultobj; | |
24066 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24067 | PyObject * obj0 = 0 ; | |
24068 | char *kwnames[] = { | |
24069 | (char *) "self", NULL | |
24070 | }; | |
24071 | ||
24072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
24073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24074 | { | |
24075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24076 | (arg1)->CaptureMouse(); | |
24077 | ||
24078 | wxPyEndAllowThreads(__tstate); | |
24079 | if (PyErr_Occurred()) SWIG_fail; | |
24080 | } | |
24081 | Py_INCREF(Py_None); resultobj = Py_None; | |
24082 | return resultobj; | |
24083 | fail: | |
24084 | return NULL; | |
24085 | } | |
24086 | ||
24087 | ||
24088 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24089 | PyObject *resultobj; | |
24090 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24091 | PyObject * obj0 = 0 ; | |
24092 | char *kwnames[] = { | |
24093 | (char *) "self", NULL | |
24094 | }; | |
24095 | ||
24096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
24097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24098 | { | |
24099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24100 | (arg1)->ReleaseMouse(); | |
24101 | ||
24102 | wxPyEndAllowThreads(__tstate); | |
24103 | if (PyErr_Occurred()) SWIG_fail; | |
24104 | } | |
24105 | Py_INCREF(Py_None); resultobj = Py_None; | |
24106 | return resultobj; | |
24107 | fail: | |
24108 | return NULL; | |
24109 | } | |
24110 | ||
24111 | ||
24112 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24113 | PyObject *resultobj; | |
24114 | wxWindow *result; | |
24115 | char *kwnames[] = { | |
24116 | NULL | |
24117 | }; | |
24118 | ||
24119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
24120 | { | |
24121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24122 | result = (wxWindow *)wxWindow::GetCapture(); | |
24123 | ||
24124 | wxPyEndAllowThreads(__tstate); | |
24125 | if (PyErr_Occurred()) SWIG_fail; | |
24126 | } | |
24127 | { | |
24128 | resultobj = wxPyMake_wxObject(result); | |
24129 | } | |
24130 | return resultobj; | |
24131 | fail: | |
24132 | return NULL; | |
24133 | } | |
24134 | ||
24135 | ||
24136 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24137 | PyObject *resultobj; | |
24138 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24139 | bool result; | |
24140 | PyObject * obj0 = 0 ; | |
24141 | char *kwnames[] = { | |
24142 | (char *) "self", NULL | |
24143 | }; | |
24144 | ||
24145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
24146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24147 | { | |
24148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24149 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
24150 | ||
24151 | wxPyEndAllowThreads(__tstate); | |
24152 | if (PyErr_Occurred()) SWIG_fail; | |
24153 | } | |
4e760a36 | 24154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24155 | return resultobj; |
24156 | fail: | |
24157 | return NULL; | |
24158 | } | |
24159 | ||
24160 | ||
24161 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24162 | PyObject *resultobj; | |
24163 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 24164 | bool arg2 = (bool) True ; |
d14a1e28 RD |
24165 | wxRect *arg3 = (wxRect *) NULL ; |
24166 | PyObject * obj0 = 0 ; | |
24167 | PyObject * obj1 = 0 ; | |
24168 | PyObject * obj2 = 0 ; | |
24169 | char *kwnames[] = { | |
24170 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
24171 | }; | |
24172 | ||
24173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24175 | if (obj1) { | |
83448d71 | 24176 | { |
8edf1c75 | 24177 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
24178 | if (PyErr_Occurred()) SWIG_fail; |
24179 | } | |
d14a1e28 RD |
24180 | } |
24181 | if (obj2) { | |
24182 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24183 | } | |
24184 | { | |
24185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24186 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
24187 | ||
24188 | wxPyEndAllowThreads(__tstate); | |
24189 | if (PyErr_Occurred()) SWIG_fail; | |
24190 | } | |
24191 | Py_INCREF(Py_None); resultobj = Py_None; | |
24192 | return resultobj; | |
24193 | fail: | |
24194 | return NULL; | |
24195 | } | |
24196 | ||
24197 | ||
24198 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24199 | PyObject *resultobj; | |
24200 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24201 | wxRect *arg2 = 0 ; | |
24202 | wxRect temp2 ; | |
24203 | PyObject * obj0 = 0 ; | |
24204 | PyObject * obj1 = 0 ; | |
24205 | char *kwnames[] = { | |
24206 | (char *) "self",(char *) "rect", NULL | |
24207 | }; | |
24208 | ||
24209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
24210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24211 | { | |
24212 | arg2 = &temp2; | |
24213 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24214 | } | |
24215 | { | |
24216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24217 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
24218 | ||
24219 | wxPyEndAllowThreads(__tstate); | |
24220 | if (PyErr_Occurred()) SWIG_fail; | |
24221 | } | |
24222 | Py_INCREF(Py_None); resultobj = Py_None; | |
24223 | return resultobj; | |
24224 | fail: | |
24225 | return NULL; | |
24226 | } | |
24227 | ||
24228 | ||
24229 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24230 | PyObject *resultobj; | |
24231 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24232 | PyObject * obj0 = 0 ; | |
24233 | char *kwnames[] = { | |
24234 | (char *) "self", NULL | |
24235 | }; | |
24236 | ||
24237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
24238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24239 | { | |
24240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24241 | (arg1)->Update(); | |
24242 | ||
24243 | wxPyEndAllowThreads(__tstate); | |
24244 | if (PyErr_Occurred()) SWIG_fail; | |
24245 | } | |
24246 | Py_INCREF(Py_None); resultobj = Py_None; | |
24247 | return resultobj; | |
24248 | fail: | |
24249 | return NULL; | |
24250 | } | |
24251 | ||
24252 | ||
24253 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24254 | PyObject *resultobj; | |
24255 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24256 | PyObject * obj0 = 0 ; | |
24257 | char *kwnames[] = { | |
24258 | (char *) "self", NULL | |
24259 | }; | |
24260 | ||
24261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
24262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24263 | { | |
24264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24265 | (arg1)->ClearBackground(); | |
24266 | ||
24267 | wxPyEndAllowThreads(__tstate); | |
24268 | if (PyErr_Occurred()) SWIG_fail; | |
24269 | } | |
24270 | Py_INCREF(Py_None); resultobj = Py_None; | |
24271 | return resultobj; | |
24272 | fail: | |
24273 | return NULL; | |
24274 | } | |
24275 | ||
24276 | ||
24277 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24278 | PyObject *resultobj; | |
24279 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24280 | PyObject * obj0 = 0 ; | |
24281 | char *kwnames[] = { | |
24282 | (char *) "self", NULL | |
24283 | }; | |
24284 | ||
24285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
24286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24287 | { | |
24288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24289 | (arg1)->Freeze(); | |
24290 | ||
24291 | wxPyEndAllowThreads(__tstate); | |
24292 | if (PyErr_Occurred()) SWIG_fail; | |
24293 | } | |
24294 | Py_INCREF(Py_None); resultobj = Py_None; | |
24295 | return resultobj; | |
24296 | fail: | |
24297 | return NULL; | |
24298 | } | |
24299 | ||
24300 | ||
24301 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24302 | PyObject *resultobj; | |
24303 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24304 | PyObject * obj0 = 0 ; | |
24305 | char *kwnames[] = { | |
24306 | (char *) "self", NULL | |
24307 | }; | |
24308 | ||
24309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
24310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24311 | { | |
24312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24313 | (arg1)->Thaw(); | |
24314 | ||
24315 | wxPyEndAllowThreads(__tstate); | |
24316 | if (PyErr_Occurred()) SWIG_fail; | |
24317 | } | |
24318 | Py_INCREF(Py_None); resultobj = Py_None; | |
24319 | return resultobj; | |
24320 | fail: | |
24321 | return NULL; | |
24322 | } | |
24323 | ||
24324 | ||
24325 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24326 | PyObject *resultobj; | |
24327 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24328 | wxDC *arg2 = 0 ; | |
24329 | PyObject * obj0 = 0 ; | |
24330 | PyObject * obj1 = 0 ; | |
24331 | char *kwnames[] = { | |
24332 | (char *) "self",(char *) "dc", NULL | |
24333 | }; | |
24334 | ||
24335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
24336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24337 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24338 | if (arg2 == NULL) { | |
24339 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24340 | } | |
24341 | { | |
24342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24343 | (arg1)->PrepareDC(*arg2); | |
24344 | ||
24345 | wxPyEndAllowThreads(__tstate); | |
24346 | if (PyErr_Occurred()) SWIG_fail; | |
24347 | } | |
24348 | Py_INCREF(Py_None); resultobj = Py_None; | |
24349 | return resultobj; | |
24350 | fail: | |
24351 | return NULL; | |
24352 | } | |
24353 | ||
24354 | ||
24355 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24356 | PyObject *resultobj; | |
24357 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24358 | wxRegion *result; | |
24359 | PyObject * obj0 = 0 ; | |
24360 | char *kwnames[] = { | |
24361 | (char *) "self", NULL | |
24362 | }; | |
24363 | ||
24364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
24365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24366 | { | |
24367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24368 | { | |
24369 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
24370 | result = (wxRegion *) &_result_ref; | |
24371 | } | |
24372 | ||
24373 | wxPyEndAllowThreads(__tstate); | |
24374 | if (PyErr_Occurred()) SWIG_fail; | |
24375 | } | |
24376 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 0); | |
24377 | return resultobj; | |
24378 | fail: | |
24379 | return NULL; | |
24380 | } | |
24381 | ||
24382 | ||
24383 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24384 | PyObject *resultobj; | |
24385 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24386 | wxRect result; | |
24387 | PyObject * obj0 = 0 ; | |
24388 | char *kwnames[] = { | |
24389 | (char *) "self", NULL | |
24390 | }; | |
24391 | ||
24392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
24393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24394 | { | |
24395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24396 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
24397 | ||
24398 | wxPyEndAllowThreads(__tstate); | |
24399 | if (PyErr_Occurred()) SWIG_fail; | |
24400 | } | |
24401 | { | |
24402 | wxRect * resultptr; | |
24403 | resultptr = new wxRect((wxRect &) result); | |
24404 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
24405 | } | |
24406 | return resultobj; | |
24407 | fail: | |
24408 | return NULL; | |
24409 | } | |
24410 | ||
24411 | ||
24412 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24413 | PyObject *resultobj; | |
24414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24415 | int arg2 ; | |
24416 | int arg3 ; | |
24417 | int arg4 = (int) 1 ; | |
24418 | int arg5 = (int) 1 ; | |
24419 | bool result; | |
24420 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24421 | PyObject * obj1 = 0 ; |
24422 | PyObject * obj2 = 0 ; | |
24423 | PyObject * obj3 = 0 ; | |
24424 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
24425 | char *kwnames[] = { |
24426 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
24427 | }; | |
24428 | ||
8edf1c75 | 24429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 24430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
24431 | { |
24432 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
24433 | if (PyErr_Occurred()) SWIG_fail; | |
24434 | } | |
24435 | { | |
24436 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24437 | if (PyErr_Occurred()) SWIG_fail; | |
24438 | } | |
24439 | if (obj3) { | |
24440 | { | |
24441 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
24442 | if (PyErr_Occurred()) SWIG_fail; | |
24443 | } | |
24444 | } | |
24445 | if (obj4) { | |
24446 | { | |
24447 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
24448 | if (PyErr_Occurred()) SWIG_fail; | |
24449 | } | |
24450 | } | |
d14a1e28 RD |
24451 | { |
24452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24453 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
24454 | ||
24455 | wxPyEndAllowThreads(__tstate); | |
24456 | if (PyErr_Occurred()) SWIG_fail; | |
24457 | } | |
4e760a36 | 24458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24459 | return resultobj; |
24460 | fail: | |
24461 | return NULL; | |
24462 | } | |
24463 | ||
24464 | ||
24465 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24466 | PyObject *resultobj; | |
24467 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24468 | wxPoint *arg2 = 0 ; | |
24469 | bool result; | |
24470 | wxPoint temp2 ; | |
24471 | PyObject * obj0 = 0 ; | |
24472 | PyObject * obj1 = 0 ; | |
24473 | char *kwnames[] = { | |
24474 | (char *) "self",(char *) "pt", NULL | |
24475 | }; | |
24476 | ||
24477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
24478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24479 | { | |
24480 | arg2 = &temp2; | |
24481 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24482 | } | |
24483 | { | |
24484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24485 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
24486 | ||
24487 | wxPyEndAllowThreads(__tstate); | |
24488 | if (PyErr_Occurred()) SWIG_fail; | |
24489 | } | |
4e760a36 | 24490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24491 | return resultobj; |
24492 | fail: | |
24493 | return NULL; | |
24494 | } | |
24495 | ||
24496 | ||
24497 | static PyObject *_wrap_Window_isExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24498 | PyObject *resultobj; | |
24499 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24500 | wxRect *arg2 = 0 ; | |
24501 | bool result; | |
24502 | wxRect temp2 ; | |
24503 | PyObject * obj0 = 0 ; | |
24504 | PyObject * obj1 = 0 ; | |
24505 | char *kwnames[] = { | |
24506 | (char *) "self",(char *) "rect", NULL | |
24507 | }; | |
24508 | ||
24509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_isExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
24510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24511 | { | |
24512 | arg2 = &temp2; | |
24513 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24514 | } | |
24515 | { | |
24516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24517 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
24518 | ||
24519 | wxPyEndAllowThreads(__tstate); | |
24520 | if (PyErr_Occurred()) SWIG_fail; | |
24521 | } | |
4e760a36 | 24522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24523 | return resultobj; |
24524 | fail: | |
24525 | return NULL; | |
24526 | } | |
24527 | ||
24528 | ||
24529 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24530 | PyObject *resultobj; | |
24531 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24532 | wxColour *arg2 = 0 ; | |
24533 | bool result; | |
24534 | wxColour temp2 ; | |
24535 | PyObject * obj0 = 0 ; | |
24536 | PyObject * obj1 = 0 ; | |
24537 | char *kwnames[] = { | |
24538 | (char *) "self",(char *) "colour", NULL | |
24539 | }; | |
24540 | ||
24541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24543 | { | |
24544 | arg2 = &temp2; | |
24545 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24546 | } | |
24547 | { | |
24548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24549 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
24550 | ||
24551 | wxPyEndAllowThreads(__tstate); | |
24552 | if (PyErr_Occurred()) SWIG_fail; | |
24553 | } | |
4e760a36 | 24554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24555 | return resultobj; |
24556 | fail: | |
24557 | return NULL; | |
24558 | } | |
24559 | ||
24560 | ||
24561 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24562 | PyObject *resultobj; | |
24563 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24564 | wxColour *arg2 = 0 ; | |
24565 | bool result; | |
24566 | wxColour temp2 ; | |
24567 | PyObject * obj0 = 0 ; | |
24568 | PyObject * obj1 = 0 ; | |
24569 | char *kwnames[] = { | |
24570 | (char *) "self",(char *) "colour", NULL | |
24571 | }; | |
24572 | ||
24573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24575 | { | |
24576 | arg2 = &temp2; | |
24577 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24578 | } | |
24579 | { | |
24580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24581 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
24582 | ||
24583 | wxPyEndAllowThreads(__tstate); | |
24584 | if (PyErr_Occurred()) SWIG_fail; | |
24585 | } | |
4e760a36 | 24586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24587 | return resultobj; |
24588 | fail: | |
24589 | return NULL; | |
24590 | } | |
24591 | ||
24592 | ||
24593 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24594 | PyObject *resultobj; | |
24595 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24596 | wxColour result; | |
24597 | PyObject * obj0 = 0 ; | |
24598 | char *kwnames[] = { | |
24599 | (char *) "self", NULL | |
24600 | }; | |
24601 | ||
24602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
24603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24604 | { | |
24605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24606 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
24607 | ||
24608 | wxPyEndAllowThreads(__tstate); | |
24609 | if (PyErr_Occurred()) SWIG_fail; | |
24610 | } | |
24611 | { | |
24612 | wxColour * resultptr; | |
24613 | resultptr = new wxColour((wxColour &) result); | |
24614 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24615 | } | |
24616 | return resultobj; | |
24617 | fail: | |
24618 | return NULL; | |
24619 | } | |
24620 | ||
24621 | ||
24622 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24623 | PyObject *resultobj; | |
24624 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24625 | wxColour result; | |
24626 | PyObject * obj0 = 0 ; | |
24627 | char *kwnames[] = { | |
24628 | (char *) "self", NULL | |
24629 | }; | |
24630 | ||
24631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
24632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24633 | { | |
24634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24635 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
24636 | ||
24637 | wxPyEndAllowThreads(__tstate); | |
24638 | if (PyErr_Occurred()) SWIG_fail; | |
24639 | } | |
24640 | { | |
24641 | wxColour * resultptr; | |
24642 | resultptr = new wxColour((wxColour &) result); | |
24643 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24644 | } | |
24645 | return resultobj; | |
24646 | fail: | |
24647 | return NULL; | |
24648 | } | |
24649 | ||
24650 | ||
24651 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24652 | PyObject *resultobj; | |
24653 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24654 | wxCursor *arg2 = 0 ; | |
24655 | bool result; | |
24656 | PyObject * obj0 = 0 ; | |
24657 | PyObject * obj1 = 0 ; | |
24658 | char *kwnames[] = { | |
24659 | (char *) "self",(char *) "cursor", NULL | |
24660 | }; | |
24661 | ||
24662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
24663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24664 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24665 | if (arg2 == NULL) { | |
24666 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24667 | } | |
24668 | { | |
24669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24670 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
24671 | ||
24672 | wxPyEndAllowThreads(__tstate); | |
24673 | if (PyErr_Occurred()) SWIG_fail; | |
24674 | } | |
4e760a36 | 24675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24676 | return resultobj; |
24677 | fail: | |
24678 | return NULL; | |
24679 | } | |
24680 | ||
24681 | ||
24682 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24683 | PyObject *resultobj; | |
24684 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24685 | wxCursor *result; | |
24686 | PyObject * obj0 = 0 ; | |
24687 | char *kwnames[] = { | |
24688 | (char *) "self", NULL | |
24689 | }; | |
24690 | ||
24691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
24692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24693 | { | |
24694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24695 | { | |
24696 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
24697 | result = (wxCursor *) &_result_ref; | |
24698 | } | |
24699 | ||
24700 | wxPyEndAllowThreads(__tstate); | |
24701 | if (PyErr_Occurred()) SWIG_fail; | |
24702 | } | |
24703 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
24704 | return resultobj; | |
24705 | fail: | |
24706 | return NULL; | |
24707 | } | |
24708 | ||
24709 | ||
24710 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24711 | PyObject *resultobj; | |
24712 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24713 | wxFont *arg2 = 0 ; | |
24714 | bool result; | |
24715 | PyObject * obj0 = 0 ; | |
24716 | PyObject * obj1 = 0 ; | |
24717 | char *kwnames[] = { | |
24718 | (char *) "self",(char *) "font", NULL | |
24719 | }; | |
24720 | ||
24721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
24722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24723 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24724 | if (arg2 == NULL) { | |
24725 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24726 | } | |
24727 | { | |
24728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24729 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
24730 | ||
24731 | wxPyEndAllowThreads(__tstate); | |
24732 | if (PyErr_Occurred()) SWIG_fail; | |
24733 | } | |
4e760a36 | 24734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24735 | return resultobj; |
24736 | fail: | |
24737 | return NULL; | |
24738 | } | |
24739 | ||
24740 | ||
24741 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24742 | PyObject *resultobj; | |
24743 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24744 | wxFont *result; | |
24745 | PyObject * obj0 = 0 ; | |
24746 | char *kwnames[] = { | |
24747 | (char *) "self", NULL | |
24748 | }; | |
24749 | ||
24750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
24751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24752 | { | |
24753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24754 | { | |
24755 | wxFont &_result_ref = (arg1)->GetFont(); | |
24756 | result = (wxFont *) &_result_ref; | |
24757 | } | |
24758 | ||
24759 | wxPyEndAllowThreads(__tstate); | |
24760 | if (PyErr_Occurred()) SWIG_fail; | |
24761 | } | |
24762 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
24763 | return resultobj; | |
24764 | fail: | |
24765 | return NULL; | |
24766 | } | |
24767 | ||
24768 | ||
24769 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24770 | PyObject *resultobj; | |
24771 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24772 | wxCaret *arg2 = (wxCaret *) 0 ; | |
24773 | PyObject * obj0 = 0 ; | |
24774 | PyObject * obj1 = 0 ; | |
24775 | char *kwnames[] = { | |
24776 | (char *) "self",(char *) "caret", NULL | |
24777 | }; | |
24778 | ||
24779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
24780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24781 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24782 | { | |
24783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24784 | (arg1)->SetCaret(arg2); | |
24785 | ||
24786 | wxPyEndAllowThreads(__tstate); | |
24787 | if (PyErr_Occurred()) SWIG_fail; | |
24788 | } | |
24789 | Py_INCREF(Py_None); resultobj = Py_None; | |
24790 | return resultobj; | |
24791 | fail: | |
24792 | return NULL; | |
24793 | } | |
24794 | ||
24795 | ||
24796 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24797 | PyObject *resultobj; | |
24798 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24799 | wxCaret *result; | |
24800 | PyObject * obj0 = 0 ; | |
24801 | char *kwnames[] = { | |
24802 | (char *) "self", NULL | |
24803 | }; | |
24804 | ||
24805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
24806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24807 | { | |
24808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24809 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
24810 | ||
24811 | wxPyEndAllowThreads(__tstate); | |
24812 | if (PyErr_Occurred()) SWIG_fail; | |
24813 | } | |
24814 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 0); | |
24815 | return resultobj; | |
24816 | fail: | |
24817 | return NULL; | |
24818 | } | |
24819 | ||
24820 | ||
24821 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24822 | PyObject *resultobj; | |
24823 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24824 | int result; | |
24825 | PyObject * obj0 = 0 ; | |
24826 | char *kwnames[] = { | |
24827 | (char *) "self", NULL | |
24828 | }; | |
24829 | ||
24830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
24831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24832 | { | |
24833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24834 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
24835 | ||
24836 | wxPyEndAllowThreads(__tstate); | |
24837 | if (PyErr_Occurred()) SWIG_fail; | |
24838 | } | |
8edf1c75 | 24839 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
24840 | return resultobj; |
24841 | fail: | |
24842 | return NULL; | |
24843 | } | |
24844 | ||
24845 | ||
24846 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24847 | PyObject *resultobj; | |
24848 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24849 | int result; | |
24850 | PyObject * obj0 = 0 ; | |
24851 | char *kwnames[] = { | |
24852 | (char *) "self", NULL | |
24853 | }; | |
24854 | ||
24855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
24856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24857 | { | |
24858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24859 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
24860 | ||
24861 | wxPyEndAllowThreads(__tstate); | |
24862 | if (PyErr_Occurred()) SWIG_fail; | |
24863 | } | |
8edf1c75 | 24864 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
24865 | return resultobj; |
24866 | fail: | |
24867 | return NULL; | |
24868 | } | |
24869 | ||
24870 | ||
24871 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24872 | PyObject *resultobj; | |
24873 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24874 | wxString *arg2 = 0 ; | |
24875 | int *arg3 = (int *) 0 ; | |
24876 | int *arg4 = (int *) 0 ; | |
423f194a | 24877 | bool temp2 = False ; |
d14a1e28 RD |
24878 | int temp3 ; |
24879 | int temp4 ; | |
24880 | PyObject * obj0 = 0 ; | |
24881 | PyObject * obj1 = 0 ; | |
24882 | char *kwnames[] = { | |
24883 | (char *) "self",(char *) "string", NULL | |
24884 | }; | |
24885 | ||
24886 | arg3 = &temp3; | |
24887 | arg4 = &temp4; | |
24888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
24889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24890 | { | |
24891 | arg2 = wxString_in_helper(obj1); | |
24892 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24893 | temp2 = True; |
d14a1e28 RD |
24894 | } |
24895 | { | |
24896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24897 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
24898 | ||
24899 | wxPyEndAllowThreads(__tstate); | |
24900 | if (PyErr_Occurred()) SWIG_fail; | |
24901 | } | |
24902 | Py_INCREF(Py_None); resultobj = Py_None; | |
24903 | { | |
24904 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24905 | resultobj = t_output_helper(resultobj,o); | |
24906 | } | |
24907 | { | |
24908 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
24909 | resultobj = t_output_helper(resultobj,o); | |
24910 | } | |
24911 | { | |
24912 | if (temp2) | |
24913 | delete arg2; | |
24914 | } | |
24915 | return resultobj; | |
24916 | fail: | |
24917 | { | |
24918 | if (temp2) | |
24919 | delete arg2; | |
24920 | } | |
24921 | return NULL; | |
24922 | } | |
24923 | ||
24924 | ||
24925 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24926 | PyObject *resultobj; | |
24927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24928 | wxString *arg2 = 0 ; | |
24929 | int *arg3 = (int *) 0 ; | |
24930 | int *arg4 = (int *) 0 ; | |
24931 | int *arg5 = (int *) 0 ; | |
24932 | int *arg6 = (int *) 0 ; | |
24933 | wxFont *arg7 = (wxFont *) NULL ; | |
423f194a | 24934 | bool temp2 = False ; |
d14a1e28 RD |
24935 | int temp3 ; |
24936 | int temp4 ; | |
24937 | int temp5 ; | |
24938 | int temp6 ; | |
24939 | PyObject * obj0 = 0 ; | |
24940 | PyObject * obj1 = 0 ; | |
24941 | PyObject * obj2 = 0 ; | |
24942 | char *kwnames[] = { | |
24943 | (char *) "self",(char *) "string",(char *) "font", NULL | |
24944 | }; | |
24945 | ||
24946 | arg3 = &temp3; | |
24947 | arg4 = &temp4; | |
24948 | arg5 = &temp5; | |
24949 | arg6 = &temp6; | |
24950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24952 | { | |
24953 | arg2 = wxString_in_helper(obj1); | |
24954 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24955 | temp2 = True; |
d14a1e28 RD |
24956 | } |
24957 | if (obj2) { | |
24958 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24959 | } | |
24960 | { | |
24961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24962 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
24963 | ||
24964 | wxPyEndAllowThreads(__tstate); | |
24965 | if (PyErr_Occurred()) SWIG_fail; | |
24966 | } | |
24967 | Py_INCREF(Py_None); resultobj = Py_None; | |
24968 | { | |
24969 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24970 | resultobj = t_output_helper(resultobj,o); | |
24971 | } | |
24972 | { | |
24973 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
24974 | resultobj = t_output_helper(resultobj,o); | |
24975 | } | |
24976 | { | |
24977 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
24978 | resultobj = t_output_helper(resultobj,o); | |
24979 | } | |
24980 | { | |
24981 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
24982 | resultobj = t_output_helper(resultobj,o); | |
24983 | } | |
24984 | { | |
24985 | if (temp2) | |
24986 | delete arg2; | |
24987 | } | |
24988 | return resultobj; | |
24989 | fail: | |
24990 | { | |
24991 | if (temp2) | |
24992 | delete arg2; | |
24993 | } | |
24994 | return NULL; | |
24995 | } | |
24996 | ||
24997 | ||
24998 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24999 | PyObject *resultobj; | |
25000 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25001 | int *arg2 = (int *) 0 ; | |
25002 | int *arg3 = (int *) 0 ; | |
25003 | int temp2 ; | |
25004 | int temp3 ; | |
25005 | PyObject * obj0 = 0 ; | |
25006 | PyObject * obj1 = 0 ; | |
25007 | PyObject * obj2 = 0 ; | |
25008 | char *kwnames[] = { | |
25009 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25010 | }; | |
25011 | ||
25012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25014 | { | |
25015 | temp2 = PyInt_AsLong(obj1); | |
25016 | if (PyErr_Occurred()) SWIG_fail; | |
25017 | arg2 = &temp2; | |
25018 | } | |
25019 | { | |
25020 | temp3 = PyInt_AsLong(obj2); | |
25021 | if (PyErr_Occurred()) SWIG_fail; | |
25022 | arg3 = &temp3; | |
25023 | } | |
25024 | { | |
25025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25026 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
25027 | ||
25028 | wxPyEndAllowThreads(__tstate); | |
25029 | if (PyErr_Occurred()) SWIG_fail; | |
25030 | } | |
25031 | Py_INCREF(Py_None); resultobj = Py_None; | |
25032 | { | |
25033 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25034 | resultobj = t_output_helper(resultobj,o); | |
25035 | } | |
25036 | { | |
25037 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25038 | resultobj = t_output_helper(resultobj,o); | |
25039 | } | |
25040 | return resultobj; | |
25041 | fail: | |
25042 | return NULL; | |
25043 | } | |
25044 | ||
25045 | ||
25046 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25047 | PyObject *resultobj; | |
25048 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25049 | int *arg2 = (int *) 0 ; | |
25050 | int *arg3 = (int *) 0 ; | |
25051 | int temp2 ; | |
25052 | int temp3 ; | |
25053 | PyObject * obj0 = 0 ; | |
25054 | PyObject * obj1 = 0 ; | |
25055 | PyObject * obj2 = 0 ; | |
25056 | char *kwnames[] = { | |
25057 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25058 | }; | |
25059 | ||
25060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25062 | { | |
25063 | temp2 = PyInt_AsLong(obj1); | |
25064 | if (PyErr_Occurred()) SWIG_fail; | |
25065 | arg2 = &temp2; | |
25066 | } | |
25067 | { | |
25068 | temp3 = PyInt_AsLong(obj2); | |
25069 | if (PyErr_Occurred()) SWIG_fail; | |
25070 | arg3 = &temp3; | |
25071 | } | |
25072 | { | |
25073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25074 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
25075 | ||
25076 | wxPyEndAllowThreads(__tstate); | |
25077 | if (PyErr_Occurred()) SWIG_fail; | |
25078 | } | |
25079 | Py_INCREF(Py_None); resultobj = Py_None; | |
25080 | { | |
25081 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25082 | resultobj = t_output_helper(resultobj,o); | |
25083 | } | |
25084 | { | |
25085 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25086 | resultobj = t_output_helper(resultobj,o); | |
25087 | } | |
25088 | return resultobj; | |
25089 | fail: | |
25090 | return NULL; | |
25091 | } | |
25092 | ||
25093 | ||
25094 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25095 | PyObject *resultobj; | |
25096 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25097 | wxPoint *arg2 = 0 ; | |
25098 | wxPoint result; | |
25099 | wxPoint temp2 ; | |
25100 | PyObject * obj0 = 0 ; | |
25101 | PyObject * obj1 = 0 ; | |
25102 | char *kwnames[] = { | |
25103 | (char *) "self",(char *) "pt", NULL | |
25104 | }; | |
25105 | ||
25106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
25107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25108 | { | |
25109 | arg2 = &temp2; | |
25110 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25111 | } | |
25112 | { | |
25113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25114 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
25115 | ||
25116 | wxPyEndAllowThreads(__tstate); | |
25117 | if (PyErr_Occurred()) SWIG_fail; | |
25118 | } | |
25119 | { | |
25120 | wxPoint * resultptr; | |
25121 | resultptr = new wxPoint((wxPoint &) result); | |
25122 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
25123 | } | |
25124 | return resultobj; | |
25125 | fail: | |
25126 | return NULL; | |
25127 | } | |
25128 | ||
25129 | ||
25130 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25131 | PyObject *resultobj; | |
25132 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25133 | wxPoint *arg2 = 0 ; | |
25134 | wxPoint result; | |
25135 | wxPoint temp2 ; | |
25136 | PyObject * obj0 = 0 ; | |
25137 | PyObject * obj1 = 0 ; | |
25138 | char *kwnames[] = { | |
25139 | (char *) "self",(char *) "pt", NULL | |
25140 | }; | |
25141 | ||
25142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
25143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25144 | { | |
25145 | arg2 = &temp2; | |
25146 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25147 | } | |
25148 | { | |
25149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25150 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
25151 | ||
25152 | wxPyEndAllowThreads(__tstate); | |
25153 | if (PyErr_Occurred()) SWIG_fail; | |
25154 | } | |
25155 | { | |
25156 | wxPoint * resultptr; | |
25157 | resultptr = new wxPoint((wxPoint &) result); | |
25158 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
25159 | } | |
25160 | return resultobj; | |
25161 | fail: | |
25162 | return NULL; | |
25163 | } | |
25164 | ||
25165 | ||
25166 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25167 | PyObject *resultobj; | |
25168 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a RD |
25169 | int arg2 ; |
25170 | int arg3 ; | |
d14a1e28 RD |
25171 | int result; |
25172 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25173 | PyObject * obj1 = 0 ; |
25174 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25175 | char *kwnames[] = { |
25176 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25177 | }; | |
25178 | ||
8edf1c75 | 25179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 25180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25181 | { |
25182 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25183 | if (PyErr_Occurred()) SWIG_fail; | |
25184 | } | |
25185 | { | |
25186 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25187 | if (PyErr_Occurred()) SWIG_fail; | |
25188 | } | |
d14a1e28 RD |
25189 | { |
25190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25191 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
25192 | ||
25193 | wxPyEndAllowThreads(__tstate); | |
25194 | if (PyErr_Occurred()) SWIG_fail; | |
25195 | } | |
8edf1c75 | 25196 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25197 | return resultobj; |
25198 | fail: | |
25199 | return NULL; | |
25200 | } | |
25201 | ||
25202 | ||
25203 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25204 | PyObject *resultobj; | |
25205 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25206 | wxPoint *arg2 = 0 ; | |
25207 | int result; | |
25208 | wxPoint temp2 ; | |
25209 | PyObject * obj0 = 0 ; | |
25210 | PyObject * obj1 = 0 ; | |
25211 | char *kwnames[] = { | |
25212 | (char *) "self",(char *) "pt", NULL | |
25213 | }; | |
25214 | ||
25215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
25216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25217 | { | |
25218 | arg2 = &temp2; | |
25219 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25220 | } | |
25221 | { | |
25222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25223 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
25224 | ||
25225 | wxPyEndAllowThreads(__tstate); | |
25226 | if (PyErr_Occurred()) SWIG_fail; | |
25227 | } | |
8edf1c75 | 25228 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25229 | return resultobj; |
25230 | fail: | |
25231 | return NULL; | |
25232 | } | |
25233 | ||
25234 | ||
25235 | static PyObject *_wrap_Window_GetBorderFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25236 | PyObject *resultobj; | |
25237 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25238 | long arg2 ; | |
25239 | int result; | |
25240 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25241 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25242 | char *kwnames[] = { |
25243 | (char *) "self",(char *) "flags", NULL | |
25244 | }; | |
25245 | ||
8edf1c75 | 25246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetBorderFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25248 | { |
25249 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
25250 | if (PyErr_Occurred()) SWIG_fail; | |
25251 | } | |
d14a1e28 RD |
25252 | { |
25253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25254 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
25255 | ||
25256 | wxPyEndAllowThreads(__tstate); | |
25257 | if (PyErr_Occurred()) SWIG_fail; | |
25258 | } | |
8edf1c75 | 25259 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25260 | return resultobj; |
25261 | fail: | |
25262 | return NULL; | |
25263 | } | |
25264 | ||
25265 | ||
25266 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25267 | PyObject *resultobj; | |
25268 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25269 | int result; | |
25270 | PyObject * obj0 = 0 ; | |
25271 | char *kwnames[] = { | |
25272 | (char *) "self", NULL | |
25273 | }; | |
25274 | ||
25275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBorder",kwnames,&obj0)) goto fail; | |
25276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25277 | { | |
25278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25279 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
25280 | ||
25281 | wxPyEndAllowThreads(__tstate); | |
25282 | if (PyErr_Occurred()) SWIG_fail; | |
25283 | } | |
8edf1c75 | 25284 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25285 | return resultobj; |
25286 | fail: | |
25287 | return NULL; | |
25288 | } | |
25289 | ||
25290 | ||
25291 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25292 | PyObject *resultobj; | |
25293 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25294 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
25295 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25296 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25297 | char *kwnames[] = { |
25298 | (char *) "self",(char *) "flags", NULL | |
25299 | }; | |
25300 | ||
8edf1c75 | 25301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25303 | if (obj1) { |
25304 | { | |
25305 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
25306 | if (PyErr_Occurred()) SWIG_fail; | |
25307 | } | |
25308 | } | |
d14a1e28 RD |
25309 | { |
25310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25311 | (arg1)->UpdateWindowUI(arg2); | |
25312 | ||
25313 | wxPyEndAllowThreads(__tstate); | |
25314 | if (PyErr_Occurred()) SWIG_fail; | |
25315 | } | |
25316 | Py_INCREF(Py_None); resultobj = Py_None; | |
25317 | return resultobj; | |
25318 | fail: | |
25319 | return NULL; | |
25320 | } | |
25321 | ||
25322 | ||
25323 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25324 | PyObject *resultobj; | |
25325 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25326 | wxMenu *arg2 = (wxMenu *) 0 ; | |
25327 | int arg3 ; | |
25328 | int arg4 ; | |
25329 | bool result; | |
25330 | PyObject * obj0 = 0 ; | |
25331 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
25332 | PyObject * obj2 = 0 ; |
25333 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25334 | char *kwnames[] = { |
25335 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
25336 | }; | |
25337 | ||
8edf1c75 | 25338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
25339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25340 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
25341 | { |
25342 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25343 | if (PyErr_Occurred()) SWIG_fail; | |
25344 | } | |
25345 | { | |
25346 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25347 | if (PyErr_Occurred()) SWIG_fail; | |
25348 | } | |
d14a1e28 RD |
25349 | { |
25350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25351 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
25352 | ||
25353 | wxPyEndAllowThreads(__tstate); | |
25354 | if (PyErr_Occurred()) SWIG_fail; | |
25355 | } | |
4e760a36 | 25356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25357 | return resultobj; |
25358 | fail: | |
25359 | return NULL; | |
25360 | } | |
25361 | ||
25362 | ||
25363 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25364 | PyObject *resultobj; | |
25365 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25366 | wxMenu *arg2 = (wxMenu *) 0 ; | |
25367 | wxPoint *arg3 = 0 ; | |
25368 | bool result; | |
25369 | wxPoint temp3 ; | |
25370 | PyObject * obj0 = 0 ; | |
25371 | PyObject * obj1 = 0 ; | |
25372 | PyObject * obj2 = 0 ; | |
25373 | char *kwnames[] = { | |
25374 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
25375 | }; | |
25376 | ||
25377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25379 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25380 | { | |
25381 | arg3 = &temp3; | |
25382 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25383 | } | |
25384 | { | |
25385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25386 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
25387 | ||
25388 | wxPyEndAllowThreads(__tstate); | |
25389 | if (PyErr_Occurred()) SWIG_fail; | |
25390 | } | |
4e760a36 | 25391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25392 | return resultobj; |
25393 | fail: | |
25394 | return NULL; | |
25395 | } | |
25396 | ||
25397 | ||
25398 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25399 | PyObject *resultobj; | |
25400 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25401 | long result; | |
25402 | PyObject * obj0 = 0 ; | |
25403 | char *kwnames[] = { | |
25404 | (char *) "self", NULL | |
25405 | }; | |
25406 | ||
25407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
25408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25409 | { | |
25410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25411 | result = (long)wxWindow_GetHandle(arg1); | |
25412 | ||
25413 | wxPyEndAllowThreads(__tstate); | |
25414 | if (PyErr_Occurred()) SWIG_fail; | |
25415 | } | |
8edf1c75 | 25416 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
25417 | return resultobj; |
25418 | fail: | |
25419 | return NULL; | |
25420 | } | |
25421 | ||
25422 | ||
25423 | static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25424 | PyObject *resultobj; | |
25425 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25426 | wxPaintEvent *arg2 = 0 ; | |
25427 | PyObject * obj0 = 0 ; | |
25428 | PyObject * obj1 = 0 ; | |
25429 | char *kwnames[] = { | |
25430 | (char *) "self",(char *) "event", NULL | |
25431 | }; | |
25432 | ||
25433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
25434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25435 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPaintEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25436 | if (arg2 == NULL) { | |
25437 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25438 | } | |
25439 | { | |
25440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25441 | (arg1)->OnPaint(*arg2); | |
25442 | ||
25443 | wxPyEndAllowThreads(__tstate); | |
25444 | if (PyErr_Occurred()) SWIG_fail; | |
25445 | } | |
25446 | Py_INCREF(Py_None); resultobj = Py_None; | |
25447 | return resultobj; | |
25448 | fail: | |
25449 | return NULL; | |
25450 | } | |
25451 | ||
25452 | ||
25453 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25454 | PyObject *resultobj; | |
25455 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25456 | int arg2 ; | |
25457 | bool result; | |
25458 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25459 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25460 | char *kwnames[] = { |
25461 | (char *) "self",(char *) "orient", NULL | |
25462 | }; | |
25463 | ||
8edf1c75 | 25464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25466 | { |
25467 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25468 | if (PyErr_Occurred()) SWIG_fail; | |
25469 | } | |
d14a1e28 RD |
25470 | { |
25471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25472 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
25473 | ||
25474 | wxPyEndAllowThreads(__tstate); | |
25475 | if (PyErr_Occurred()) SWIG_fail; | |
25476 | } | |
4e760a36 | 25477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25478 | return resultobj; |
25479 | fail: | |
25480 | return NULL; | |
25481 | } | |
25482 | ||
25483 | ||
25484 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25485 | PyObject *resultobj; | |
25486 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25487 | int arg2 ; | |
25488 | int arg3 ; | |
25489 | int arg4 ; | |
25490 | int arg5 ; | |
423f194a | 25491 | bool arg6 = (bool) True ; |
d14a1e28 | 25492 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
25493 | PyObject * obj1 = 0 ; |
25494 | PyObject * obj2 = 0 ; | |
25495 | PyObject * obj3 = 0 ; | |
25496 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25497 | PyObject * obj5 = 0 ; |
25498 | char *kwnames[] = { | |
25499 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL | |
25500 | }; | |
25501 | ||
8edf1c75 | 25502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 25503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25504 | { |
25505 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25506 | if (PyErr_Occurred()) SWIG_fail; | |
25507 | } | |
25508 | { | |
25509 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25510 | if (PyErr_Occurred()) SWIG_fail; | |
25511 | } | |
25512 | { | |
25513 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25514 | if (PyErr_Occurred()) SWIG_fail; | |
25515 | } | |
25516 | { | |
25517 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25518 | if (PyErr_Occurred()) SWIG_fail; | |
25519 | } | |
d14a1e28 | 25520 | if (obj5) { |
83448d71 | 25521 | { |
8edf1c75 | 25522 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
83448d71 RD |
25523 | if (PyErr_Occurred()) SWIG_fail; |
25524 | } | |
d14a1e28 RD |
25525 | } |
25526 | { | |
25527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25528 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
25529 | ||
25530 | wxPyEndAllowThreads(__tstate); | |
25531 | if (PyErr_Occurred()) SWIG_fail; | |
25532 | } | |
25533 | Py_INCREF(Py_None); resultobj = Py_None; | |
25534 | return resultobj; | |
25535 | fail: | |
25536 | return NULL; | |
25537 | } | |
25538 | ||
25539 | ||
25540 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25541 | PyObject *resultobj; | |
25542 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25543 | int arg2 ; | |
25544 | int arg3 ; | |
423f194a | 25545 | bool arg4 = (bool) True ; |
d14a1e28 | 25546 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
25547 | PyObject * obj1 = 0 ; |
25548 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25549 | PyObject * obj3 = 0 ; |
25550 | char *kwnames[] = { | |
25551 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "refresh", NULL | |
25552 | }; | |
25553 | ||
8edf1c75 | 25554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25556 | { |
25557 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25558 | if (PyErr_Occurred()) SWIG_fail; | |
25559 | } | |
25560 | { | |
25561 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25562 | if (PyErr_Occurred()) SWIG_fail; | |
25563 | } | |
d14a1e28 | 25564 | if (obj3) { |
83448d71 | 25565 | { |
8edf1c75 | 25566 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
25567 | if (PyErr_Occurred()) SWIG_fail; |
25568 | } | |
d14a1e28 RD |
25569 | } |
25570 | { | |
25571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25572 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
25573 | ||
25574 | wxPyEndAllowThreads(__tstate); | |
25575 | if (PyErr_Occurred()) SWIG_fail; | |
25576 | } | |
25577 | Py_INCREF(Py_None); resultobj = Py_None; | |
25578 | return resultobj; | |
25579 | fail: | |
25580 | return NULL; | |
25581 | } | |
25582 | ||
25583 | ||
25584 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25585 | PyObject *resultobj; | |
25586 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25587 | int arg2 ; | |
25588 | int result; | |
25589 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25590 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25591 | char *kwnames[] = { |
25592 | (char *) "self",(char *) "orient", NULL | |
25593 | }; | |
25594 | ||
8edf1c75 | 25595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25597 | { |
25598 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25599 | if (PyErr_Occurred()) SWIG_fail; | |
25600 | } | |
d14a1e28 RD |
25601 | { |
25602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25603 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
25604 | ||
25605 | wxPyEndAllowThreads(__tstate); | |
25606 | if (PyErr_Occurred()) SWIG_fail; | |
25607 | } | |
8edf1c75 | 25608 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25609 | return resultobj; |
25610 | fail: | |
25611 | return NULL; | |
25612 | } | |
25613 | ||
25614 | ||
25615 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25616 | PyObject *resultobj; | |
25617 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25618 | int arg2 ; | |
25619 | int result; | |
25620 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25621 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25622 | char *kwnames[] = { |
25623 | (char *) "self",(char *) "orient", NULL | |
25624 | }; | |
25625 | ||
8edf1c75 | 25626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25628 | { |
25629 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25630 | if (PyErr_Occurred()) SWIG_fail; | |
25631 | } | |
d14a1e28 RD |
25632 | { |
25633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25634 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
25635 | ||
25636 | wxPyEndAllowThreads(__tstate); | |
25637 | if (PyErr_Occurred()) SWIG_fail; | |
25638 | } | |
8edf1c75 | 25639 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25640 | return resultobj; |
25641 | fail: | |
25642 | return NULL; | |
25643 | } | |
25644 | ||
25645 | ||
25646 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25647 | PyObject *resultobj; | |
25648 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25649 | int arg2 ; | |
25650 | int result; | |
25651 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25652 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25653 | char *kwnames[] = { |
25654 | (char *) "self",(char *) "orient", NULL | |
25655 | }; | |
25656 | ||
8edf1c75 | 25657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25659 | { |
25660 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25661 | if (PyErr_Occurred()) SWIG_fail; | |
25662 | } | |
d14a1e28 RD |
25663 | { |
25664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25665 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
25666 | ||
25667 | wxPyEndAllowThreads(__tstate); | |
25668 | if (PyErr_Occurred()) SWIG_fail; | |
25669 | } | |
8edf1c75 | 25670 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25671 | return resultobj; |
25672 | fail: | |
25673 | return NULL; | |
25674 | } | |
25675 | ||
25676 | ||
25677 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25678 | PyObject *resultobj; | |
25679 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25680 | int arg2 ; | |
25681 | int arg3 ; | |
25682 | wxRect *arg4 = (wxRect *) NULL ; | |
25683 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25684 | PyObject * obj1 = 0 ; |
25685 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25686 | PyObject * obj3 = 0 ; |
25687 | char *kwnames[] = { | |
25688 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
25689 | }; | |
25690 | ||
8edf1c75 | 25691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25693 | { |
25694 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25695 | if (PyErr_Occurred()) SWIG_fail; | |
25696 | } | |
25697 | { | |
25698 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25699 | if (PyErr_Occurred()) SWIG_fail; | |
25700 | } | |
d14a1e28 RD |
25701 | if (obj3) { |
25702 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25703 | } | |
25704 | { | |
25705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25706 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
25707 | ||
25708 | wxPyEndAllowThreads(__tstate); | |
25709 | if (PyErr_Occurred()) SWIG_fail; | |
25710 | } | |
25711 | Py_INCREF(Py_None); resultobj = Py_None; | |
25712 | return resultobj; | |
25713 | fail: | |
25714 | return NULL; | |
25715 | } | |
25716 | ||
25717 | ||
25718 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25719 | PyObject *resultobj; | |
25720 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25721 | int arg2 ; | |
25722 | bool result; | |
25723 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25724 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25725 | char *kwnames[] = { |
25726 | (char *) "self",(char *) "lines", NULL | |
25727 | }; | |
25728 | ||
8edf1c75 | 25729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25731 | { |
25732 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25733 | if (PyErr_Occurred()) SWIG_fail; | |
25734 | } | |
d14a1e28 RD |
25735 | { |
25736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25737 | result = (bool)(arg1)->ScrollLines(arg2); | |
25738 | ||
25739 | wxPyEndAllowThreads(__tstate); | |
25740 | if (PyErr_Occurred()) SWIG_fail; | |
25741 | } | |
4e760a36 | 25742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25743 | return resultobj; |
25744 | fail: | |
25745 | return NULL; | |
25746 | } | |
25747 | ||
25748 | ||
25749 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25750 | PyObject *resultobj; | |
25751 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25752 | int arg2 ; | |
25753 | bool result; | |
25754 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25755 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25756 | char *kwnames[] = { |
25757 | (char *) "self",(char *) "pages", NULL | |
25758 | }; | |
25759 | ||
8edf1c75 | 25760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25762 | { |
25763 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25764 | if (PyErr_Occurred()) SWIG_fail; | |
25765 | } | |
d14a1e28 RD |
25766 | { |
25767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25768 | result = (bool)(arg1)->ScrollPages(arg2); | |
25769 | ||
25770 | wxPyEndAllowThreads(__tstate); | |
25771 | if (PyErr_Occurred()) SWIG_fail; | |
25772 | } | |
4e760a36 | 25773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25774 | return resultobj; |
25775 | fail: | |
25776 | return NULL; | |
25777 | } | |
25778 | ||
25779 | ||
25780 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25781 | PyObject *resultobj; | |
25782 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25783 | bool result; | |
25784 | PyObject * obj0 = 0 ; | |
25785 | char *kwnames[] = { | |
25786 | (char *) "self", NULL | |
25787 | }; | |
25788 | ||
25789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
25790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25791 | { | |
25792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25793 | result = (bool)(arg1)->LineUp(); | |
25794 | ||
25795 | wxPyEndAllowThreads(__tstate); | |
25796 | if (PyErr_Occurred()) SWIG_fail; | |
25797 | } | |
4e760a36 | 25798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25799 | return resultobj; |
25800 | fail: | |
25801 | return NULL; | |
25802 | } | |
25803 | ||
25804 | ||
25805 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25806 | PyObject *resultobj; | |
25807 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25808 | bool result; | |
25809 | PyObject * obj0 = 0 ; | |
25810 | char *kwnames[] = { | |
25811 | (char *) "self", NULL | |
25812 | }; | |
25813 | ||
25814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
25815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25816 | { | |
25817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25818 | result = (bool)(arg1)->LineDown(); | |
25819 | ||
25820 | wxPyEndAllowThreads(__tstate); | |
25821 | if (PyErr_Occurred()) SWIG_fail; | |
25822 | } | |
4e760a36 | 25823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25824 | return resultobj; |
25825 | fail: | |
25826 | return NULL; | |
25827 | } | |
25828 | ||
25829 | ||
25830 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25831 | PyObject *resultobj; | |
25832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25833 | bool result; | |
25834 | PyObject * obj0 = 0 ; | |
25835 | char *kwnames[] = { | |
25836 | (char *) "self", NULL | |
25837 | }; | |
25838 | ||
25839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
25840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25841 | { | |
25842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25843 | result = (bool)(arg1)->PageUp(); | |
25844 | ||
25845 | wxPyEndAllowThreads(__tstate); | |
25846 | if (PyErr_Occurred()) SWIG_fail; | |
25847 | } | |
4e760a36 | 25848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25849 | return resultobj; |
25850 | fail: | |
25851 | return NULL; | |
25852 | } | |
25853 | ||
25854 | ||
25855 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25856 | PyObject *resultobj; | |
25857 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25858 | bool result; | |
25859 | PyObject * obj0 = 0 ; | |
25860 | char *kwnames[] = { | |
25861 | (char *) "self", NULL | |
25862 | }; | |
25863 | ||
25864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
25865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25866 | { | |
25867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25868 | result = (bool)(arg1)->PageDown(); | |
25869 | ||
25870 | wxPyEndAllowThreads(__tstate); | |
25871 | if (PyErr_Occurred()) SWIG_fail; | |
25872 | } | |
4e760a36 | 25873 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25874 | return resultobj; |
25875 | fail: | |
25876 | return NULL; | |
25877 | } | |
25878 | ||
25879 | ||
25880 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25881 | PyObject *resultobj; | |
25882 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25883 | wxString *arg2 = 0 ; | |
423f194a | 25884 | bool temp2 = False ; |
d14a1e28 RD |
25885 | PyObject * obj0 = 0 ; |
25886 | PyObject * obj1 = 0 ; | |
25887 | char *kwnames[] = { | |
25888 | (char *) "self",(char *) "text", NULL | |
25889 | }; | |
25890 | ||
25891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
25892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25893 | { | |
25894 | arg2 = wxString_in_helper(obj1); | |
25895 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25896 | temp2 = True; |
d14a1e28 RD |
25897 | } |
25898 | { | |
25899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25900 | (arg1)->SetHelpText((wxString const &)*arg2); | |
25901 | ||
25902 | wxPyEndAllowThreads(__tstate); | |
25903 | if (PyErr_Occurred()) SWIG_fail; | |
25904 | } | |
25905 | Py_INCREF(Py_None); resultobj = Py_None; | |
25906 | { | |
25907 | if (temp2) | |
25908 | delete arg2; | |
25909 | } | |
25910 | return resultobj; | |
25911 | fail: | |
25912 | { | |
25913 | if (temp2) | |
25914 | delete arg2; | |
25915 | } | |
25916 | return NULL; | |
25917 | } | |
25918 | ||
25919 | ||
25920 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25921 | PyObject *resultobj; | |
25922 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25923 | wxString *arg2 = 0 ; | |
423f194a | 25924 | bool temp2 = False ; |
d14a1e28 RD |
25925 | PyObject * obj0 = 0 ; |
25926 | PyObject * obj1 = 0 ; | |
25927 | char *kwnames[] = { | |
25928 | (char *) "self",(char *) "text", NULL | |
25929 | }; | |
25930 | ||
25931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
25932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25933 | { | |
25934 | arg2 = wxString_in_helper(obj1); | |
25935 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25936 | temp2 = True; |
d14a1e28 RD |
25937 | } |
25938 | { | |
25939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25940 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
25941 | ||
25942 | wxPyEndAllowThreads(__tstate); | |
25943 | if (PyErr_Occurred()) SWIG_fail; | |
25944 | } | |
25945 | Py_INCREF(Py_None); resultobj = Py_None; | |
25946 | { | |
25947 | if (temp2) | |
25948 | delete arg2; | |
25949 | } | |
25950 | return resultobj; | |
25951 | fail: | |
25952 | { | |
25953 | if (temp2) | |
25954 | delete arg2; | |
25955 | } | |
25956 | return NULL; | |
25957 | } | |
25958 | ||
25959 | ||
25960 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25961 | PyObject *resultobj; | |
25962 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25963 | wxString result; | |
25964 | PyObject * obj0 = 0 ; | |
25965 | char *kwnames[] = { | |
25966 | (char *) "self", NULL | |
25967 | }; | |
25968 | ||
25969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
25970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25971 | { | |
25972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25973 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
25974 | ||
25975 | wxPyEndAllowThreads(__tstate); | |
25976 | if (PyErr_Occurred()) SWIG_fail; | |
25977 | } | |
25978 | { | |
25979 | #if wxUSE_UNICODE | |
25980 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25981 | #else | |
25982 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25983 | #endif | |
25984 | } | |
25985 | return resultobj; | |
25986 | fail: | |
25987 | return NULL; | |
25988 | } | |
25989 | ||
25990 | ||
25991 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25992 | PyObject *resultobj; | |
25993 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25994 | wxString *arg2 = 0 ; | |
423f194a | 25995 | bool temp2 = False ; |
d14a1e28 RD |
25996 | PyObject * obj0 = 0 ; |
25997 | PyObject * obj1 = 0 ; | |
25998 | char *kwnames[] = { | |
25999 | (char *) "self",(char *) "tip", NULL | |
26000 | }; | |
26001 | ||
26002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
26003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26004 | { | |
26005 | arg2 = wxString_in_helper(obj1); | |
26006 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26007 | temp2 = True; |
d14a1e28 RD |
26008 | } |
26009 | { | |
26010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26011 | (arg1)->SetToolTip((wxString const &)*arg2); | |
26012 | ||
26013 | wxPyEndAllowThreads(__tstate); | |
26014 | if (PyErr_Occurred()) SWIG_fail; | |
26015 | } | |
26016 | Py_INCREF(Py_None); resultobj = Py_None; | |
26017 | { | |
26018 | if (temp2) | |
26019 | delete arg2; | |
26020 | } | |
26021 | return resultobj; | |
26022 | fail: | |
26023 | { | |
26024 | if (temp2) | |
26025 | delete arg2; | |
26026 | } | |
26027 | return NULL; | |
26028 | } | |
26029 | ||
26030 | ||
26031 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26032 | PyObject *resultobj; | |
26033 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26034 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
26035 | PyObject * obj0 = 0 ; | |
26036 | PyObject * obj1 = 0 ; | |
26037 | char *kwnames[] = { | |
26038 | (char *) "self",(char *) "tip", NULL | |
26039 | }; | |
26040 | ||
26041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
26042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26043 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26044 | { | |
26045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26046 | (arg1)->SetToolTip(arg2); | |
26047 | ||
26048 | wxPyEndAllowThreads(__tstate); | |
26049 | if (PyErr_Occurred()) SWIG_fail; | |
26050 | } | |
26051 | Py_INCREF(Py_None); resultobj = Py_None; | |
26052 | return resultobj; | |
26053 | fail: | |
26054 | return NULL; | |
26055 | } | |
26056 | ||
26057 | ||
26058 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26059 | PyObject *resultobj; | |
26060 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26061 | wxToolTip *result; | |
26062 | PyObject * obj0 = 0 ; | |
26063 | char *kwnames[] = { | |
26064 | (char *) "self", NULL | |
26065 | }; | |
26066 | ||
26067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
26068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26069 | { | |
26070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26071 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
26072 | ||
26073 | wxPyEndAllowThreads(__tstate); | |
26074 | if (PyErr_Occurred()) SWIG_fail; | |
26075 | } | |
26076 | { | |
26077 | resultobj = wxPyMake_wxObject(result); | |
26078 | } | |
26079 | return resultobj; | |
26080 | fail: | |
26081 | return NULL; | |
26082 | } | |
26083 | ||
26084 | ||
26085 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26086 | PyObject *resultobj; | |
26087 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 26088 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
26089 | PyObject * obj0 = 0 ; |
26090 | PyObject * obj1 = 0 ; | |
26091 | char *kwnames[] = { | |
26092 | (char *) "self",(char *) "dropTarget", NULL | |
26093 | }; | |
26094 | ||
26095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
26096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 26097 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
26098 | { |
26099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26100 | (arg1)->SetDropTarget(arg2); | |
26101 | ||
26102 | wxPyEndAllowThreads(__tstate); | |
26103 | if (PyErr_Occurred()) SWIG_fail; | |
26104 | } | |
26105 | Py_INCREF(Py_None); resultobj = Py_None; | |
26106 | return resultobj; | |
26107 | fail: | |
26108 | return NULL; | |
26109 | } | |
26110 | ||
26111 | ||
26112 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26113 | PyObject *resultobj; | |
26114 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 26115 | wxPyDropTarget *result; |
d14a1e28 RD |
26116 | PyObject * obj0 = 0 ; |
26117 | char *kwnames[] = { | |
26118 | (char *) "self", NULL | |
26119 | }; | |
26120 | ||
26121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
26122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26123 | { | |
26124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 26125 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
26126 | |
26127 | wxPyEndAllowThreads(__tstate); | |
26128 | if (PyErr_Occurred()) SWIG_fail; | |
26129 | } | |
44127b65 | 26130 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
26131 | return resultobj; |
26132 | fail: | |
26133 | return NULL; | |
26134 | } | |
26135 | ||
26136 | ||
26137 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26138 | PyObject *resultobj; | |
26139 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26140 | bool arg2 ; | |
26141 | PyObject * obj0 = 0 ; | |
26142 | PyObject * obj1 = 0 ; | |
26143 | char *kwnames[] = { | |
26144 | (char *) "self",(char *) "accept", NULL | |
26145 | }; | |
26146 | ||
26147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
26148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 26149 | { |
8edf1c75 | 26150 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
26151 | if (PyErr_Occurred()) SWIG_fail; |
26152 | } | |
d14a1e28 RD |
26153 | { |
26154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26155 | (arg1)->DragAcceptFiles(arg2); | |
26156 | ||
26157 | wxPyEndAllowThreads(__tstate); | |
26158 | if (PyErr_Occurred()) SWIG_fail; | |
26159 | } | |
26160 | Py_INCREF(Py_None); resultobj = Py_None; | |
26161 | return resultobj; | |
26162 | fail: | |
26163 | return NULL; | |
26164 | } | |
26165 | ||
26166 | ||
26167 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26168 | PyObject *resultobj; | |
26169 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26170 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
26171 | PyObject * obj0 = 0 ; | |
26172 | PyObject * obj1 = 0 ; | |
26173 | char *kwnames[] = { | |
26174 | (char *) "self",(char *) "constraints", NULL | |
26175 | }; | |
26176 | ||
26177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
26178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26179 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26180 | { | |
26181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26182 | (arg1)->SetConstraints(arg2); | |
26183 | ||
26184 | wxPyEndAllowThreads(__tstate); | |
26185 | if (PyErr_Occurred()) SWIG_fail; | |
26186 | } | |
26187 | Py_INCREF(Py_None); resultobj = Py_None; | |
26188 | return resultobj; | |
26189 | fail: | |
26190 | return NULL; | |
26191 | } | |
26192 | ||
26193 | ||
26194 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26195 | PyObject *resultobj; | |
26196 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26197 | wxLayoutConstraints *result; | |
26198 | PyObject * obj0 = 0 ; | |
26199 | char *kwnames[] = { | |
26200 | (char *) "self", NULL | |
26201 | }; | |
26202 | ||
26203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
26204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26205 | { | |
26206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26207 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
26208 | ||
26209 | wxPyEndAllowThreads(__tstate); | |
26210 | if (PyErr_Occurred()) SWIG_fail; | |
26211 | } | |
26212 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 0); | |
26213 | return resultobj; | |
26214 | fail: | |
26215 | return NULL; | |
26216 | } | |
26217 | ||
26218 | ||
26219 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26220 | PyObject *resultobj; | |
26221 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26222 | bool arg2 ; | |
26223 | PyObject * obj0 = 0 ; | |
26224 | PyObject * obj1 = 0 ; | |
26225 | char *kwnames[] = { | |
26226 | (char *) "self",(char *) "autoLayout", NULL | |
26227 | }; | |
26228 | ||
26229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
26230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 26231 | { |
8edf1c75 | 26232 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
26233 | if (PyErr_Occurred()) SWIG_fail; |
26234 | } | |
d14a1e28 RD |
26235 | { |
26236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26237 | (arg1)->SetAutoLayout(arg2); | |
26238 | ||
26239 | wxPyEndAllowThreads(__tstate); | |
26240 | if (PyErr_Occurred()) SWIG_fail; | |
26241 | } | |
26242 | Py_INCREF(Py_None); resultobj = Py_None; | |
26243 | return resultobj; | |
26244 | fail: | |
26245 | return NULL; | |
26246 | } | |
26247 | ||
26248 | ||
26249 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26250 | PyObject *resultobj; | |
26251 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26252 | bool result; | |
26253 | PyObject * obj0 = 0 ; | |
26254 | char *kwnames[] = { | |
26255 | (char *) "self", NULL | |
26256 | }; | |
26257 | ||
26258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
26259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26260 | { | |
26261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26262 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
26263 | ||
26264 | wxPyEndAllowThreads(__tstate); | |
26265 | if (PyErr_Occurred()) SWIG_fail; | |
26266 | } | |
4e760a36 | 26267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26268 | return resultobj; |
26269 | fail: | |
26270 | return NULL; | |
26271 | } | |
26272 | ||
26273 | ||
26274 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26275 | PyObject *resultobj; | |
26276 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26277 | bool result; | |
26278 | PyObject * obj0 = 0 ; | |
26279 | char *kwnames[] = { | |
26280 | (char *) "self", NULL | |
26281 | }; | |
26282 | ||
26283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
26284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26285 | { | |
26286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26287 | result = (bool)(arg1)->Layout(); | |
26288 | ||
26289 | wxPyEndAllowThreads(__tstate); | |
26290 | if (PyErr_Occurred()) SWIG_fail; | |
26291 | } | |
4e760a36 | 26292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26293 | return resultobj; |
26294 | fail: | |
26295 | return NULL; | |
26296 | } | |
26297 | ||
26298 | ||
26299 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26300 | PyObject *resultobj; | |
26301 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26302 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 26303 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26304 | PyObject * obj0 = 0 ; |
26305 | PyObject * obj1 = 0 ; | |
26306 | PyObject * obj2 = 0 ; | |
26307 | char *kwnames[] = { | |
26308 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
26309 | }; | |
26310 | ||
26311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26313 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26314 | if (obj2) { | |
83448d71 | 26315 | { |
8edf1c75 | 26316 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
26317 | if (PyErr_Occurred()) SWIG_fail; |
26318 | } | |
d14a1e28 RD |
26319 | } |
26320 | { | |
26321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26322 | (arg1)->SetSizer(arg2,arg3); | |
26323 | ||
26324 | wxPyEndAllowThreads(__tstate); | |
26325 | if (PyErr_Occurred()) SWIG_fail; | |
26326 | } | |
26327 | Py_INCREF(Py_None); resultobj = Py_None; | |
26328 | return resultobj; | |
26329 | fail: | |
26330 | return NULL; | |
26331 | } | |
26332 | ||
26333 | ||
26334 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26335 | PyObject *resultobj; | |
26336 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26337 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 26338 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26339 | PyObject * obj0 = 0 ; |
26340 | PyObject * obj1 = 0 ; | |
26341 | PyObject * obj2 = 0 ; | |
26342 | char *kwnames[] = { | |
26343 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
26344 | }; | |
26345 | ||
26346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26348 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26349 | if (obj2) { | |
83448d71 | 26350 | { |
8edf1c75 | 26351 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
26352 | if (PyErr_Occurred()) SWIG_fail; |
26353 | } | |
d14a1e28 RD |
26354 | } |
26355 | { | |
26356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26357 | (arg1)->SetSizerAndFit(arg2,arg3); | |
26358 | ||
26359 | wxPyEndAllowThreads(__tstate); | |
26360 | if (PyErr_Occurred()) SWIG_fail; | |
26361 | } | |
26362 | Py_INCREF(Py_None); resultobj = Py_None; | |
26363 | return resultobj; | |
26364 | fail: | |
26365 | return NULL; | |
26366 | } | |
26367 | ||
26368 | ||
26369 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26370 | PyObject *resultobj; | |
26371 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26372 | wxSizer *result; | |
26373 | PyObject * obj0 = 0 ; | |
26374 | char *kwnames[] = { | |
26375 | (char *) "self", NULL | |
26376 | }; | |
26377 | ||
26378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
26379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26380 | { | |
26381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26382 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
26383 | ||
26384 | wxPyEndAllowThreads(__tstate); | |
26385 | if (PyErr_Occurred()) SWIG_fail; | |
26386 | } | |
26387 | { | |
26388 | resultobj = wxPyMake_wxSizer(result); | |
26389 | } | |
26390 | return resultobj; | |
26391 | fail: | |
26392 | return NULL; | |
26393 | } | |
26394 | ||
26395 | ||
26396 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26397 | PyObject *resultobj; | |
26398 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26399 | wxSizer *arg2 = (wxSizer *) 0 ; | |
26400 | PyObject * obj0 = 0 ; | |
26401 | PyObject * obj1 = 0 ; | |
26402 | char *kwnames[] = { | |
26403 | (char *) "self",(char *) "sizer", NULL | |
26404 | }; | |
26405 | ||
26406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
26407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26408 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26409 | { | |
26410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26411 | (arg1)->SetContainingSizer(arg2); | |
26412 | ||
26413 | wxPyEndAllowThreads(__tstate); | |
26414 | if (PyErr_Occurred()) SWIG_fail; | |
26415 | } | |
26416 | Py_INCREF(Py_None); resultobj = Py_None; | |
26417 | return resultobj; | |
26418 | fail: | |
26419 | return NULL; | |
26420 | } | |
26421 | ||
26422 | ||
26423 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26424 | PyObject *resultobj; | |
26425 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26426 | wxSizer *result; | |
26427 | PyObject * obj0 = 0 ; | |
26428 | char *kwnames[] = { | |
26429 | (char *) "self", NULL | |
26430 | }; | |
26431 | ||
26432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
26433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26434 | { | |
26435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26436 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
26437 | ||
26438 | wxPyEndAllowThreads(__tstate); | |
26439 | if (PyErr_Occurred()) SWIG_fail; | |
26440 | } | |
26441 | { | |
26442 | resultobj = wxPyMake_wxSizer(result); | |
26443 | } | |
26444 | return resultobj; | |
26445 | fail: | |
26446 | return NULL; | |
26447 | } | |
26448 | ||
26449 | ||
26450 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
26451 | PyObject *obj; | |
26452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26453 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
26454 | Py_INCREF(obj); | |
26455 | return Py_BuildValue((char *)""); | |
26456 | } | |
26457 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26458 | PyObject *resultobj; | |
26459 | long arg1 ; | |
26460 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26461 | wxWindow *result; | |
8edf1c75 | 26462 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
26463 | PyObject * obj1 = 0 ; |
26464 | char *kwnames[] = { | |
26465 | (char *) "id",(char *) "parent", NULL | |
26466 | }; | |
26467 | ||
8edf1c75 RD |
26468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
26469 | { | |
26470 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
26471 | if (PyErr_Occurred()) SWIG_fail; | |
26472 | } | |
d14a1e28 RD |
26473 | if (obj1) { |
26474 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26475 | } | |
26476 | { | |
26477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26478 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
26479 | ||
26480 | wxPyEndAllowThreads(__tstate); | |
26481 | if (PyErr_Occurred()) SWIG_fail; | |
26482 | } | |
26483 | { | |
26484 | resultobj = wxPyMake_wxObject(result); | |
26485 | } | |
26486 | return resultobj; | |
26487 | fail: | |
26488 | return NULL; | |
26489 | } | |
26490 | ||
26491 | ||
26492 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26493 | PyObject *resultobj; | |
26494 | wxString *arg1 = 0 ; | |
26495 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26496 | wxWindow *result; | |
423f194a | 26497 | bool temp1 = False ; |
d14a1e28 RD |
26498 | PyObject * obj0 = 0 ; |
26499 | PyObject * obj1 = 0 ; | |
26500 | char *kwnames[] = { | |
26501 | (char *) "name",(char *) "parent", NULL | |
26502 | }; | |
26503 | ||
26504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
26505 | { | |
26506 | arg1 = wxString_in_helper(obj0); | |
26507 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 26508 | temp1 = True; |
d14a1e28 RD |
26509 | } |
26510 | if (obj1) { | |
26511 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26512 | } | |
26513 | { | |
26514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26515 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
26516 | ||
26517 | wxPyEndAllowThreads(__tstate); | |
26518 | if (PyErr_Occurred()) SWIG_fail; | |
26519 | } | |
26520 | { | |
26521 | resultobj = wxPyMake_wxObject(result); | |
26522 | } | |
26523 | { | |
26524 | if (temp1) | |
26525 | delete arg1; | |
26526 | } | |
26527 | return resultobj; | |
26528 | fail: | |
26529 | { | |
26530 | if (temp1) | |
26531 | delete arg1; | |
26532 | } | |
26533 | return NULL; | |
26534 | } | |
26535 | ||
26536 | ||
26537 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26538 | PyObject *resultobj; | |
26539 | wxString *arg1 = 0 ; | |
26540 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26541 | wxWindow *result; | |
423f194a | 26542 | bool temp1 = False ; |
d14a1e28 RD |
26543 | PyObject * obj0 = 0 ; |
26544 | PyObject * obj1 = 0 ; | |
26545 | char *kwnames[] = { | |
26546 | (char *) "label",(char *) "parent", NULL | |
26547 | }; | |
26548 | ||
26549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
26550 | { | |
26551 | arg1 = wxString_in_helper(obj0); | |
26552 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 26553 | temp1 = True; |
d14a1e28 RD |
26554 | } |
26555 | if (obj1) { | |
26556 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26557 | } | |
26558 | { | |
26559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26560 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
26561 | ||
26562 | wxPyEndAllowThreads(__tstate); | |
26563 | if (PyErr_Occurred()) SWIG_fail; | |
26564 | } | |
26565 | { | |
26566 | resultobj = wxPyMake_wxObject(result); | |
26567 | } | |
26568 | { | |
26569 | if (temp1) | |
26570 | delete arg1; | |
26571 | } | |
26572 | return resultobj; | |
26573 | fail: | |
26574 | { | |
26575 | if (temp1) | |
26576 | delete arg1; | |
26577 | } | |
26578 | return NULL; | |
26579 | } | |
26580 | ||
26581 | ||
26582 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26583 | PyObject *resultobj; | |
26584 | unsigned long arg1 ; | |
26585 | wxWindow *result; | |
26586 | PyObject * obj0 = 0 ; | |
26587 | char *kwnames[] = { | |
26588 | (char *) "hWnd", NULL | |
26589 | }; | |
26590 | ||
26591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FromHWND",kwnames,&obj0)) goto fail; | |
83448d71 | 26592 | { |
8edf1c75 | 26593 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
83448d71 RD |
26594 | if (PyErr_Occurred()) SWIG_fail; |
26595 | } | |
d14a1e28 RD |
26596 | { |
26597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26598 | result = (wxWindow *)wxWindow_FromHWND(arg1); | |
26599 | ||
26600 | wxPyEndAllowThreads(__tstate); | |
26601 | if (PyErr_Occurred()) SWIG_fail; | |
26602 | } | |
26603 | { | |
26604 | resultobj = wxPyMake_wxObject(result); | |
26605 | } | |
26606 | return resultobj; | |
26607 | fail: | |
26608 | return NULL; | |
26609 | } | |
26610 | ||
26611 | ||
26612 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26613 | PyObject *resultobj; | |
26614 | wxValidator *result; | |
26615 | char *kwnames[] = { | |
26616 | NULL | |
26617 | }; | |
26618 | ||
26619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
26620 | { | |
26621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26622 | result = (wxValidator *)new wxValidator(); | |
26623 | ||
26624 | wxPyEndAllowThreads(__tstate); | |
26625 | if (PyErr_Occurred()) SWIG_fail; | |
26626 | } | |
26627 | { | |
26628 | resultobj = wxPyMake_wxObject(result); | |
26629 | } | |
26630 | return resultobj; | |
26631 | fail: | |
26632 | return NULL; | |
26633 | } | |
26634 | ||
26635 | ||
26636 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26637 | PyObject *resultobj; | |
26638 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26639 | wxValidator *result; | |
26640 | PyObject * obj0 = 0 ; | |
26641 | char *kwnames[] = { | |
26642 | (char *) "self", NULL | |
26643 | }; | |
26644 | ||
26645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
26646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26647 | { | |
26648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26649 | result = (wxValidator *)(arg1)->Clone(); | |
26650 | ||
26651 | wxPyEndAllowThreads(__tstate); | |
26652 | if (PyErr_Occurred()) SWIG_fail; | |
26653 | } | |
26654 | { | |
26655 | resultobj = wxPyMake_wxObject(result); | |
26656 | } | |
26657 | return resultobj; | |
26658 | fail: | |
26659 | return NULL; | |
26660 | } | |
26661 | ||
26662 | ||
26663 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26664 | PyObject *resultobj; | |
26665 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26666 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26667 | bool result; | |
26668 | PyObject * obj0 = 0 ; | |
26669 | PyObject * obj1 = 0 ; | |
26670 | char *kwnames[] = { | |
26671 | (char *) "self",(char *) "parent", NULL | |
26672 | }; | |
26673 | ||
26674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
26675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26676 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26677 | { | |
26678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26679 | result = (bool)(arg1)->Validate(arg2); | |
26680 | ||
26681 | wxPyEndAllowThreads(__tstate); | |
26682 | if (PyErr_Occurred()) SWIG_fail; | |
26683 | } | |
4e760a36 | 26684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26685 | return resultobj; |
26686 | fail: | |
26687 | return NULL; | |
26688 | } | |
26689 | ||
26690 | ||
26691 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26692 | PyObject *resultobj; | |
26693 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26694 | bool result; | |
26695 | PyObject * obj0 = 0 ; | |
26696 | char *kwnames[] = { | |
26697 | (char *) "self", NULL | |
26698 | }; | |
26699 | ||
26700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
26701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26702 | { | |
26703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26704 | result = (bool)(arg1)->TransferToWindow(); | |
26705 | ||
26706 | wxPyEndAllowThreads(__tstate); | |
26707 | if (PyErr_Occurred()) SWIG_fail; | |
26708 | } | |
4e760a36 | 26709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26710 | return resultobj; |
26711 | fail: | |
26712 | return NULL; | |
26713 | } | |
26714 | ||
26715 | ||
26716 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26717 | PyObject *resultobj; | |
26718 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26719 | bool result; | |
26720 | PyObject * obj0 = 0 ; | |
26721 | char *kwnames[] = { | |
26722 | (char *) "self", NULL | |
26723 | }; | |
26724 | ||
26725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
26726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26727 | { | |
26728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26729 | result = (bool)(arg1)->TransferFromWindow(); | |
26730 | ||
26731 | wxPyEndAllowThreads(__tstate); | |
26732 | if (PyErr_Occurred()) SWIG_fail; | |
26733 | } | |
4e760a36 | 26734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26735 | return resultobj; |
26736 | fail: | |
26737 | return NULL; | |
26738 | } | |
26739 | ||
26740 | ||
26741 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26742 | PyObject *resultobj; | |
26743 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26744 | wxWindow *result; | |
26745 | PyObject * obj0 = 0 ; | |
26746 | char *kwnames[] = { | |
26747 | (char *) "self", NULL | |
26748 | }; | |
26749 | ||
26750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
26751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26752 | { | |
26753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26754 | result = (wxWindow *)(arg1)->GetWindow(); | |
26755 | ||
26756 | wxPyEndAllowThreads(__tstate); | |
26757 | if (PyErr_Occurred()) SWIG_fail; | |
26758 | } | |
26759 | { | |
26760 | resultobj = wxPyMake_wxObject(result); | |
26761 | } | |
26762 | return resultobj; | |
26763 | fail: | |
26764 | return NULL; | |
26765 | } | |
26766 | ||
26767 | ||
26768 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26769 | PyObject *resultobj; | |
26770 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26771 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26772 | PyObject * obj0 = 0 ; | |
26773 | PyObject * obj1 = 0 ; | |
26774 | char *kwnames[] = { | |
26775 | (char *) "self",(char *) "window", NULL | |
26776 | }; | |
26777 | ||
26778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
26779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26780 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26781 | { | |
26782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26783 | (arg1)->SetWindow(arg2); | |
26784 | ||
26785 | wxPyEndAllowThreads(__tstate); | |
26786 | if (PyErr_Occurred()) SWIG_fail; | |
26787 | } | |
26788 | Py_INCREF(Py_None); resultobj = Py_None; | |
26789 | return resultobj; | |
26790 | fail: | |
26791 | return NULL; | |
26792 | } | |
26793 | ||
26794 | ||
26795 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26796 | PyObject *resultobj; | |
26797 | bool result; | |
26798 | char *kwnames[] = { | |
26799 | NULL | |
26800 | }; | |
26801 | ||
26802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
26803 | { | |
26804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26805 | result = (bool)wxValidator::IsSilent(); | |
26806 | ||
26807 | wxPyEndAllowThreads(__tstate); | |
26808 | if (PyErr_Occurred()) SWIG_fail; | |
26809 | } | |
4e760a36 | 26810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26811 | return resultobj; |
26812 | fail: | |
26813 | return NULL; | |
26814 | } | |
26815 | ||
26816 | ||
26817 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26818 | PyObject *resultobj; | |
423f194a | 26819 | int arg1 = (int) True ; |
8edf1c75 | 26820 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
26821 | char *kwnames[] = { |
26822 | (char *) "doIt", NULL | |
26823 | }; | |
26824 | ||
8edf1c75 RD |
26825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; |
26826 | if (obj0) { | |
26827 | { | |
26828 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
26829 | if (PyErr_Occurred()) SWIG_fail; | |
26830 | } | |
26831 | } | |
d14a1e28 RD |
26832 | { |
26833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26834 | wxValidator::SetBellOnError(arg1); | |
26835 | ||
26836 | wxPyEndAllowThreads(__tstate); | |
26837 | if (PyErr_Occurred()) SWIG_fail; | |
26838 | } | |
26839 | Py_INCREF(Py_None); resultobj = Py_None; | |
26840 | return resultobj; | |
26841 | fail: | |
26842 | return NULL; | |
26843 | } | |
26844 | ||
26845 | ||
26846 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
26847 | PyObject *obj; | |
26848 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26849 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
26850 | Py_INCREF(obj); | |
26851 | return Py_BuildValue((char *)""); | |
26852 | } | |
26853 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26854 | PyObject *resultobj; | |
26855 | wxPyValidator *result; | |
26856 | char *kwnames[] = { | |
26857 | NULL | |
26858 | }; | |
26859 | ||
26860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
26861 | { | |
26862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26863 | result = (wxPyValidator *)new wxPyValidator(); | |
26864 | ||
26865 | wxPyEndAllowThreads(__tstate); | |
26866 | if (PyErr_Occurred()) SWIG_fail; | |
26867 | } | |
26868 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyValidator, 1); | |
26869 | return resultobj; | |
26870 | fail: | |
26871 | return NULL; | |
26872 | } | |
26873 | ||
26874 | ||
26875 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26876 | PyObject *resultobj; | |
26877 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
26878 | PyObject *arg2 = (PyObject *) 0 ; | |
26879 | PyObject *arg3 = (PyObject *) 0 ; | |
423f194a | 26880 | int arg4 = (int) True ; |
d14a1e28 RD |
26881 | PyObject * obj0 = 0 ; |
26882 | PyObject * obj1 = 0 ; | |
26883 | PyObject * obj2 = 0 ; | |
8edf1c75 | 26884 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
26885 | char *kwnames[] = { |
26886 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
26887 | }; | |
26888 | ||
8edf1c75 | 26889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
26890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26891 | arg2 = obj1; | |
26892 | arg3 = obj2; | |
8edf1c75 RD |
26893 | if (obj3) { |
26894 | { | |
26895 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
26896 | if (PyErr_Occurred()) SWIG_fail; | |
26897 | } | |
26898 | } | |
d14a1e28 RD |
26899 | { |
26900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26901 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
26902 | ||
26903 | wxPyEndAllowThreads(__tstate); | |
26904 | if (PyErr_Occurred()) SWIG_fail; | |
26905 | } | |
26906 | Py_INCREF(Py_None); resultobj = Py_None; | |
26907 | return resultobj; | |
26908 | fail: | |
26909 | return NULL; | |
26910 | } | |
26911 | ||
26912 | ||
26913 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
26914 | PyObject *obj; | |
26915 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26916 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
26917 | Py_INCREF(obj); | |
26918 | return Py_BuildValue((char *)""); | |
26919 | } | |
8edf1c75 | 26920 | static int _wrap_DefaultValidator_set(PyObject *) { |
d14a1e28 RD |
26921 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
26922 | return 1; | |
26923 | } | |
26924 | ||
26925 | ||
26926 | static PyObject *_wrap_DefaultValidator_get() { | |
26927 | PyObject *pyobj; | |
26928 | ||
26929 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultValidator, SWIGTYPE_p_wxValidator, 0); | |
26930 | return pyobj; | |
26931 | } | |
26932 | ||
26933 | ||
26934 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26935 | PyObject *resultobj; | |
26936 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
26937 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
26938 | long arg2 = (long) 0 ; | |
26939 | wxMenu *result; | |
423f194a | 26940 | bool temp1 = False ; |
d14a1e28 | 26941 | PyObject * obj0 = 0 ; |
8edf1c75 | 26942 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26943 | char *kwnames[] = { |
26944 | (char *) "title",(char *) "style", NULL | |
26945 | }; | |
26946 | ||
8edf1c75 | 26947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
26948 | if (obj0) { |
26949 | { | |
26950 | arg1 = wxString_in_helper(obj0); | |
26951 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 26952 | temp1 = True; |
d14a1e28 RD |
26953 | } |
26954 | } | |
8edf1c75 RD |
26955 | if (obj1) { |
26956 | { | |
26957 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
26958 | if (PyErr_Occurred()) SWIG_fail; | |
26959 | } | |
26960 | } | |
d14a1e28 RD |
26961 | { |
26962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26963 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
26964 | ||
26965 | wxPyEndAllowThreads(__tstate); | |
26966 | if (PyErr_Occurred()) SWIG_fail; | |
26967 | } | |
26968 | { | |
26969 | resultobj = wxPyMake_wxObject(result); | |
26970 | } | |
26971 | { | |
26972 | if (temp1) | |
26973 | delete arg1; | |
26974 | } | |
26975 | return resultobj; | |
26976 | fail: | |
26977 | { | |
26978 | if (temp1) | |
26979 | delete arg1; | |
26980 | } | |
26981 | return NULL; | |
26982 | } | |
26983 | ||
26984 | ||
26985 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26986 | PyObject *resultobj; | |
26987 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26988 | int arg2 ; | |
26989 | wxString *arg3 = 0 ; | |
26990 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
26991 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
26992 | int arg5 = (int) wxITEM_NORMAL ; | |
83448d71 | 26993 | wxMenuItem *result; |
423f194a RD |
26994 | bool temp3 = False ; |
26995 | bool temp4 = False ; | |
d14a1e28 | 26996 | PyObject * obj0 = 0 ; |
8edf1c75 | 26997 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26998 | PyObject * obj2 = 0 ; |
26999 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27000 | PyObject * obj4 = 0 ; |
d14a1e28 | 27001 | char *kwnames[] = { |
f0983263 | 27002 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27003 | }; |
27004 | ||
8edf1c75 | 27005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27007 | { |
27008 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27009 | if (PyErr_Occurred()) SWIG_fail; | |
27010 | } | |
d14a1e28 RD |
27011 | { |
27012 | arg3 = wxString_in_helper(obj2); | |
27013 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27014 | temp3 = True; |
d14a1e28 RD |
27015 | } |
27016 | if (obj3) { | |
27017 | { | |
27018 | arg4 = wxString_in_helper(obj3); | |
27019 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27020 | temp4 = True; |
d14a1e28 RD |
27021 | } |
27022 | } | |
8edf1c75 RD |
27023 | if (obj4) { |
27024 | { | |
27025 | arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4); | |
27026 | if (PyErr_Occurred()) SWIG_fail; | |
27027 | } | |
27028 | } | |
d14a1e28 RD |
27029 | { |
27030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27031 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
27032 | |
27033 | wxPyEndAllowThreads(__tstate); | |
27034 | if (PyErr_Occurred()) SWIG_fail; | |
27035 | } | |
83448d71 RD |
27036 | { |
27037 | resultobj = wxPyMake_wxObject(result); | |
27038 | } | |
d14a1e28 RD |
27039 | { |
27040 | if (temp3) | |
27041 | delete arg3; | |
27042 | } | |
27043 | { | |
27044 | if (temp4) | |
27045 | delete arg4; | |
27046 | } | |
27047 | return resultobj; | |
27048 | fail: | |
27049 | { | |
27050 | if (temp3) | |
27051 | delete arg3; | |
27052 | } | |
27053 | { | |
27054 | if (temp4) | |
27055 | delete arg4; | |
27056 | } | |
27057 | return NULL; | |
27058 | } | |
27059 | ||
27060 | ||
27061 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27062 | PyObject *resultobj; | |
27063 | wxMenu *arg1 = (wxMenu *) 0 ; | |
83448d71 | 27064 | wxMenuItem *result; |
d14a1e28 RD |
27065 | PyObject * obj0 = 0 ; |
27066 | char *kwnames[] = { | |
27067 | (char *) "self", NULL | |
27068 | }; | |
27069 | ||
27070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
27071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27072 | { | |
27073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27074 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
27075 | |
27076 | wxPyEndAllowThreads(__tstate); | |
27077 | if (PyErr_Occurred()) SWIG_fail; | |
27078 | } | |
83448d71 RD |
27079 | { |
27080 | resultobj = wxPyMake_wxObject(result); | |
27081 | } | |
d14a1e28 RD |
27082 | return resultobj; |
27083 | fail: | |
27084 | return NULL; | |
27085 | } | |
27086 | ||
27087 | ||
27088 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27089 | PyObject *resultobj; | |
27090 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27091 | int arg2 ; | |
27092 | wxString *arg3 = 0 ; | |
27093 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27094 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27095 | wxMenuItem *result; |
423f194a RD |
27096 | bool temp3 = False ; |
27097 | bool temp4 = False ; | |
d14a1e28 | 27098 | PyObject * obj0 = 0 ; |
8edf1c75 | 27099 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27100 | PyObject * obj2 = 0 ; |
27101 | PyObject * obj3 = 0 ; | |
27102 | char *kwnames[] = { | |
f0983263 | 27103 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27104 | }; |
27105 | ||
8edf1c75 | 27106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 27107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27108 | { |
27109 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27110 | if (PyErr_Occurred()) SWIG_fail; | |
27111 | } | |
d14a1e28 RD |
27112 | { |
27113 | arg3 = wxString_in_helper(obj2); | |
27114 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27115 | temp3 = True; |
d14a1e28 RD |
27116 | } |
27117 | if (obj3) { | |
27118 | { | |
27119 | arg4 = wxString_in_helper(obj3); | |
27120 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27121 | temp4 = True; |
d14a1e28 RD |
27122 | } |
27123 | } | |
27124 | { | |
27125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27126 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27127 | |
27128 | wxPyEndAllowThreads(__tstate); | |
27129 | if (PyErr_Occurred()) SWIG_fail; | |
27130 | } | |
83448d71 RD |
27131 | { |
27132 | resultobj = wxPyMake_wxObject(result); | |
27133 | } | |
d14a1e28 RD |
27134 | { |
27135 | if (temp3) | |
27136 | delete arg3; | |
27137 | } | |
27138 | { | |
27139 | if (temp4) | |
27140 | delete arg4; | |
27141 | } | |
27142 | return resultobj; | |
27143 | fail: | |
27144 | { | |
27145 | if (temp3) | |
27146 | delete arg3; | |
27147 | } | |
27148 | { | |
27149 | if (temp4) | |
27150 | delete arg4; | |
27151 | } | |
27152 | return NULL; | |
27153 | } | |
27154 | ||
27155 | ||
27156 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27157 | PyObject *resultobj; | |
27158 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27159 | int arg2 ; | |
27160 | wxString *arg3 = 0 ; | |
27161 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27162 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27163 | wxMenuItem *result; |
423f194a RD |
27164 | bool temp3 = False ; |
27165 | bool temp4 = False ; | |
d14a1e28 | 27166 | PyObject * obj0 = 0 ; |
8edf1c75 | 27167 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27168 | PyObject * obj2 = 0 ; |
27169 | PyObject * obj3 = 0 ; | |
27170 | char *kwnames[] = { | |
f0983263 | 27171 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27172 | }; |
27173 | ||
8edf1c75 | 27174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 27175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27176 | { |
27177 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27178 | if (PyErr_Occurred()) SWIG_fail; | |
27179 | } | |
d14a1e28 RD |
27180 | { |
27181 | arg3 = wxString_in_helper(obj2); | |
27182 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27183 | temp3 = True; |
d14a1e28 RD |
27184 | } |
27185 | if (obj3) { | |
27186 | { | |
27187 | arg4 = wxString_in_helper(obj3); | |
27188 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27189 | temp4 = True; |
d14a1e28 RD |
27190 | } |
27191 | } | |
27192 | { | |
27193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27194 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27195 | |
27196 | wxPyEndAllowThreads(__tstate); | |
27197 | if (PyErr_Occurred()) SWIG_fail; | |
27198 | } | |
83448d71 RD |
27199 | { |
27200 | resultobj = wxPyMake_wxObject(result); | |
27201 | } | |
d14a1e28 RD |
27202 | { |
27203 | if (temp3) | |
27204 | delete arg3; | |
27205 | } | |
27206 | { | |
27207 | if (temp4) | |
27208 | delete arg4; | |
27209 | } | |
27210 | return resultobj; | |
27211 | fail: | |
27212 | { | |
27213 | if (temp3) | |
27214 | delete arg3; | |
27215 | } | |
27216 | { | |
27217 | if (temp4) | |
27218 | delete arg4; | |
27219 | } | |
27220 | return NULL; | |
27221 | } | |
27222 | ||
27223 | ||
27224 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27225 | PyObject *resultobj; | |
27226 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27227 | int arg2 ; | |
27228 | wxString *arg3 = 0 ; | |
27229 | wxMenu *arg4 = (wxMenu *) 0 ; | |
27230 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27231 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 27232 | wxMenuItem *result; |
423f194a RD |
27233 | bool temp3 = False ; |
27234 | bool temp5 = False ; | |
d14a1e28 | 27235 | PyObject * obj0 = 0 ; |
8edf1c75 | 27236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27237 | PyObject * obj2 = 0 ; |
27238 | PyObject * obj3 = 0 ; | |
27239 | PyObject * obj4 = 0 ; | |
27240 | char *kwnames[] = { | |
f0983263 | 27241 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
27242 | }; |
27243 | ||
8edf1c75 | 27244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27246 | { |
27247 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27248 | if (PyErr_Occurred()) SWIG_fail; | |
27249 | } | |
d14a1e28 RD |
27250 | { |
27251 | arg3 = wxString_in_helper(obj2); | |
27252 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27253 | temp3 = True; |
d14a1e28 RD |
27254 | } |
27255 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27256 | if (obj4) { | |
27257 | { | |
27258 | arg5 = wxString_in_helper(obj4); | |
27259 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27260 | temp5 = True; |
d14a1e28 RD |
27261 | } |
27262 | } | |
27263 | { | |
27264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27265 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27266 | |
27267 | wxPyEndAllowThreads(__tstate); | |
27268 | if (PyErr_Occurred()) SWIG_fail; | |
27269 | } | |
83448d71 RD |
27270 | { |
27271 | resultobj = wxPyMake_wxObject(result); | |
27272 | } | |
d14a1e28 RD |
27273 | { |
27274 | if (temp3) | |
27275 | delete arg3; | |
27276 | } | |
27277 | { | |
27278 | if (temp5) | |
27279 | delete arg5; | |
27280 | } | |
27281 | return resultobj; | |
27282 | fail: | |
27283 | { | |
27284 | if (temp3) | |
27285 | delete arg3; | |
27286 | } | |
27287 | { | |
27288 | if (temp5) | |
27289 | delete arg5; | |
27290 | } | |
27291 | return NULL; | |
27292 | } | |
27293 | ||
27294 | ||
27295 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27296 | PyObject *resultobj; | |
27297 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27298 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
83448d71 | 27299 | wxMenuItem *result; |
d14a1e28 RD |
27300 | PyObject * obj0 = 0 ; |
27301 | PyObject * obj1 = 0 ; | |
27302 | char *kwnames[] = { | |
27303 | (char *) "self",(char *) "item", NULL | |
27304 | }; | |
27305 | ||
27306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
27307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27308 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27309 | { | |
27310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27311 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
27312 | |
27313 | wxPyEndAllowThreads(__tstate); | |
27314 | if (PyErr_Occurred()) SWIG_fail; | |
27315 | } | |
83448d71 RD |
27316 | { |
27317 | resultobj = wxPyMake_wxObject(result); | |
27318 | } | |
d14a1e28 RD |
27319 | return resultobj; |
27320 | fail: | |
27321 | return NULL; | |
27322 | } | |
27323 | ||
27324 | ||
27325 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27326 | PyObject *resultobj; | |
27327 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27328 | PyObject * obj0 = 0 ; | |
27329 | char *kwnames[] = { | |
27330 | (char *) "self", NULL | |
27331 | }; | |
27332 | ||
27333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
27334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27335 | { | |
27336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27337 | (arg1)->Break(); | |
27338 | ||
27339 | wxPyEndAllowThreads(__tstate); | |
27340 | if (PyErr_Occurred()) SWIG_fail; | |
27341 | } | |
27342 | Py_INCREF(Py_None); resultobj = Py_None; | |
27343 | return resultobj; | |
27344 | fail: | |
27345 | return NULL; | |
27346 | } | |
27347 | ||
27348 | ||
27349 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27350 | PyObject *resultobj; | |
27351 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27352 | size_t arg2 ; | |
27353 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
83448d71 | 27354 | wxMenuItem *result; |
d14a1e28 RD |
27355 | PyObject * obj0 = 0 ; |
27356 | PyObject * obj1 = 0 ; | |
27357 | PyObject * obj2 = 0 ; | |
27358 | char *kwnames[] = { | |
27359 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
27360 | }; | |
27361 | ||
27362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 27364 | { |
8edf1c75 | 27365 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
27366 | if (PyErr_Occurred()) SWIG_fail; |
27367 | } | |
d14a1e28 RD |
27368 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27369 | { | |
27370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27371 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
27372 | |
27373 | wxPyEndAllowThreads(__tstate); | |
27374 | if (PyErr_Occurred()) SWIG_fail; | |
27375 | } | |
83448d71 RD |
27376 | { |
27377 | resultobj = wxPyMake_wxObject(result); | |
27378 | } | |
d14a1e28 RD |
27379 | return resultobj; |
27380 | fail: | |
27381 | return NULL; | |
27382 | } | |
27383 | ||
27384 | ||
27385 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27386 | PyObject *resultobj; | |
27387 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27388 | size_t arg2 ; | |
27389 | int arg3 ; | |
27390 | wxString *arg4 = 0 ; | |
27391 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27392 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
27393 | int arg6 = (int) wxITEM_NORMAL ; | |
83448d71 | 27394 | wxMenuItem *result; |
423f194a RD |
27395 | bool temp4 = False ; |
27396 | bool temp5 = False ; | |
d14a1e28 RD |
27397 | PyObject * obj0 = 0 ; |
27398 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27399 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27400 | PyObject * obj3 = 0 ; |
27401 | PyObject * obj4 = 0 ; | |
8edf1c75 | 27402 | PyObject * obj5 = 0 ; |
d14a1e28 | 27403 | char *kwnames[] = { |
f0983263 | 27404 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27405 | }; |
27406 | ||
8edf1c75 | 27407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 27408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 27409 | { |
8edf1c75 RD |
27410 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
27411 | if (PyErr_Occurred()) SWIG_fail; | |
27412 | } | |
27413 | { | |
27414 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
27415 | if (PyErr_Occurred()) SWIG_fail; |
27416 | } | |
d14a1e28 RD |
27417 | { |
27418 | arg4 = wxString_in_helper(obj3); | |
27419 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27420 | temp4 = True; |
d14a1e28 RD |
27421 | } |
27422 | if (obj4) { | |
27423 | { | |
27424 | arg5 = wxString_in_helper(obj4); | |
27425 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27426 | temp5 = True; |
d14a1e28 RD |
27427 | } |
27428 | } | |
8edf1c75 RD |
27429 | if (obj5) { |
27430 | { | |
27431 | arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5); | |
27432 | if (PyErr_Occurred()) SWIG_fail; | |
27433 | } | |
27434 | } | |
d14a1e28 RD |
27435 | { |
27436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27437 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
27438 | |
27439 | wxPyEndAllowThreads(__tstate); | |
27440 | if (PyErr_Occurred()) SWIG_fail; | |
27441 | } | |
83448d71 RD |
27442 | { |
27443 | resultobj = wxPyMake_wxObject(result); | |
27444 | } | |
d14a1e28 RD |
27445 | { |
27446 | if (temp4) | |
27447 | delete arg4; | |
27448 | } | |
27449 | { | |
27450 | if (temp5) | |
27451 | delete arg5; | |
27452 | } | |
27453 | return resultobj; | |
27454 | fail: | |
27455 | { | |
27456 | if (temp4) | |
27457 | delete arg4; | |
27458 | } | |
27459 | { | |
27460 | if (temp5) | |
27461 | delete arg5; | |
27462 | } | |
27463 | return NULL; | |
27464 | } | |
27465 | ||
27466 | ||
27467 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27468 | PyObject *resultobj; | |
27469 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27470 | size_t arg2 ; | |
83448d71 | 27471 | wxMenuItem *result; |
d14a1e28 RD |
27472 | PyObject * obj0 = 0 ; |
27473 | PyObject * obj1 = 0 ; | |
27474 | char *kwnames[] = { | |
27475 | (char *) "self",(char *) "pos", NULL | |
27476 | }; | |
27477 | ||
27478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
27479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 27480 | { |
8edf1c75 | 27481 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
27482 | if (PyErr_Occurred()) SWIG_fail; |
27483 | } | |
d14a1e28 RD |
27484 | { |
27485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27486 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
27487 | |
27488 | wxPyEndAllowThreads(__tstate); | |
27489 | if (PyErr_Occurred()) SWIG_fail; | |
27490 | } | |
83448d71 RD |
27491 | { |
27492 | resultobj = wxPyMake_wxObject(result); | |
27493 | } | |
d14a1e28 RD |
27494 | return resultobj; |
27495 | fail: | |
27496 | return NULL; | |
27497 | } | |
27498 | ||
27499 | ||
27500 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27501 | PyObject *resultobj; | |
27502 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27503 | size_t arg2 ; | |
27504 | int arg3 ; | |
27505 | wxString *arg4 = 0 ; | |
27506 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27507 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 27508 | wxMenuItem *result; |
423f194a RD |
27509 | bool temp4 = False ; |
27510 | bool temp5 = False ; | |
d14a1e28 RD |
27511 | PyObject * obj0 = 0 ; |
27512 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27513 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27514 | PyObject * obj3 = 0 ; |
27515 | PyObject * obj4 = 0 ; | |
27516 | char *kwnames[] = { | |
f0983263 | 27517 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27518 | }; |
27519 | ||
8edf1c75 | 27520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 27522 | { |
8edf1c75 RD |
27523 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
27524 | if (PyErr_Occurred()) SWIG_fail; | |
27525 | } | |
27526 | { | |
27527 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
27528 | if (PyErr_Occurred()) SWIG_fail; |
27529 | } | |
d14a1e28 RD |
27530 | { |
27531 | arg4 = wxString_in_helper(obj3); | |
27532 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27533 | temp4 = True; |
d14a1e28 RD |
27534 | } |
27535 | if (obj4) { | |
27536 | { | |
27537 | arg5 = wxString_in_helper(obj4); | |
27538 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27539 | temp5 = True; |
d14a1e28 RD |
27540 | } |
27541 | } | |
27542 | { | |
27543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27544 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27545 | |
27546 | wxPyEndAllowThreads(__tstate); | |
27547 | if (PyErr_Occurred()) SWIG_fail; | |
27548 | } | |
83448d71 RD |
27549 | { |
27550 | resultobj = wxPyMake_wxObject(result); | |
27551 | } | |
d14a1e28 RD |
27552 | { |
27553 | if (temp4) | |
27554 | delete arg4; | |
27555 | } | |
27556 | { | |
27557 | if (temp5) | |
27558 | delete arg5; | |
27559 | } | |
27560 | return resultobj; | |
27561 | fail: | |
27562 | { | |
27563 | if (temp4) | |
27564 | delete arg4; | |
27565 | } | |
27566 | { | |
27567 | if (temp5) | |
27568 | delete arg5; | |
27569 | } | |
27570 | return NULL; | |
27571 | } | |
27572 | ||
27573 | ||
27574 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27575 | PyObject *resultobj; | |
27576 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27577 | size_t arg2 ; | |
27578 | int arg3 ; | |
27579 | wxString *arg4 = 0 ; | |
27580 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27581 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 27582 | wxMenuItem *result; |
423f194a RD |
27583 | bool temp4 = False ; |
27584 | bool temp5 = False ; | |
d14a1e28 RD |
27585 | PyObject * obj0 = 0 ; |
27586 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27587 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27588 | PyObject * obj3 = 0 ; |
27589 | PyObject * obj4 = 0 ; | |
27590 | char *kwnames[] = { | |
f0983263 | 27591 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27592 | }; |
27593 | ||
8edf1c75 | 27594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 27596 | { |
8edf1c75 RD |
27597 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
27598 | if (PyErr_Occurred()) SWIG_fail; | |
27599 | } | |
27600 | { | |
27601 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
27602 | if (PyErr_Occurred()) SWIG_fail; |
27603 | } | |
d14a1e28 RD |
27604 | { |
27605 | arg4 = wxString_in_helper(obj3); | |
27606 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27607 | temp4 = True; |
d14a1e28 RD |
27608 | } |
27609 | if (obj4) { | |
27610 | { | |
27611 | arg5 = wxString_in_helper(obj4); | |
27612 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27613 | temp5 = True; |
d14a1e28 RD |
27614 | } |
27615 | } | |
27616 | { | |
27617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27618 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27619 | |
27620 | wxPyEndAllowThreads(__tstate); | |
27621 | if (PyErr_Occurred()) SWIG_fail; | |
27622 | } | |
83448d71 RD |
27623 | { |
27624 | resultobj = wxPyMake_wxObject(result); | |
27625 | } | |
d14a1e28 RD |
27626 | { |
27627 | if (temp4) | |
27628 | delete arg4; | |
27629 | } | |
27630 | { | |
27631 | if (temp5) | |
27632 | delete arg5; | |
27633 | } | |
27634 | return resultobj; | |
27635 | fail: | |
27636 | { | |
27637 | if (temp4) | |
27638 | delete arg4; | |
27639 | } | |
27640 | { | |
27641 | if (temp5) | |
27642 | delete arg5; | |
27643 | } | |
27644 | return NULL; | |
27645 | } | |
27646 | ||
27647 | ||
27648 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27649 | PyObject *resultobj; | |
27650 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27651 | size_t arg2 ; | |
27652 | int arg3 ; | |
27653 | wxString *arg4 = 0 ; | |
27654 | wxMenu *arg5 = (wxMenu *) 0 ; | |
27655 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
27656 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
83448d71 | 27657 | wxMenuItem *result; |
423f194a RD |
27658 | bool temp4 = False ; |
27659 | bool temp6 = False ; | |
d14a1e28 RD |
27660 | PyObject * obj0 = 0 ; |
27661 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27662 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27663 | PyObject * obj3 = 0 ; |
27664 | PyObject * obj4 = 0 ; | |
27665 | PyObject * obj5 = 0 ; | |
27666 | char *kwnames[] = { | |
f0983263 | 27667 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
27668 | }; |
27669 | ||
8edf1c75 | 27670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 27671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 27672 | { |
8edf1c75 RD |
27673 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
27674 | if (PyErr_Occurred()) SWIG_fail; | |
27675 | } | |
27676 | { | |
27677 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
27678 | if (PyErr_Occurred()) SWIG_fail; |
27679 | } | |
d14a1e28 RD |
27680 | { |
27681 | arg4 = wxString_in_helper(obj3); | |
27682 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27683 | temp4 = True; |
d14a1e28 RD |
27684 | } |
27685 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27686 | if (obj5) { | |
27687 | { | |
27688 | arg6 = wxString_in_helper(obj5); | |
27689 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 27690 | temp6 = True; |
d14a1e28 RD |
27691 | } |
27692 | } | |
27693 | { | |
27694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27695 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
27696 | |
27697 | wxPyEndAllowThreads(__tstate); | |
27698 | if (PyErr_Occurred()) SWIG_fail; | |
27699 | } | |
83448d71 RD |
27700 | { |
27701 | resultobj = wxPyMake_wxObject(result); | |
27702 | } | |
d14a1e28 RD |
27703 | { |
27704 | if (temp4) | |
27705 | delete arg4; | |
27706 | } | |
27707 | { | |
27708 | if (temp6) | |
27709 | delete arg6; | |
27710 | } | |
27711 | return resultobj; | |
27712 | fail: | |
27713 | { | |
27714 | if (temp4) | |
27715 | delete arg4; | |
27716 | } | |
27717 | { | |
27718 | if (temp6) | |
27719 | delete arg6; | |
27720 | } | |
27721 | return NULL; | |
27722 | } | |
27723 | ||
27724 | ||
27725 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27726 | PyObject *resultobj; | |
27727 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27728 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
83448d71 | 27729 | wxMenuItem *result; |
d14a1e28 RD |
27730 | PyObject * obj0 = 0 ; |
27731 | PyObject * obj1 = 0 ; | |
27732 | char *kwnames[] = { | |
27733 | (char *) "self",(char *) "item", NULL | |
27734 | }; | |
27735 | ||
27736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
27737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27738 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27739 | { | |
27740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27741 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
27742 | |
27743 | wxPyEndAllowThreads(__tstate); | |
27744 | if (PyErr_Occurred()) SWIG_fail; | |
27745 | } | |
83448d71 RD |
27746 | { |
27747 | resultobj = wxPyMake_wxObject(result); | |
27748 | } | |
d14a1e28 RD |
27749 | return resultobj; |
27750 | fail: | |
27751 | return NULL; | |
27752 | } | |
27753 | ||
27754 | ||
27755 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27756 | PyObject *resultobj; | |
27757 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27758 | int arg2 ; | |
27759 | wxString *arg3 = 0 ; | |
27760 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27761 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27762 | int arg5 = (int) wxITEM_NORMAL ; | |
83448d71 | 27763 | wxMenuItem *result; |
423f194a RD |
27764 | bool temp3 = False ; |
27765 | bool temp4 = False ; | |
d14a1e28 | 27766 | PyObject * obj0 = 0 ; |
8edf1c75 | 27767 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27768 | PyObject * obj2 = 0 ; |
27769 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27770 | PyObject * obj4 = 0 ; |
d14a1e28 | 27771 | char *kwnames[] = { |
f0983263 | 27772 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27773 | }; |
27774 | ||
8edf1c75 | 27775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27777 | { |
27778 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27779 | if (PyErr_Occurred()) SWIG_fail; | |
27780 | } | |
d14a1e28 RD |
27781 | { |
27782 | arg3 = wxString_in_helper(obj2); | |
27783 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27784 | temp3 = True; |
d14a1e28 RD |
27785 | } |
27786 | if (obj3) { | |
27787 | { | |
27788 | arg4 = wxString_in_helper(obj3); | |
27789 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27790 | temp4 = True; |
d14a1e28 RD |
27791 | } |
27792 | } | |
8edf1c75 RD |
27793 | if (obj4) { |
27794 | { | |
27795 | arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4); | |
27796 | if (PyErr_Occurred()) SWIG_fail; | |
27797 | } | |
27798 | } | |
d14a1e28 RD |
27799 | { |
27800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27801 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
27802 | |
27803 | wxPyEndAllowThreads(__tstate); | |
27804 | if (PyErr_Occurred()) SWIG_fail; | |
27805 | } | |
83448d71 RD |
27806 | { |
27807 | resultobj = wxPyMake_wxObject(result); | |
27808 | } | |
d14a1e28 RD |
27809 | { |
27810 | if (temp3) | |
27811 | delete arg3; | |
27812 | } | |
27813 | { | |
27814 | if (temp4) | |
27815 | delete arg4; | |
27816 | } | |
27817 | return resultobj; | |
27818 | fail: | |
27819 | { | |
27820 | if (temp3) | |
27821 | delete arg3; | |
27822 | } | |
27823 | { | |
27824 | if (temp4) | |
27825 | delete arg4; | |
27826 | } | |
27827 | return NULL; | |
27828 | } | |
27829 | ||
27830 | ||
27831 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27832 | PyObject *resultobj; | |
27833 | wxMenu *arg1 = (wxMenu *) 0 ; | |
83448d71 | 27834 | wxMenuItem *result; |
d14a1e28 RD |
27835 | PyObject * obj0 = 0 ; |
27836 | char *kwnames[] = { | |
27837 | (char *) "self", NULL | |
27838 | }; | |
27839 | ||
27840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
27841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27842 | { | |
27843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27844 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
27845 | |
27846 | wxPyEndAllowThreads(__tstate); | |
27847 | if (PyErr_Occurred()) SWIG_fail; | |
27848 | } | |
83448d71 RD |
27849 | { |
27850 | resultobj = wxPyMake_wxObject(result); | |
27851 | } | |
d14a1e28 RD |
27852 | return resultobj; |
27853 | fail: | |
27854 | return NULL; | |
27855 | } | |
27856 | ||
27857 | ||
27858 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27859 | PyObject *resultobj; | |
27860 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27861 | int arg2 ; | |
27862 | wxString *arg3 = 0 ; | |
27863 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27864 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27865 | wxMenuItem *result; |
423f194a RD |
27866 | bool temp3 = False ; |
27867 | bool temp4 = False ; | |
d14a1e28 | 27868 | PyObject * obj0 = 0 ; |
8edf1c75 | 27869 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27870 | PyObject * obj2 = 0 ; |
27871 | PyObject * obj3 = 0 ; | |
27872 | char *kwnames[] = { | |
f0983263 | 27873 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27874 | }; |
27875 | ||
8edf1c75 | 27876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 27877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27878 | { |
27879 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27880 | if (PyErr_Occurred()) SWIG_fail; | |
27881 | } | |
d14a1e28 RD |
27882 | { |
27883 | arg3 = wxString_in_helper(obj2); | |
27884 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27885 | temp3 = True; |
d14a1e28 RD |
27886 | } |
27887 | if (obj3) { | |
27888 | { | |
27889 | arg4 = wxString_in_helper(obj3); | |
27890 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27891 | temp4 = True; |
d14a1e28 RD |
27892 | } |
27893 | } | |
27894 | { | |
27895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27896 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27897 | |
27898 | wxPyEndAllowThreads(__tstate); | |
27899 | if (PyErr_Occurred()) SWIG_fail; | |
27900 | } | |
83448d71 RD |
27901 | { |
27902 | resultobj = wxPyMake_wxObject(result); | |
27903 | } | |
d14a1e28 RD |
27904 | { |
27905 | if (temp3) | |
27906 | delete arg3; | |
27907 | } | |
27908 | { | |
27909 | if (temp4) | |
27910 | delete arg4; | |
27911 | } | |
27912 | return resultobj; | |
27913 | fail: | |
27914 | { | |
27915 | if (temp3) | |
27916 | delete arg3; | |
27917 | } | |
27918 | { | |
27919 | if (temp4) | |
27920 | delete arg4; | |
27921 | } | |
27922 | return NULL; | |
27923 | } | |
27924 | ||
27925 | ||
27926 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27927 | PyObject *resultobj; | |
27928 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27929 | int arg2 ; | |
27930 | wxString *arg3 = 0 ; | |
27931 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27932 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27933 | wxMenuItem *result; |
423f194a RD |
27934 | bool temp3 = False ; |
27935 | bool temp4 = False ; | |
d14a1e28 | 27936 | PyObject * obj0 = 0 ; |
8edf1c75 | 27937 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27938 | PyObject * obj2 = 0 ; |
27939 | PyObject * obj3 = 0 ; | |
27940 | char *kwnames[] = { | |
f0983263 | 27941 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27942 | }; |
27943 | ||
8edf1c75 | 27944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 27945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27946 | { |
27947 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27948 | if (PyErr_Occurred()) SWIG_fail; | |
27949 | } | |
d14a1e28 RD |
27950 | { |
27951 | arg3 = wxString_in_helper(obj2); | |
27952 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27953 | temp3 = True; |
d14a1e28 RD |
27954 | } |
27955 | if (obj3) { | |
27956 | { | |
27957 | arg4 = wxString_in_helper(obj3); | |
27958 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27959 | temp4 = True; |
d14a1e28 RD |
27960 | } |
27961 | } | |
27962 | { | |
27963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27964 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27965 | |
27966 | wxPyEndAllowThreads(__tstate); | |
27967 | if (PyErr_Occurred()) SWIG_fail; | |
27968 | } | |
83448d71 RD |
27969 | { |
27970 | resultobj = wxPyMake_wxObject(result); | |
27971 | } | |
d14a1e28 RD |
27972 | { |
27973 | if (temp3) | |
27974 | delete arg3; | |
27975 | } | |
27976 | { | |
27977 | if (temp4) | |
27978 | delete arg4; | |
27979 | } | |
27980 | return resultobj; | |
27981 | fail: | |
27982 | { | |
27983 | if (temp3) | |
27984 | delete arg3; | |
27985 | } | |
27986 | { | |
27987 | if (temp4) | |
27988 | delete arg4; | |
27989 | } | |
27990 | return NULL; | |
27991 | } | |
27992 | ||
27993 | ||
27994 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27995 | PyObject *resultobj; | |
27996 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27997 | int arg2 ; | |
27998 | wxString *arg3 = 0 ; | |
27999 | wxMenu *arg4 = (wxMenu *) 0 ; | |
28000 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28001 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 28002 | wxMenuItem *result; |
423f194a RD |
28003 | bool temp3 = False ; |
28004 | bool temp5 = False ; | |
d14a1e28 | 28005 | PyObject * obj0 = 0 ; |
8edf1c75 | 28006 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28007 | PyObject * obj2 = 0 ; |
28008 | PyObject * obj3 = 0 ; | |
28009 | PyObject * obj4 = 0 ; | |
28010 | char *kwnames[] = { | |
f0983263 | 28011 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
28012 | }; |
28013 | ||
8edf1c75 | 28014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 28015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28016 | { |
28017 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28018 | if (PyErr_Occurred()) SWIG_fail; | |
28019 | } | |
d14a1e28 RD |
28020 | { |
28021 | arg3 = wxString_in_helper(obj2); | |
28022 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28023 | temp3 = True; |
d14a1e28 RD |
28024 | } |
28025 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28026 | if (obj4) { | |
28027 | { | |
28028 | arg5 = wxString_in_helper(obj4); | |
28029 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 28030 | temp5 = True; |
d14a1e28 RD |
28031 | } |
28032 | } | |
28033 | { | |
28034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28035 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28036 | |
28037 | wxPyEndAllowThreads(__tstate); | |
28038 | if (PyErr_Occurred()) SWIG_fail; | |
28039 | } | |
83448d71 RD |
28040 | { |
28041 | resultobj = wxPyMake_wxObject(result); | |
28042 | } | |
d14a1e28 RD |
28043 | { |
28044 | if (temp3) | |
28045 | delete arg3; | |
28046 | } | |
28047 | { | |
28048 | if (temp5) | |
28049 | delete arg5; | |
28050 | } | |
28051 | return resultobj; | |
28052 | fail: | |
28053 | { | |
28054 | if (temp3) | |
28055 | delete arg3; | |
28056 | } | |
28057 | { | |
28058 | if (temp5) | |
28059 | delete arg5; | |
28060 | } | |
28061 | return NULL; | |
28062 | } | |
28063 | ||
28064 | ||
28065 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28066 | PyObject *resultobj; | |
28067 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28068 | int arg2 ; | |
28069 | wxMenuItem *result; | |
28070 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28071 | PyObject * obj1 = 0 ; |
d14a1e28 | 28072 | char *kwnames[] = { |
f0983263 | 28073 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28074 | }; |
28075 | ||
8edf1c75 | 28076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28078 | { |
28079 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28080 | if (PyErr_Occurred()) SWIG_fail; | |
28081 | } | |
d14a1e28 RD |
28082 | { |
28083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28084 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28085 | ||
28086 | wxPyEndAllowThreads(__tstate); | |
28087 | if (PyErr_Occurred()) SWIG_fail; | |
28088 | } | |
28089 | { | |
28090 | resultobj = wxPyMake_wxObject(result); | |
28091 | } | |
28092 | return resultobj; | |
28093 | fail: | |
28094 | return NULL; | |
28095 | } | |
28096 | ||
28097 | ||
28098 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28099 | PyObject *resultobj; | |
28100 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28101 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28102 | wxMenuItem *result; | |
28103 | PyObject * obj0 = 0 ; | |
28104 | PyObject * obj1 = 0 ; | |
28105 | char *kwnames[] = { | |
28106 | (char *) "self",(char *) "item", NULL | |
28107 | }; | |
28108 | ||
28109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
28110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28111 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28112 | { | |
28113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28114 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28115 | ||
28116 | wxPyEndAllowThreads(__tstate); | |
28117 | if (PyErr_Occurred()) SWIG_fail; | |
28118 | } | |
28119 | { | |
28120 | resultobj = wxPyMake_wxObject(result); | |
28121 | } | |
28122 | return resultobj; | |
28123 | fail: | |
28124 | return NULL; | |
28125 | } | |
28126 | ||
28127 | ||
28128 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28129 | PyObject *resultobj; | |
28130 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28131 | int arg2 ; | |
28132 | bool result; | |
28133 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28134 | PyObject * obj1 = 0 ; |
d14a1e28 | 28135 | char *kwnames[] = { |
f0983263 | 28136 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28137 | }; |
28138 | ||
8edf1c75 | 28139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28141 | { |
28142 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28143 | if (PyErr_Occurred()) SWIG_fail; | |
28144 | } | |
d14a1e28 RD |
28145 | { |
28146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28147 | result = (bool)(arg1)->Delete(arg2); | |
28148 | ||
28149 | wxPyEndAllowThreads(__tstate); | |
28150 | if (PyErr_Occurred()) SWIG_fail; | |
28151 | } | |
4e760a36 | 28152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28153 | return resultobj; |
28154 | fail: | |
28155 | return NULL; | |
28156 | } | |
28157 | ||
28158 | ||
28159 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28160 | PyObject *resultobj; | |
28161 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28162 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28163 | bool result; | |
28164 | PyObject * obj0 = 0 ; | |
28165 | PyObject * obj1 = 0 ; | |
28166 | char *kwnames[] = { | |
28167 | (char *) "self",(char *) "item", NULL | |
28168 | }; | |
28169 | ||
28170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
28171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28172 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28173 | { | |
28174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28175 | result = (bool)(arg1)->Delete(arg2); | |
28176 | ||
28177 | wxPyEndAllowThreads(__tstate); | |
28178 | if (PyErr_Occurred()) SWIG_fail; | |
28179 | } | |
4e760a36 | 28180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28181 | return resultobj; |
28182 | fail: | |
28183 | return NULL; | |
28184 | } | |
28185 | ||
28186 | ||
28187 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28188 | PyObject *resultobj; | |
28189 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28190 | PyObject * obj0 = 0 ; | |
28191 | char *kwnames[] = { | |
28192 | (char *) "self", NULL | |
28193 | }; | |
28194 | ||
28195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
28196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28197 | { | |
28198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28199 | wxMenu_Destroy(arg1); | |
28200 | ||
28201 | wxPyEndAllowThreads(__tstate); | |
28202 | if (PyErr_Occurred()) SWIG_fail; | |
28203 | } | |
28204 | Py_INCREF(Py_None); resultobj = Py_None; | |
28205 | return resultobj; | |
28206 | fail: | |
28207 | return NULL; | |
28208 | } | |
28209 | ||
28210 | ||
28211 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28212 | PyObject *resultobj; | |
28213 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28214 | int arg2 ; | |
28215 | bool result; | |
28216 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28217 | PyObject * obj1 = 0 ; |
d14a1e28 | 28218 | char *kwnames[] = { |
f0983263 | 28219 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28220 | }; |
28221 | ||
8edf1c75 | 28222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28224 | { |
28225 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28226 | if (PyErr_Occurred()) SWIG_fail; | |
28227 | } | |
d14a1e28 RD |
28228 | { |
28229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28230 | result = (bool)(arg1)->Destroy(arg2); | |
28231 | ||
28232 | wxPyEndAllowThreads(__tstate); | |
28233 | if (PyErr_Occurred()) SWIG_fail; | |
28234 | } | |
4e760a36 | 28235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28236 | return resultobj; |
28237 | fail: | |
28238 | return NULL; | |
28239 | } | |
28240 | ||
28241 | ||
28242 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28243 | PyObject *resultobj; | |
28244 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28245 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28246 | bool result; | |
28247 | PyObject * obj0 = 0 ; | |
28248 | PyObject * obj1 = 0 ; | |
28249 | char *kwnames[] = { | |
28250 | (char *) "self",(char *) "item", NULL | |
28251 | }; | |
28252 | ||
28253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
28254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28255 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28256 | { | |
28257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28258 | result = (bool)(arg1)->Destroy(arg2); | |
28259 | ||
28260 | wxPyEndAllowThreads(__tstate); | |
28261 | if (PyErr_Occurred()) SWIG_fail; | |
28262 | } | |
4e760a36 | 28263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28264 | return resultobj; |
28265 | fail: | |
28266 | return NULL; | |
28267 | } | |
28268 | ||
28269 | ||
28270 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28271 | PyObject *resultobj; | |
28272 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28273 | size_t result; | |
28274 | PyObject * obj0 = 0 ; | |
28275 | char *kwnames[] = { | |
28276 | (char *) "self", NULL | |
28277 | }; | |
28278 | ||
28279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
28280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28281 | { | |
28282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28283 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
28284 | ||
28285 | wxPyEndAllowThreads(__tstate); | |
28286 | if (PyErr_Occurred()) SWIG_fail; | |
28287 | } | |
8edf1c75 | 28288 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
28289 | return resultobj; |
28290 | fail: | |
28291 | return NULL; | |
28292 | } | |
28293 | ||
28294 | ||
28295 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28296 | PyObject *resultobj; | |
28297 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28298 | PyObject *result; | |
28299 | PyObject * obj0 = 0 ; | |
28300 | char *kwnames[] = { | |
28301 | (char *) "self", NULL | |
28302 | }; | |
28303 | ||
28304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
28305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28306 | { | |
28307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28308 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
28309 | ||
28310 | wxPyEndAllowThreads(__tstate); | |
28311 | if (PyErr_Occurred()) SWIG_fail; | |
28312 | } | |
28313 | resultobj = result; | |
28314 | return resultobj; | |
28315 | fail: | |
28316 | return NULL; | |
28317 | } | |
28318 | ||
28319 | ||
28320 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28321 | PyObject *resultobj; | |
28322 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28323 | wxString *arg2 = 0 ; | |
28324 | int result; | |
423f194a | 28325 | bool temp2 = False ; |
d14a1e28 RD |
28326 | PyObject * obj0 = 0 ; |
28327 | PyObject * obj1 = 0 ; | |
28328 | char *kwnames[] = { | |
28329 | (char *) "self",(char *) "item", NULL | |
28330 | }; | |
28331 | ||
28332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
28333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28334 | { | |
28335 | arg2 = wxString_in_helper(obj1); | |
28336 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28337 | temp2 = True; |
d14a1e28 RD |
28338 | } |
28339 | { | |
28340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28341 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
28342 | ||
28343 | wxPyEndAllowThreads(__tstate); | |
28344 | if (PyErr_Occurred()) SWIG_fail; | |
28345 | } | |
8edf1c75 | 28346 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
28347 | { |
28348 | if (temp2) | |
28349 | delete arg2; | |
28350 | } | |
28351 | return resultobj; | |
28352 | fail: | |
28353 | { | |
28354 | if (temp2) | |
28355 | delete arg2; | |
28356 | } | |
28357 | return NULL; | |
28358 | } | |
28359 | ||
28360 | ||
28361 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28362 | PyObject *resultobj; | |
28363 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28364 | int arg2 ; | |
28365 | wxMenuItem *result; | |
28366 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28367 | PyObject * obj1 = 0 ; |
d14a1e28 | 28368 | char *kwnames[] = { |
f0983263 | 28369 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28370 | }; |
28371 | ||
8edf1c75 | 28372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28374 | { |
28375 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28376 | if (PyErr_Occurred()) SWIG_fail; | |
28377 | } | |
d14a1e28 RD |
28378 | { |
28379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28380 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
28381 | ||
28382 | wxPyEndAllowThreads(__tstate); | |
28383 | if (PyErr_Occurred()) SWIG_fail; | |
28384 | } | |
28385 | { | |
28386 | resultobj = wxPyMake_wxObject(result); | |
28387 | } | |
28388 | return resultobj; | |
28389 | fail: | |
28390 | return NULL; | |
28391 | } | |
28392 | ||
28393 | ||
28394 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28395 | PyObject *resultobj; | |
28396 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28397 | size_t arg2 ; | |
28398 | wxMenuItem *result; | |
28399 | PyObject * obj0 = 0 ; | |
28400 | PyObject * obj1 = 0 ; | |
28401 | char *kwnames[] = { | |
28402 | (char *) "self",(char *) "position", NULL | |
28403 | }; | |
28404 | ||
28405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
28406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 28407 | { |
8edf1c75 | 28408 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
28409 | if (PyErr_Occurred()) SWIG_fail; |
28410 | } | |
d14a1e28 RD |
28411 | { |
28412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28413 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
28414 | ||
28415 | wxPyEndAllowThreads(__tstate); | |
28416 | if (PyErr_Occurred()) SWIG_fail; | |
28417 | } | |
28418 | { | |
28419 | resultobj = wxPyMake_wxObject(result); | |
28420 | } | |
28421 | return resultobj; | |
28422 | fail: | |
28423 | return NULL; | |
28424 | } | |
28425 | ||
28426 | ||
28427 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28428 | PyObject *resultobj; | |
28429 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28430 | int arg2 ; | |
28431 | bool arg3 ; | |
28432 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28433 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28434 | PyObject * obj2 = 0 ; |
28435 | char *kwnames[] = { | |
f0983263 | 28436 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
28437 | }; |
28438 | ||
8edf1c75 | 28439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 28441 | { |
8edf1c75 RD |
28442 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
28443 | if (PyErr_Occurred()) SWIG_fail; | |
28444 | } | |
28445 | { | |
28446 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
28447 | if (PyErr_Occurred()) SWIG_fail; |
28448 | } | |
d14a1e28 RD |
28449 | { |
28450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28451 | (arg1)->Enable(arg2,arg3); | |
28452 | ||
28453 | wxPyEndAllowThreads(__tstate); | |
28454 | if (PyErr_Occurred()) SWIG_fail; | |
28455 | } | |
28456 | Py_INCREF(Py_None); resultobj = Py_None; | |
28457 | return resultobj; | |
28458 | fail: | |
28459 | return NULL; | |
28460 | } | |
28461 | ||
28462 | ||
28463 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28464 | PyObject *resultobj; | |
28465 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28466 | int arg2 ; | |
28467 | bool result; | |
28468 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28469 | PyObject * obj1 = 0 ; |
d14a1e28 | 28470 | char *kwnames[] = { |
f0983263 | 28471 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28472 | }; |
28473 | ||
8edf1c75 | 28474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28476 | { |
28477 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28478 | if (PyErr_Occurred()) SWIG_fail; | |
28479 | } | |
d14a1e28 RD |
28480 | { |
28481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28482 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
28483 | ||
28484 | wxPyEndAllowThreads(__tstate); | |
28485 | if (PyErr_Occurred()) SWIG_fail; | |
28486 | } | |
4e760a36 | 28487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28488 | return resultobj; |
28489 | fail: | |
28490 | return NULL; | |
28491 | } | |
28492 | ||
28493 | ||
28494 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28495 | PyObject *resultobj; | |
28496 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28497 | int arg2 ; | |
28498 | bool arg3 ; | |
28499 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28500 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28501 | PyObject * obj2 = 0 ; |
28502 | char *kwnames[] = { | |
f0983263 | 28503 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
28504 | }; |
28505 | ||
8edf1c75 | 28506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 28508 | { |
8edf1c75 RD |
28509 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
28510 | if (PyErr_Occurred()) SWIG_fail; | |
28511 | } | |
28512 | { | |
28513 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
28514 | if (PyErr_Occurred()) SWIG_fail; |
28515 | } | |
d14a1e28 RD |
28516 | { |
28517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28518 | (arg1)->Check(arg2,arg3); | |
28519 | ||
28520 | wxPyEndAllowThreads(__tstate); | |
28521 | if (PyErr_Occurred()) SWIG_fail; | |
28522 | } | |
28523 | Py_INCREF(Py_None); resultobj = Py_None; | |
28524 | return resultobj; | |
28525 | fail: | |
28526 | return NULL; | |
28527 | } | |
28528 | ||
28529 | ||
28530 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28531 | PyObject *resultobj; | |
28532 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28533 | int arg2 ; | |
28534 | bool result; | |
28535 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28536 | PyObject * obj1 = 0 ; |
d14a1e28 | 28537 | char *kwnames[] = { |
f0983263 | 28538 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28539 | }; |
28540 | ||
8edf1c75 | 28541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28543 | { |
28544 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28545 | if (PyErr_Occurred()) SWIG_fail; | |
28546 | } | |
d14a1e28 RD |
28547 | { |
28548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28549 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
28550 | ||
28551 | wxPyEndAllowThreads(__tstate); | |
28552 | if (PyErr_Occurred()) SWIG_fail; | |
28553 | } | |
4e760a36 | 28554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28555 | return resultobj; |
28556 | fail: | |
28557 | return NULL; | |
28558 | } | |
28559 | ||
28560 | ||
28561 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28562 | PyObject *resultobj; | |
28563 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28564 | int arg2 ; | |
28565 | wxString *arg3 = 0 ; | |
423f194a | 28566 | bool temp3 = False ; |
d14a1e28 | 28567 | PyObject * obj0 = 0 ; |
8edf1c75 | 28568 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28569 | PyObject * obj2 = 0 ; |
28570 | char *kwnames[] = { | |
f0983263 | 28571 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
28572 | }; |
28573 | ||
8edf1c75 | 28574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28576 | { |
28577 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28578 | if (PyErr_Occurred()) SWIG_fail; | |
28579 | } | |
d14a1e28 RD |
28580 | { |
28581 | arg3 = wxString_in_helper(obj2); | |
28582 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28583 | temp3 = True; |
d14a1e28 RD |
28584 | } |
28585 | { | |
28586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28587 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
28588 | ||
28589 | wxPyEndAllowThreads(__tstate); | |
28590 | if (PyErr_Occurred()) SWIG_fail; | |
28591 | } | |
28592 | Py_INCREF(Py_None); resultobj = Py_None; | |
28593 | { | |
28594 | if (temp3) | |
28595 | delete arg3; | |
28596 | } | |
28597 | return resultobj; | |
28598 | fail: | |
28599 | { | |
28600 | if (temp3) | |
28601 | delete arg3; | |
28602 | } | |
28603 | return NULL; | |
28604 | } | |
28605 | ||
28606 | ||
28607 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28608 | PyObject *resultobj; | |
28609 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28610 | int arg2 ; | |
28611 | wxString result; | |
28612 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28613 | PyObject * obj1 = 0 ; |
d14a1e28 | 28614 | char *kwnames[] = { |
f0983263 | 28615 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28616 | }; |
28617 | ||
8edf1c75 | 28618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28620 | { |
28621 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28622 | if (PyErr_Occurred()) SWIG_fail; | |
28623 | } | |
d14a1e28 RD |
28624 | { |
28625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28626 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
28627 | ||
28628 | wxPyEndAllowThreads(__tstate); | |
28629 | if (PyErr_Occurred()) SWIG_fail; | |
28630 | } | |
28631 | { | |
28632 | #if wxUSE_UNICODE | |
28633 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28634 | #else | |
28635 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28636 | #endif | |
28637 | } | |
28638 | return resultobj; | |
28639 | fail: | |
28640 | return NULL; | |
28641 | } | |
28642 | ||
28643 | ||
28644 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28645 | PyObject *resultobj; | |
28646 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28647 | int arg2 ; | |
28648 | wxString *arg3 = 0 ; | |
423f194a | 28649 | bool temp3 = False ; |
d14a1e28 | 28650 | PyObject * obj0 = 0 ; |
8edf1c75 | 28651 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28652 | PyObject * obj2 = 0 ; |
28653 | char *kwnames[] = { | |
f0983263 | 28654 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
28655 | }; |
28656 | ||
8edf1c75 | 28657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28659 | { |
28660 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28661 | if (PyErr_Occurred()) SWIG_fail; | |
28662 | } | |
d14a1e28 RD |
28663 | { |
28664 | arg3 = wxString_in_helper(obj2); | |
28665 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28666 | temp3 = True; |
d14a1e28 RD |
28667 | } |
28668 | { | |
28669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28670 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
28671 | ||
28672 | wxPyEndAllowThreads(__tstate); | |
28673 | if (PyErr_Occurred()) SWIG_fail; | |
28674 | } | |
28675 | Py_INCREF(Py_None); resultobj = Py_None; | |
28676 | { | |
28677 | if (temp3) | |
28678 | delete arg3; | |
28679 | } | |
28680 | return resultobj; | |
28681 | fail: | |
28682 | { | |
28683 | if (temp3) | |
28684 | delete arg3; | |
28685 | } | |
28686 | return NULL; | |
28687 | } | |
28688 | ||
28689 | ||
28690 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28691 | PyObject *resultobj; | |
28692 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28693 | int arg2 ; | |
28694 | wxString result; | |
28695 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28696 | PyObject * obj1 = 0 ; |
d14a1e28 | 28697 | char *kwnames[] = { |
f0983263 | 28698 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28699 | }; |
28700 | ||
8edf1c75 | 28701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28703 | { |
28704 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28705 | if (PyErr_Occurred()) SWIG_fail; | |
28706 | } | |
d14a1e28 RD |
28707 | { |
28708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28709 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
28710 | ||
28711 | wxPyEndAllowThreads(__tstate); | |
28712 | if (PyErr_Occurred()) SWIG_fail; | |
28713 | } | |
28714 | { | |
28715 | #if wxUSE_UNICODE | |
28716 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28717 | #else | |
28718 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28719 | #endif | |
28720 | } | |
28721 | return resultobj; | |
28722 | fail: | |
28723 | return NULL; | |
28724 | } | |
28725 | ||
28726 | ||
28727 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28728 | PyObject *resultobj; | |
28729 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28730 | wxString *arg2 = 0 ; | |
423f194a | 28731 | bool temp2 = False ; |
d14a1e28 RD |
28732 | PyObject * obj0 = 0 ; |
28733 | PyObject * obj1 = 0 ; | |
28734 | char *kwnames[] = { | |
28735 | (char *) "self",(char *) "title", NULL | |
28736 | }; | |
28737 | ||
28738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
28739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28740 | { | |
28741 | arg2 = wxString_in_helper(obj1); | |
28742 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28743 | temp2 = True; |
d14a1e28 RD |
28744 | } |
28745 | { | |
28746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28747 | (arg1)->SetTitle((wxString const &)*arg2); | |
28748 | ||
28749 | wxPyEndAllowThreads(__tstate); | |
28750 | if (PyErr_Occurred()) SWIG_fail; | |
28751 | } | |
28752 | Py_INCREF(Py_None); resultobj = Py_None; | |
28753 | { | |
28754 | if (temp2) | |
28755 | delete arg2; | |
28756 | } | |
28757 | return resultobj; | |
28758 | fail: | |
28759 | { | |
28760 | if (temp2) | |
28761 | delete arg2; | |
28762 | } | |
28763 | return NULL; | |
28764 | } | |
28765 | ||
28766 | ||
28767 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28768 | PyObject *resultobj; | |
28769 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28770 | wxString result; | |
28771 | PyObject * obj0 = 0 ; | |
28772 | char *kwnames[] = { | |
28773 | (char *) "self", NULL | |
28774 | }; | |
28775 | ||
28776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",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 = ((wxMenu const *)arg1)->GetTitle(); | |
28781 | ||
28782 | wxPyEndAllowThreads(__tstate); | |
28783 | if (PyErr_Occurred()) SWIG_fail; | |
28784 | } | |
28785 | { | |
28786 | #if wxUSE_UNICODE | |
28787 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28788 | #else | |
28789 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28790 | #endif | |
28791 | } | |
28792 | return resultobj; | |
28793 | fail: | |
28794 | return NULL; | |
28795 | } | |
28796 | ||
28797 | ||
28798 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28799 | PyObject *resultobj; | |
28800 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28801 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
28802 | PyObject * obj0 = 0 ; | |
28803 | PyObject * obj1 = 0 ; | |
28804 | char *kwnames[] = { | |
28805 | (char *) "self",(char *) "handler", NULL | |
28806 | }; | |
28807 | ||
28808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
28809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28810 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28811 | { | |
28812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28813 | (arg1)->SetEventHandler(arg2); | |
28814 | ||
28815 | wxPyEndAllowThreads(__tstate); | |
28816 | if (PyErr_Occurred()) SWIG_fail; | |
28817 | } | |
28818 | Py_INCREF(Py_None); resultobj = Py_None; | |
28819 | return resultobj; | |
28820 | fail: | |
28821 | return NULL; | |
28822 | } | |
28823 | ||
28824 | ||
28825 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28826 | PyObject *resultobj; | |
28827 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28828 | wxEvtHandler *result; | |
28829 | PyObject * obj0 = 0 ; | |
28830 | char *kwnames[] = { | |
28831 | (char *) "self", NULL | |
28832 | }; | |
28833 | ||
28834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
28835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28836 | { | |
28837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28838 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
28839 | ||
28840 | wxPyEndAllowThreads(__tstate); | |
28841 | if (PyErr_Occurred()) SWIG_fail; | |
28842 | } | |
28843 | { | |
28844 | resultobj = wxPyMake_wxObject(result); | |
28845 | } | |
28846 | return resultobj; | |
28847 | fail: | |
28848 | return NULL; | |
28849 | } | |
28850 | ||
28851 | ||
28852 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28853 | PyObject *resultobj; | |
28854 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28855 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28856 | PyObject * obj0 = 0 ; | |
28857 | PyObject * obj1 = 0 ; | |
28858 | char *kwnames[] = { | |
28859 | (char *) "self",(char *) "win", NULL | |
28860 | }; | |
28861 | ||
28862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
28863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28864 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28865 | { | |
28866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28867 | (arg1)->SetInvokingWindow(arg2); | |
28868 | ||
28869 | wxPyEndAllowThreads(__tstate); | |
28870 | if (PyErr_Occurred()) SWIG_fail; | |
28871 | } | |
28872 | Py_INCREF(Py_None); resultobj = Py_None; | |
28873 | return resultobj; | |
28874 | fail: | |
28875 | return NULL; | |
28876 | } | |
28877 | ||
28878 | ||
28879 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28880 | PyObject *resultobj; | |
28881 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28882 | wxWindow *result; | |
28883 | PyObject * obj0 = 0 ; | |
28884 | char *kwnames[] = { | |
28885 | (char *) "self", NULL | |
28886 | }; | |
28887 | ||
28888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
28889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28890 | { | |
28891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28892 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
28893 | ||
28894 | wxPyEndAllowThreads(__tstate); | |
28895 | if (PyErr_Occurred()) SWIG_fail; | |
28896 | } | |
28897 | { | |
28898 | resultobj = wxPyMake_wxObject(result); | |
28899 | } | |
28900 | return resultobj; | |
28901 | fail: | |
28902 | return NULL; | |
28903 | } | |
28904 | ||
28905 | ||
28906 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28907 | PyObject *resultobj; | |
28908 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28909 | long result; | |
28910 | PyObject * obj0 = 0 ; | |
28911 | char *kwnames[] = { | |
28912 | (char *) "self", NULL | |
28913 | }; | |
28914 | ||
28915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
28916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28917 | { | |
28918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28919 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
28920 | ||
28921 | wxPyEndAllowThreads(__tstate); | |
28922 | if (PyErr_Occurred()) SWIG_fail; | |
28923 | } | |
8edf1c75 | 28924 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
28925 | return resultobj; |
28926 | fail: | |
28927 | return NULL; | |
28928 | } | |
28929 | ||
28930 | ||
28931 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28932 | PyObject *resultobj; | |
28933 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28934 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
28935 | PyObject * obj0 = 0 ; | |
28936 | PyObject * obj1 = 0 ; | |
28937 | char *kwnames[] = { | |
28938 | (char *) "self",(char *) "source", NULL | |
28939 | }; | |
28940 | ||
28941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
28942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28943 | if (obj1) { | |
28944 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28945 | } | |
28946 | { | |
28947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28948 | (arg1)->UpdateUI(arg2); | |
28949 | ||
28950 | wxPyEndAllowThreads(__tstate); | |
28951 | if (PyErr_Occurred()) SWIG_fail; | |
28952 | } | |
28953 | Py_INCREF(Py_None); resultobj = Py_None; | |
28954 | return resultobj; | |
28955 | fail: | |
28956 | return NULL; | |
28957 | } | |
28958 | ||
28959 | ||
28960 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28961 | PyObject *resultobj; | |
28962 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28963 | wxMenuBar *result; | |
28964 | PyObject * obj0 = 0 ; | |
28965 | char *kwnames[] = { | |
28966 | (char *) "self", NULL | |
28967 | }; | |
28968 | ||
28969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
28970 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28971 | { | |
28972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28973 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
28974 | ||
28975 | wxPyEndAllowThreads(__tstate); | |
28976 | if (PyErr_Occurred()) SWIG_fail; | |
28977 | } | |
28978 | { | |
28979 | resultobj = wxPyMake_wxObject(result); | |
28980 | } | |
28981 | return resultobj; | |
28982 | fail: | |
28983 | return NULL; | |
28984 | } | |
28985 | ||
28986 | ||
28987 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28988 | PyObject *resultobj; | |
28989 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28990 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
28991 | PyObject * obj0 = 0 ; | |
28992 | PyObject * obj1 = 0 ; | |
28993 | char *kwnames[] = { | |
28994 | (char *) "self",(char *) "menubar", NULL | |
28995 | }; | |
28996 | ||
28997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
28998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28999 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29000 | { | |
29001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29002 | (arg1)->Attach(arg2); | |
29003 | ||
29004 | wxPyEndAllowThreads(__tstate); | |
29005 | if (PyErr_Occurred()) SWIG_fail; | |
29006 | } | |
29007 | Py_INCREF(Py_None); resultobj = Py_None; | |
29008 | return resultobj; | |
29009 | fail: | |
29010 | return NULL; | |
29011 | } | |
29012 | ||
29013 | ||
29014 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29015 | PyObject *resultobj; | |
29016 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29017 | PyObject * obj0 = 0 ; | |
29018 | char *kwnames[] = { | |
29019 | (char *) "self", NULL | |
29020 | }; | |
29021 | ||
29022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
29023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29024 | { | |
29025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29026 | (arg1)->Detach(); | |
29027 | ||
29028 | wxPyEndAllowThreads(__tstate); | |
29029 | if (PyErr_Occurred()) SWIG_fail; | |
29030 | } | |
29031 | Py_INCREF(Py_None); resultobj = Py_None; | |
29032 | return resultobj; | |
29033 | fail: | |
29034 | return NULL; | |
29035 | } | |
29036 | ||
29037 | ||
29038 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29039 | PyObject *resultobj; | |
29040 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29041 | bool result; | |
29042 | PyObject * obj0 = 0 ; | |
29043 | char *kwnames[] = { | |
29044 | (char *) "self", NULL | |
29045 | }; | |
29046 | ||
29047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
29048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29049 | { | |
29050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29051 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
29052 | ||
29053 | wxPyEndAllowThreads(__tstate); | |
29054 | if (PyErr_Occurred()) SWIG_fail; | |
29055 | } | |
4e760a36 | 29056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29057 | return resultobj; |
29058 | fail: | |
29059 | return NULL; | |
29060 | } | |
29061 | ||
29062 | ||
29063 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29064 | PyObject *resultobj; | |
29065 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29066 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29067 | PyObject * obj0 = 0 ; | |
29068 | PyObject * obj1 = 0 ; | |
29069 | char *kwnames[] = { | |
29070 | (char *) "self",(char *) "parent", NULL | |
29071 | }; | |
29072 | ||
29073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
29074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29075 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29076 | { | |
29077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29078 | (arg1)->SetParent(arg2); | |
29079 | ||
29080 | wxPyEndAllowThreads(__tstate); | |
29081 | if (PyErr_Occurred()) SWIG_fail; | |
29082 | } | |
29083 | Py_INCREF(Py_None); resultobj = Py_None; | |
29084 | return resultobj; | |
29085 | fail: | |
29086 | return NULL; | |
29087 | } | |
29088 | ||
29089 | ||
29090 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29091 | PyObject *resultobj; | |
29092 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29093 | wxMenu *result; | |
29094 | PyObject * obj0 = 0 ; | |
29095 | char *kwnames[] = { | |
29096 | (char *) "self", NULL | |
29097 | }; | |
29098 | ||
29099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
29100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29101 | { | |
29102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29103 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
29104 | ||
29105 | wxPyEndAllowThreads(__tstate); | |
29106 | if (PyErr_Occurred()) SWIG_fail; | |
29107 | } | |
29108 | { | |
29109 | resultobj = wxPyMake_wxObject(result); | |
29110 | } | |
29111 | return resultobj; | |
29112 | fail: | |
29113 | return NULL; | |
29114 | } | |
29115 | ||
29116 | ||
29117 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
29118 | PyObject *obj; | |
29119 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29120 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
29121 | Py_INCREF(obj); | |
29122 | return Py_BuildValue((char *)""); | |
29123 | } | |
29124 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29125 | PyObject *resultobj; | |
29126 | long arg1 = (long) 0 ; | |
29127 | wxMenuBar *result; | |
8edf1c75 | 29128 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
29129 | char *kwnames[] = { |
29130 | (char *) "style", NULL | |
29131 | }; | |
29132 | ||
8edf1c75 RD |
29133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; |
29134 | if (obj0) { | |
29135 | { | |
29136 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
29137 | if (PyErr_Occurred()) SWIG_fail; | |
29138 | } | |
29139 | } | |
d14a1e28 RD |
29140 | { |
29141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29142 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
29143 | ||
29144 | wxPyEndAllowThreads(__tstate); | |
29145 | if (PyErr_Occurred()) SWIG_fail; | |
29146 | } | |
29147 | { | |
29148 | resultobj = wxPyMake_wxObject(result); | |
29149 | } | |
29150 | return resultobj; | |
29151 | fail: | |
29152 | return NULL; | |
29153 | } | |
29154 | ||
29155 | ||
29156 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29157 | PyObject *resultobj; | |
29158 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29159 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29160 | wxString *arg3 = 0 ; | |
29161 | bool result; | |
423f194a | 29162 | bool temp3 = False ; |
d14a1e28 RD |
29163 | PyObject * obj0 = 0 ; |
29164 | PyObject * obj1 = 0 ; | |
29165 | PyObject * obj2 = 0 ; | |
29166 | char *kwnames[] = { | |
29167 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
29168 | }; | |
29169 | ||
29170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29172 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29173 | { | |
29174 | arg3 = wxString_in_helper(obj2); | |
29175 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29176 | temp3 = True; |
d14a1e28 RD |
29177 | } |
29178 | { | |
29179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29180 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
29181 | ||
29182 | wxPyEndAllowThreads(__tstate); | |
29183 | if (PyErr_Occurred()) SWIG_fail; | |
29184 | } | |
4e760a36 | 29185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29186 | { |
29187 | if (temp3) | |
29188 | delete arg3; | |
29189 | } | |
29190 | return resultobj; | |
29191 | fail: | |
29192 | { | |
29193 | if (temp3) | |
29194 | delete arg3; | |
29195 | } | |
29196 | return NULL; | |
29197 | } | |
29198 | ||
29199 | ||
29200 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29201 | PyObject *resultobj; | |
29202 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29203 | size_t arg2 ; | |
29204 | wxMenu *arg3 = (wxMenu *) 0 ; | |
29205 | wxString *arg4 = 0 ; | |
29206 | bool result; | |
423f194a | 29207 | bool temp4 = False ; |
d14a1e28 RD |
29208 | PyObject * obj0 = 0 ; |
29209 | PyObject * obj1 = 0 ; | |
29210 | PyObject * obj2 = 0 ; | |
29211 | PyObject * obj3 = 0 ; | |
29212 | char *kwnames[] = { | |
29213 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
29214 | }; | |
29215 | ||
29216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29218 | { |
8edf1c75 | 29219 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29220 | if (PyErr_Occurred()) SWIG_fail; |
29221 | } | |
d14a1e28 RD |
29222 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
29223 | { | |
29224 | arg4 = wxString_in_helper(obj3); | |
29225 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 29226 | temp4 = True; |
d14a1e28 RD |
29227 | } |
29228 | { | |
29229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29230 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
29231 | ||
29232 | wxPyEndAllowThreads(__tstate); | |
29233 | if (PyErr_Occurred()) SWIG_fail; | |
29234 | } | |
4e760a36 | 29235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29236 | { |
29237 | if (temp4) | |
29238 | delete arg4; | |
29239 | } | |
29240 | return resultobj; | |
29241 | fail: | |
29242 | { | |
29243 | if (temp4) | |
29244 | delete arg4; | |
29245 | } | |
29246 | return NULL; | |
29247 | } | |
29248 | ||
29249 | ||
29250 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29251 | PyObject *resultobj; | |
29252 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29253 | size_t result; | |
29254 | PyObject * obj0 = 0 ; | |
29255 | char *kwnames[] = { | |
29256 | (char *) "self", NULL | |
29257 | }; | |
29258 | ||
29259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
29260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29261 | { | |
29262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29263 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
29264 | ||
29265 | wxPyEndAllowThreads(__tstate); | |
29266 | if (PyErr_Occurred()) SWIG_fail; | |
29267 | } | |
8edf1c75 | 29268 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
29269 | return resultobj; |
29270 | fail: | |
29271 | return NULL; | |
29272 | } | |
29273 | ||
29274 | ||
29275 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29276 | PyObject *resultobj; | |
29277 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29278 | size_t arg2 ; | |
29279 | wxMenu *result; | |
29280 | PyObject * obj0 = 0 ; | |
29281 | PyObject * obj1 = 0 ; | |
29282 | char *kwnames[] = { | |
29283 | (char *) "self",(char *) "pos", NULL | |
29284 | }; | |
29285 | ||
29286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
29287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29288 | { |
8edf1c75 | 29289 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29290 | if (PyErr_Occurred()) SWIG_fail; |
29291 | } | |
d14a1e28 RD |
29292 | { |
29293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29294 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
29295 | ||
29296 | wxPyEndAllowThreads(__tstate); | |
29297 | if (PyErr_Occurred()) SWIG_fail; | |
29298 | } | |
29299 | { | |
29300 | resultobj = wxPyMake_wxObject(result); | |
29301 | } | |
29302 | return resultobj; | |
29303 | fail: | |
29304 | return NULL; | |
29305 | } | |
29306 | ||
29307 | ||
29308 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29309 | PyObject *resultobj; | |
29310 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29311 | size_t arg2 ; | |
29312 | wxMenu *arg3 = (wxMenu *) 0 ; | |
29313 | wxString *arg4 = 0 ; | |
29314 | wxMenu *result; | |
423f194a | 29315 | bool temp4 = False ; |
d14a1e28 RD |
29316 | PyObject * obj0 = 0 ; |
29317 | PyObject * obj1 = 0 ; | |
29318 | PyObject * obj2 = 0 ; | |
29319 | PyObject * obj3 = 0 ; | |
29320 | char *kwnames[] = { | |
29321 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
29322 | }; | |
29323 | ||
29324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29326 | { |
8edf1c75 | 29327 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29328 | if (PyErr_Occurred()) SWIG_fail; |
29329 | } | |
d14a1e28 RD |
29330 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
29331 | { | |
29332 | arg4 = wxString_in_helper(obj3); | |
29333 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 29334 | temp4 = True; |
d14a1e28 RD |
29335 | } |
29336 | { | |
29337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29338 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
29339 | ||
29340 | wxPyEndAllowThreads(__tstate); | |
29341 | if (PyErr_Occurred()) SWIG_fail; | |
29342 | } | |
29343 | { | |
29344 | resultobj = wxPyMake_wxObject(result); | |
29345 | } | |
29346 | { | |
29347 | if (temp4) | |
29348 | delete arg4; | |
29349 | } | |
29350 | return resultobj; | |
29351 | fail: | |
29352 | { | |
29353 | if (temp4) | |
29354 | delete arg4; | |
29355 | } | |
29356 | return NULL; | |
29357 | } | |
29358 | ||
29359 | ||
29360 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29361 | PyObject *resultobj; | |
29362 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29363 | size_t arg2 ; | |
29364 | wxMenu *result; | |
29365 | PyObject * obj0 = 0 ; | |
29366 | PyObject * obj1 = 0 ; | |
29367 | char *kwnames[] = { | |
29368 | (char *) "self",(char *) "pos", NULL | |
29369 | }; | |
29370 | ||
29371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
29372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29373 | { |
8edf1c75 | 29374 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29375 | if (PyErr_Occurred()) SWIG_fail; |
29376 | } | |
d14a1e28 RD |
29377 | { |
29378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29379 | result = (wxMenu *)(arg1)->Remove(arg2); | |
29380 | ||
29381 | wxPyEndAllowThreads(__tstate); | |
29382 | if (PyErr_Occurred()) SWIG_fail; | |
29383 | } | |
29384 | { | |
29385 | resultobj = wxPyMake_wxObject(result); | |
29386 | } | |
29387 | return resultobj; | |
29388 | fail: | |
29389 | return NULL; | |
29390 | } | |
29391 | ||
29392 | ||
29393 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29394 | PyObject *resultobj; | |
29395 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29396 | size_t arg2 ; | |
29397 | bool arg3 ; | |
29398 | PyObject * obj0 = 0 ; | |
29399 | PyObject * obj1 = 0 ; | |
29400 | PyObject * obj2 = 0 ; | |
29401 | char *kwnames[] = { | |
29402 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
29403 | }; | |
29404 | ||
29405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29407 | { |
8edf1c75 | 29408 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29409 | if (PyErr_Occurred()) SWIG_fail; |
29410 | } | |
29411 | { | |
8edf1c75 | 29412 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
29413 | if (PyErr_Occurred()) SWIG_fail; |
29414 | } | |
d14a1e28 RD |
29415 | { |
29416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29417 | (arg1)->EnableTop(arg2,arg3); | |
29418 | ||
29419 | wxPyEndAllowThreads(__tstate); | |
29420 | if (PyErr_Occurred()) SWIG_fail; | |
29421 | } | |
29422 | Py_INCREF(Py_None); resultobj = Py_None; | |
29423 | return resultobj; | |
29424 | fail: | |
29425 | return NULL; | |
29426 | } | |
29427 | ||
29428 | ||
29429 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29430 | PyObject *resultobj; | |
29431 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29432 | size_t arg2 ; | |
29433 | bool result; | |
29434 | PyObject * obj0 = 0 ; | |
29435 | PyObject * obj1 = 0 ; | |
29436 | char *kwnames[] = { | |
29437 | (char *) "self",(char *) "pos", NULL | |
29438 | }; | |
29439 | ||
29440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
29441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29442 | { |
8edf1c75 | 29443 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29444 | if (PyErr_Occurred()) SWIG_fail; |
29445 | } | |
d14a1e28 RD |
29446 | { |
29447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29448 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
29449 | ||
29450 | wxPyEndAllowThreads(__tstate); | |
29451 | if (PyErr_Occurred()) SWIG_fail; | |
29452 | } | |
4e760a36 | 29453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29454 | return resultobj; |
29455 | fail: | |
29456 | return NULL; | |
29457 | } | |
29458 | ||
29459 | ||
29460 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29461 | PyObject *resultobj; | |
29462 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29463 | size_t arg2 ; | |
29464 | wxString *arg3 = 0 ; | |
423f194a | 29465 | bool temp3 = False ; |
d14a1e28 RD |
29466 | PyObject * obj0 = 0 ; |
29467 | PyObject * obj1 = 0 ; | |
29468 | PyObject * obj2 = 0 ; | |
29469 | char *kwnames[] = { | |
29470 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
29471 | }; | |
29472 | ||
29473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29475 | { |
8edf1c75 | 29476 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29477 | if (PyErr_Occurred()) SWIG_fail; |
29478 | } | |
d14a1e28 RD |
29479 | { |
29480 | arg3 = wxString_in_helper(obj2); | |
29481 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29482 | temp3 = True; |
d14a1e28 RD |
29483 | } |
29484 | { | |
29485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29486 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
29487 | ||
29488 | wxPyEndAllowThreads(__tstate); | |
29489 | if (PyErr_Occurred()) SWIG_fail; | |
29490 | } | |
29491 | Py_INCREF(Py_None); resultobj = Py_None; | |
29492 | { | |
29493 | if (temp3) | |
29494 | delete arg3; | |
29495 | } | |
29496 | return resultobj; | |
29497 | fail: | |
29498 | { | |
29499 | if (temp3) | |
29500 | delete arg3; | |
29501 | } | |
29502 | return NULL; | |
29503 | } | |
29504 | ||
29505 | ||
29506 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29507 | PyObject *resultobj; | |
29508 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29509 | size_t arg2 ; | |
29510 | wxString result; | |
29511 | PyObject * obj0 = 0 ; | |
29512 | PyObject * obj1 = 0 ; | |
29513 | char *kwnames[] = { | |
29514 | (char *) "self",(char *) "pos", NULL | |
29515 | }; | |
29516 | ||
29517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
29518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29519 | { |
8edf1c75 | 29520 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29521 | if (PyErr_Occurred()) SWIG_fail; |
29522 | } | |
d14a1e28 RD |
29523 | { |
29524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29525 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
29526 | ||
29527 | wxPyEndAllowThreads(__tstate); | |
29528 | if (PyErr_Occurred()) SWIG_fail; | |
29529 | } | |
29530 | { | |
29531 | #if wxUSE_UNICODE | |
29532 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29533 | #else | |
29534 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29535 | #endif | |
29536 | } | |
29537 | return resultobj; | |
29538 | fail: | |
29539 | return NULL; | |
29540 | } | |
29541 | ||
29542 | ||
29543 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29544 | PyObject *resultobj; | |
29545 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29546 | wxString *arg2 = 0 ; | |
29547 | wxString *arg3 = 0 ; | |
29548 | int result; | |
423f194a RD |
29549 | bool temp2 = False ; |
29550 | bool temp3 = False ; | |
d14a1e28 RD |
29551 | PyObject * obj0 = 0 ; |
29552 | PyObject * obj1 = 0 ; | |
29553 | PyObject * obj2 = 0 ; | |
29554 | char *kwnames[] = { | |
29555 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
29556 | }; | |
29557 | ||
29558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29560 | { | |
29561 | arg2 = wxString_in_helper(obj1); | |
29562 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29563 | temp2 = True; |
d14a1e28 RD |
29564 | } |
29565 | { | |
29566 | arg3 = wxString_in_helper(obj2); | |
29567 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29568 | temp3 = True; |
d14a1e28 RD |
29569 | } |
29570 | { | |
29571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29572 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
29573 | ||
29574 | wxPyEndAllowThreads(__tstate); | |
29575 | if (PyErr_Occurred()) SWIG_fail; | |
29576 | } | |
8edf1c75 | 29577 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
29578 | { |
29579 | if (temp2) | |
29580 | delete arg2; | |
29581 | } | |
29582 | { | |
29583 | if (temp3) | |
29584 | delete arg3; | |
29585 | } | |
29586 | return resultobj; | |
29587 | fail: | |
29588 | { | |
29589 | if (temp2) | |
29590 | delete arg2; | |
29591 | } | |
29592 | { | |
29593 | if (temp3) | |
29594 | delete arg3; | |
29595 | } | |
29596 | return NULL; | |
29597 | } | |
29598 | ||
29599 | ||
29600 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29601 | PyObject *resultobj; | |
29602 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29603 | int arg2 ; | |
29604 | wxMenuItem *result; | |
29605 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29606 | PyObject * obj1 = 0 ; |
d14a1e28 | 29607 | char *kwnames[] = { |
f0983263 | 29608 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29609 | }; |
29610 | ||
8edf1c75 | 29611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29613 | { |
29614 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29615 | if (PyErr_Occurred()) SWIG_fail; | |
29616 | } | |
d14a1e28 RD |
29617 | { |
29618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29619 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
29620 | ||
29621 | wxPyEndAllowThreads(__tstate); | |
29622 | if (PyErr_Occurred()) SWIG_fail; | |
29623 | } | |
29624 | { | |
29625 | resultobj = wxPyMake_wxObject(result); | |
29626 | } | |
29627 | return resultobj; | |
29628 | fail: | |
29629 | return NULL; | |
29630 | } | |
29631 | ||
29632 | ||
29633 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29634 | PyObject *resultobj; | |
29635 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29636 | wxString *arg2 = 0 ; | |
29637 | int result; | |
423f194a | 29638 | bool temp2 = False ; |
d14a1e28 RD |
29639 | PyObject * obj0 = 0 ; |
29640 | PyObject * obj1 = 0 ; | |
29641 | char *kwnames[] = { | |
29642 | (char *) "self",(char *) "title", NULL | |
29643 | }; | |
29644 | ||
29645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
29646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29647 | { | |
29648 | arg2 = wxString_in_helper(obj1); | |
29649 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29650 | temp2 = True; |
d14a1e28 RD |
29651 | } |
29652 | { | |
29653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29654 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
29655 | ||
29656 | wxPyEndAllowThreads(__tstate); | |
29657 | if (PyErr_Occurred()) SWIG_fail; | |
29658 | } | |
8edf1c75 | 29659 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
29660 | { |
29661 | if (temp2) | |
29662 | delete arg2; | |
29663 | } | |
29664 | return resultobj; | |
29665 | fail: | |
29666 | { | |
29667 | if (temp2) | |
29668 | delete arg2; | |
29669 | } | |
29670 | return NULL; | |
29671 | } | |
29672 | ||
29673 | ||
29674 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29675 | PyObject *resultobj; | |
29676 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29677 | int arg2 ; | |
29678 | bool arg3 ; | |
29679 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29680 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29681 | PyObject * obj2 = 0 ; |
29682 | char *kwnames[] = { | |
f0983263 | 29683 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
29684 | }; |
29685 | ||
8edf1c75 | 29686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 29687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 29688 | { |
8edf1c75 RD |
29689 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
29690 | if (PyErr_Occurred()) SWIG_fail; | |
29691 | } | |
29692 | { | |
29693 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
29694 | if (PyErr_Occurred()) SWIG_fail; |
29695 | } | |
d14a1e28 RD |
29696 | { |
29697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29698 | (arg1)->Enable(arg2,arg3); | |
29699 | ||
29700 | wxPyEndAllowThreads(__tstate); | |
29701 | if (PyErr_Occurred()) SWIG_fail; | |
29702 | } | |
29703 | Py_INCREF(Py_None); resultobj = Py_None; | |
29704 | return resultobj; | |
29705 | fail: | |
29706 | return NULL; | |
29707 | } | |
29708 | ||
29709 | ||
29710 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29711 | PyObject *resultobj; | |
29712 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29713 | int arg2 ; | |
29714 | bool arg3 ; | |
29715 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29716 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29717 | PyObject * obj2 = 0 ; |
29718 | char *kwnames[] = { | |
f0983263 | 29719 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
29720 | }; |
29721 | ||
8edf1c75 | 29722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 29723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 29724 | { |
8edf1c75 RD |
29725 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
29726 | if (PyErr_Occurred()) SWIG_fail; | |
29727 | } | |
29728 | { | |
29729 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
29730 | if (PyErr_Occurred()) SWIG_fail; |
29731 | } | |
d14a1e28 RD |
29732 | { |
29733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29734 | (arg1)->Check(arg2,arg3); | |
29735 | ||
29736 | wxPyEndAllowThreads(__tstate); | |
29737 | if (PyErr_Occurred()) SWIG_fail; | |
29738 | } | |
29739 | Py_INCREF(Py_None); resultobj = Py_None; | |
29740 | return resultobj; | |
29741 | fail: | |
29742 | return NULL; | |
29743 | } | |
29744 | ||
29745 | ||
29746 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29747 | PyObject *resultobj; | |
29748 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29749 | int arg2 ; | |
29750 | bool result; | |
29751 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29752 | PyObject * obj1 = 0 ; |
d14a1e28 | 29753 | char *kwnames[] = { |
f0983263 | 29754 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29755 | }; |
29756 | ||
8edf1c75 | 29757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29759 | { |
29760 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29761 | if (PyErr_Occurred()) SWIG_fail; | |
29762 | } | |
d14a1e28 RD |
29763 | { |
29764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29765 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
29766 | ||
29767 | wxPyEndAllowThreads(__tstate); | |
29768 | if (PyErr_Occurred()) SWIG_fail; | |
29769 | } | |
4e760a36 | 29770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29771 | return resultobj; |
29772 | fail: | |
29773 | return NULL; | |
29774 | } | |
29775 | ||
29776 | ||
29777 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29778 | PyObject *resultobj; | |
29779 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29780 | int arg2 ; | |
29781 | bool result; | |
29782 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29783 | PyObject * obj1 = 0 ; |
d14a1e28 | 29784 | char *kwnames[] = { |
f0983263 | 29785 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29786 | }; |
29787 | ||
8edf1c75 | 29788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29790 | { |
29791 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29792 | if (PyErr_Occurred()) SWIG_fail; | |
29793 | } | |
d14a1e28 RD |
29794 | { |
29795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29796 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
29797 | ||
29798 | wxPyEndAllowThreads(__tstate); | |
29799 | if (PyErr_Occurred()) SWIG_fail; | |
29800 | } | |
4e760a36 | 29801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29802 | return resultobj; |
29803 | fail: | |
29804 | return NULL; | |
29805 | } | |
29806 | ||
29807 | ||
29808 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29809 | PyObject *resultobj; | |
29810 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29811 | int arg2 ; | |
29812 | wxString *arg3 = 0 ; | |
423f194a | 29813 | bool temp3 = False ; |
d14a1e28 | 29814 | PyObject * obj0 = 0 ; |
8edf1c75 | 29815 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29816 | PyObject * obj2 = 0 ; |
29817 | char *kwnames[] = { | |
f0983263 | 29818 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
29819 | }; |
29820 | ||
8edf1c75 | 29821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 29822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29823 | { |
29824 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29825 | if (PyErr_Occurred()) SWIG_fail; | |
29826 | } | |
d14a1e28 RD |
29827 | { |
29828 | arg3 = wxString_in_helper(obj2); | |
29829 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29830 | temp3 = True; |
d14a1e28 RD |
29831 | } |
29832 | { | |
29833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29834 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
29835 | ||
29836 | wxPyEndAllowThreads(__tstate); | |
29837 | if (PyErr_Occurred()) SWIG_fail; | |
29838 | } | |
29839 | Py_INCREF(Py_None); resultobj = Py_None; | |
29840 | { | |
29841 | if (temp3) | |
29842 | delete arg3; | |
29843 | } | |
29844 | return resultobj; | |
29845 | fail: | |
29846 | { | |
29847 | if (temp3) | |
29848 | delete arg3; | |
29849 | } | |
29850 | return NULL; | |
29851 | } | |
29852 | ||
29853 | ||
29854 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29855 | PyObject *resultobj; | |
29856 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29857 | int arg2 ; | |
29858 | wxString result; | |
29859 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29860 | PyObject * obj1 = 0 ; |
d14a1e28 | 29861 | char *kwnames[] = { |
f0983263 | 29862 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29863 | }; |
29864 | ||
8edf1c75 | 29865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29867 | { |
29868 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29869 | if (PyErr_Occurred()) SWIG_fail; | |
29870 | } | |
d14a1e28 RD |
29871 | { |
29872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29873 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
29874 | ||
29875 | wxPyEndAllowThreads(__tstate); | |
29876 | if (PyErr_Occurred()) SWIG_fail; | |
29877 | } | |
29878 | { | |
29879 | #if wxUSE_UNICODE | |
29880 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29881 | #else | |
29882 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29883 | #endif | |
29884 | } | |
29885 | return resultobj; | |
29886 | fail: | |
29887 | return NULL; | |
29888 | } | |
29889 | ||
29890 | ||
29891 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29892 | PyObject *resultobj; | |
29893 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29894 | int arg2 ; | |
29895 | wxString *arg3 = 0 ; | |
423f194a | 29896 | bool temp3 = False ; |
d14a1e28 | 29897 | PyObject * obj0 = 0 ; |
8edf1c75 | 29898 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29899 | PyObject * obj2 = 0 ; |
29900 | char *kwnames[] = { | |
f0983263 | 29901 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
29902 | }; |
29903 | ||
8edf1c75 | 29904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 29905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29906 | { |
29907 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29908 | if (PyErr_Occurred()) SWIG_fail; | |
29909 | } | |
d14a1e28 RD |
29910 | { |
29911 | arg3 = wxString_in_helper(obj2); | |
29912 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29913 | temp3 = True; |
d14a1e28 RD |
29914 | } |
29915 | { | |
29916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29917 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
29918 | ||
29919 | wxPyEndAllowThreads(__tstate); | |
29920 | if (PyErr_Occurred()) SWIG_fail; | |
29921 | } | |
29922 | Py_INCREF(Py_None); resultobj = Py_None; | |
29923 | { | |
29924 | if (temp3) | |
29925 | delete arg3; | |
29926 | } | |
29927 | return resultobj; | |
29928 | fail: | |
29929 | { | |
29930 | if (temp3) | |
29931 | delete arg3; | |
29932 | } | |
29933 | return NULL; | |
29934 | } | |
29935 | ||
29936 | ||
29937 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29938 | PyObject *resultobj; | |
29939 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29940 | int arg2 ; | |
29941 | wxString result; | |
29942 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29943 | PyObject * obj1 = 0 ; |
d14a1e28 | 29944 | char *kwnames[] = { |
f0983263 | 29945 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29946 | }; |
29947 | ||
8edf1c75 | 29948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29950 | { |
29951 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29952 | if (PyErr_Occurred()) SWIG_fail; | |
29953 | } | |
d14a1e28 RD |
29954 | { |
29955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29956 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
29957 | ||
29958 | wxPyEndAllowThreads(__tstate); | |
29959 | if (PyErr_Occurred()) SWIG_fail; | |
29960 | } | |
29961 | { | |
29962 | #if wxUSE_UNICODE | |
29963 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29964 | #else | |
29965 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29966 | #endif | |
29967 | } | |
29968 | return resultobj; | |
29969 | fail: | |
29970 | return NULL; | |
29971 | } | |
29972 | ||
29973 | ||
29974 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29975 | PyObject *resultobj; | |
29976 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29977 | wxFrame *result; | |
29978 | PyObject * obj0 = 0 ; | |
29979 | char *kwnames[] = { | |
29980 | (char *) "self", NULL | |
29981 | }; | |
29982 | ||
29983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
29984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29985 | { | |
29986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29987 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
29988 | ||
29989 | wxPyEndAllowThreads(__tstate); | |
29990 | if (PyErr_Occurred()) SWIG_fail; | |
29991 | } | |
29992 | { | |
29993 | resultobj = wxPyMake_wxObject(result); | |
29994 | } | |
29995 | return resultobj; | |
29996 | fail: | |
29997 | return NULL; | |
29998 | } | |
29999 | ||
30000 | ||
30001 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30002 | PyObject *resultobj; | |
30003 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30004 | bool result; | |
30005 | PyObject * obj0 = 0 ; | |
30006 | char *kwnames[] = { | |
30007 | (char *) "self", NULL | |
30008 | }; | |
30009 | ||
30010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
30011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30012 | { | |
30013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30014 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
30015 | ||
30016 | wxPyEndAllowThreads(__tstate); | |
30017 | if (PyErr_Occurred()) SWIG_fail; | |
30018 | } | |
4e760a36 | 30019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30020 | return resultobj; |
30021 | fail: | |
30022 | return NULL; | |
30023 | } | |
30024 | ||
30025 | ||
30026 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30027 | PyObject *resultobj; | |
30028 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30029 | wxFrame *arg2 = (wxFrame *) 0 ; | |
30030 | PyObject * obj0 = 0 ; | |
30031 | PyObject * obj1 = 0 ; | |
30032 | char *kwnames[] = { | |
30033 | (char *) "self",(char *) "frame", NULL | |
30034 | }; | |
30035 | ||
30036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
30037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30038 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30039 | { | |
30040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30041 | (arg1)->Attach(arg2); | |
30042 | ||
30043 | wxPyEndAllowThreads(__tstate); | |
30044 | if (PyErr_Occurred()) SWIG_fail; | |
30045 | } | |
30046 | Py_INCREF(Py_None); resultobj = Py_None; | |
30047 | return resultobj; | |
30048 | fail: | |
30049 | return NULL; | |
30050 | } | |
30051 | ||
30052 | ||
30053 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30054 | PyObject *resultobj; | |
30055 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30056 | PyObject * obj0 = 0 ; | |
30057 | char *kwnames[] = { | |
30058 | (char *) "self", NULL | |
30059 | }; | |
30060 | ||
30061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
30062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30063 | { | |
30064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30065 | (arg1)->Detach(); | |
30066 | ||
30067 | wxPyEndAllowThreads(__tstate); | |
30068 | if (PyErr_Occurred()) SWIG_fail; | |
30069 | } | |
30070 | Py_INCREF(Py_None); resultobj = Py_None; | |
30071 | return resultobj; | |
30072 | fail: | |
30073 | return NULL; | |
30074 | } | |
30075 | ||
30076 | ||
30077 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
30078 | PyObject *obj; | |
30079 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30080 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
30081 | Py_INCREF(obj); | |
30082 | return Py_BuildValue((char *)""); | |
30083 | } | |
30084 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30085 | PyObject *resultobj; | |
30086 | wxMenu *arg1 = (wxMenu *) NULL ; | |
30087 | int arg2 = (int) wxID_SEPARATOR ; | |
30088 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
30089 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
30090 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30091 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30092 | int arg5 = (int) wxITEM_NORMAL ; | |
30093 | wxMenu *arg6 = (wxMenu *) NULL ; | |
30094 | wxMenuItem *result; | |
423f194a RD |
30095 | bool temp3 = False ; |
30096 | bool temp4 = False ; | |
d14a1e28 | 30097 | PyObject * obj0 = 0 ; |
8edf1c75 | 30098 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30099 | PyObject * obj2 = 0 ; |
30100 | PyObject * obj3 = 0 ; | |
8edf1c75 | 30101 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30102 | PyObject * obj5 = 0 ; |
30103 | char *kwnames[] = { | |
30104 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
30105 | }; | |
30106 | ||
8edf1c75 | 30107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
30108 | if (obj0) { |
30109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30110 | } | |
8edf1c75 RD |
30111 | if (obj1) { |
30112 | { | |
30113 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
30114 | if (PyErr_Occurred()) SWIG_fail; | |
30115 | } | |
30116 | } | |
d14a1e28 RD |
30117 | if (obj2) { |
30118 | { | |
30119 | arg3 = wxString_in_helper(obj2); | |
30120 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30121 | temp3 = True; |
d14a1e28 RD |
30122 | } |
30123 | } | |
30124 | if (obj3) { | |
30125 | { | |
30126 | arg4 = wxString_in_helper(obj3); | |
30127 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 30128 | temp4 = True; |
d14a1e28 RD |
30129 | } |
30130 | } | |
8edf1c75 RD |
30131 | if (obj4) { |
30132 | { | |
30133 | arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4); | |
30134 | if (PyErr_Occurred()) SWIG_fail; | |
30135 | } | |
30136 | } | |
d14a1e28 RD |
30137 | if (obj5) { |
30138 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30139 | } | |
30140 | { | |
30141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30142 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
30143 | ||
30144 | wxPyEndAllowThreads(__tstate); | |
30145 | if (PyErr_Occurred()) SWIG_fail; | |
30146 | } | |
30147 | { | |
30148 | resultobj = wxPyMake_wxObject(result); | |
30149 | } | |
30150 | { | |
30151 | if (temp3) | |
30152 | delete arg3; | |
30153 | } | |
30154 | { | |
30155 | if (temp4) | |
30156 | delete arg4; | |
30157 | } | |
30158 | return resultobj; | |
30159 | fail: | |
30160 | { | |
30161 | if (temp3) | |
30162 | delete arg3; | |
30163 | } | |
30164 | { | |
30165 | if (temp4) | |
30166 | delete arg4; | |
30167 | } | |
30168 | return NULL; | |
30169 | } | |
30170 | ||
30171 | ||
30172 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30173 | PyObject *resultobj; | |
30174 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30175 | wxMenu *result; | |
30176 | PyObject * obj0 = 0 ; | |
30177 | char *kwnames[] = { | |
30178 | (char *) "self", NULL | |
30179 | }; | |
30180 | ||
30181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
30182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30183 | { | |
30184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30185 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
30186 | ||
30187 | wxPyEndAllowThreads(__tstate); | |
30188 | if (PyErr_Occurred()) SWIG_fail; | |
30189 | } | |
30190 | { | |
30191 | resultobj = wxPyMake_wxObject(result); | |
30192 | } | |
30193 | return resultobj; | |
30194 | fail: | |
30195 | return NULL; | |
30196 | } | |
30197 | ||
30198 | ||
30199 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30200 | PyObject *resultobj; | |
30201 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30202 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30203 | PyObject * obj0 = 0 ; | |
30204 | PyObject * obj1 = 0 ; | |
30205 | char *kwnames[] = { | |
30206 | (char *) "self",(char *) "menu", NULL | |
30207 | }; | |
30208 | ||
30209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
30210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30211 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30212 | { | |
30213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30214 | (arg1)->SetMenu(arg2); | |
30215 | ||
30216 | wxPyEndAllowThreads(__tstate); | |
30217 | if (PyErr_Occurred()) SWIG_fail; | |
30218 | } | |
30219 | Py_INCREF(Py_None); resultobj = Py_None; | |
30220 | return resultobj; | |
30221 | fail: | |
30222 | return NULL; | |
30223 | } | |
30224 | ||
30225 | ||
30226 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30227 | PyObject *resultobj; | |
30228 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30229 | int arg2 ; | |
30230 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30231 | PyObject * obj1 = 0 ; |
d14a1e28 | 30232 | char *kwnames[] = { |
f0983263 | 30233 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30234 | }; |
30235 | ||
8edf1c75 | 30236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 30237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
30238 | { |
30239 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
30240 | if (PyErr_Occurred()) SWIG_fail; | |
30241 | } | |
d14a1e28 RD |
30242 | { |
30243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30244 | (arg1)->SetId(arg2); | |
30245 | ||
30246 | wxPyEndAllowThreads(__tstate); | |
30247 | if (PyErr_Occurred()) SWIG_fail; | |
30248 | } | |
30249 | Py_INCREF(Py_None); resultobj = Py_None; | |
30250 | return resultobj; | |
30251 | fail: | |
30252 | return NULL; | |
30253 | } | |
30254 | ||
30255 | ||
30256 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30257 | PyObject *resultobj; | |
30258 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30259 | int result; | |
30260 | PyObject * obj0 = 0 ; | |
30261 | char *kwnames[] = { | |
30262 | (char *) "self", NULL | |
30263 | }; | |
30264 | ||
30265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
30266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30267 | { | |
30268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30269 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
30270 | ||
30271 | wxPyEndAllowThreads(__tstate); | |
30272 | if (PyErr_Occurred()) SWIG_fail; | |
30273 | } | |
8edf1c75 | 30274 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
30275 | return resultobj; |
30276 | fail: | |
30277 | return NULL; | |
30278 | } | |
30279 | ||
30280 | ||
30281 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30282 | PyObject *resultobj; | |
30283 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30284 | bool result; | |
30285 | PyObject * obj0 = 0 ; | |
30286 | char *kwnames[] = { | |
30287 | (char *) "self", NULL | |
30288 | }; | |
30289 | ||
30290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
30291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30292 | { | |
30293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30294 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
30295 | ||
30296 | wxPyEndAllowThreads(__tstate); | |
30297 | if (PyErr_Occurred()) SWIG_fail; | |
30298 | } | |
4e760a36 | 30299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30300 | return resultobj; |
30301 | fail: | |
30302 | return NULL; | |
30303 | } | |
30304 | ||
30305 | ||
30306 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30307 | PyObject *resultobj; | |
30308 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30309 | wxString *arg2 = 0 ; | |
423f194a | 30310 | bool temp2 = False ; |
d14a1e28 RD |
30311 | PyObject * obj0 = 0 ; |
30312 | PyObject * obj1 = 0 ; | |
30313 | char *kwnames[] = { | |
30314 | (char *) "self",(char *) "str", NULL | |
30315 | }; | |
30316 | ||
30317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
30318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30319 | { | |
30320 | arg2 = wxString_in_helper(obj1); | |
30321 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 30322 | temp2 = True; |
d14a1e28 RD |
30323 | } |
30324 | { | |
30325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30326 | (arg1)->SetText((wxString const &)*arg2); | |
30327 | ||
30328 | wxPyEndAllowThreads(__tstate); | |
30329 | if (PyErr_Occurred()) SWIG_fail; | |
30330 | } | |
30331 | Py_INCREF(Py_None); resultobj = Py_None; | |
30332 | { | |
30333 | if (temp2) | |
30334 | delete arg2; | |
30335 | } | |
30336 | return resultobj; | |
30337 | fail: | |
30338 | { | |
30339 | if (temp2) | |
30340 | delete arg2; | |
30341 | } | |
30342 | return NULL; | |
30343 | } | |
30344 | ||
30345 | ||
30346 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30347 | PyObject *resultobj; | |
30348 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30349 | wxString result; | |
30350 | PyObject * obj0 = 0 ; | |
30351 | char *kwnames[] = { | |
30352 | (char *) "self", NULL | |
30353 | }; | |
30354 | ||
30355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
30356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30357 | { | |
30358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30359 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
30360 | ||
30361 | wxPyEndAllowThreads(__tstate); | |
30362 | if (PyErr_Occurred()) SWIG_fail; | |
30363 | } | |
30364 | { | |
30365 | #if wxUSE_UNICODE | |
30366 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30367 | #else | |
30368 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30369 | #endif | |
30370 | } | |
30371 | return resultobj; | |
30372 | fail: | |
30373 | return NULL; | |
30374 | } | |
30375 | ||
30376 | ||
30377 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30378 | PyObject *resultobj; | |
30379 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30380 | wxString *result; | |
30381 | PyObject * obj0 = 0 ; | |
30382 | char *kwnames[] = { | |
30383 | (char *) "self", NULL | |
30384 | }; | |
30385 | ||
30386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
30387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30388 | { | |
30389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30390 | { | |
30391 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
30392 | result = (wxString *) &_result_ref; | |
30393 | } | |
30394 | ||
30395 | wxPyEndAllowThreads(__tstate); | |
30396 | if (PyErr_Occurred()) SWIG_fail; | |
30397 | } | |
f0983263 RD |
30398 | { |
30399 | #if wxUSE_UNICODE | |
30400 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30401 | #else | |
30402 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30403 | #endif | |
30404 | } | |
d14a1e28 RD |
30405 | return resultobj; |
30406 | fail: | |
30407 | return NULL; | |
30408 | } | |
30409 | ||
30410 | ||
30411 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30412 | PyObject *resultobj; | |
30413 | wxString *arg1 = 0 ; | |
30414 | wxString result; | |
423f194a | 30415 | bool temp1 = False ; |
d14a1e28 RD |
30416 | PyObject * obj0 = 0 ; |
30417 | char *kwnames[] = { | |
30418 | (char *) "text", NULL | |
30419 | }; | |
30420 | ||
30421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
30422 | { | |
30423 | arg1 = wxString_in_helper(obj0); | |
30424 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 30425 | temp1 = True; |
d14a1e28 RD |
30426 | } |
30427 | { | |
30428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30429 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
30430 | ||
30431 | wxPyEndAllowThreads(__tstate); | |
30432 | if (PyErr_Occurred()) SWIG_fail; | |
30433 | } | |
30434 | { | |
30435 | #if wxUSE_UNICODE | |
30436 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30437 | #else | |
30438 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30439 | #endif | |
30440 | } | |
30441 | { | |
30442 | if (temp1) | |
30443 | delete arg1; | |
30444 | } | |
30445 | return resultobj; | |
30446 | fail: | |
30447 | { | |
30448 | if (temp1) | |
30449 | delete arg1; | |
30450 | } | |
30451 | return NULL; | |
30452 | } | |
30453 | ||
30454 | ||
30455 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30456 | PyObject *resultobj; | |
30457 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30458 | int result; | |
30459 | PyObject * obj0 = 0 ; | |
30460 | char *kwnames[] = { | |
30461 | (char *) "self", NULL | |
30462 | }; | |
30463 | ||
30464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
30465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30466 | { | |
30467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30468 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
30469 | ||
30470 | wxPyEndAllowThreads(__tstate); | |
30471 | if (PyErr_Occurred()) SWIG_fail; | |
30472 | } | |
8edf1c75 | 30473 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
30474 | return resultobj; |
30475 | fail: | |
30476 | return NULL; | |
30477 | } | |
30478 | ||
30479 | ||
30480 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30481 | PyObject *resultobj; | |
30482 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30483 | bool arg2 ; | |
30484 | PyObject * obj0 = 0 ; | |
30485 | PyObject * obj1 = 0 ; | |
30486 | char *kwnames[] = { | |
30487 | (char *) "self",(char *) "checkable", NULL | |
30488 | }; | |
30489 | ||
30490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
30491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 30492 | { |
8edf1c75 | 30493 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
30494 | if (PyErr_Occurred()) SWIG_fail; |
30495 | } | |
d14a1e28 RD |
30496 | { |
30497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30498 | (arg1)->SetCheckable(arg2); | |
30499 | ||
30500 | wxPyEndAllowThreads(__tstate); | |
30501 | if (PyErr_Occurred()) SWIG_fail; | |
30502 | } | |
30503 | Py_INCREF(Py_None); resultobj = Py_None; | |
30504 | return resultobj; | |
30505 | fail: | |
30506 | return NULL; | |
30507 | } | |
30508 | ||
30509 | ||
30510 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30511 | PyObject *resultobj; | |
30512 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30513 | bool result; | |
30514 | PyObject * obj0 = 0 ; | |
30515 | char *kwnames[] = { | |
30516 | (char *) "self", NULL | |
30517 | }; | |
30518 | ||
30519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
30520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30521 | { | |
30522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30523 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
30524 | ||
30525 | wxPyEndAllowThreads(__tstate); | |
30526 | if (PyErr_Occurred()) SWIG_fail; | |
30527 | } | |
4e760a36 | 30528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30529 | return resultobj; |
30530 | fail: | |
30531 | return NULL; | |
30532 | } | |
30533 | ||
30534 | ||
30535 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30536 | PyObject *resultobj; | |
30537 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30538 | bool result; | |
30539 | PyObject * obj0 = 0 ; | |
30540 | char *kwnames[] = { | |
30541 | (char *) "self", NULL | |
30542 | }; | |
30543 | ||
30544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
30545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30546 | { | |
30547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30548 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
30549 | ||
30550 | wxPyEndAllowThreads(__tstate); | |
30551 | if (PyErr_Occurred()) SWIG_fail; | |
30552 | } | |
4e760a36 | 30553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30554 | return resultobj; |
30555 | fail: | |
30556 | return NULL; | |
30557 | } | |
30558 | ||
30559 | ||
30560 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30561 | PyObject *resultobj; | |
30562 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30563 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30564 | PyObject * obj0 = 0 ; | |
30565 | PyObject * obj1 = 0 ; | |
30566 | char *kwnames[] = { | |
30567 | (char *) "self",(char *) "menu", NULL | |
30568 | }; | |
30569 | ||
30570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
30571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30572 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30573 | { | |
30574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30575 | (arg1)->SetSubMenu(arg2); | |
30576 | ||
30577 | wxPyEndAllowThreads(__tstate); | |
30578 | if (PyErr_Occurred()) SWIG_fail; | |
30579 | } | |
30580 | Py_INCREF(Py_None); resultobj = Py_None; | |
30581 | return resultobj; | |
30582 | fail: | |
30583 | return NULL; | |
30584 | } | |
30585 | ||
30586 | ||
30587 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30588 | PyObject *resultobj; | |
30589 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30590 | wxMenu *result; | |
30591 | PyObject * obj0 = 0 ; | |
30592 | char *kwnames[] = { | |
30593 | (char *) "self", NULL | |
30594 | }; | |
30595 | ||
30596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
30597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30598 | { | |
30599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30600 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
30601 | ||
30602 | wxPyEndAllowThreads(__tstate); | |
30603 | if (PyErr_Occurred()) SWIG_fail; | |
30604 | } | |
30605 | { | |
30606 | resultobj = wxPyMake_wxObject(result); | |
30607 | } | |
30608 | return resultobj; | |
30609 | fail: | |
30610 | return NULL; | |
30611 | } | |
30612 | ||
30613 | ||
30614 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30615 | PyObject *resultobj; | |
30616 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 30617 | bool arg2 = (bool) True ; |
d14a1e28 RD |
30618 | PyObject * obj0 = 0 ; |
30619 | PyObject * obj1 = 0 ; | |
30620 | char *kwnames[] = { | |
30621 | (char *) "self",(char *) "enable", NULL | |
30622 | }; | |
30623 | ||
30624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
30625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30626 | if (obj1) { | |
83448d71 | 30627 | { |
8edf1c75 | 30628 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
30629 | if (PyErr_Occurred()) SWIG_fail; |
30630 | } | |
d14a1e28 RD |
30631 | } |
30632 | { | |
30633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30634 | (arg1)->Enable(arg2); | |
30635 | ||
30636 | wxPyEndAllowThreads(__tstate); | |
30637 | if (PyErr_Occurred()) SWIG_fail; | |
30638 | } | |
30639 | Py_INCREF(Py_None); resultobj = Py_None; | |
30640 | return resultobj; | |
30641 | fail: | |
30642 | return NULL; | |
30643 | } | |
30644 | ||
30645 | ||
30646 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30647 | PyObject *resultobj; | |
30648 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30649 | bool result; | |
30650 | PyObject * obj0 = 0 ; | |
30651 | char *kwnames[] = { | |
30652 | (char *) "self", NULL | |
30653 | }; | |
30654 | ||
30655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
30656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30657 | { | |
30658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30659 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
30660 | ||
30661 | wxPyEndAllowThreads(__tstate); | |
30662 | if (PyErr_Occurred()) SWIG_fail; | |
30663 | } | |
4e760a36 | 30664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30665 | return resultobj; |
30666 | fail: | |
30667 | return NULL; | |
30668 | } | |
30669 | ||
30670 | ||
30671 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30672 | PyObject *resultobj; | |
30673 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 30674 | bool arg2 = (bool) True ; |
d14a1e28 RD |
30675 | PyObject * obj0 = 0 ; |
30676 | PyObject * obj1 = 0 ; | |
30677 | char *kwnames[] = { | |
30678 | (char *) "self",(char *) "check", NULL | |
30679 | }; | |
30680 | ||
30681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
30682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30683 | if (obj1) { | |
83448d71 | 30684 | { |
8edf1c75 | 30685 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
30686 | if (PyErr_Occurred()) SWIG_fail; |
30687 | } | |
d14a1e28 RD |
30688 | } |
30689 | { | |
30690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30691 | (arg1)->Check(arg2); | |
30692 | ||
30693 | wxPyEndAllowThreads(__tstate); | |
30694 | if (PyErr_Occurred()) SWIG_fail; | |
30695 | } | |
30696 | Py_INCREF(Py_None); resultobj = Py_None; | |
30697 | return resultobj; | |
30698 | fail: | |
30699 | return NULL; | |
30700 | } | |
30701 | ||
30702 | ||
30703 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30704 | PyObject *resultobj; | |
30705 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30706 | bool result; | |
30707 | PyObject * obj0 = 0 ; | |
30708 | char *kwnames[] = { | |
30709 | (char *) "self", NULL | |
30710 | }; | |
30711 | ||
30712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
30713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30714 | { | |
30715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30716 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
30717 | ||
30718 | wxPyEndAllowThreads(__tstate); | |
30719 | if (PyErr_Occurred()) SWIG_fail; | |
30720 | } | |
4e760a36 | 30721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30722 | return resultobj; |
30723 | fail: | |
30724 | return NULL; | |
30725 | } | |
30726 | ||
30727 | ||
30728 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30729 | PyObject *resultobj; | |
30730 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30731 | PyObject * obj0 = 0 ; | |
30732 | char *kwnames[] = { | |
30733 | (char *) "self", NULL | |
30734 | }; | |
30735 | ||
30736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
30737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30738 | { | |
30739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30740 | (arg1)->Toggle(); | |
30741 | ||
30742 | wxPyEndAllowThreads(__tstate); | |
30743 | if (PyErr_Occurred()) SWIG_fail; | |
30744 | } | |
30745 | Py_INCREF(Py_None); resultobj = Py_None; | |
30746 | return resultobj; | |
30747 | fail: | |
30748 | return NULL; | |
30749 | } | |
30750 | ||
30751 | ||
30752 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30753 | PyObject *resultobj; | |
30754 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30755 | wxString *arg2 = 0 ; | |
423f194a | 30756 | bool temp2 = False ; |
d14a1e28 RD |
30757 | PyObject * obj0 = 0 ; |
30758 | PyObject * obj1 = 0 ; | |
30759 | char *kwnames[] = { | |
30760 | (char *) "self",(char *) "str", NULL | |
30761 | }; | |
30762 | ||
30763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
30764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30765 | { | |
30766 | arg2 = wxString_in_helper(obj1); | |
30767 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 30768 | temp2 = True; |
d14a1e28 RD |
30769 | } |
30770 | { | |
30771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30772 | (arg1)->SetHelp((wxString const &)*arg2); | |
30773 | ||
30774 | wxPyEndAllowThreads(__tstate); | |
30775 | if (PyErr_Occurred()) SWIG_fail; | |
30776 | } | |
30777 | Py_INCREF(Py_None); resultobj = Py_None; | |
30778 | { | |
30779 | if (temp2) | |
30780 | delete arg2; | |
30781 | } | |
30782 | return resultobj; | |
30783 | fail: | |
30784 | { | |
30785 | if (temp2) | |
30786 | delete arg2; | |
30787 | } | |
30788 | return NULL; | |
30789 | } | |
30790 | ||
30791 | ||
30792 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30793 | PyObject *resultobj; | |
30794 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30795 | wxString *result; | |
30796 | PyObject * obj0 = 0 ; | |
30797 | char *kwnames[] = { | |
30798 | (char *) "self", NULL | |
30799 | }; | |
30800 | ||
30801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
30802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30803 | { | |
30804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30805 | { | |
30806 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
30807 | result = (wxString *) &_result_ref; | |
30808 | } | |
30809 | ||
30810 | wxPyEndAllowThreads(__tstate); | |
30811 | if (PyErr_Occurred()) SWIG_fail; | |
30812 | } | |
f0983263 RD |
30813 | { |
30814 | #if wxUSE_UNICODE | |
30815 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30816 | #else | |
30817 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30818 | #endif | |
30819 | } | |
d14a1e28 RD |
30820 | return resultobj; |
30821 | fail: | |
30822 | return NULL; | |
30823 | } | |
30824 | ||
30825 | ||
30826 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30827 | PyObject *resultobj; | |
30828 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30829 | wxAcceleratorEntry *result; | |
30830 | PyObject * obj0 = 0 ; | |
30831 | char *kwnames[] = { | |
30832 | (char *) "self", NULL | |
30833 | }; | |
30834 | ||
30835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
30836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30837 | { | |
30838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30839 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
30840 | ||
30841 | wxPyEndAllowThreads(__tstate); | |
30842 | if (PyErr_Occurred()) SWIG_fail; | |
30843 | } | |
30844 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0); | |
30845 | return resultobj; | |
30846 | fail: | |
30847 | return NULL; | |
30848 | } | |
30849 | ||
30850 | ||
30851 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30852 | PyObject *resultobj; | |
30853 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30854 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
30855 | PyObject * obj0 = 0 ; | |
30856 | PyObject * obj1 = 0 ; | |
30857 | char *kwnames[] = { | |
30858 | (char *) "self",(char *) "accel", NULL | |
30859 | }; | |
30860 | ||
30861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
30862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30863 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30864 | { | |
30865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30866 | (arg1)->SetAccel(arg2); | |
30867 | ||
30868 | wxPyEndAllowThreads(__tstate); | |
30869 | if (PyErr_Occurred()) SWIG_fail; | |
30870 | } | |
30871 | Py_INCREF(Py_None); resultobj = Py_None; | |
30872 | return resultobj; | |
30873 | fail: | |
30874 | return NULL; | |
30875 | } | |
30876 | ||
30877 | ||
30878 | static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30879 | PyObject *resultobj; | |
30880 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30881 | wxFont *arg2 = 0 ; | |
30882 | PyObject * obj0 = 0 ; | |
30883 | PyObject * obj1 = 0 ; | |
30884 | char *kwnames[] = { | |
30885 | (char *) "self",(char *) "font", NULL | |
30886 | }; | |
30887 | ||
30888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
30889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30890 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30891 | if (arg2 == NULL) { | |
30892 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
30893 | } | |
30894 | { | |
30895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30896 | (arg1)->SetFont((wxFont const &)*arg2); | |
30897 | ||
30898 | wxPyEndAllowThreads(__tstate); | |
30899 | if (PyErr_Occurred()) SWIG_fail; | |
30900 | } | |
30901 | Py_INCREF(Py_None); resultobj = Py_None; | |
30902 | return resultobj; | |
30903 | fail: | |
30904 | return NULL; | |
30905 | } | |
30906 | ||
30907 | ||
30908 | static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30909 | PyObject *resultobj; | |
30910 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30911 | wxFont result; | |
30912 | PyObject * obj0 = 0 ; | |
30913 | char *kwnames[] = { | |
30914 | (char *) "self", NULL | |
30915 | }; | |
30916 | ||
30917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
30918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30919 | { | |
30920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30921 | result = (arg1)->GetFont(); | |
30922 | ||
30923 | wxPyEndAllowThreads(__tstate); | |
30924 | if (PyErr_Occurred()) SWIG_fail; | |
30925 | } | |
30926 | { | |
30927 | wxFont * resultptr; | |
30928 | resultptr = new wxFont((wxFont &) result); | |
30929 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
30930 | } | |
30931 | return resultobj; | |
30932 | fail: | |
30933 | return NULL; | |
30934 | } | |
30935 | ||
30936 | ||
30937 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30938 | PyObject *resultobj; | |
30939 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30940 | wxColour *arg2 = 0 ; | |
30941 | wxColour temp2 ; | |
30942 | PyObject * obj0 = 0 ; | |
30943 | PyObject * obj1 = 0 ; | |
30944 | char *kwnames[] = { | |
30945 | (char *) "self",(char *) "colText", NULL | |
30946 | }; | |
30947 | ||
30948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
30949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30950 | { | |
30951 | arg2 = &temp2; | |
30952 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30953 | } | |
30954 | { | |
30955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30956 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
30957 | ||
30958 | wxPyEndAllowThreads(__tstate); | |
30959 | if (PyErr_Occurred()) SWIG_fail; | |
30960 | } | |
30961 | Py_INCREF(Py_None); resultobj = Py_None; | |
30962 | return resultobj; | |
30963 | fail: | |
30964 | return NULL; | |
30965 | } | |
30966 | ||
30967 | ||
30968 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30969 | PyObject *resultobj; | |
30970 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30971 | wxColour result; | |
30972 | PyObject * obj0 = 0 ; | |
30973 | char *kwnames[] = { | |
30974 | (char *) "self", NULL | |
30975 | }; | |
30976 | ||
30977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
30978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30979 | { | |
30980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30981 | result = (arg1)->GetTextColour(); | |
30982 | ||
30983 | wxPyEndAllowThreads(__tstate); | |
30984 | if (PyErr_Occurred()) SWIG_fail; | |
30985 | } | |
30986 | { | |
30987 | wxColour * resultptr; | |
30988 | resultptr = new wxColour((wxColour &) result); | |
30989 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
30990 | } | |
30991 | return resultobj; | |
30992 | fail: | |
30993 | return NULL; | |
30994 | } | |
30995 | ||
30996 | ||
30997 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30998 | PyObject *resultobj; | |
30999 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31000 | wxColour *arg2 = 0 ; | |
31001 | wxColour temp2 ; | |
31002 | PyObject * obj0 = 0 ; | |
31003 | PyObject * obj1 = 0 ; | |
31004 | char *kwnames[] = { | |
31005 | (char *) "self",(char *) "colBack", NULL | |
31006 | }; | |
31007 | ||
31008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
31009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31010 | { | |
31011 | arg2 = &temp2; | |
31012 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31013 | } | |
31014 | { | |
31015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31016 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
31017 | ||
31018 | wxPyEndAllowThreads(__tstate); | |
31019 | if (PyErr_Occurred()) SWIG_fail; | |
31020 | } | |
31021 | Py_INCREF(Py_None); resultobj = Py_None; | |
31022 | return resultobj; | |
31023 | fail: | |
31024 | return NULL; | |
31025 | } | |
31026 | ||
31027 | ||
31028 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31029 | PyObject *resultobj; | |
31030 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31031 | wxColour result; | |
31032 | PyObject * obj0 = 0 ; | |
31033 | char *kwnames[] = { | |
31034 | (char *) "self", NULL | |
31035 | }; | |
31036 | ||
31037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
31038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31039 | { | |
31040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31041 | result = (arg1)->GetBackgroundColour(); | |
31042 | ||
31043 | wxPyEndAllowThreads(__tstate); | |
31044 | if (PyErr_Occurred()) SWIG_fail; | |
31045 | } | |
31046 | { | |
31047 | wxColour * resultptr; | |
31048 | resultptr = new wxColour((wxColour &) result); | |
31049 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
31050 | } | |
31051 | return resultobj; | |
31052 | fail: | |
31053 | return NULL; | |
31054 | } | |
31055 | ||
31056 | ||
31057 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31058 | PyObject *resultobj; | |
31059 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31060 | wxBitmap *arg2 = 0 ; | |
31061 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
31062 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
31063 | PyObject * obj0 = 0 ; | |
31064 | PyObject * obj1 = 0 ; | |
31065 | PyObject * obj2 = 0 ; | |
31066 | char *kwnames[] = { | |
31067 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
31068 | }; | |
31069 | ||
31070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31072 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31073 | if (arg2 == NULL) { | |
31074 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31075 | } | |
31076 | if (obj2) { | |
31077 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31078 | if (arg3 == NULL) { | |
31079 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31080 | } | |
31081 | } | |
31082 | { | |
31083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31084 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
31085 | ||
31086 | wxPyEndAllowThreads(__tstate); | |
31087 | if (PyErr_Occurred()) SWIG_fail; | |
31088 | } | |
31089 | Py_INCREF(Py_None); resultobj = Py_None; | |
31090 | return resultobj; | |
31091 | fail: | |
31092 | return NULL; | |
31093 | } | |
31094 | ||
31095 | ||
31096 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31097 | PyObject *resultobj; | |
31098 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31099 | wxBitmap *arg2 = 0 ; | |
31100 | PyObject * obj0 = 0 ; | |
31101 | PyObject * obj1 = 0 ; | |
31102 | char *kwnames[] = { | |
31103 | (char *) "self",(char *) "bmpDisabled", NULL | |
31104 | }; | |
31105 | ||
31106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
31107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31108 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31109 | if (arg2 == NULL) { | |
31110 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31111 | } | |
31112 | { | |
31113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31114 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
31115 | ||
31116 | wxPyEndAllowThreads(__tstate); | |
31117 | if (PyErr_Occurred()) SWIG_fail; | |
31118 | } | |
31119 | Py_INCREF(Py_None); resultobj = Py_None; | |
31120 | return resultobj; | |
31121 | fail: | |
31122 | return NULL; | |
31123 | } | |
31124 | ||
31125 | ||
31126 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31127 | PyObject *resultobj; | |
31128 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31129 | wxBitmap *result; | |
31130 | PyObject * obj0 = 0 ; | |
31131 | char *kwnames[] = { | |
31132 | (char *) "self", NULL | |
31133 | }; | |
31134 | ||
31135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
31136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31137 | { | |
31138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31139 | { | |
31140 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
31141 | result = (wxBitmap *) &_result_ref; | |
31142 | } | |
31143 | ||
31144 | wxPyEndAllowThreads(__tstate); | |
31145 | if (PyErr_Occurred()) SWIG_fail; | |
31146 | } | |
31147 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
31148 | return resultobj; | |
31149 | fail: | |
31150 | return NULL; | |
31151 | } | |
31152 | ||
31153 | ||
31154 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31155 | PyObject *resultobj; | |
31156 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31157 | int arg2 ; | |
31158 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31159 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31160 | char *kwnames[] = { |
31161 | (char *) "self",(char *) "nWidth", NULL | |
31162 | }; | |
31163 | ||
8edf1c75 | 31164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 31165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
31166 | { |
31167 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31168 | if (PyErr_Occurred()) SWIG_fail; | |
31169 | } | |
d14a1e28 RD |
31170 | { |
31171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31172 | (arg1)->SetMarginWidth(arg2); | |
31173 | ||
31174 | wxPyEndAllowThreads(__tstate); | |
31175 | if (PyErr_Occurred()) SWIG_fail; | |
31176 | } | |
31177 | Py_INCREF(Py_None); resultobj = Py_None; | |
31178 | return resultobj; | |
31179 | fail: | |
31180 | return NULL; | |
31181 | } | |
31182 | ||
31183 | ||
31184 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31185 | PyObject *resultobj; | |
31186 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31187 | int result; | |
31188 | PyObject * obj0 = 0 ; | |
31189 | char *kwnames[] = { | |
31190 | (char *) "self", NULL | |
31191 | }; | |
31192 | ||
31193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
31194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31195 | { | |
31196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31197 | result = (int)(arg1)->GetMarginWidth(); | |
31198 | ||
31199 | wxPyEndAllowThreads(__tstate); | |
31200 | if (PyErr_Occurred()) SWIG_fail; | |
31201 | } | |
8edf1c75 | 31202 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31203 | return resultobj; |
31204 | fail: | |
31205 | return NULL; | |
31206 | } | |
31207 | ||
31208 | ||
31209 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31210 | PyObject *resultobj; | |
31211 | int result; | |
31212 | char *kwnames[] = { | |
31213 | NULL | |
31214 | }; | |
31215 | ||
31216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
31217 | { | |
31218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31219 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
31220 | ||
31221 | wxPyEndAllowThreads(__tstate); | |
31222 | if (PyErr_Occurred()) SWIG_fail; | |
31223 | } | |
8edf1c75 | 31224 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31225 | return resultobj; |
31226 | fail: | |
31227 | return NULL; | |
31228 | } | |
31229 | ||
31230 | ||
31231 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31232 | PyObject *resultobj; | |
31233 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31234 | bool result; | |
31235 | PyObject * obj0 = 0 ; | |
31236 | char *kwnames[] = { | |
31237 | (char *) "self", NULL | |
31238 | }; | |
31239 | ||
31240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
31241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31242 | { | |
31243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31244 | result = (bool)(arg1)->IsOwnerDrawn(); | |
31245 | ||
31246 | wxPyEndAllowThreads(__tstate); | |
31247 | if (PyErr_Occurred()) SWIG_fail; | |
31248 | } | |
4e760a36 | 31249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
31250 | return resultobj; |
31251 | fail: | |
31252 | return NULL; | |
31253 | } | |
31254 | ||
31255 | ||
31256 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31257 | PyObject *resultobj; | |
31258 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 31259 | bool arg2 = (bool) True ; |
d14a1e28 RD |
31260 | PyObject * obj0 = 0 ; |
31261 | PyObject * obj1 = 0 ; | |
31262 | char *kwnames[] = { | |
31263 | (char *) "self",(char *) "ownerDrawn", NULL | |
31264 | }; | |
31265 | ||
31266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
31267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31268 | if (obj1) { | |
83448d71 | 31269 | { |
8edf1c75 | 31270 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
31271 | if (PyErr_Occurred()) SWIG_fail; |
31272 | } | |
d14a1e28 RD |
31273 | } |
31274 | { | |
31275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31276 | (arg1)->SetOwnerDrawn(arg2); | |
31277 | ||
31278 | wxPyEndAllowThreads(__tstate); | |
31279 | if (PyErr_Occurred()) SWIG_fail; | |
31280 | } | |
31281 | Py_INCREF(Py_None); resultobj = Py_None; | |
31282 | return resultobj; | |
31283 | fail: | |
31284 | return NULL; | |
31285 | } | |
31286 | ||
31287 | ||
31288 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31289 | PyObject *resultobj; | |
31290 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31291 | PyObject * obj0 = 0 ; | |
31292 | char *kwnames[] = { | |
31293 | (char *) "self", NULL | |
31294 | }; | |
31295 | ||
31296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
31297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31298 | { | |
31299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31300 | (arg1)->ResetOwnerDrawn(); | |
31301 | ||
31302 | wxPyEndAllowThreads(__tstate); | |
31303 | if (PyErr_Occurred()) SWIG_fail; | |
31304 | } | |
31305 | Py_INCREF(Py_None); resultobj = Py_None; | |
31306 | return resultobj; | |
31307 | fail: | |
31308 | return NULL; | |
31309 | } | |
31310 | ||
31311 | ||
31312 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31313 | PyObject *resultobj; | |
31314 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31315 | wxBitmap *arg2 = 0 ; | |
31316 | PyObject * obj0 = 0 ; | |
31317 | PyObject * obj1 = 0 ; | |
31318 | char *kwnames[] = { | |
31319 | (char *) "self",(char *) "bitmap", NULL | |
31320 | }; | |
31321 | ||
31322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
31323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31324 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31325 | if (arg2 == NULL) { | |
31326 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31327 | } | |
31328 | { | |
31329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31330 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
31331 | ||
31332 | wxPyEndAllowThreads(__tstate); | |
31333 | if (PyErr_Occurred()) SWIG_fail; | |
31334 | } | |
31335 | Py_INCREF(Py_None); resultobj = Py_None; | |
31336 | return resultobj; | |
31337 | fail: | |
31338 | return NULL; | |
31339 | } | |
31340 | ||
31341 | ||
31342 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31343 | PyObject *resultobj; | |
31344 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31345 | wxBitmap *result; | |
31346 | PyObject * obj0 = 0 ; | |
31347 | char *kwnames[] = { | |
31348 | (char *) "self", NULL | |
31349 | }; | |
31350 | ||
31351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
31352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31353 | { | |
31354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31355 | { | |
31356 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
31357 | result = (wxBitmap *) &_result_ref; | |
31358 | } | |
31359 | ||
31360 | wxPyEndAllowThreads(__tstate); | |
31361 | if (PyErr_Occurred()) SWIG_fail; | |
31362 | } | |
31363 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
31364 | return resultobj; | |
31365 | fail: | |
31366 | return NULL; | |
31367 | } | |
31368 | ||
31369 | ||
31370 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
31371 | PyObject *obj; | |
31372 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31373 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
31374 | Py_INCREF(obj); | |
31375 | return Py_BuildValue((char *)""); | |
31376 | } | |
8edf1c75 | 31377 | static int _wrap_ControlNameStr_set(PyObject *) { |
d03fd34d RD |
31378 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
31379 | return 1; | |
31380 | } | |
31381 | ||
31382 | ||
31383 | static PyObject *_wrap_ControlNameStr_get() { | |
31384 | PyObject *pyobj; | |
31385 | ||
31386 | { | |
31387 | #if wxUSE_UNICODE | |
31388 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
31389 | #else | |
31390 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
31391 | #endif | |
31392 | } | |
31393 | return pyobj; | |
31394 | } | |
31395 | ||
31396 | ||
d14a1e28 RD |
31397 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { |
31398 | PyObject *resultobj; | |
31399 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 31400 | int arg2 ; |
d14a1e28 RD |
31401 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
31402 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31403 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31404 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31405 | long arg5 = (long) 0 ; | |
31406 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
31407 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
31408 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
31409 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31410 | wxControl *result; | |
31411 | wxPoint temp3 ; | |
31412 | wxSize temp4 ; | |
423f194a | 31413 | bool temp7 = False ; |
d14a1e28 | 31414 | PyObject * obj0 = 0 ; |
8edf1c75 | 31415 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31416 | PyObject * obj2 = 0 ; |
31417 | PyObject * obj3 = 0 ; | |
8edf1c75 | 31418 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
31419 | PyObject * obj5 = 0 ; |
31420 | PyObject * obj6 = 0 ; | |
31421 | char *kwnames[] = { | |
31422 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31423 | }; | |
31424 | ||
8edf1c75 | 31425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 31426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
31427 | { |
31428 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31429 | if (PyErr_Occurred()) SWIG_fail; | |
31430 | } | |
d14a1e28 RD |
31431 | if (obj2) { |
31432 | { | |
31433 | arg3 = &temp3; | |
31434 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31435 | } | |
31436 | } | |
31437 | if (obj3) { | |
31438 | { | |
31439 | arg4 = &temp4; | |
31440 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
31441 | } | |
31442 | } | |
8edf1c75 RD |
31443 | if (obj4) { |
31444 | { | |
31445 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
31446 | if (PyErr_Occurred()) SWIG_fail; | |
31447 | } | |
31448 | } | |
d14a1e28 RD |
31449 | if (obj5) { |
31450 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31451 | if (arg6 == NULL) { | |
31452 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31453 | } | |
31454 | } | |
31455 | if (obj6) { | |
31456 | { | |
31457 | arg7 = wxString_in_helper(obj6); | |
31458 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 31459 | temp7 = True; |
d14a1e28 RD |
31460 | } |
31461 | } | |
31462 | { | |
31463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31464 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
31465 | ||
31466 | wxPyEndAllowThreads(__tstate); | |
31467 | if (PyErr_Occurred()) SWIG_fail; | |
31468 | } | |
31469 | { | |
31470 | resultobj = wxPyMake_wxObject(result); | |
31471 | } | |
31472 | { | |
31473 | if (temp7) | |
31474 | delete arg7; | |
31475 | } | |
31476 | return resultobj; | |
31477 | fail: | |
31478 | { | |
31479 | if (temp7) | |
31480 | delete arg7; | |
31481 | } | |
31482 | return NULL; | |
31483 | } | |
31484 | ||
31485 | ||
31486 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31487 | PyObject *resultobj; | |
31488 | wxControl *result; | |
31489 | char *kwnames[] = { | |
31490 | NULL | |
31491 | }; | |
31492 | ||
31493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
31494 | { | |
31495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31496 | result = (wxControl *)new wxControl(); | |
31497 | ||
31498 | wxPyEndAllowThreads(__tstate); | |
31499 | if (PyErr_Occurred()) SWIG_fail; | |
31500 | } | |
31501 | { | |
31502 | resultobj = wxPyMake_wxObject(result); | |
31503 | } | |
31504 | return resultobj; | |
31505 | fail: | |
31506 | return NULL; | |
31507 | } | |
31508 | ||
31509 | ||
31510 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31511 | PyObject *resultobj; | |
31512 | wxControl *arg1 = (wxControl *) 0 ; | |
31513 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 31514 | int arg3 ; |
d14a1e28 RD |
31515 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
31516 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31517 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31518 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31519 | long arg6 = (long) 0 ; | |
31520 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
31521 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
31522 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
31523 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
31524 | bool result; | |
31525 | wxPoint temp4 ; | |
31526 | wxSize temp5 ; | |
423f194a | 31527 | bool temp8 = False ; |
d14a1e28 RD |
31528 | PyObject * obj0 = 0 ; |
31529 | PyObject * obj1 = 0 ; | |
8edf1c75 | 31530 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
31531 | PyObject * obj3 = 0 ; |
31532 | PyObject * obj4 = 0 ; | |
8edf1c75 | 31533 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
31534 | PyObject * obj6 = 0 ; |
31535 | PyObject * obj7 = 0 ; | |
31536 | char *kwnames[] = { | |
31537 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31538 | }; | |
31539 | ||
8edf1c75 | 31540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
31541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
31542 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
31543 | { |
31544 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
31545 | if (PyErr_Occurred()) SWIG_fail; | |
31546 | } | |
d14a1e28 RD |
31547 | if (obj3) { |
31548 | { | |
31549 | arg4 = &temp4; | |
31550 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
31551 | } | |
31552 | } | |
31553 | if (obj4) { | |
31554 | { | |
31555 | arg5 = &temp5; | |
31556 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
31557 | } | |
31558 | } | |
8edf1c75 RD |
31559 | if (obj5) { |
31560 | { | |
31561 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
31562 | if (PyErr_Occurred()) SWIG_fail; | |
31563 | } | |
31564 | } | |
d14a1e28 RD |
31565 | if (obj6) { |
31566 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31567 | if (arg7 == NULL) { | |
31568 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31569 | } | |
31570 | } | |
31571 | if (obj7) { | |
31572 | { | |
31573 | arg8 = wxString_in_helper(obj7); | |
31574 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 31575 | temp8 = True; |
d14a1e28 RD |
31576 | } |
31577 | } | |
31578 | { | |
31579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31580 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
31581 | ||
31582 | wxPyEndAllowThreads(__tstate); | |
31583 | if (PyErr_Occurred()) SWIG_fail; | |
31584 | } | |
4e760a36 | 31585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
31586 | { |
31587 | if (temp8) | |
31588 | delete arg8; | |
31589 | } | |
31590 | return resultobj; | |
31591 | fail: | |
31592 | { | |
31593 | if (temp8) | |
31594 | delete arg8; | |
31595 | } | |
31596 | return NULL; | |
31597 | } | |
31598 | ||
31599 | ||
31600 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31601 | PyObject *resultobj; | |
31602 | wxControl *arg1 = (wxControl *) 0 ; | |
31603 | wxCommandEvent *arg2 = 0 ; | |
31604 | PyObject * obj0 = 0 ; | |
31605 | PyObject * obj1 = 0 ; | |
31606 | char *kwnames[] = { | |
31607 | (char *) "self",(char *) "event", NULL | |
31608 | }; | |
31609 | ||
31610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
31611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31612 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31613 | if (arg2 == NULL) { | |
31614 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31615 | } | |
31616 | { | |
31617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31618 | (arg1)->Command(*arg2); | |
31619 | ||
31620 | wxPyEndAllowThreads(__tstate); | |
31621 | if (PyErr_Occurred()) SWIG_fail; | |
31622 | } | |
31623 | Py_INCREF(Py_None); resultobj = Py_None; | |
31624 | return resultobj; | |
31625 | fail: | |
31626 | return NULL; | |
31627 | } | |
31628 | ||
31629 | ||
31630 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31631 | PyObject *resultobj; | |
31632 | wxControl *arg1 = (wxControl *) 0 ; | |
31633 | wxString result; | |
31634 | PyObject * obj0 = 0 ; | |
31635 | char *kwnames[] = { | |
31636 | (char *) "self", NULL | |
31637 | }; | |
31638 | ||
31639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
31640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31641 | { | |
31642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31643 | result = (arg1)->GetLabel(); | |
31644 | ||
31645 | wxPyEndAllowThreads(__tstate); | |
31646 | if (PyErr_Occurred()) SWIG_fail; | |
31647 | } | |
31648 | { | |
31649 | #if wxUSE_UNICODE | |
31650 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31651 | #else | |
31652 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31653 | #endif | |
31654 | } | |
31655 | return resultobj; | |
31656 | fail: | |
31657 | return NULL; | |
31658 | } | |
31659 | ||
31660 | ||
31661 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31662 | PyObject *resultobj; | |
31663 | wxControl *arg1 = (wxControl *) 0 ; | |
31664 | wxString *arg2 = 0 ; | |
423f194a | 31665 | bool temp2 = False ; |
d14a1e28 RD |
31666 | PyObject * obj0 = 0 ; |
31667 | PyObject * obj1 = 0 ; | |
31668 | char *kwnames[] = { | |
31669 | (char *) "self",(char *) "label", NULL | |
31670 | }; | |
31671 | ||
31672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31674 | { | |
31675 | arg2 = wxString_in_helper(obj1); | |
31676 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31677 | temp2 = True; |
d14a1e28 RD |
31678 | } |
31679 | { | |
31680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31681 | (arg1)->SetLabel((wxString const &)*arg2); | |
31682 | ||
31683 | wxPyEndAllowThreads(__tstate); | |
31684 | if (PyErr_Occurred()) SWIG_fail; | |
31685 | } | |
31686 | Py_INCREF(Py_None); resultobj = Py_None; | |
31687 | { | |
31688 | if (temp2) | |
31689 | delete arg2; | |
31690 | } | |
31691 | return resultobj; | |
31692 | fail: | |
31693 | { | |
31694 | if (temp2) | |
31695 | delete arg2; | |
31696 | } | |
31697 | return NULL; | |
31698 | } | |
31699 | ||
31700 | ||
31701 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
31702 | PyObject *obj; | |
31703 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31704 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
31705 | Py_INCREF(obj); | |
31706 | return Py_BuildValue((char *)""); | |
31707 | } | |
31708 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31709 | PyObject *resultobj; | |
31710 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31711 | wxString *arg2 = 0 ; | |
31712 | PyObject *arg3 = (PyObject *) NULL ; | |
31713 | int result; | |
423f194a | 31714 | bool temp2 = False ; |
d14a1e28 RD |
31715 | PyObject * obj0 = 0 ; |
31716 | PyObject * obj1 = 0 ; | |
31717 | PyObject * obj2 = 0 ; | |
31718 | char *kwnames[] = { | |
31719 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
31720 | }; | |
31721 | ||
31722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31724 | { | |
31725 | arg2 = wxString_in_helper(obj1); | |
31726 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31727 | temp2 = True; |
d14a1e28 RD |
31728 | } |
31729 | if (obj2) { | |
31730 | arg3 = obj2; | |
31731 | } | |
31732 | { | |
31733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31734 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
31735 | ||
31736 | wxPyEndAllowThreads(__tstate); | |
31737 | if (PyErr_Occurred()) SWIG_fail; | |
31738 | } | |
8edf1c75 | 31739 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31740 | { |
31741 | if (temp2) | |
31742 | delete arg2; | |
31743 | } | |
31744 | return resultobj; | |
31745 | fail: | |
31746 | { | |
31747 | if (temp2) | |
31748 | delete arg2; | |
31749 | } | |
31750 | return NULL; | |
31751 | } | |
31752 | ||
31753 | ||
31754 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31755 | PyObject *resultobj; | |
31756 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31757 | wxArrayString *arg2 = 0 ; | |
db914595 | 31758 | bool temp2 = False ; |
d14a1e28 RD |
31759 | PyObject * obj0 = 0 ; |
31760 | PyObject * obj1 = 0 ; | |
31761 | char *kwnames[] = { | |
31762 | (char *) "self",(char *) "strings", NULL | |
31763 | }; | |
31764 | ||
31765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
31766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31767 | { | |
31768 | if (! PySequence_Check(obj1)) { | |
31769 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
31770 | SWIG_fail; | |
31771 | } | |
31772 | arg2 = new wxArrayString; | |
db914595 | 31773 | temp2 = True; |
d14a1e28 RD |
31774 | int i, len=PySequence_Length(obj1); |
31775 | for (i=0; i<len; i++) { | |
31776 | PyObject* item = PySequence_GetItem(obj1, i); | |
31777 | #if wxUSE_UNICODE | |
31778 | PyObject* str = PyObject_Unicode(item); | |
31779 | #else | |
31780 | PyObject* str = PyObject_Str(item); | |
31781 | #endif | |
31782 | arg2->Add(Py2wxString(str)); | |
31783 | Py_DECREF(item); | |
31784 | Py_DECREF(str); | |
31785 | } | |
31786 | } | |
31787 | { | |
31788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31789 | (arg1)->Append((wxArrayString const &)*arg2); | |
31790 | ||
31791 | wxPyEndAllowThreads(__tstate); | |
31792 | if (PyErr_Occurred()) SWIG_fail; | |
31793 | } | |
31794 | Py_INCREF(Py_None); resultobj = Py_None; | |
31795 | { | |
db914595 | 31796 | if (temp2) delete arg2; |
d14a1e28 RD |
31797 | } |
31798 | return resultobj; | |
31799 | fail: | |
31800 | { | |
db914595 | 31801 | if (temp2) delete arg2; |
d14a1e28 RD |
31802 | } |
31803 | return NULL; | |
31804 | } | |
31805 | ||
31806 | ||
31807 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31808 | PyObject *resultobj; | |
31809 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31810 | wxString *arg2 = 0 ; | |
31811 | int arg3 ; | |
31812 | PyObject *arg4 = (PyObject *) NULL ; | |
31813 | int result; | |
423f194a | 31814 | bool temp2 = False ; |
d14a1e28 RD |
31815 | PyObject * obj0 = 0 ; |
31816 | PyObject * obj1 = 0 ; | |
8edf1c75 | 31817 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
31818 | PyObject * obj3 = 0 ; |
31819 | char *kwnames[] = { | |
31820 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
31821 | }; | |
31822 | ||
8edf1c75 | 31823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
31824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
31825 | { | |
31826 | arg2 = wxString_in_helper(obj1); | |
31827 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31828 | temp2 = True; |
d14a1e28 | 31829 | } |
8edf1c75 RD |
31830 | { |
31831 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
31832 | if (PyErr_Occurred()) SWIG_fail; | |
31833 | } | |
d14a1e28 RD |
31834 | if (obj3) { |
31835 | arg4 = obj3; | |
31836 | } | |
31837 | { | |
31838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31839 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
31840 | ||
31841 | wxPyEndAllowThreads(__tstate); | |
31842 | if (PyErr_Occurred()) SWIG_fail; | |
31843 | } | |
8edf1c75 | 31844 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31845 | { |
31846 | if (temp2) | |
31847 | delete arg2; | |
31848 | } | |
31849 | return resultobj; | |
31850 | fail: | |
31851 | { | |
31852 | if (temp2) | |
31853 | delete arg2; | |
31854 | } | |
31855 | return NULL; | |
31856 | } | |
31857 | ||
31858 | ||
31859 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31860 | PyObject *resultobj; | |
31861 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31862 | PyObject * obj0 = 0 ; | |
31863 | char *kwnames[] = { | |
31864 | (char *) "self", NULL | |
31865 | }; | |
31866 | ||
31867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
31868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31869 | { | |
31870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31871 | (arg1)->Clear(); | |
31872 | ||
31873 | wxPyEndAllowThreads(__tstate); | |
31874 | if (PyErr_Occurred()) SWIG_fail; | |
31875 | } | |
31876 | Py_INCREF(Py_None); resultobj = Py_None; | |
31877 | return resultobj; | |
31878 | fail: | |
31879 | return NULL; | |
31880 | } | |
31881 | ||
31882 | ||
31883 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31884 | PyObject *resultobj; | |
31885 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31886 | int arg2 ; | |
31887 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31888 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31889 | char *kwnames[] = { |
31890 | (char *) "self",(char *) "n", NULL | |
31891 | }; | |
31892 | ||
8edf1c75 | 31893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 31894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
31895 | { |
31896 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31897 | if (PyErr_Occurred()) SWIG_fail; | |
31898 | } | |
d14a1e28 RD |
31899 | { |
31900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31901 | (arg1)->Delete(arg2); | |
31902 | ||
31903 | wxPyEndAllowThreads(__tstate); | |
31904 | if (PyErr_Occurred()) SWIG_fail; | |
31905 | } | |
31906 | Py_INCREF(Py_None); resultobj = Py_None; | |
31907 | return resultobj; | |
31908 | fail: | |
31909 | return NULL; | |
31910 | } | |
31911 | ||
31912 | ||
31913 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31914 | PyObject *resultobj; | |
31915 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31916 | int result; | |
31917 | PyObject * obj0 = 0 ; | |
31918 | char *kwnames[] = { | |
31919 | (char *) "self", NULL | |
31920 | }; | |
31921 | ||
31922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
31923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31924 | { | |
31925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31926 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
31927 | ||
31928 | wxPyEndAllowThreads(__tstate); | |
31929 | if (PyErr_Occurred()) SWIG_fail; | |
31930 | } | |
8edf1c75 | 31931 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31932 | return resultobj; |
31933 | fail: | |
31934 | return NULL; | |
31935 | } | |
31936 | ||
31937 | ||
31938 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31939 | PyObject *resultobj; | |
31940 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31941 | bool result; | |
31942 | PyObject * obj0 = 0 ; | |
31943 | char *kwnames[] = { | |
31944 | (char *) "self", NULL | |
31945 | }; | |
31946 | ||
31947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
31948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31949 | { | |
31950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31951 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
31952 | ||
31953 | wxPyEndAllowThreads(__tstate); | |
31954 | if (PyErr_Occurred()) SWIG_fail; | |
31955 | } | |
4e760a36 | 31956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
31957 | return resultobj; |
31958 | fail: | |
31959 | return NULL; | |
31960 | } | |
31961 | ||
31962 | ||
31963 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31964 | PyObject *resultobj; | |
31965 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31966 | int arg2 ; | |
31967 | wxString result; | |
31968 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31969 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31970 | char *kwnames[] = { |
31971 | (char *) "self",(char *) "n", NULL | |
31972 | }; | |
31973 | ||
8edf1c75 | 31974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 31975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
31976 | { |
31977 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31978 | if (PyErr_Occurred()) SWIG_fail; | |
31979 | } | |
d14a1e28 RD |
31980 | { |
31981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31982 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
31983 | ||
31984 | wxPyEndAllowThreads(__tstate); | |
31985 | if (PyErr_Occurred()) SWIG_fail; | |
31986 | } | |
31987 | { | |
31988 | #if wxUSE_UNICODE | |
31989 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31990 | #else | |
31991 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31992 | #endif | |
31993 | } | |
31994 | return resultobj; | |
31995 | fail: | |
31996 | return NULL; | |
31997 | } | |
31998 | ||
31999 | ||
32000 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32001 | PyObject *resultobj; | |
32002 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32003 | wxArrayString result; | |
32004 | PyObject * obj0 = 0 ; | |
32005 | char *kwnames[] = { | |
32006 | (char *) "self", NULL | |
32007 | }; | |
32008 | ||
32009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
32010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32011 | { | |
32012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32013 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
32014 | ||
32015 | wxPyEndAllowThreads(__tstate); | |
32016 | if (PyErr_Occurred()) SWIG_fail; | |
32017 | } | |
32018 | { | |
32019 | resultobj = wxArrayString2PyList_helper(result); | |
32020 | } | |
32021 | return resultobj; | |
32022 | fail: | |
32023 | return NULL; | |
32024 | } | |
32025 | ||
32026 | ||
32027 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32028 | PyObject *resultobj; | |
32029 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32030 | int arg2 ; | |
32031 | wxString *arg3 = 0 ; | |
423f194a | 32032 | bool temp3 = False ; |
d14a1e28 | 32033 | PyObject * obj0 = 0 ; |
8edf1c75 | 32034 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32035 | PyObject * obj2 = 0 ; |
32036 | char *kwnames[] = { | |
32037 | (char *) "self",(char *) "n",(char *) "s", NULL | |
32038 | }; | |
32039 | ||
8edf1c75 | 32040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 32041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32042 | { |
32043 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32044 | if (PyErr_Occurred()) SWIG_fail; | |
32045 | } | |
d14a1e28 RD |
32046 | { |
32047 | arg3 = wxString_in_helper(obj2); | |
32048 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 32049 | temp3 = True; |
d14a1e28 RD |
32050 | } |
32051 | { | |
32052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32053 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
32054 | ||
32055 | wxPyEndAllowThreads(__tstate); | |
32056 | if (PyErr_Occurred()) SWIG_fail; | |
32057 | } | |
32058 | Py_INCREF(Py_None); resultobj = Py_None; | |
32059 | { | |
32060 | if (temp3) | |
32061 | delete arg3; | |
32062 | } | |
32063 | return resultobj; | |
32064 | fail: | |
32065 | { | |
32066 | if (temp3) | |
32067 | delete arg3; | |
32068 | } | |
32069 | return NULL; | |
32070 | } | |
32071 | ||
32072 | ||
32073 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32074 | PyObject *resultobj; | |
32075 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32076 | wxString *arg2 = 0 ; | |
32077 | int result; | |
423f194a | 32078 | bool temp2 = False ; |
d14a1e28 RD |
32079 | PyObject * obj0 = 0 ; |
32080 | PyObject * obj1 = 0 ; | |
32081 | char *kwnames[] = { | |
32082 | (char *) "self",(char *) "s", NULL | |
32083 | }; | |
32084 | ||
32085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
32086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32087 | { | |
32088 | arg2 = wxString_in_helper(obj1); | |
32089 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32090 | temp2 = True; |
d14a1e28 RD |
32091 | } |
32092 | { | |
32093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32094 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
32095 | ||
32096 | wxPyEndAllowThreads(__tstate); | |
32097 | if (PyErr_Occurred()) SWIG_fail; | |
32098 | } | |
8edf1c75 | 32099 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
32100 | { |
32101 | if (temp2) | |
32102 | delete arg2; | |
32103 | } | |
32104 | return resultobj; | |
32105 | fail: | |
32106 | { | |
32107 | if (temp2) | |
32108 | delete arg2; | |
32109 | } | |
32110 | return NULL; | |
32111 | } | |
32112 | ||
32113 | ||
32114 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32115 | PyObject *resultobj; | |
32116 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32117 | int arg2 ; | |
32118 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32119 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32120 | char *kwnames[] = { |
32121 | (char *) "self",(char *) "n", NULL | |
32122 | }; | |
32123 | ||
8edf1c75 | 32124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32126 | { |
32127 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32128 | if (PyErr_Occurred()) SWIG_fail; | |
32129 | } | |
d14a1e28 RD |
32130 | { |
32131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32132 | (arg1)->Select(arg2); | |
32133 | ||
32134 | wxPyEndAllowThreads(__tstate); | |
32135 | if (PyErr_Occurred()) SWIG_fail; | |
32136 | } | |
32137 | Py_INCREF(Py_None); resultobj = Py_None; | |
32138 | return resultobj; | |
32139 | fail: | |
32140 | return NULL; | |
32141 | } | |
32142 | ||
32143 | ||
32144 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32145 | PyObject *resultobj; | |
32146 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32147 | int result; | |
32148 | PyObject * obj0 = 0 ; | |
32149 | char *kwnames[] = { | |
32150 | (char *) "self", NULL | |
32151 | }; | |
32152 | ||
32153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
32154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32155 | { | |
32156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32157 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
32158 | ||
32159 | wxPyEndAllowThreads(__tstate); | |
32160 | if (PyErr_Occurred()) SWIG_fail; | |
32161 | } | |
8edf1c75 | 32162 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
32163 | return resultobj; |
32164 | fail: | |
32165 | return NULL; | |
32166 | } | |
32167 | ||
32168 | ||
32169 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32170 | PyObject *resultobj; | |
32171 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32172 | wxString result; | |
32173 | PyObject * obj0 = 0 ; | |
32174 | char *kwnames[] = { | |
32175 | (char *) "self", NULL | |
32176 | }; | |
32177 | ||
32178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
32179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32180 | { | |
32181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32182 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
32183 | ||
32184 | wxPyEndAllowThreads(__tstate); | |
32185 | if (PyErr_Occurred()) SWIG_fail; | |
32186 | } | |
32187 | { | |
32188 | #if wxUSE_UNICODE | |
32189 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32190 | #else | |
32191 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32192 | #endif | |
32193 | } | |
32194 | return resultobj; | |
32195 | fail: | |
32196 | return NULL; | |
32197 | } | |
32198 | ||
32199 | ||
32200 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32201 | PyObject *resultobj; | |
32202 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32203 | int arg2 ; | |
32204 | PyObject *result; | |
32205 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32206 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32207 | char *kwnames[] = { |
32208 | (char *) "self",(char *) "n", NULL | |
32209 | }; | |
32210 | ||
8edf1c75 | 32211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32213 | { |
32214 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32215 | if (PyErr_Occurred()) SWIG_fail; | |
32216 | } | |
d14a1e28 RD |
32217 | { |
32218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32219 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
32220 | ||
32221 | wxPyEndAllowThreads(__tstate); | |
32222 | if (PyErr_Occurred()) SWIG_fail; | |
32223 | } | |
32224 | resultobj = result; | |
32225 | return resultobj; | |
32226 | fail: | |
32227 | return NULL; | |
32228 | } | |
32229 | ||
32230 | ||
32231 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32232 | PyObject *resultobj; | |
32233 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32234 | int arg2 ; | |
32235 | PyObject *arg3 = (PyObject *) 0 ; | |
32236 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32237 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32238 | PyObject * obj2 = 0 ; |
32239 | char *kwnames[] = { | |
32240 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
32241 | }; | |
32242 | ||
8edf1c75 | 32243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 32244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32245 | { |
32246 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32247 | if (PyErr_Occurred()) SWIG_fail; | |
32248 | } | |
d14a1e28 RD |
32249 | arg3 = obj2; |
32250 | { | |
32251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32252 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
32253 | ||
32254 | wxPyEndAllowThreads(__tstate); | |
32255 | if (PyErr_Occurred()) SWIG_fail; | |
32256 | } | |
32257 | Py_INCREF(Py_None); resultobj = Py_None; | |
32258 | return resultobj; | |
32259 | fail: | |
32260 | return NULL; | |
32261 | } | |
32262 | ||
32263 | ||
32264 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
32265 | PyObject *obj; | |
32266 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32267 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
32268 | Py_INCREF(obj); | |
32269 | return Py_BuildValue((char *)""); | |
32270 | } | |
32271 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
32272 | PyObject *obj; | |
32273 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32274 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
32275 | Py_INCREF(obj); | |
32276 | return Py_BuildValue((char *)""); | |
32277 | } | |
32278 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32279 | PyObject *resultobj; | |
32280 | wxSizerItem *result; | |
32281 | char *kwnames[] = { | |
32282 | NULL | |
32283 | }; | |
32284 | ||
32285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
32286 | { | |
32287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32288 | result = (wxSizerItem *)new wxSizerItem(); | |
32289 | ||
32290 | wxPyEndAllowThreads(__tstate); | |
32291 | if (PyErr_Occurred()) SWIG_fail; | |
32292 | } | |
32293 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
32294 | return resultobj; | |
32295 | fail: | |
32296 | return NULL; | |
32297 | } | |
32298 | ||
32299 | ||
32300 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32301 | PyObject *resultobj; | |
32302 | int arg1 ; | |
32303 | int arg2 ; | |
32304 | int arg3 ; | |
32305 | int arg4 ; | |
32306 | int arg5 ; | |
32307 | wxObject *arg6 = (wxObject *) 0 ; | |
32308 | wxSizerItem *result; | |
8edf1c75 RD |
32309 | PyObject * obj0 = 0 ; |
32310 | PyObject * obj1 = 0 ; | |
32311 | PyObject * obj2 = 0 ; | |
32312 | PyObject * obj3 = 0 ; | |
32313 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
32314 | PyObject * obj5 = 0 ; |
32315 | char *kwnames[] = { | |
32316 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32317 | }; | |
32318 | ||
8edf1c75 RD |
32319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
32320 | { | |
32321 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
32322 | if (PyErr_Occurred()) SWIG_fail; | |
32323 | } | |
32324 | { | |
32325 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32326 | if (PyErr_Occurred()) SWIG_fail; | |
32327 | } | |
32328 | { | |
32329 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32330 | if (PyErr_Occurred()) SWIG_fail; | |
32331 | } | |
32332 | { | |
32333 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
32334 | if (PyErr_Occurred()) SWIG_fail; | |
32335 | } | |
32336 | { | |
32337 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
32338 | if (PyErr_Occurred()) SWIG_fail; | |
32339 | } | |
d14a1e28 RD |
32340 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
32341 | { | |
32342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32343 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
32344 | ||
32345 | wxPyEndAllowThreads(__tstate); | |
32346 | if (PyErr_Occurred()) SWIG_fail; | |
32347 | } | |
32348 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
32349 | return resultobj; | |
32350 | fail: | |
32351 | return NULL; | |
32352 | } | |
32353 | ||
32354 | ||
32355 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32356 | PyObject *resultobj; | |
32357 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32358 | int arg2 ; | |
32359 | int arg3 ; | |
32360 | int arg4 ; | |
32361 | wxObject *arg5 = (wxObject *) 0 ; | |
32362 | wxSizerItem *result; | |
32363 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32364 | PyObject * obj1 = 0 ; |
32365 | PyObject * obj2 = 0 ; | |
32366 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
32367 | PyObject * obj4 = 0 ; |
32368 | char *kwnames[] = { | |
32369 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32370 | }; | |
32371 | ||
8edf1c75 | 32372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 32373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32374 | { |
32375 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32376 | if (PyErr_Occurred()) SWIG_fail; | |
32377 | } | |
32378 | { | |
32379 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32380 | if (PyErr_Occurred()) SWIG_fail; | |
32381 | } | |
32382 | { | |
32383 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
32384 | if (PyErr_Occurred()) SWIG_fail; | |
32385 | } | |
d14a1e28 RD |
32386 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
32387 | { | |
32388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32389 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
32390 | ||
32391 | wxPyEndAllowThreads(__tstate); | |
32392 | if (PyErr_Occurred()) SWIG_fail; | |
32393 | } | |
32394 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
32395 | return resultobj; | |
32396 | fail: | |
32397 | return NULL; | |
32398 | } | |
32399 | ||
32400 | ||
32401 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32402 | PyObject *resultobj; | |
32403 | wxSizer *arg1 = (wxSizer *) 0 ; | |
32404 | int arg2 ; | |
32405 | int arg3 ; | |
32406 | int arg4 ; | |
32407 | wxObject *arg5 = (wxObject *) 0 ; | |
32408 | wxSizerItem *result; | |
32409 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32410 | PyObject * obj1 = 0 ; |
32411 | PyObject * obj2 = 0 ; | |
32412 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
32413 | PyObject * obj4 = 0 ; |
32414 | char *kwnames[] = { | |
32415 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32416 | }; | |
32417 | ||
8edf1c75 | 32418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 32419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32420 | { |
32421 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32422 | if (PyErr_Occurred()) SWIG_fail; | |
32423 | } | |
32424 | { | |
32425 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32426 | if (PyErr_Occurred()) SWIG_fail; | |
32427 | } | |
32428 | { | |
32429 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
32430 | if (PyErr_Occurred()) SWIG_fail; | |
32431 | } | |
d14a1e28 RD |
32432 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
32433 | { | |
32434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32435 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
32436 | ||
32437 | wxPyEndAllowThreads(__tstate); | |
32438 | if (PyErr_Occurred()) SWIG_fail; | |
32439 | } | |
32440 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
32441 | return resultobj; | |
32442 | fail: | |
32443 | return NULL; | |
32444 | } | |
32445 | ||
32446 | ||
32447 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32448 | PyObject *resultobj; | |
32449 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32450 | PyObject * obj0 = 0 ; | |
32451 | char *kwnames[] = { | |
32452 | (char *) "self", NULL | |
32453 | }; | |
32454 | ||
32455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
32456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32457 | { | |
32458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32459 | (arg1)->DeleteWindows(); | |
32460 | ||
32461 | wxPyEndAllowThreads(__tstate); | |
32462 | if (PyErr_Occurred()) SWIG_fail; | |
32463 | } | |
32464 | Py_INCREF(Py_None); resultobj = Py_None; | |
32465 | return resultobj; | |
32466 | fail: | |
32467 | return NULL; | |
32468 | } | |
32469 | ||
32470 | ||
32471 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32472 | PyObject *resultobj; | |
32473 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32474 | PyObject * obj0 = 0 ; | |
32475 | char *kwnames[] = { | |
32476 | (char *) "self", NULL | |
32477 | }; | |
32478 | ||
32479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
32480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32481 | { | |
32482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32483 | (arg1)->DetachSizer(); | |
32484 | ||
32485 | wxPyEndAllowThreads(__tstate); | |
32486 | if (PyErr_Occurred()) SWIG_fail; | |
32487 | } | |
32488 | Py_INCREF(Py_None); resultobj = Py_None; | |
32489 | return resultobj; | |
32490 | fail: | |
32491 | return NULL; | |
32492 | } | |
32493 | ||
32494 | ||
32495 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32496 | PyObject *resultobj; | |
32497 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32498 | wxSize result; | |
32499 | PyObject * obj0 = 0 ; | |
32500 | char *kwnames[] = { | |
32501 | (char *) "self", NULL | |
32502 | }; | |
32503 | ||
32504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
32505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32506 | { | |
32507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32508 | result = (arg1)->GetSize(); | |
32509 | ||
32510 | wxPyEndAllowThreads(__tstate); | |
32511 | if (PyErr_Occurred()) SWIG_fail; | |
32512 | } | |
32513 | { | |
32514 | wxSize * resultptr; | |
32515 | resultptr = new wxSize((wxSize &) result); | |
32516 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
32517 | } | |
32518 | return resultobj; | |
32519 | fail: | |
32520 | return NULL; | |
32521 | } | |
32522 | ||
32523 | ||
32524 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32525 | PyObject *resultobj; | |
32526 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32527 | wxSize result; | |
32528 | PyObject * obj0 = 0 ; | |
32529 | char *kwnames[] = { | |
32530 | (char *) "self", NULL | |
32531 | }; | |
32532 | ||
32533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
32534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32535 | { | |
32536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32537 | result = (arg1)->CalcMin(); | |
32538 | ||
32539 | wxPyEndAllowThreads(__tstate); | |
32540 | if (PyErr_Occurred()) SWIG_fail; | |
32541 | } | |
32542 | { | |
32543 | wxSize * resultptr; | |
32544 | resultptr = new wxSize((wxSize &) result); | |
32545 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
32546 | } | |
32547 | return resultobj; | |
32548 | fail: | |
32549 | return NULL; | |
32550 | } | |
32551 | ||
32552 | ||
32553 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32554 | PyObject *resultobj; | |
32555 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32556 | wxPoint arg2 ; | |
32557 | wxSize arg3 ; | |
32558 | wxPoint *argp2 ; | |
32559 | wxSize *argp3 ; | |
32560 | PyObject * obj0 = 0 ; | |
32561 | PyObject * obj1 = 0 ; | |
32562 | PyObject * obj2 = 0 ; | |
32563 | char *kwnames[] = { | |
32564 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
32565 | }; | |
32566 | ||
32567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32569 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32570 | arg2 = *argp2; | |
32571 | if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32572 | arg3 = *argp3; | |
32573 | { | |
32574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32575 | (arg1)->SetDimension(arg2,arg3); | |
32576 | ||
32577 | wxPyEndAllowThreads(__tstate); | |
32578 | if (PyErr_Occurred()) SWIG_fail; | |
32579 | } | |
32580 | Py_INCREF(Py_None); resultobj = Py_None; | |
32581 | return resultobj; | |
32582 | fail: | |
32583 | return NULL; | |
32584 | } | |
32585 | ||
32586 | ||
32587 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32588 | PyObject *resultobj; | |
32589 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32590 | wxSize result; | |
32591 | PyObject * obj0 = 0 ; | |
32592 | char *kwnames[] = { | |
32593 | (char *) "self", NULL | |
32594 | }; | |
32595 | ||
32596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
32597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32598 | { | |
32599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32600 | result = (arg1)->GetMinSize(); | |
32601 | ||
32602 | wxPyEndAllowThreads(__tstate); | |
32603 | if (PyErr_Occurred()) SWIG_fail; | |
32604 | } | |
32605 | { | |
32606 | wxSize * resultptr; | |
32607 | resultptr = new wxSize((wxSize &) result); | |
32608 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
32609 | } | |
32610 | return resultobj; | |
32611 | fail: | |
32612 | return NULL; | |
32613 | } | |
32614 | ||
32615 | ||
32616 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32617 | PyObject *resultobj; | |
32618 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32619 | int arg2 ; | |
32620 | int arg3 ; | |
32621 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32622 | PyObject * obj1 = 0 ; |
32623 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32624 | char *kwnames[] = { |
32625 | (char *) "self",(char *) "x",(char *) "y", NULL | |
32626 | }; | |
32627 | ||
8edf1c75 | 32628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 32629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32630 | { |
32631 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32632 | if (PyErr_Occurred()) SWIG_fail; | |
32633 | } | |
32634 | { | |
32635 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32636 | if (PyErr_Occurred()) SWIG_fail; | |
32637 | } | |
d14a1e28 RD |
32638 | { |
32639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32640 | (arg1)->SetInitSize(arg2,arg3); | |
32641 | ||
32642 | wxPyEndAllowThreads(__tstate); | |
32643 | if (PyErr_Occurred()) SWIG_fail; | |
32644 | } | |
32645 | Py_INCREF(Py_None); resultobj = Py_None; | |
32646 | return resultobj; | |
32647 | fail: | |
32648 | return NULL; | |
32649 | } | |
32650 | ||
32651 | ||
32652 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32653 | PyObject *resultobj; | |
32654 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32655 | int arg2 ; | |
32656 | int arg3 ; | |
32657 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32658 | PyObject * obj1 = 0 ; |
32659 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32660 | char *kwnames[] = { |
32661 | (char *) "self",(char *) "width",(char *) "height", NULL | |
32662 | }; | |
32663 | ||
8edf1c75 | 32664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 32665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32666 | { |
32667 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32668 | if (PyErr_Occurred()) SWIG_fail; | |
32669 | } | |
32670 | { | |
32671 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32672 | if (PyErr_Occurred()) SWIG_fail; | |
32673 | } | |
d14a1e28 RD |
32674 | { |
32675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32676 | (arg1)->SetRatio(arg2,arg3); | |
32677 | ||
32678 | wxPyEndAllowThreads(__tstate); | |
32679 | if (PyErr_Occurred()) SWIG_fail; | |
32680 | } | |
32681 | Py_INCREF(Py_None); resultobj = Py_None; | |
32682 | return resultobj; | |
32683 | fail: | |
32684 | return NULL; | |
32685 | } | |
32686 | ||
32687 | ||
32688 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32689 | PyObject *resultobj; | |
32690 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32691 | wxSize arg2 ; | |
32692 | wxSize *argp2 ; | |
32693 | PyObject * obj0 = 0 ; | |
32694 | PyObject * obj1 = 0 ; | |
32695 | char *kwnames[] = { | |
32696 | (char *) "self",(char *) "size", NULL | |
32697 | }; | |
32698 | ||
32699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
32700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32701 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32702 | arg2 = *argp2; | |
32703 | { | |
32704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32705 | (arg1)->SetRatio(arg2); | |
32706 | ||
32707 | wxPyEndAllowThreads(__tstate); | |
32708 | if (PyErr_Occurred()) SWIG_fail; | |
32709 | } | |
32710 | Py_INCREF(Py_None); resultobj = Py_None; | |
32711 | return resultobj; | |
32712 | fail: | |
32713 | return NULL; | |
32714 | } | |
32715 | ||
32716 | ||
32717 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32718 | PyObject *resultobj; | |
32719 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32720 | float arg2 ; | |
32721 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32722 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32723 | char *kwnames[] = { |
32724 | (char *) "self",(char *) "ratio", NULL | |
32725 | }; | |
32726 | ||
8edf1c75 | 32727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32729 | { |
32730 | arg2 = (float) SWIG_PyObj_AsFloat(obj1); | |
32731 | if (PyErr_Occurred()) SWIG_fail; | |
32732 | } | |
d14a1e28 RD |
32733 | { |
32734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32735 | (arg1)->SetRatio(arg2); | |
32736 | ||
32737 | wxPyEndAllowThreads(__tstate); | |
32738 | if (PyErr_Occurred()) SWIG_fail; | |
32739 | } | |
32740 | Py_INCREF(Py_None); resultobj = Py_None; | |
32741 | return resultobj; | |
32742 | fail: | |
32743 | return NULL; | |
32744 | } | |
32745 | ||
32746 | ||
32747 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32748 | PyObject *resultobj; | |
32749 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32750 | float result; | |
32751 | PyObject * obj0 = 0 ; | |
32752 | char *kwnames[] = { | |
32753 | (char *) "self", NULL | |
32754 | }; | |
32755 | ||
32756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
32757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32758 | { | |
32759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32760 | result = (float)(arg1)->GetRatio(); | |
32761 | ||
32762 | wxPyEndAllowThreads(__tstate); | |
32763 | if (PyErr_Occurred()) SWIG_fail; | |
32764 | } | |
8edf1c75 | 32765 | resultobj = SWIG_PyObj_FromFloat((float)result); |
d14a1e28 RD |
32766 | return resultobj; |
32767 | fail: | |
32768 | return NULL; | |
32769 | } | |
32770 | ||
32771 | ||
32772 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32773 | PyObject *resultobj; | |
32774 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32775 | bool result; | |
32776 | PyObject * obj0 = 0 ; | |
32777 | char *kwnames[] = { | |
32778 | (char *) "self", NULL | |
32779 | }; | |
32780 | ||
32781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
32782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32783 | { | |
32784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32785 | result = (bool)(arg1)->IsWindow(); | |
32786 | ||
32787 | wxPyEndAllowThreads(__tstate); | |
32788 | if (PyErr_Occurred()) SWIG_fail; | |
32789 | } | |
4e760a36 | 32790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
32791 | return resultobj; |
32792 | fail: | |
32793 | return NULL; | |
32794 | } | |
32795 | ||
32796 | ||
32797 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32798 | PyObject *resultobj; | |
32799 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32800 | bool result; | |
32801 | PyObject * obj0 = 0 ; | |
32802 | char *kwnames[] = { | |
32803 | (char *) "self", NULL | |
32804 | }; | |
32805 | ||
32806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
32807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32808 | { | |
32809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32810 | result = (bool)(arg1)->IsSizer(); | |
32811 | ||
32812 | wxPyEndAllowThreads(__tstate); | |
32813 | if (PyErr_Occurred()) SWIG_fail; | |
32814 | } | |
4e760a36 | 32815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
32816 | return resultobj; |
32817 | fail: | |
32818 | return NULL; | |
32819 | } | |
32820 | ||
32821 | ||
32822 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32823 | PyObject *resultobj; | |
32824 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32825 | bool result; | |
32826 | PyObject * obj0 = 0 ; | |
32827 | char *kwnames[] = { | |
32828 | (char *) "self", NULL | |
32829 | }; | |
32830 | ||
32831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
32832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32833 | { | |
32834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32835 | result = (bool)(arg1)->IsSpacer(); | |
32836 | ||
32837 | wxPyEndAllowThreads(__tstate); | |
32838 | if (PyErr_Occurred()) SWIG_fail; | |
32839 | } | |
4e760a36 | 32840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
32841 | return resultobj; |
32842 | fail: | |
32843 | return NULL; | |
32844 | } | |
32845 | ||
32846 | ||
32847 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32848 | PyObject *resultobj; | |
32849 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32850 | int arg2 ; | |
32851 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32852 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32853 | char *kwnames[] = { |
32854 | (char *) "self",(char *) "proportion", NULL | |
32855 | }; | |
32856 | ||
8edf1c75 | 32857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32859 | { |
32860 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32861 | if (PyErr_Occurred()) SWIG_fail; | |
32862 | } | |
d14a1e28 RD |
32863 | { |
32864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32865 | (arg1)->SetProportion(arg2); | |
32866 | ||
32867 | wxPyEndAllowThreads(__tstate); | |
32868 | if (PyErr_Occurred()) SWIG_fail; | |
32869 | } | |
32870 | Py_INCREF(Py_None); resultobj = Py_None; | |
32871 | return resultobj; | |
32872 | fail: | |
32873 | return NULL; | |
32874 | } | |
32875 | ||
32876 | ||
32877 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32878 | PyObject *resultobj; | |
32879 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32880 | int result; | |
32881 | PyObject * obj0 = 0 ; | |
32882 | char *kwnames[] = { | |
32883 | (char *) "self", NULL | |
32884 | }; | |
32885 | ||
32886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
32887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32888 | { | |
32889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32890 | result = (int)(arg1)->GetProportion(); | |
32891 | ||
32892 | wxPyEndAllowThreads(__tstate); | |
32893 | if (PyErr_Occurred()) SWIG_fail; | |
32894 | } | |
8edf1c75 | 32895 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
32896 | return resultobj; |
32897 | fail: | |
32898 | return NULL; | |
32899 | } | |
32900 | ||
32901 | ||
32902 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32903 | PyObject *resultobj; | |
32904 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32905 | int arg2 ; | |
32906 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32907 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32908 | char *kwnames[] = { |
32909 | (char *) "self",(char *) "flag", NULL | |
32910 | }; | |
32911 | ||
8edf1c75 | 32912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32914 | { |
32915 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32916 | if (PyErr_Occurred()) SWIG_fail; | |
32917 | } | |
d14a1e28 RD |
32918 | { |
32919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32920 | (arg1)->SetFlag(arg2); | |
32921 | ||
32922 | wxPyEndAllowThreads(__tstate); | |
32923 | if (PyErr_Occurred()) SWIG_fail; | |
32924 | } | |
32925 | Py_INCREF(Py_None); resultobj = Py_None; | |
32926 | return resultobj; | |
32927 | fail: | |
32928 | return NULL; | |
32929 | } | |
32930 | ||
32931 | ||
32932 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32933 | PyObject *resultobj; | |
32934 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32935 | int result; | |
32936 | PyObject * obj0 = 0 ; | |
32937 | char *kwnames[] = { | |
32938 | (char *) "self", NULL | |
32939 | }; | |
32940 | ||
32941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
32942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32943 | { | |
32944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32945 | result = (int)(arg1)->GetFlag(); | |
32946 | ||
32947 | wxPyEndAllowThreads(__tstate); | |
32948 | if (PyErr_Occurred()) SWIG_fail; | |
32949 | } | |
8edf1c75 | 32950 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
32951 | return resultobj; |
32952 | fail: | |
32953 | return NULL; | |
32954 | } | |
32955 | ||
32956 | ||
32957 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32958 | PyObject *resultobj; | |
32959 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32960 | int arg2 ; | |
32961 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32962 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32963 | char *kwnames[] = { |
32964 | (char *) "self",(char *) "border", NULL | |
32965 | }; | |
32966 | ||
8edf1c75 | 32967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32969 | { |
32970 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32971 | if (PyErr_Occurred()) SWIG_fail; | |
32972 | } | |
d14a1e28 RD |
32973 | { |
32974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32975 | (arg1)->SetBorder(arg2); | |
32976 | ||
32977 | wxPyEndAllowThreads(__tstate); | |
32978 | if (PyErr_Occurred()) SWIG_fail; | |
32979 | } | |
32980 | Py_INCREF(Py_None); resultobj = Py_None; | |
32981 | return resultobj; | |
32982 | fail: | |
32983 | return NULL; | |
32984 | } | |
32985 | ||
32986 | ||
32987 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32988 | PyObject *resultobj; | |
32989 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32990 | int result; | |
32991 | PyObject * obj0 = 0 ; | |
32992 | char *kwnames[] = { | |
32993 | (char *) "self", NULL | |
32994 | }; | |
32995 | ||
32996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
32997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32998 | { | |
32999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33000 | result = (int)(arg1)->GetBorder(); | |
33001 | ||
33002 | wxPyEndAllowThreads(__tstate); | |
33003 | if (PyErr_Occurred()) SWIG_fail; | |
33004 | } | |
8edf1c75 | 33005 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
33006 | return resultobj; |
33007 | fail: | |
33008 | return NULL; | |
33009 | } | |
33010 | ||
33011 | ||
33012 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33013 | PyObject *resultobj; | |
33014 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33015 | wxWindow *result; | |
33016 | PyObject * obj0 = 0 ; | |
33017 | char *kwnames[] = { | |
33018 | (char *) "self", NULL | |
33019 | }; | |
33020 | ||
33021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
33022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33023 | { | |
33024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33025 | result = (wxWindow *)(arg1)->GetWindow(); | |
33026 | ||
33027 | wxPyEndAllowThreads(__tstate); | |
33028 | if (PyErr_Occurred()) SWIG_fail; | |
33029 | } | |
33030 | { | |
33031 | resultobj = wxPyMake_wxObject(result); | |
33032 | } | |
33033 | return resultobj; | |
33034 | fail: | |
33035 | return NULL; | |
33036 | } | |
33037 | ||
33038 | ||
33039 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33040 | PyObject *resultobj; | |
33041 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33042 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33043 | PyObject * obj0 = 0 ; | |
33044 | PyObject * obj1 = 0 ; | |
33045 | char *kwnames[] = { | |
33046 | (char *) "self",(char *) "window", NULL | |
33047 | }; | |
33048 | ||
33049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
33050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33051 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33052 | { | |
33053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33054 | (arg1)->SetWindow(arg2); | |
33055 | ||
33056 | wxPyEndAllowThreads(__tstate); | |
33057 | if (PyErr_Occurred()) SWIG_fail; | |
33058 | } | |
33059 | Py_INCREF(Py_None); resultobj = Py_None; | |
33060 | return resultobj; | |
33061 | fail: | |
33062 | return NULL; | |
33063 | } | |
33064 | ||
33065 | ||
33066 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33067 | PyObject *resultobj; | |
33068 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33069 | wxSizer *result; | |
33070 | PyObject * obj0 = 0 ; | |
33071 | char *kwnames[] = { | |
33072 | (char *) "self", NULL | |
33073 | }; | |
33074 | ||
33075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
33076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33077 | { | |
33078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33079 | result = (wxSizer *)(arg1)->GetSizer(); | |
33080 | ||
33081 | wxPyEndAllowThreads(__tstate); | |
33082 | if (PyErr_Occurred()) SWIG_fail; | |
33083 | } | |
33084 | { | |
33085 | resultobj = wxPyMake_wxSizer(result); | |
33086 | } | |
33087 | return resultobj; | |
33088 | fail: | |
33089 | return NULL; | |
33090 | } | |
33091 | ||
33092 | ||
33093 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33094 | PyObject *resultobj; | |
33095 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33096 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33097 | PyObject * obj0 = 0 ; | |
33098 | PyObject * obj1 = 0 ; | |
33099 | char *kwnames[] = { | |
33100 | (char *) "self",(char *) "sizer", NULL | |
33101 | }; | |
33102 | ||
33103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
33104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33105 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33106 | { | |
33107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33108 | (arg1)->SetSizer(arg2); | |
33109 | ||
33110 | wxPyEndAllowThreads(__tstate); | |
33111 | if (PyErr_Occurred()) SWIG_fail; | |
33112 | } | |
33113 | Py_INCREF(Py_None); resultobj = Py_None; | |
33114 | return resultobj; | |
33115 | fail: | |
33116 | return NULL; | |
33117 | } | |
33118 | ||
33119 | ||
33120 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33121 | PyObject *resultobj; | |
33122 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33123 | wxSize *result; | |
33124 | PyObject * obj0 = 0 ; | |
33125 | char *kwnames[] = { | |
33126 | (char *) "self", NULL | |
33127 | }; | |
33128 | ||
33129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
33130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33131 | { | |
33132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33133 | { | |
33134 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
33135 | result = (wxSize *) &_result_ref; | |
33136 | } | |
33137 | ||
33138 | wxPyEndAllowThreads(__tstate); | |
33139 | if (PyErr_Occurred()) SWIG_fail; | |
33140 | } | |
33141 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
33142 | return resultobj; | |
33143 | fail: | |
33144 | return NULL; | |
33145 | } | |
33146 | ||
33147 | ||
33148 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33149 | PyObject *resultobj; | |
33150 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33151 | wxSize *arg2 = 0 ; | |
33152 | wxSize temp2 ; | |
33153 | PyObject * obj0 = 0 ; | |
33154 | PyObject * obj1 = 0 ; | |
33155 | char *kwnames[] = { | |
33156 | (char *) "self",(char *) "size", NULL | |
33157 | }; | |
33158 | ||
33159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
33160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33161 | { | |
33162 | arg2 = &temp2; | |
33163 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33164 | } | |
33165 | { | |
33166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33167 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
33168 | ||
33169 | wxPyEndAllowThreads(__tstate); | |
33170 | if (PyErr_Occurred()) SWIG_fail; | |
33171 | } | |
33172 | Py_INCREF(Py_None); resultobj = Py_None; | |
33173 | return resultobj; | |
33174 | fail: | |
33175 | return NULL; | |
33176 | } | |
33177 | ||
33178 | ||
33179 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33180 | PyObject *resultobj; | |
33181 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33182 | bool arg2 ; | |
33183 | PyObject * obj0 = 0 ; | |
33184 | PyObject * obj1 = 0 ; | |
33185 | char *kwnames[] = { | |
33186 | (char *) "self",(char *) "show", NULL | |
33187 | }; | |
33188 | ||
33189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
33190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 33191 | { |
8edf1c75 | 33192 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
33193 | if (PyErr_Occurred()) SWIG_fail; |
33194 | } | |
d14a1e28 RD |
33195 | { |
33196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33197 | (arg1)->Show(arg2); | |
33198 | ||
33199 | wxPyEndAllowThreads(__tstate); | |
33200 | if (PyErr_Occurred()) SWIG_fail; | |
33201 | } | |
33202 | Py_INCREF(Py_None); resultobj = Py_None; | |
33203 | return resultobj; | |
33204 | fail: | |
33205 | return NULL; | |
33206 | } | |
33207 | ||
33208 | ||
33209 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33210 | PyObject *resultobj; | |
33211 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33212 | bool result; | |
33213 | PyObject * obj0 = 0 ; | |
33214 | char *kwnames[] = { | |
33215 | (char *) "self", NULL | |
33216 | }; | |
33217 | ||
33218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
33219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33220 | { | |
33221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33222 | result = (bool)(arg1)->IsShown(); | |
33223 | ||
33224 | wxPyEndAllowThreads(__tstate); | |
33225 | if (PyErr_Occurred()) SWIG_fail; | |
33226 | } | |
4e760a36 | 33227 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
33228 | return resultobj; |
33229 | fail: | |
33230 | return NULL; | |
33231 | } | |
33232 | ||
33233 | ||
33234 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33235 | PyObject *resultobj; | |
33236 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33237 | wxPoint result; | |
33238 | PyObject * obj0 = 0 ; | |
33239 | char *kwnames[] = { | |
33240 | (char *) "self", NULL | |
33241 | }; | |
33242 | ||
33243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
33244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33245 | { | |
33246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33247 | result = (arg1)->GetPosition(); | |
33248 | ||
33249 | wxPyEndAllowThreads(__tstate); | |
33250 | if (PyErr_Occurred()) SWIG_fail; | |
33251 | } | |
33252 | { | |
33253 | wxPoint * resultptr; | |
33254 | resultptr = new wxPoint((wxPoint &) result); | |
33255 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
33256 | } | |
33257 | return resultobj; | |
33258 | fail: | |
33259 | return NULL; | |
33260 | } | |
33261 | ||
33262 | ||
33263 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33264 | PyObject *resultobj; | |
33265 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33266 | PyObject *result; | |
33267 | PyObject * obj0 = 0 ; | |
33268 | char *kwnames[] = { | |
33269 | (char *) "self", NULL | |
33270 | }; | |
33271 | ||
33272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
33273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33274 | { | |
33275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33276 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
33277 | ||
33278 | wxPyEndAllowThreads(__tstate); | |
33279 | if (PyErr_Occurred()) SWIG_fail; | |
33280 | } | |
33281 | resultobj = result; | |
33282 | return resultobj; | |
33283 | fail: | |
33284 | return NULL; | |
33285 | } | |
33286 | ||
33287 | ||
33288 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
33289 | PyObject *obj; | |
33290 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33291 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
33292 | Py_INCREF(obj); | |
33293 | return Py_BuildValue((char *)""); | |
33294 | } | |
33295 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33296 | PyObject *resultobj; | |
33297 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33298 | PyObject *arg2 = (PyObject *) 0 ; | |
33299 | PyObject * obj0 = 0 ; | |
33300 | PyObject * obj1 = 0 ; | |
33301 | char *kwnames[] = { | |
33302 | (char *) "self",(char *) "_self", NULL | |
33303 | }; | |
33304 | ||
33305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
33306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33307 | arg2 = obj1; | |
33308 | { | |
33309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33310 | wxSizer__setOORInfo(arg1,arg2); | |
33311 | ||
33312 | wxPyEndAllowThreads(__tstate); | |
33313 | if (PyErr_Occurred()) SWIG_fail; | |
33314 | } | |
33315 | Py_INCREF(Py_None); resultobj = Py_None; | |
33316 | return resultobj; | |
33317 | fail: | |
33318 | return NULL; | |
33319 | } | |
33320 | ||
33321 | ||
33322 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33323 | PyObject *resultobj; | |
33324 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33325 | PyObject *arg2 = (PyObject *) 0 ; | |
33326 | int arg3 = (int) 0 ; | |
33327 | int arg4 = (int) 0 ; | |
33328 | int arg5 = (int) 0 ; | |
33329 | PyObject *arg6 = (PyObject *) NULL ; | |
33330 | PyObject * obj0 = 0 ; | |
33331 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
33332 | PyObject * obj2 = 0 ; |
33333 | PyObject * obj3 = 0 ; | |
33334 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33335 | PyObject * obj5 = 0 ; |
33336 | char *kwnames[] = { | |
33337 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33338 | }; | |
33339 | ||
8edf1c75 | 33340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
33341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
33342 | arg2 = obj1; | |
8edf1c75 RD |
33343 | if (obj2) { |
33344 | { | |
33345 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
33346 | if (PyErr_Occurred()) SWIG_fail; | |
33347 | } | |
33348 | } | |
33349 | if (obj3) { | |
33350 | { | |
33351 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
33352 | if (PyErr_Occurred()) SWIG_fail; | |
33353 | } | |
33354 | } | |
33355 | if (obj4) { | |
33356 | { | |
33357 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
33358 | if (PyErr_Occurred()) SWIG_fail; | |
33359 | } | |
33360 | } | |
d14a1e28 RD |
33361 | if (obj5) { |
33362 | arg6 = obj5; | |
33363 | } | |
33364 | { | |
33365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33366 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
33367 | ||
33368 | wxPyEndAllowThreads(__tstate); | |
33369 | if (PyErr_Occurred()) SWIG_fail; | |
33370 | } | |
33371 | Py_INCREF(Py_None); resultobj = Py_None; | |
33372 | return resultobj; | |
33373 | fail: | |
33374 | return NULL; | |
33375 | } | |
33376 | ||
33377 | ||
33378 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33379 | PyObject *resultobj; | |
33380 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33381 | int arg2 ; | |
33382 | PyObject *arg3 = (PyObject *) 0 ; | |
33383 | int arg4 = (int) 0 ; | |
33384 | int arg5 = (int) 0 ; | |
33385 | int arg6 = (int) 0 ; | |
33386 | PyObject *arg7 = (PyObject *) NULL ; | |
33387 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33388 | PyObject * obj1 = 0 ; |
d14a1e28 | 33389 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
33390 | PyObject * obj3 = 0 ; |
33391 | PyObject * obj4 = 0 ; | |
33392 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
33393 | PyObject * obj6 = 0 ; |
33394 | char *kwnames[] = { | |
33395 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33396 | }; | |
33397 | ||
8edf1c75 | 33398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 33399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
33400 | { |
33401 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
33402 | if (PyErr_Occurred()) SWIG_fail; | |
33403 | } | |
d14a1e28 | 33404 | arg3 = obj2; |
8edf1c75 RD |
33405 | if (obj3) { |
33406 | { | |
33407 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
33408 | if (PyErr_Occurred()) SWIG_fail; | |
33409 | } | |
33410 | } | |
33411 | if (obj4) { | |
33412 | { | |
33413 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
33414 | if (PyErr_Occurred()) SWIG_fail; | |
33415 | } | |
33416 | } | |
33417 | if (obj5) { | |
33418 | { | |
33419 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
33420 | if (PyErr_Occurred()) SWIG_fail; | |
33421 | } | |
33422 | } | |
d14a1e28 RD |
33423 | if (obj6) { |
33424 | arg7 = obj6; | |
33425 | } | |
33426 | { | |
33427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33428 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
33429 | ||
33430 | wxPyEndAllowThreads(__tstate); | |
33431 | if (PyErr_Occurred()) SWIG_fail; | |
33432 | } | |
33433 | Py_INCREF(Py_None); resultobj = Py_None; | |
33434 | return resultobj; | |
33435 | fail: | |
33436 | return NULL; | |
33437 | } | |
33438 | ||
33439 | ||
33440 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33441 | PyObject *resultobj; | |
33442 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33443 | PyObject *arg2 = (PyObject *) 0 ; | |
33444 | int arg3 = (int) 0 ; | |
33445 | int arg4 = (int) 0 ; | |
33446 | int arg5 = (int) 0 ; | |
33447 | PyObject *arg6 = (PyObject *) NULL ; | |
33448 | PyObject * obj0 = 0 ; | |
33449 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
33450 | PyObject * obj2 = 0 ; |
33451 | PyObject * obj3 = 0 ; | |
33452 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33453 | PyObject * obj5 = 0 ; |
33454 | char *kwnames[] = { | |
33455 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33456 | }; | |
33457 | ||
8edf1c75 | 33458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
33459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
33460 | arg2 = obj1; | |
8edf1c75 RD |
33461 | if (obj2) { |
33462 | { | |
33463 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
33464 | if (PyErr_Occurred()) SWIG_fail; | |
33465 | } | |
33466 | } | |
33467 | if (obj3) { | |
33468 | { | |
33469 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
33470 | if (PyErr_Occurred()) SWIG_fail; | |
33471 | } | |
33472 | } | |
33473 | if (obj4) { | |
33474 | { | |
33475 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
33476 | if (PyErr_Occurred()) SWIG_fail; | |
33477 | } | |
33478 | } | |
d14a1e28 RD |
33479 | if (obj5) { |
33480 | arg6 = obj5; | |
33481 | } | |
33482 | { | |
33483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33484 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
33485 | ||
33486 | wxPyEndAllowThreads(__tstate); | |
33487 | if (PyErr_Occurred()) SWIG_fail; | |
33488 | } | |
33489 | Py_INCREF(Py_None); resultobj = Py_None; | |
33490 | return resultobj; | |
33491 | fail: | |
33492 | return NULL; | |
33493 | } | |
33494 | ||
33495 | ||
33496 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33497 | PyObject *resultobj; | |
33498 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33499 | PyObject *arg2 = (PyObject *) 0 ; | |
33500 | bool result; | |
33501 | PyObject * obj0 = 0 ; | |
33502 | PyObject * obj1 = 0 ; | |
33503 | char *kwnames[] = { | |
33504 | (char *) "self",(char *) "item", NULL | |
33505 | }; | |
33506 | ||
33507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
33508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33509 | arg2 = obj1; | |
33510 | { | |
33511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33512 | result = (bool)wxSizer_Remove(arg1,arg2); | |
33513 | ||
33514 | wxPyEndAllowThreads(__tstate); | |
33515 | if (PyErr_Occurred()) SWIG_fail; | |
33516 | } | |
4e760a36 | 33517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
33518 | return resultobj; |
33519 | fail: | |
33520 | return NULL; | |
33521 | } | |
33522 | ||
33523 | ||
33524 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33525 | PyObject *resultobj; | |
33526 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33527 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a RD |
33528 | wxSize *arg3 = 0 ; |
33529 | wxSize temp3 ; | |
d14a1e28 RD |
33530 | PyObject * obj0 = 0 ; |
33531 | PyObject * obj1 = 0 ; | |
33532 | PyObject * obj2 = 0 ; | |
33533 | char *kwnames[] = { | |
33534 | (char *) "self",(char *) "item",(char *) "size", NULL | |
33535 | }; | |
33536 | ||
33537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33539 | arg2 = obj1; | |
423f194a RD |
33540 | { |
33541 | arg3 = &temp3; | |
33542 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
33543 | } | |
d14a1e28 RD |
33544 | { |
33545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 33546 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
33547 | |
33548 | wxPyEndAllowThreads(__tstate); | |
33549 | if (PyErr_Occurred()) SWIG_fail; | |
33550 | } | |
33551 | Py_INCREF(Py_None); resultobj = Py_None; | |
33552 | return resultobj; | |
33553 | fail: | |
33554 | return NULL; | |
33555 | } | |
33556 | ||
33557 | ||
33558 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33559 | PyObject *resultobj; | |
33560 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33561 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
33562 | PyObject * obj0 = 0 ; | |
33563 | PyObject * obj1 = 0 ; | |
33564 | char *kwnames[] = { | |
33565 | (char *) "self",(char *) "item", NULL | |
33566 | }; | |
33567 | ||
33568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
33569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33570 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33571 | { | |
33572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33573 | (arg1)->Add(arg2); | |
33574 | ||
33575 | wxPyEndAllowThreads(__tstate); | |
33576 | if (PyErr_Occurred()) SWIG_fail; | |
33577 | } | |
33578 | Py_INCREF(Py_None); resultobj = Py_None; | |
33579 | return resultobj; | |
33580 | fail: | |
33581 | return NULL; | |
33582 | } | |
33583 | ||
33584 | ||
33585 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33586 | PyObject *resultobj; | |
33587 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33588 | size_t arg2 ; | |
33589 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
33590 | PyObject * obj0 = 0 ; | |
33591 | PyObject * obj1 = 0 ; | |
33592 | PyObject * obj2 = 0 ; | |
33593 | char *kwnames[] = { | |
33594 | (char *) "self",(char *) "index",(char *) "item", NULL | |
33595 | }; | |
33596 | ||
33597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 33599 | { |
8edf1c75 | 33600 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
33601 | if (PyErr_Occurred()) SWIG_fail; |
33602 | } | |
d14a1e28 RD |
33603 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
33604 | { | |
33605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33606 | (arg1)->Insert(arg2,arg3); | |
33607 | ||
33608 | wxPyEndAllowThreads(__tstate); | |
33609 | if (PyErr_Occurred()) SWIG_fail; | |
33610 | } | |
33611 | Py_INCREF(Py_None); resultobj = Py_None; | |
33612 | return resultobj; | |
33613 | fail: | |
33614 | return NULL; | |
33615 | } | |
33616 | ||
33617 | ||
33618 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33619 | PyObject *resultobj; | |
33620 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33621 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
33622 | PyObject * obj0 = 0 ; | |
33623 | PyObject * obj1 = 0 ; | |
33624 | char *kwnames[] = { | |
33625 | (char *) "self",(char *) "item", NULL | |
33626 | }; | |
33627 | ||
33628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
33629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33630 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33631 | { | |
33632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33633 | (arg1)->Prepend(arg2); | |
33634 | ||
33635 | wxPyEndAllowThreads(__tstate); | |
33636 | if (PyErr_Occurred()) SWIG_fail; | |
33637 | } | |
33638 | Py_INCREF(Py_None); resultobj = Py_None; | |
33639 | return resultobj; | |
33640 | fail: | |
33641 | return NULL; | |
33642 | } | |
33643 | ||
33644 | ||
33645 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33646 | PyObject *resultobj; | |
33647 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33648 | int arg2 ; | |
33649 | int arg3 ; | |
33650 | int arg4 ; | |
33651 | int arg5 ; | |
33652 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
33653 | PyObject * obj1 = 0 ; |
33654 | PyObject * obj2 = 0 ; | |
33655 | PyObject * obj3 = 0 ; | |
33656 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33657 | char *kwnames[] = { |
33658 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
33659 | }; | |
33660 | ||
8edf1c75 | 33661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 33662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
33663 | { |
33664 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
33665 | if (PyErr_Occurred()) SWIG_fail; | |
33666 | } | |
33667 | { | |
33668 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
33669 | if (PyErr_Occurred()) SWIG_fail; | |
33670 | } | |
33671 | { | |
33672 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
33673 | if (PyErr_Occurred()) SWIG_fail; | |
33674 | } | |
33675 | { | |
33676 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
33677 | if (PyErr_Occurred()) SWIG_fail; | |
33678 | } | |
d14a1e28 RD |
33679 | { |
33680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33681 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
33682 | ||
33683 | wxPyEndAllowThreads(__tstate); | |
33684 | if (PyErr_Occurred()) SWIG_fail; | |
33685 | } | |
33686 | Py_INCREF(Py_None); resultobj = Py_None; | |
33687 | return resultobj; | |
33688 | fail: | |
33689 | return NULL; | |
33690 | } | |
33691 | ||
33692 | ||
33693 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33694 | PyObject *resultobj; | |
33695 | wxSizer *arg1 = (wxSizer *) 0 ; | |
a64def11 RD |
33696 | wxSize *arg2 = 0 ; |
33697 | wxSize temp2 ; | |
d14a1e28 RD |
33698 | PyObject * obj0 = 0 ; |
33699 | PyObject * obj1 = 0 ; | |
33700 | char *kwnames[] = { | |
33701 | (char *) "self",(char *) "size", NULL | |
33702 | }; | |
33703 | ||
33704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
33705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a64def11 RD |
33706 | { |
33707 | arg2 = &temp2; | |
33708 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33709 | } | |
d14a1e28 RD |
33710 | { |
33711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a64def11 | 33712 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
33713 | |
33714 | wxPyEndAllowThreads(__tstate); | |
33715 | if (PyErr_Occurred()) SWIG_fail; | |
33716 | } | |
33717 | Py_INCREF(Py_None); resultobj = Py_None; | |
33718 | return resultobj; | |
33719 | fail: | |
33720 | return NULL; | |
33721 | } | |
33722 | ||
33723 | ||
33724 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33725 | PyObject *resultobj; | |
33726 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33727 | wxSize result; | |
33728 | PyObject * obj0 = 0 ; | |
33729 | char *kwnames[] = { | |
33730 | (char *) "self", NULL | |
33731 | }; | |
33732 | ||
33733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
33734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33735 | { | |
33736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33737 | result = (arg1)->GetSize(); | |
33738 | ||
33739 | wxPyEndAllowThreads(__tstate); | |
33740 | if (PyErr_Occurred()) SWIG_fail; | |
33741 | } | |
33742 | { | |
33743 | wxSize * resultptr; | |
33744 | resultptr = new wxSize((wxSize &) result); | |
33745 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33746 | } | |
33747 | return resultobj; | |
33748 | fail: | |
33749 | return NULL; | |
33750 | } | |
33751 | ||
33752 | ||
33753 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33754 | PyObject *resultobj; | |
33755 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33756 | wxPoint result; | |
33757 | PyObject * obj0 = 0 ; | |
33758 | char *kwnames[] = { | |
33759 | (char *) "self", NULL | |
33760 | }; | |
33761 | ||
33762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
33763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33764 | { | |
33765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33766 | result = (arg1)->GetPosition(); | |
33767 | ||
33768 | wxPyEndAllowThreads(__tstate); | |
33769 | if (PyErr_Occurred()) SWIG_fail; | |
33770 | } | |
33771 | { | |
33772 | wxPoint * resultptr; | |
33773 | resultptr = new wxPoint((wxPoint &) result); | |
33774 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
33775 | } | |
33776 | return resultobj; | |
33777 | fail: | |
33778 | return NULL; | |
33779 | } | |
33780 | ||
33781 | ||
33782 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33783 | PyObject *resultobj; | |
33784 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33785 | wxSize result; | |
33786 | PyObject * obj0 = 0 ; | |
33787 | char *kwnames[] = { | |
33788 | (char *) "self", NULL | |
33789 | }; | |
33790 | ||
33791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
33792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33793 | { | |
33794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33795 | result = (arg1)->GetMinSize(); | |
33796 | ||
33797 | wxPyEndAllowThreads(__tstate); | |
33798 | if (PyErr_Occurred()) SWIG_fail; | |
33799 | } | |
33800 | { | |
33801 | wxSize * resultptr; | |
33802 | resultptr = new wxSize((wxSize &) result); | |
33803 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33804 | } | |
33805 | return resultobj; | |
33806 | fail: | |
33807 | return NULL; | |
33808 | } | |
33809 | ||
33810 | ||
33811 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33812 | PyObject *resultobj; | |
33813 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33814 | PyObject * obj0 = 0 ; | |
33815 | char *kwnames[] = { | |
33816 | (char *) "self", NULL | |
33817 | }; | |
33818 | ||
33819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
33820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33821 | { | |
33822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33823 | (arg1)->RecalcSizes(); | |
33824 | ||
33825 | wxPyEndAllowThreads(__tstate); | |
33826 | if (PyErr_Occurred()) SWIG_fail; | |
33827 | } | |
33828 | Py_INCREF(Py_None); resultobj = Py_None; | |
33829 | return resultobj; | |
33830 | fail: | |
33831 | return NULL; | |
33832 | } | |
33833 | ||
33834 | ||
33835 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33836 | PyObject *resultobj; | |
33837 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33838 | wxSize result; | |
33839 | PyObject * obj0 = 0 ; | |
33840 | char *kwnames[] = { | |
33841 | (char *) "self", NULL | |
33842 | }; | |
33843 | ||
33844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
33845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33846 | { | |
33847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33848 | result = (arg1)->CalcMin(); | |
33849 | ||
33850 | wxPyEndAllowThreads(__tstate); | |
33851 | if (PyErr_Occurred()) SWIG_fail; | |
33852 | } | |
33853 | { | |
33854 | wxSize * resultptr; | |
33855 | resultptr = new wxSize((wxSize &) result); | |
33856 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33857 | } | |
33858 | return resultobj; | |
33859 | fail: | |
33860 | return NULL; | |
33861 | } | |
33862 | ||
33863 | ||
33864 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33865 | PyObject *resultobj; | |
33866 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33867 | PyObject * obj0 = 0 ; | |
33868 | char *kwnames[] = { | |
33869 | (char *) "self", NULL | |
33870 | }; | |
33871 | ||
33872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
33873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33874 | { | |
33875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33876 | (arg1)->Layout(); | |
33877 | ||
33878 | wxPyEndAllowThreads(__tstate); | |
33879 | if (PyErr_Occurred()) SWIG_fail; | |
33880 | } | |
33881 | Py_INCREF(Py_None); resultobj = Py_None; | |
33882 | return resultobj; | |
33883 | fail: | |
33884 | return NULL; | |
33885 | } | |
33886 | ||
33887 | ||
33888 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33889 | PyObject *resultobj; | |
33890 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33891 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33892 | wxSize result; | |
33893 | PyObject * obj0 = 0 ; | |
33894 | PyObject * obj1 = 0 ; | |
33895 | char *kwnames[] = { | |
33896 | (char *) "self",(char *) "window", NULL | |
33897 | }; | |
33898 | ||
33899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
33900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33901 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33902 | { | |
33903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33904 | result = (arg1)->Fit(arg2); | |
33905 | ||
33906 | wxPyEndAllowThreads(__tstate); | |
33907 | if (PyErr_Occurred()) SWIG_fail; | |
33908 | } | |
33909 | { | |
33910 | wxSize * resultptr; | |
33911 | resultptr = new wxSize((wxSize &) result); | |
33912 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33913 | } | |
33914 | return resultobj; | |
33915 | fail: | |
33916 | return NULL; | |
33917 | } | |
33918 | ||
33919 | ||
33920 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33921 | PyObject *resultobj; | |
33922 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33923 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33924 | PyObject * obj0 = 0 ; | |
33925 | PyObject * obj1 = 0 ; | |
33926 | char *kwnames[] = { | |
33927 | (char *) "self",(char *) "window", NULL | |
33928 | }; | |
33929 | ||
33930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
33931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33932 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33933 | { | |
33934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33935 | (arg1)->FitInside(arg2); | |
33936 | ||
33937 | wxPyEndAllowThreads(__tstate); | |
33938 | if (PyErr_Occurred()) SWIG_fail; | |
33939 | } | |
33940 | Py_INCREF(Py_None); resultobj = Py_None; | |
33941 | return resultobj; | |
33942 | fail: | |
33943 | return NULL; | |
33944 | } | |
33945 | ||
33946 | ||
33947 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33948 | PyObject *resultobj; | |
33949 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33950 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33951 | PyObject * obj0 = 0 ; | |
33952 | PyObject * obj1 = 0 ; | |
33953 | char *kwnames[] = { | |
33954 | (char *) "self",(char *) "window", NULL | |
33955 | }; | |
33956 | ||
33957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
33958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33959 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33960 | { | |
33961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33962 | (arg1)->SetSizeHints(arg2); | |
33963 | ||
33964 | wxPyEndAllowThreads(__tstate); | |
33965 | if (PyErr_Occurred()) SWIG_fail; | |
33966 | } | |
33967 | Py_INCREF(Py_None); resultobj = Py_None; | |
33968 | return resultobj; | |
33969 | fail: | |
33970 | return NULL; | |
33971 | } | |
33972 | ||
33973 | ||
33974 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33975 | PyObject *resultobj; | |
33976 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33977 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33978 | PyObject * obj0 = 0 ; | |
33979 | PyObject * obj1 = 0 ; | |
33980 | char *kwnames[] = { | |
33981 | (char *) "self",(char *) "window", NULL | |
33982 | }; | |
33983 | ||
33984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
33985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33986 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33987 | { | |
33988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33989 | (arg1)->SetVirtualSizeHints(arg2); | |
33990 | ||
33991 | wxPyEndAllowThreads(__tstate); | |
33992 | if (PyErr_Occurred()) SWIG_fail; | |
33993 | } | |
33994 | Py_INCREF(Py_None); resultobj = Py_None; | |
33995 | return resultobj; | |
33996 | fail: | |
33997 | return NULL; | |
33998 | } | |
33999 | ||
34000 | ||
34001 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34002 | PyObject *resultobj; | |
34003 | wxSizer *arg1 = (wxSizer *) 0 ; | |
423f194a | 34004 | bool arg2 = (bool) False ; |
d14a1e28 RD |
34005 | PyObject * obj0 = 0 ; |
34006 | PyObject * obj1 = 0 ; | |
34007 | char *kwnames[] = { | |
34008 | (char *) "self",(char *) "delete_windows", NULL | |
34009 | }; | |
34010 | ||
34011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
34012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34013 | if (obj1) { | |
83448d71 | 34014 | { |
8edf1c75 | 34015 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
34016 | if (PyErr_Occurred()) SWIG_fail; |
34017 | } | |
d14a1e28 RD |
34018 | } |
34019 | { | |
34020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34021 | (arg1)->Clear(arg2); | |
34022 | ||
34023 | wxPyEndAllowThreads(__tstate); | |
34024 | if (PyErr_Occurred()) SWIG_fail; | |
34025 | } | |
34026 | Py_INCREF(Py_None); resultobj = Py_None; | |
34027 | return resultobj; | |
34028 | fail: | |
34029 | return NULL; | |
34030 | } | |
34031 | ||
34032 | ||
34033 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34034 | PyObject *resultobj; | |
34035 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34036 | PyObject * obj0 = 0 ; | |
34037 | char *kwnames[] = { | |
34038 | (char *) "self", NULL | |
34039 | }; | |
34040 | ||
34041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
34042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34043 | { | |
34044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34045 | (arg1)->DeleteWindows(); | |
34046 | ||
34047 | wxPyEndAllowThreads(__tstate); | |
34048 | if (PyErr_Occurred()) SWIG_fail; | |
34049 | } | |
34050 | Py_INCREF(Py_None); resultobj = Py_None; | |
34051 | return resultobj; | |
34052 | fail: | |
34053 | return NULL; | |
34054 | } | |
34055 | ||
34056 | ||
34057 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34058 | PyObject *resultobj; | |
34059 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34060 | PyObject *result; | |
34061 | PyObject * obj0 = 0 ; | |
34062 | char *kwnames[] = { | |
34063 | (char *) "self", NULL | |
34064 | }; | |
34065 | ||
34066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
34067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34068 | { | |
34069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34070 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
34071 | ||
34072 | wxPyEndAllowThreads(__tstate); | |
34073 | if (PyErr_Occurred()) SWIG_fail; | |
34074 | } | |
34075 | resultobj = result; | |
34076 | return resultobj; | |
34077 | fail: | |
34078 | return NULL; | |
34079 | } | |
34080 | ||
34081 | ||
34082 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34083 | PyObject *resultobj; | |
34084 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34085 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 34086 | bool arg3 = (bool) True ; |
d14a1e28 RD |
34087 | PyObject * obj0 = 0 ; |
34088 | PyObject * obj1 = 0 ; | |
34089 | PyObject * obj2 = 0 ; | |
34090 | char *kwnames[] = { | |
34091 | (char *) "self",(char *) "item",(char *) "show", NULL | |
34092 | }; | |
34093 | ||
34094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34096 | arg2 = obj1; | |
34097 | if (obj2) { | |
83448d71 | 34098 | { |
8edf1c75 | 34099 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
34100 | if (PyErr_Occurred()) SWIG_fail; |
34101 | } | |
d14a1e28 RD |
34102 | } |
34103 | { | |
34104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34105 | wxSizer_Show(arg1,arg2,arg3); | |
34106 | ||
34107 | wxPyEndAllowThreads(__tstate); | |
34108 | if (PyErr_Occurred()) SWIG_fail; | |
34109 | } | |
34110 | Py_INCREF(Py_None); resultobj = Py_None; | |
34111 | return resultobj; | |
34112 | fail: | |
34113 | return NULL; | |
34114 | } | |
34115 | ||
34116 | ||
34117 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34118 | PyObject *resultobj; | |
34119 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34120 | PyObject *arg2 = (PyObject *) 0 ; | |
34121 | PyObject * obj0 = 0 ; | |
34122 | PyObject * obj1 = 0 ; | |
34123 | char *kwnames[] = { | |
34124 | (char *) "self",(char *) "item", NULL | |
34125 | }; | |
34126 | ||
34127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
34128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34129 | arg2 = obj1; | |
34130 | { | |
34131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34132 | wxSizer_Hide(arg1,arg2); | |
34133 | ||
34134 | wxPyEndAllowThreads(__tstate); | |
34135 | if (PyErr_Occurred()) SWIG_fail; | |
34136 | } | |
34137 | Py_INCREF(Py_None); resultobj = Py_None; | |
34138 | return resultobj; | |
34139 | fail: | |
34140 | return NULL; | |
34141 | } | |
34142 | ||
34143 | ||
34144 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34145 | PyObject *resultobj; | |
34146 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34147 | PyObject *arg2 = (PyObject *) 0 ; | |
34148 | bool result; | |
34149 | PyObject * obj0 = 0 ; | |
34150 | PyObject * obj1 = 0 ; | |
34151 | char *kwnames[] = { | |
34152 | (char *) "self",(char *) "item", NULL | |
34153 | }; | |
34154 | ||
34155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
34156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34157 | arg2 = obj1; | |
34158 | { | |
34159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34160 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
34161 | ||
34162 | wxPyEndAllowThreads(__tstate); | |
34163 | if (PyErr_Occurred()) SWIG_fail; | |
34164 | } | |
4e760a36 | 34165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
34166 | return resultobj; |
34167 | fail: | |
34168 | return NULL; | |
34169 | } | |
34170 | ||
34171 | ||
34172 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34173 | PyObject *resultobj; | |
34174 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34175 | bool arg2 ; | |
34176 | PyObject * obj0 = 0 ; | |
34177 | PyObject * obj1 = 0 ; | |
34178 | char *kwnames[] = { | |
34179 | (char *) "self",(char *) "show", NULL | |
34180 | }; | |
34181 | ||
34182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
34183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 34184 | { |
8edf1c75 | 34185 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
34186 | if (PyErr_Occurred()) SWIG_fail; |
34187 | } | |
d14a1e28 RD |
34188 | { |
34189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34190 | (arg1)->ShowItems(arg2); | |
34191 | ||
34192 | wxPyEndAllowThreads(__tstate); | |
34193 | if (PyErr_Occurred()) SWIG_fail; | |
34194 | } | |
34195 | Py_INCREF(Py_None); resultobj = Py_None; | |
34196 | return resultobj; | |
34197 | fail: | |
34198 | return NULL; | |
34199 | } | |
34200 | ||
34201 | ||
34202 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
34203 | PyObject *obj; | |
34204 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34205 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
34206 | Py_INCREF(obj); | |
34207 | return Py_BuildValue((char *)""); | |
34208 | } | |
34209 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34210 | PyObject *resultobj; | |
34211 | wxPySizer *result; | |
34212 | char *kwnames[] = { | |
34213 | NULL | |
34214 | }; | |
34215 | ||
34216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
34217 | { | |
34218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34219 | result = (wxPySizer *)new wxPySizer(); | |
34220 | ||
34221 | wxPyEndAllowThreads(__tstate); | |
34222 | if (PyErr_Occurred()) SWIG_fail; | |
34223 | } | |
34224 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPySizer, 1); | |
34225 | return resultobj; | |
34226 | fail: | |
34227 | return NULL; | |
34228 | } | |
34229 | ||
34230 | ||
34231 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34232 | PyObject *resultobj; | |
34233 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
34234 | PyObject *arg2 = (PyObject *) 0 ; | |
34235 | PyObject *arg3 = (PyObject *) 0 ; | |
34236 | PyObject * obj0 = 0 ; | |
34237 | PyObject * obj1 = 0 ; | |
34238 | PyObject * obj2 = 0 ; | |
34239 | char *kwnames[] = { | |
34240 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
34241 | }; | |
34242 | ||
34243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPySizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34245 | arg2 = obj1; | |
34246 | arg3 = obj2; | |
34247 | { | |
34248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34249 | (arg1)->_setCallbackInfo(arg2,arg3); | |
34250 | ||
34251 | wxPyEndAllowThreads(__tstate); | |
34252 | if (PyErr_Occurred()) SWIG_fail; | |
34253 | } | |
34254 | Py_INCREF(Py_None); resultobj = Py_None; | |
34255 | return resultobj; | |
34256 | fail: | |
34257 | return NULL; | |
34258 | } | |
34259 | ||
34260 | ||
34261 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
34262 | PyObject *obj; | |
34263 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34264 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
34265 | Py_INCREF(obj); | |
34266 | return Py_BuildValue((char *)""); | |
34267 | } | |
34268 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34269 | PyObject *resultobj; | |
34270 | int arg1 = (int) wxHORIZONTAL ; | |
34271 | wxBoxSizer *result; | |
8edf1c75 | 34272 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
34273 | char *kwnames[] = { |
34274 | (char *) "orient", NULL | |
34275 | }; | |
34276 | ||
8edf1c75 RD |
34277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; |
34278 | if (obj0) { | |
34279 | { | |
34280 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
34281 | if (PyErr_Occurred()) SWIG_fail; | |
34282 | } | |
34283 | } | |
d14a1e28 RD |
34284 | { |
34285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34286 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
34287 | ||
34288 | wxPyEndAllowThreads(__tstate); | |
34289 | if (PyErr_Occurred()) SWIG_fail; | |
34290 | } | |
34291 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBoxSizer, 1); | |
34292 | return resultobj; | |
34293 | fail: | |
34294 | return NULL; | |
34295 | } | |
34296 | ||
34297 | ||
34298 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34299 | PyObject *resultobj; | |
34300 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34301 | int result; | |
34302 | PyObject * obj0 = 0 ; | |
34303 | char *kwnames[] = { | |
34304 | (char *) "self", NULL | |
34305 | }; | |
34306 | ||
34307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
34308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34309 | { | |
34310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34311 | result = (int)(arg1)->GetOrientation(); | |
34312 | ||
34313 | wxPyEndAllowThreads(__tstate); | |
34314 | if (PyErr_Occurred()) SWIG_fail; | |
34315 | } | |
8edf1c75 | 34316 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34317 | return resultobj; |
34318 | fail: | |
34319 | return NULL; | |
34320 | } | |
34321 | ||
34322 | ||
34323 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34324 | PyObject *resultobj; | |
34325 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34326 | int arg2 ; | |
34327 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34328 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34329 | char *kwnames[] = { |
34330 | (char *) "self",(char *) "orient", NULL | |
34331 | }; | |
34332 | ||
8edf1c75 | 34333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
34335 | { |
34336 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34337 | if (PyErr_Occurred()) SWIG_fail; | |
34338 | } | |
d14a1e28 RD |
34339 | { |
34340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34341 | (arg1)->SetOrientation(arg2); | |
34342 | ||
34343 | wxPyEndAllowThreads(__tstate); | |
34344 | if (PyErr_Occurred()) SWIG_fail; | |
34345 | } | |
34346 | Py_INCREF(Py_None); resultobj = Py_None; | |
34347 | return resultobj; | |
34348 | fail: | |
34349 | return NULL; | |
34350 | } | |
34351 | ||
34352 | ||
34353 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34354 | PyObject *resultobj; | |
34355 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34356 | PyObject * obj0 = 0 ; | |
34357 | char *kwnames[] = { | |
34358 | (char *) "self", NULL | |
34359 | }; | |
34360 | ||
34361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34363 | { | |
34364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34365 | (arg1)->RecalcSizes(); | |
34366 | ||
34367 | wxPyEndAllowThreads(__tstate); | |
34368 | if (PyErr_Occurred()) SWIG_fail; | |
34369 | } | |
34370 | Py_INCREF(Py_None); resultobj = Py_None; | |
34371 | return resultobj; | |
34372 | fail: | |
34373 | return NULL; | |
34374 | } | |
34375 | ||
34376 | ||
34377 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34378 | PyObject *resultobj; | |
34379 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34380 | wxSize result; | |
34381 | PyObject * obj0 = 0 ; | |
34382 | char *kwnames[] = { | |
34383 | (char *) "self", NULL | |
34384 | }; | |
34385 | ||
34386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34388 | { | |
34389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34390 | result = (arg1)->CalcMin(); | |
34391 | ||
34392 | wxPyEndAllowThreads(__tstate); | |
34393 | if (PyErr_Occurred()) SWIG_fail; | |
34394 | } | |
34395 | { | |
34396 | wxSize * resultptr; | |
34397 | resultptr = new wxSize((wxSize &) result); | |
34398 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34399 | } | |
34400 | return resultobj; | |
34401 | fail: | |
34402 | return NULL; | |
34403 | } | |
34404 | ||
34405 | ||
34406 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
34407 | PyObject *obj; | |
34408 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34409 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
34410 | Py_INCREF(obj); | |
34411 | return Py_BuildValue((char *)""); | |
34412 | } | |
34413 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34414 | PyObject *resultobj; | |
34415 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
34416 | int arg2 = (int) wxHORIZONTAL ; | |
34417 | wxStaticBoxSizer *result; | |
34418 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34419 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34420 | char *kwnames[] = { |
34421 | (char *) "box",(char *) "orient", NULL | |
34422 | }; | |
34423 | ||
8edf1c75 | 34424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
34426 | if (obj1) { |
34427 | { | |
34428 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34429 | if (PyErr_Occurred()) SWIG_fail; | |
34430 | } | |
34431 | } | |
d14a1e28 RD |
34432 | { |
34433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34434 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
34435 | ||
34436 | wxPyEndAllowThreads(__tstate); | |
34437 | if (PyErr_Occurred()) SWIG_fail; | |
34438 | } | |
34439 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBoxSizer, 1); | |
34440 | return resultobj; | |
34441 | fail: | |
34442 | return NULL; | |
34443 | } | |
34444 | ||
34445 | ||
34446 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34447 | PyObject *resultobj; | |
34448 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34449 | wxStaticBox *result; | |
34450 | PyObject * obj0 = 0 ; | |
34451 | char *kwnames[] = { | |
34452 | (char *) "self", NULL | |
34453 | }; | |
34454 | ||
34455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
34456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34457 | { | |
34458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34459 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
34460 | ||
34461 | wxPyEndAllowThreads(__tstate); | |
34462 | if (PyErr_Occurred()) SWIG_fail; | |
34463 | } | |
34464 | { | |
34465 | resultobj = wxPyMake_wxObject(result); | |
34466 | } | |
34467 | return resultobj; | |
34468 | fail: | |
34469 | return NULL; | |
34470 | } | |
34471 | ||
34472 | ||
34473 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34474 | PyObject *resultobj; | |
34475 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34476 | PyObject * obj0 = 0 ; | |
34477 | char *kwnames[] = { | |
34478 | (char *) "self", NULL | |
34479 | }; | |
34480 | ||
34481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34483 | { | |
34484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34485 | (arg1)->RecalcSizes(); | |
34486 | ||
34487 | wxPyEndAllowThreads(__tstate); | |
34488 | if (PyErr_Occurred()) SWIG_fail; | |
34489 | } | |
34490 | Py_INCREF(Py_None); resultobj = Py_None; | |
34491 | return resultobj; | |
34492 | fail: | |
34493 | return NULL; | |
34494 | } | |
34495 | ||
34496 | ||
34497 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34498 | PyObject *resultobj; | |
34499 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34500 | wxSize result; | |
34501 | PyObject * obj0 = 0 ; | |
34502 | char *kwnames[] = { | |
34503 | (char *) "self", NULL | |
34504 | }; | |
34505 | ||
34506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34508 | { | |
34509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34510 | result = (arg1)->CalcMin(); | |
34511 | ||
34512 | wxPyEndAllowThreads(__tstate); | |
34513 | if (PyErr_Occurred()) SWIG_fail; | |
34514 | } | |
34515 | { | |
34516 | wxSize * resultptr; | |
34517 | resultptr = new wxSize((wxSize &) result); | |
34518 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34519 | } | |
34520 | return resultobj; | |
34521 | fail: | |
34522 | return NULL; | |
34523 | } | |
34524 | ||
34525 | ||
34526 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
34527 | PyObject *obj; | |
34528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34529 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
34530 | Py_INCREF(obj); | |
34531 | return Py_BuildValue((char *)""); | |
34532 | } | |
34533 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34534 | PyObject *resultobj; | |
34535 | int arg1 = (int) 1 ; | |
34536 | int arg2 = (int) 0 ; | |
34537 | int arg3 = (int) 0 ; | |
34538 | int arg4 = (int) 0 ; | |
34539 | wxGridSizer *result; | |
8edf1c75 RD |
34540 | PyObject * obj0 = 0 ; |
34541 | PyObject * obj1 = 0 ; | |
34542 | PyObject * obj2 = 0 ; | |
34543 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
34544 | char *kwnames[] = { |
34545 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
34546 | }; | |
34547 | ||
8edf1c75 RD |
34548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
34549 | if (obj0) { | |
34550 | { | |
34551 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
34552 | if (PyErr_Occurred()) SWIG_fail; | |
34553 | } | |
34554 | } | |
34555 | if (obj1) { | |
34556 | { | |
34557 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34558 | if (PyErr_Occurred()) SWIG_fail; | |
34559 | } | |
34560 | } | |
34561 | if (obj2) { | |
34562 | { | |
34563 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
34564 | if (PyErr_Occurred()) SWIG_fail; | |
34565 | } | |
34566 | } | |
34567 | if (obj3) { | |
34568 | { | |
34569 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
34570 | if (PyErr_Occurred()) SWIG_fail; | |
34571 | } | |
34572 | } | |
d14a1e28 RD |
34573 | { |
34574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34575 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
34576 | ||
34577 | wxPyEndAllowThreads(__tstate); | |
34578 | if (PyErr_Occurred()) SWIG_fail; | |
34579 | } | |
34580 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizer, 1); | |
34581 | return resultobj; | |
34582 | fail: | |
34583 | return NULL; | |
34584 | } | |
34585 | ||
34586 | ||
34587 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34588 | PyObject *resultobj; | |
34589 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34590 | PyObject * obj0 = 0 ; | |
34591 | char *kwnames[] = { | |
34592 | (char *) "self", NULL | |
34593 | }; | |
34594 | ||
34595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34597 | { | |
34598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34599 | (arg1)->RecalcSizes(); | |
34600 | ||
34601 | wxPyEndAllowThreads(__tstate); | |
34602 | if (PyErr_Occurred()) SWIG_fail; | |
34603 | } | |
34604 | Py_INCREF(Py_None); resultobj = Py_None; | |
34605 | return resultobj; | |
34606 | fail: | |
34607 | return NULL; | |
34608 | } | |
34609 | ||
34610 | ||
34611 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34612 | PyObject *resultobj; | |
34613 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34614 | wxSize result; | |
34615 | PyObject * obj0 = 0 ; | |
34616 | char *kwnames[] = { | |
34617 | (char *) "self", NULL | |
34618 | }; | |
34619 | ||
34620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34622 | { | |
34623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34624 | result = (arg1)->CalcMin(); | |
34625 | ||
34626 | wxPyEndAllowThreads(__tstate); | |
34627 | if (PyErr_Occurred()) SWIG_fail; | |
34628 | } | |
34629 | { | |
34630 | wxSize * resultptr; | |
34631 | resultptr = new wxSize((wxSize &) result); | |
34632 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34633 | } | |
34634 | return resultobj; | |
34635 | fail: | |
34636 | return NULL; | |
34637 | } | |
34638 | ||
34639 | ||
34640 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34641 | PyObject *resultobj; | |
34642 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34643 | int arg2 ; | |
34644 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34645 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34646 | char *kwnames[] = { |
34647 | (char *) "self",(char *) "cols", NULL | |
34648 | }; | |
34649 | ||
8edf1c75 | 34650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 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)->SetCols(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_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34671 | PyObject *resultobj; | |
34672 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34673 | int arg2 ; | |
34674 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34675 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34676 | char *kwnames[] = { |
34677 | (char *) "self",(char *) "rows", NULL | |
34678 | }; | |
34679 | ||
8edf1c75 | 34680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
34682 | { |
34683 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34684 | if (PyErr_Occurred()) SWIG_fail; | |
34685 | } | |
d14a1e28 RD |
34686 | { |
34687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34688 | (arg1)->SetRows(arg2); | |
34689 | ||
34690 | wxPyEndAllowThreads(__tstate); | |
34691 | if (PyErr_Occurred()) SWIG_fail; | |
34692 | } | |
34693 | Py_INCREF(Py_None); resultobj = Py_None; | |
34694 | return resultobj; | |
34695 | fail: | |
34696 | return NULL; | |
34697 | } | |
34698 | ||
34699 | ||
34700 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34701 | PyObject *resultobj; | |
34702 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34703 | int arg2 ; | |
34704 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34705 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34706 | char *kwnames[] = { |
34707 | (char *) "self",(char *) "gap", NULL | |
34708 | }; | |
34709 | ||
8edf1c75 | 34710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
34712 | { |
34713 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34714 | if (PyErr_Occurred()) SWIG_fail; | |
34715 | } | |
d14a1e28 RD |
34716 | { |
34717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34718 | (arg1)->SetVGap(arg2); | |
34719 | ||
34720 | wxPyEndAllowThreads(__tstate); | |
34721 | if (PyErr_Occurred()) SWIG_fail; | |
34722 | } | |
34723 | Py_INCREF(Py_None); resultobj = Py_None; | |
34724 | return resultobj; | |
34725 | fail: | |
34726 | return NULL; | |
34727 | } | |
34728 | ||
34729 | ||
34730 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34731 | PyObject *resultobj; | |
34732 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34733 | int arg2 ; | |
34734 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34735 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34736 | char *kwnames[] = { |
34737 | (char *) "self",(char *) "gap", NULL | |
34738 | }; | |
34739 | ||
8edf1c75 | 34740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
34742 | { |
34743 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34744 | if (PyErr_Occurred()) SWIG_fail; | |
34745 | } | |
d14a1e28 RD |
34746 | { |
34747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34748 | (arg1)->SetHGap(arg2); | |
34749 | ||
34750 | wxPyEndAllowThreads(__tstate); | |
34751 | if (PyErr_Occurred()) SWIG_fail; | |
34752 | } | |
34753 | Py_INCREF(Py_None); resultobj = Py_None; | |
34754 | return resultobj; | |
34755 | fail: | |
34756 | return NULL; | |
34757 | } | |
34758 | ||
34759 | ||
34760 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34761 | PyObject *resultobj; | |
34762 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34763 | int result; | |
34764 | PyObject * obj0 = 0 ; | |
34765 | char *kwnames[] = { | |
34766 | (char *) "self", NULL | |
34767 | }; | |
34768 | ||
34769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
34770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34771 | { | |
34772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34773 | result = (int)(arg1)->GetCols(); | |
34774 | ||
34775 | wxPyEndAllowThreads(__tstate); | |
34776 | if (PyErr_Occurred()) SWIG_fail; | |
34777 | } | |
8edf1c75 | 34778 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34779 | return resultobj; |
34780 | fail: | |
34781 | return NULL; | |
34782 | } | |
34783 | ||
34784 | ||
34785 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34786 | PyObject *resultobj; | |
34787 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34788 | int result; | |
34789 | PyObject * obj0 = 0 ; | |
34790 | char *kwnames[] = { | |
34791 | (char *) "self", NULL | |
34792 | }; | |
34793 | ||
34794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
34795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34796 | { | |
34797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34798 | result = (int)(arg1)->GetRows(); | |
34799 | ||
34800 | wxPyEndAllowThreads(__tstate); | |
34801 | if (PyErr_Occurred()) SWIG_fail; | |
34802 | } | |
8edf1c75 | 34803 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34804 | return resultobj; |
34805 | fail: | |
34806 | return NULL; | |
34807 | } | |
34808 | ||
34809 | ||
34810 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34811 | PyObject *resultobj; | |
34812 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34813 | int result; | |
34814 | PyObject * obj0 = 0 ; | |
34815 | char *kwnames[] = { | |
34816 | (char *) "self", NULL | |
34817 | }; | |
34818 | ||
34819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
34820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34821 | { | |
34822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34823 | result = (int)(arg1)->GetVGap(); | |
34824 | ||
34825 | wxPyEndAllowThreads(__tstate); | |
34826 | if (PyErr_Occurred()) SWIG_fail; | |
34827 | } | |
8edf1c75 | 34828 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34829 | return resultobj; |
34830 | fail: | |
34831 | return NULL; | |
34832 | } | |
34833 | ||
34834 | ||
34835 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34836 | PyObject *resultobj; | |
34837 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34838 | int result; | |
34839 | PyObject * obj0 = 0 ; | |
34840 | char *kwnames[] = { | |
34841 | (char *) "self", NULL | |
34842 | }; | |
34843 | ||
34844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
34845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34846 | { | |
34847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34848 | result = (int)(arg1)->GetHGap(); | |
34849 | ||
34850 | wxPyEndAllowThreads(__tstate); | |
34851 | if (PyErr_Occurred()) SWIG_fail; | |
34852 | } | |
8edf1c75 | 34853 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34854 | return resultobj; |
34855 | fail: | |
34856 | return NULL; | |
34857 | } | |
34858 | ||
34859 | ||
34860 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
34861 | PyObject *obj; | |
34862 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34863 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
34864 | Py_INCREF(obj); | |
34865 | return Py_BuildValue((char *)""); | |
34866 | } | |
34867 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34868 | PyObject *resultobj; | |
34869 | int arg1 = (int) 1 ; | |
34870 | int arg2 = (int) 0 ; | |
34871 | int arg3 = (int) 0 ; | |
34872 | int arg4 = (int) 0 ; | |
34873 | wxFlexGridSizer *result; | |
8edf1c75 RD |
34874 | PyObject * obj0 = 0 ; |
34875 | PyObject * obj1 = 0 ; | |
34876 | PyObject * obj2 = 0 ; | |
34877 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
34878 | char *kwnames[] = { |
34879 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
34880 | }; | |
34881 | ||
8edf1c75 RD |
34882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
34883 | if (obj0) { | |
34884 | { | |
34885 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
34886 | if (PyErr_Occurred()) SWIG_fail; | |
34887 | } | |
34888 | } | |
34889 | if (obj1) { | |
34890 | { | |
34891 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34892 | if (PyErr_Occurred()) SWIG_fail; | |
34893 | } | |
34894 | } | |
34895 | if (obj2) { | |
34896 | { | |
34897 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
34898 | if (PyErr_Occurred()) SWIG_fail; | |
34899 | } | |
34900 | } | |
34901 | if (obj3) { | |
34902 | { | |
34903 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
34904 | if (PyErr_Occurred()) SWIG_fail; | |
34905 | } | |
34906 | } | |
d14a1e28 RD |
34907 | { |
34908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34909 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
34910 | ||
34911 | wxPyEndAllowThreads(__tstate); | |
34912 | if (PyErr_Occurred()) SWIG_fail; | |
34913 | } | |
34914 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFlexGridSizer, 1); | |
34915 | return resultobj; | |
34916 | fail: | |
34917 | return NULL; | |
34918 | } | |
34919 | ||
34920 | ||
34921 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34922 | PyObject *resultobj; | |
34923 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34924 | PyObject * obj0 = 0 ; | |
34925 | char *kwnames[] = { | |
34926 | (char *) "self", NULL | |
34927 | }; | |
34928 | ||
34929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34931 | { | |
34932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34933 | (arg1)->RecalcSizes(); | |
34934 | ||
34935 | wxPyEndAllowThreads(__tstate); | |
34936 | if (PyErr_Occurred()) SWIG_fail; | |
34937 | } | |
34938 | Py_INCREF(Py_None); resultobj = Py_None; | |
34939 | return resultobj; | |
34940 | fail: | |
34941 | return NULL; | |
34942 | } | |
34943 | ||
34944 | ||
34945 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34946 | PyObject *resultobj; | |
34947 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34948 | wxSize result; | |
34949 | PyObject * obj0 = 0 ; | |
34950 | char *kwnames[] = { | |
34951 | (char *) "self", NULL | |
34952 | }; | |
34953 | ||
34954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34956 | { | |
34957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34958 | result = (arg1)->CalcMin(); | |
34959 | ||
34960 | wxPyEndAllowThreads(__tstate); | |
34961 | if (PyErr_Occurred()) SWIG_fail; | |
34962 | } | |
34963 | { | |
34964 | wxSize * resultptr; | |
34965 | resultptr = new wxSize((wxSize &) result); | |
34966 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34967 | } | |
34968 | return resultobj; | |
34969 | fail: | |
34970 | return NULL; | |
34971 | } | |
34972 | ||
34973 | ||
34974 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34975 | PyObject *resultobj; | |
34976 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34977 | size_t arg2 ; | |
34978 | int arg3 = (int) 0 ; | |
34979 | PyObject * obj0 = 0 ; | |
34980 | PyObject * obj1 = 0 ; | |
8edf1c75 | 34981 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
34982 | char *kwnames[] = { |
34983 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
34984 | }; | |
34985 | ||
8edf1c75 | 34986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 34987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 34988 | { |
8edf1c75 | 34989 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
34990 | if (PyErr_Occurred()) SWIG_fail; |
34991 | } | |
8edf1c75 RD |
34992 | if (obj2) { |
34993 | { | |
34994 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
34995 | if (PyErr_Occurred()) SWIG_fail; | |
34996 | } | |
34997 | } | |
d14a1e28 RD |
34998 | { |
34999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35000 | (arg1)->AddGrowableRow(arg2,arg3); | |
35001 | ||
35002 | wxPyEndAllowThreads(__tstate); | |
35003 | if (PyErr_Occurred()) SWIG_fail; | |
35004 | } | |
35005 | Py_INCREF(Py_None); resultobj = Py_None; | |
35006 | return resultobj; | |
35007 | fail: | |
35008 | return NULL; | |
35009 | } | |
35010 | ||
35011 | ||
35012 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35013 | PyObject *resultobj; | |
35014 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35015 | size_t arg2 ; | |
35016 | PyObject * obj0 = 0 ; | |
35017 | PyObject * obj1 = 0 ; | |
35018 | char *kwnames[] = { | |
35019 | (char *) "self",(char *) "idx", NULL | |
35020 | }; | |
35021 | ||
35022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
35023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 35024 | { |
8edf1c75 | 35025 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
35026 | if (PyErr_Occurred()) SWIG_fail; |
35027 | } | |
d14a1e28 RD |
35028 | { |
35029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35030 | (arg1)->RemoveGrowableRow(arg2); | |
35031 | ||
35032 | wxPyEndAllowThreads(__tstate); | |
35033 | if (PyErr_Occurred()) SWIG_fail; | |
35034 | } | |
35035 | Py_INCREF(Py_None); resultobj = Py_None; | |
35036 | return resultobj; | |
35037 | fail: | |
35038 | return NULL; | |
35039 | } | |
35040 | ||
35041 | ||
35042 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35043 | PyObject *resultobj; | |
35044 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35045 | size_t arg2 ; | |
35046 | int arg3 = (int) 0 ; | |
35047 | PyObject * obj0 = 0 ; | |
35048 | PyObject * obj1 = 0 ; | |
8edf1c75 | 35049 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
35050 | char *kwnames[] = { |
35051 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
35052 | }; | |
35053 | ||
8edf1c75 | 35054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 35055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 35056 | { |
8edf1c75 | 35057 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
35058 | if (PyErr_Occurred()) SWIG_fail; |
35059 | } | |
8edf1c75 RD |
35060 | if (obj2) { |
35061 | { | |
35062 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
35063 | if (PyErr_Occurred()) SWIG_fail; | |
35064 | } | |
35065 | } | |
d14a1e28 RD |
35066 | { |
35067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35068 | (arg1)->AddGrowableCol(arg2,arg3); | |
35069 | ||
35070 | wxPyEndAllowThreads(__tstate); | |
35071 | if (PyErr_Occurred()) SWIG_fail; | |
35072 | } | |
35073 | Py_INCREF(Py_None); resultobj = Py_None; | |
35074 | return resultobj; | |
35075 | fail: | |
35076 | return NULL; | |
35077 | } | |
35078 | ||
35079 | ||
35080 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35081 | PyObject *resultobj; | |
35082 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35083 | size_t arg2 ; | |
35084 | PyObject * obj0 = 0 ; | |
35085 | PyObject * obj1 = 0 ; | |
35086 | char *kwnames[] = { | |
35087 | (char *) "self",(char *) "idx", NULL | |
35088 | }; | |
35089 | ||
35090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
35091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 35092 | { |
8edf1c75 | 35093 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
35094 | if (PyErr_Occurred()) SWIG_fail; |
35095 | } | |
d14a1e28 RD |
35096 | { |
35097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35098 | (arg1)->RemoveGrowableCol(arg2); | |
35099 | ||
35100 | wxPyEndAllowThreads(__tstate); | |
35101 | if (PyErr_Occurred()) SWIG_fail; | |
35102 | } | |
35103 | Py_INCREF(Py_None); resultobj = Py_None; | |
35104 | return resultobj; | |
35105 | fail: | |
35106 | return NULL; | |
35107 | } | |
35108 | ||
35109 | ||
35110 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35111 | PyObject *resultobj; | |
35112 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35113 | int arg2 ; | |
35114 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35115 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35116 | char *kwnames[] = { |
35117 | (char *) "self",(char *) "direction", NULL | |
35118 | }; | |
35119 | ||
8edf1c75 | 35120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35122 | { |
35123 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35124 | if (PyErr_Occurred()) SWIG_fail; | |
35125 | } | |
d14a1e28 RD |
35126 | { |
35127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35128 | (arg1)->SetFlexibleDirection(arg2); | |
35129 | ||
35130 | wxPyEndAllowThreads(__tstate); | |
35131 | if (PyErr_Occurred()) SWIG_fail; | |
35132 | } | |
35133 | Py_INCREF(Py_None); resultobj = Py_None; | |
35134 | return resultobj; | |
35135 | fail: | |
35136 | return NULL; | |
35137 | } | |
35138 | ||
35139 | ||
35140 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35141 | PyObject *resultobj; | |
35142 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35143 | int result; | |
35144 | PyObject * obj0 = 0 ; | |
35145 | char *kwnames[] = { | |
35146 | (char *) "self", NULL | |
35147 | }; | |
35148 | ||
35149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
35150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35151 | { | |
35152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35153 | result = (int)(arg1)->GetFlexibleDirection(); | |
35154 | ||
35155 | wxPyEndAllowThreads(__tstate); | |
35156 | if (PyErr_Occurred()) SWIG_fail; | |
35157 | } | |
8edf1c75 | 35158 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35159 | return resultobj; |
35160 | fail: | |
35161 | return NULL; | |
35162 | } | |
35163 | ||
35164 | ||
35165 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35166 | PyObject *resultobj; | |
35167 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35168 | int arg2 ; | |
35169 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35170 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35171 | char *kwnames[] = { |
35172 | (char *) "self",(char *) "mode", NULL | |
35173 | }; | |
35174 | ||
8edf1c75 | 35175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35177 | { |
35178 | arg2 = (wxFlexSizerGrowMode) SWIG_PyObj_AsInt(obj1); | |
35179 | if (PyErr_Occurred()) SWIG_fail; | |
35180 | } | |
d14a1e28 RD |
35181 | { |
35182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35183 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
35184 | ||
35185 | wxPyEndAllowThreads(__tstate); | |
35186 | if (PyErr_Occurred()) SWIG_fail; | |
35187 | } | |
35188 | Py_INCREF(Py_None); resultobj = Py_None; | |
35189 | return resultobj; | |
35190 | fail: | |
35191 | return NULL; | |
35192 | } | |
35193 | ||
35194 | ||
35195 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35196 | PyObject *resultobj; | |
35197 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35198 | int result; | |
35199 | PyObject * obj0 = 0 ; | |
35200 | char *kwnames[] = { | |
35201 | (char *) "self", NULL | |
35202 | }; | |
35203 | ||
35204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
35205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35206 | { | |
35207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35208 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
35209 | ||
35210 | wxPyEndAllowThreads(__tstate); | |
35211 | if (PyErr_Occurred()) SWIG_fail; | |
35212 | } | |
8edf1c75 | 35213 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35214 | return resultobj; |
35215 | fail: | |
35216 | return NULL; | |
35217 | } | |
35218 | ||
35219 | ||
423f194a RD |
35220 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { |
35221 | PyObject *resultobj; | |
35222 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35223 | wxArrayInt *result; | |
35224 | PyObject * obj0 = 0 ; | |
35225 | char *kwnames[] = { | |
35226 | (char *) "self", NULL | |
35227 | }; | |
35228 | ||
35229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
35230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35231 | { | |
35232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35233 | { | |
35234 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
35235 | result = (wxArrayInt *) &_result_ref; | |
35236 | } | |
35237 | ||
35238 | wxPyEndAllowThreads(__tstate); | |
35239 | if (PyErr_Occurred()) SWIG_fail; | |
35240 | } | |
35241 | { | |
35242 | resultobj = PyList_New(0); | |
35243 | size_t idx; | |
35244 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
35245 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
35246 | PyList_Append(resultobj, val); | |
35247 | Py_DECREF(val); | |
35248 | } | |
35249 | } | |
35250 | return resultobj; | |
35251 | fail: | |
35252 | return NULL; | |
35253 | } | |
35254 | ||
35255 | ||
35256 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35257 | PyObject *resultobj; | |
35258 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35259 | wxArrayInt *result; | |
35260 | PyObject * obj0 = 0 ; | |
35261 | char *kwnames[] = { | |
35262 | (char *) "self", NULL | |
35263 | }; | |
35264 | ||
35265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
35266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35267 | { | |
35268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35269 | { | |
35270 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
35271 | result = (wxArrayInt *) &_result_ref; | |
35272 | } | |
35273 | ||
35274 | wxPyEndAllowThreads(__tstate); | |
35275 | if (PyErr_Occurred()) SWIG_fail; | |
35276 | } | |
35277 | { | |
35278 | resultobj = PyList_New(0); | |
35279 | size_t idx; | |
35280 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
35281 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
35282 | PyList_Append(resultobj, val); | |
35283 | Py_DECREF(val); | |
35284 | } | |
35285 | } | |
35286 | return resultobj; | |
35287 | fail: | |
35288 | return NULL; | |
35289 | } | |
35290 | ||
35291 | ||
d14a1e28 RD |
35292 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { |
35293 | PyObject *obj; | |
35294 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35295 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
35296 | Py_INCREF(obj); | |
35297 | return Py_BuildValue((char *)""); | |
35298 | } | |
35299 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35300 | PyObject *resultobj; | |
35301 | int arg1 = (int) 0 ; | |
35302 | int arg2 = (int) 0 ; | |
35303 | wxGBPosition *result; | |
8edf1c75 RD |
35304 | PyObject * obj0 = 0 ; |
35305 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
35306 | char *kwnames[] = { |
35307 | (char *) "row",(char *) "col", NULL | |
35308 | }; | |
35309 | ||
8edf1c75 RD |
35310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; |
35311 | if (obj0) { | |
35312 | { | |
35313 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
35314 | if (PyErr_Occurred()) SWIG_fail; | |
35315 | } | |
35316 | } | |
35317 | if (obj1) { | |
35318 | { | |
35319 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35320 | if (PyErr_Occurred()) SWIG_fail; | |
35321 | } | |
35322 | } | |
d14a1e28 RD |
35323 | { |
35324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35325 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
35326 | ||
35327 | wxPyEndAllowThreads(__tstate); | |
35328 | if (PyErr_Occurred()) SWIG_fail; | |
35329 | } | |
35330 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBPosition, 1); | |
35331 | return resultobj; | |
35332 | fail: | |
35333 | return NULL; | |
35334 | } | |
35335 | ||
35336 | ||
35337 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35338 | PyObject *resultobj; | |
35339 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35340 | int result; | |
35341 | PyObject * obj0 = 0 ; | |
35342 | char *kwnames[] = { | |
35343 | (char *) "self", NULL | |
35344 | }; | |
35345 | ||
35346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
35347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35348 | { | |
35349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35350 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
35351 | ||
35352 | wxPyEndAllowThreads(__tstate); | |
35353 | if (PyErr_Occurred()) SWIG_fail; | |
35354 | } | |
8edf1c75 | 35355 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35356 | return resultobj; |
35357 | fail: | |
35358 | return NULL; | |
35359 | } | |
35360 | ||
35361 | ||
35362 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35363 | PyObject *resultobj; | |
35364 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35365 | int result; | |
35366 | PyObject * obj0 = 0 ; | |
35367 | char *kwnames[] = { | |
35368 | (char *) "self", NULL | |
35369 | }; | |
35370 | ||
35371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
35372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35373 | { | |
35374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35375 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
35376 | ||
35377 | wxPyEndAllowThreads(__tstate); | |
35378 | if (PyErr_Occurred()) SWIG_fail; | |
35379 | } | |
8edf1c75 | 35380 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35381 | return resultobj; |
35382 | fail: | |
35383 | return NULL; | |
35384 | } | |
35385 | ||
35386 | ||
35387 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35388 | PyObject *resultobj; | |
35389 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35390 | int arg2 ; | |
35391 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35392 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35393 | char *kwnames[] = { |
35394 | (char *) "self",(char *) "row", NULL | |
35395 | }; | |
35396 | ||
8edf1c75 | 35397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35399 | { |
35400 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35401 | if (PyErr_Occurred()) SWIG_fail; | |
35402 | } | |
d14a1e28 RD |
35403 | { |
35404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35405 | (arg1)->SetRow(arg2); | |
35406 | ||
35407 | wxPyEndAllowThreads(__tstate); | |
35408 | if (PyErr_Occurred()) SWIG_fail; | |
35409 | } | |
35410 | Py_INCREF(Py_None); resultobj = Py_None; | |
35411 | return resultobj; | |
35412 | fail: | |
35413 | return NULL; | |
35414 | } | |
35415 | ||
35416 | ||
35417 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35418 | PyObject *resultobj; | |
35419 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35420 | int arg2 ; | |
35421 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35422 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35423 | char *kwnames[] = { |
35424 | (char *) "self",(char *) "col", NULL | |
35425 | }; | |
35426 | ||
8edf1c75 | 35427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35429 | { |
35430 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35431 | if (PyErr_Occurred()) SWIG_fail; | |
35432 | } | |
d14a1e28 RD |
35433 | { |
35434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35435 | (arg1)->SetCol(arg2); | |
35436 | ||
35437 | wxPyEndAllowThreads(__tstate); | |
35438 | if (PyErr_Occurred()) SWIG_fail; | |
35439 | } | |
35440 | Py_INCREF(Py_None); resultobj = Py_None; | |
35441 | return resultobj; | |
35442 | fail: | |
35443 | return NULL; | |
35444 | } | |
35445 | ||
35446 | ||
35447 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35448 | PyObject *resultobj; | |
35449 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
328fcd84 | 35450 | wxGBPosition *arg2 = (wxGBPosition *) 0 ; |
d14a1e28 | 35451 | bool result; |
d14a1e28 RD |
35452 | PyObject * obj0 = 0 ; |
35453 | PyObject * obj1 = 0 ; | |
35454 | char *kwnames[] = { | |
328fcd84 | 35455 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
35456 | }; |
35457 | ||
35458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
35459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
328fcd84 | 35460 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
35461 | { |
35462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 35463 | result = (bool)wxGBPosition___eq__(arg1,(wxGBPosition const *)arg2); |
d14a1e28 RD |
35464 | |
35465 | wxPyEndAllowThreads(__tstate); | |
35466 | if (PyErr_Occurred()) SWIG_fail; | |
35467 | } | |
4e760a36 | 35468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35469 | return resultobj; |
35470 | fail: | |
35471 | return NULL; | |
35472 | } | |
35473 | ||
35474 | ||
35475 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35476 | PyObject *resultobj; | |
35477 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
328fcd84 | 35478 | wxGBPosition *arg2 = (wxGBPosition *) 0 ; |
d14a1e28 | 35479 | bool result; |
d14a1e28 RD |
35480 | PyObject * obj0 = 0 ; |
35481 | PyObject * obj1 = 0 ; | |
35482 | char *kwnames[] = { | |
328fcd84 | 35483 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
35484 | }; |
35485 | ||
35486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
35487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
328fcd84 | 35488 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
35489 | { |
35490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 35491 | result = (bool)wxGBPosition___ne__(arg1,(wxGBPosition const *)arg2); |
d14a1e28 RD |
35492 | |
35493 | wxPyEndAllowThreads(__tstate); | |
35494 | if (PyErr_Occurred()) SWIG_fail; | |
35495 | } | |
4e760a36 | 35496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35497 | return resultobj; |
35498 | fail: | |
35499 | return NULL; | |
35500 | } | |
35501 | ||
35502 | ||
423f194a RD |
35503 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
35504 | PyObject *resultobj; | |
35505 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35506 | int arg2 = (int) 0 ; | |
35507 | int arg3 = (int) 0 ; | |
35508 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
35509 | PyObject * obj1 = 0 ; |
35510 | PyObject * obj2 = 0 ; | |
423f194a RD |
35511 | char *kwnames[] = { |
35512 | (char *) "self",(char *) "row",(char *) "col", NULL | |
35513 | }; | |
35514 | ||
8edf1c75 | 35515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
423f194a | 35516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35517 | if (obj1) { |
35518 | { | |
35519 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35520 | if (PyErr_Occurred()) SWIG_fail; | |
35521 | } | |
35522 | } | |
35523 | if (obj2) { | |
35524 | { | |
35525 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
35526 | if (PyErr_Occurred()) SWIG_fail; | |
35527 | } | |
35528 | } | |
423f194a RD |
35529 | { |
35530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35531 | wxGBPosition_Set(arg1,arg2,arg3); | |
35532 | ||
35533 | wxPyEndAllowThreads(__tstate); | |
35534 | if (PyErr_Occurred()) SWIG_fail; | |
35535 | } | |
35536 | Py_INCREF(Py_None); resultobj = Py_None; | |
35537 | return resultobj; | |
35538 | fail: | |
35539 | return NULL; | |
35540 | } | |
35541 | ||
35542 | ||
35543 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
35544 | PyObject *resultobj; |
35545 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35546 | PyObject *result; | |
35547 | PyObject * obj0 = 0 ; | |
35548 | char *kwnames[] = { | |
35549 | (char *) "self", NULL | |
35550 | }; | |
35551 | ||
423f194a | 35552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
35553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35554 | { | |
35555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 35556 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
35557 | |
35558 | wxPyEndAllowThreads(__tstate); | |
35559 | if (PyErr_Occurred()) SWIG_fail; | |
35560 | } | |
35561 | resultobj = result; | |
35562 | return resultobj; | |
35563 | fail: | |
35564 | return NULL; | |
35565 | } | |
35566 | ||
35567 | ||
35568 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
35569 | PyObject *obj; | |
35570 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35571 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
35572 | Py_INCREF(obj); | |
35573 | return Py_BuildValue((char *)""); | |
35574 | } | |
35575 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35576 | PyObject *resultobj; | |
35577 | int arg1 = (int) 1 ; | |
35578 | int arg2 = (int) 1 ; | |
35579 | wxGBSpan *result; | |
8edf1c75 RD |
35580 | PyObject * obj0 = 0 ; |
35581 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
35582 | char *kwnames[] = { |
35583 | (char *) "rowspan",(char *) "colspan", NULL | |
35584 | }; | |
35585 | ||
8edf1c75 RD |
35586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; |
35587 | if (obj0) { | |
35588 | { | |
35589 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
35590 | if (PyErr_Occurred()) SWIG_fail; | |
35591 | } | |
35592 | } | |
35593 | if (obj1) { | |
35594 | { | |
35595 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35596 | if (PyErr_Occurred()) SWIG_fail; | |
35597 | } | |
35598 | } | |
d14a1e28 RD |
35599 | { |
35600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35601 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
35602 | ||
35603 | wxPyEndAllowThreads(__tstate); | |
35604 | if (PyErr_Occurred()) SWIG_fail; | |
35605 | } | |
35606 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSpan, 1); | |
35607 | return resultobj; | |
35608 | fail: | |
35609 | return NULL; | |
35610 | } | |
35611 | ||
35612 | ||
35613 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35614 | PyObject *resultobj; | |
35615 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35616 | int result; | |
35617 | PyObject * obj0 = 0 ; | |
35618 | char *kwnames[] = { | |
35619 | (char *) "self", NULL | |
35620 | }; | |
35621 | ||
35622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
35623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35624 | { | |
35625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35626 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
35627 | ||
35628 | wxPyEndAllowThreads(__tstate); | |
35629 | if (PyErr_Occurred()) SWIG_fail; | |
35630 | } | |
8edf1c75 | 35631 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35632 | return resultobj; |
35633 | fail: | |
35634 | return NULL; | |
35635 | } | |
35636 | ||
35637 | ||
35638 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35639 | PyObject *resultobj; | |
35640 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35641 | int result; | |
35642 | PyObject * obj0 = 0 ; | |
35643 | char *kwnames[] = { | |
35644 | (char *) "self", NULL | |
35645 | }; | |
35646 | ||
35647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
35648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35649 | { | |
35650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35651 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
35652 | ||
35653 | wxPyEndAllowThreads(__tstate); | |
35654 | if (PyErr_Occurred()) SWIG_fail; | |
35655 | } | |
8edf1c75 | 35656 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35657 | return resultobj; |
35658 | fail: | |
35659 | return NULL; | |
35660 | } | |
35661 | ||
35662 | ||
35663 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35664 | PyObject *resultobj; | |
35665 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35666 | int arg2 ; | |
35667 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35668 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35669 | char *kwnames[] = { |
35670 | (char *) "self",(char *) "rowspan", NULL | |
35671 | }; | |
35672 | ||
8edf1c75 | 35673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35675 | { |
35676 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35677 | if (PyErr_Occurred()) SWIG_fail; | |
35678 | } | |
d14a1e28 RD |
35679 | { |
35680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35681 | (arg1)->SetRowspan(arg2); | |
35682 | ||
35683 | wxPyEndAllowThreads(__tstate); | |
35684 | if (PyErr_Occurred()) SWIG_fail; | |
35685 | } | |
35686 | Py_INCREF(Py_None); resultobj = Py_None; | |
35687 | return resultobj; | |
35688 | fail: | |
35689 | return NULL; | |
35690 | } | |
35691 | ||
35692 | ||
35693 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35694 | PyObject *resultobj; | |
35695 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35696 | int arg2 ; | |
35697 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35698 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35699 | char *kwnames[] = { |
35700 | (char *) "self",(char *) "colspan", NULL | |
35701 | }; | |
35702 | ||
8edf1c75 | 35703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35705 | { |
35706 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35707 | if (PyErr_Occurred()) SWIG_fail; | |
35708 | } | |
d14a1e28 RD |
35709 | { |
35710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35711 | (arg1)->SetColspan(arg2); | |
35712 | ||
35713 | wxPyEndAllowThreads(__tstate); | |
35714 | if (PyErr_Occurred()) SWIG_fail; | |
35715 | } | |
35716 | Py_INCREF(Py_None); resultobj = Py_None; | |
35717 | return resultobj; | |
35718 | fail: | |
35719 | return NULL; | |
35720 | } | |
35721 | ||
35722 | ||
35723 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35724 | PyObject *resultobj; | |
35725 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
328fcd84 | 35726 | wxGBSpan *arg2 = (wxGBSpan *) 0 ; |
d14a1e28 | 35727 | bool result; |
d14a1e28 RD |
35728 | PyObject * obj0 = 0 ; |
35729 | PyObject * obj1 = 0 ; | |
35730 | char *kwnames[] = { | |
328fcd84 | 35731 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
35732 | }; |
35733 | ||
35734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
35735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
328fcd84 | 35736 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
35737 | { |
35738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 35739 | result = (bool)wxGBSpan___eq__(arg1,(wxGBSpan const *)arg2); |
d14a1e28 RD |
35740 | |
35741 | wxPyEndAllowThreads(__tstate); | |
35742 | if (PyErr_Occurred()) SWIG_fail; | |
35743 | } | |
4e760a36 | 35744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35745 | return resultobj; |
35746 | fail: | |
35747 | return NULL; | |
35748 | } | |
35749 | ||
35750 | ||
35751 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35752 | PyObject *resultobj; | |
35753 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
328fcd84 | 35754 | wxGBSpan *arg2 = (wxGBSpan *) 0 ; |
d14a1e28 | 35755 | bool result; |
d14a1e28 RD |
35756 | PyObject * obj0 = 0 ; |
35757 | PyObject * obj1 = 0 ; | |
35758 | char *kwnames[] = { | |
328fcd84 | 35759 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
35760 | }; |
35761 | ||
35762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
35763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
328fcd84 | 35764 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
35765 | { |
35766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 35767 | result = (bool)wxGBSpan___ne__(arg1,(wxGBSpan const *)arg2); |
d14a1e28 RD |
35768 | |
35769 | wxPyEndAllowThreads(__tstate); | |
35770 | if (PyErr_Occurred()) SWIG_fail; | |
35771 | } | |
4e760a36 | 35772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35773 | return resultobj; |
35774 | fail: | |
35775 | return NULL; | |
35776 | } | |
35777 | ||
35778 | ||
423f194a RD |
35779 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
35780 | PyObject *resultobj; | |
35781 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35782 | int arg2 = (int) 1 ; | |
35783 | int arg3 = (int) 1 ; | |
35784 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
35785 | PyObject * obj1 = 0 ; |
35786 | PyObject * obj2 = 0 ; | |
423f194a RD |
35787 | char *kwnames[] = { |
35788 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
35789 | }; | |
35790 | ||
8edf1c75 | 35791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
423f194a | 35792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35793 | if (obj1) { |
35794 | { | |
35795 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35796 | if (PyErr_Occurred()) SWIG_fail; | |
35797 | } | |
35798 | } | |
35799 | if (obj2) { | |
35800 | { | |
35801 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
35802 | if (PyErr_Occurred()) SWIG_fail; | |
35803 | } | |
35804 | } | |
423f194a RD |
35805 | { |
35806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35807 | wxGBSpan_Set(arg1,arg2,arg3); | |
35808 | ||
35809 | wxPyEndAllowThreads(__tstate); | |
35810 | if (PyErr_Occurred()) SWIG_fail; | |
35811 | } | |
35812 | Py_INCREF(Py_None); resultobj = Py_None; | |
35813 | return resultobj; | |
35814 | fail: | |
35815 | return NULL; | |
35816 | } | |
35817 | ||
35818 | ||
35819 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
35820 | PyObject *resultobj; |
35821 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35822 | PyObject *result; | |
35823 | PyObject * obj0 = 0 ; | |
35824 | char *kwnames[] = { | |
35825 | (char *) "self", NULL | |
35826 | }; | |
35827 | ||
423f194a | 35828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
35829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35830 | { | |
35831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 35832 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
35833 | |
35834 | wxPyEndAllowThreads(__tstate); | |
35835 | if (PyErr_Occurred()) SWIG_fail; | |
35836 | } | |
35837 | resultobj = result; | |
35838 | return resultobj; | |
35839 | fail: | |
35840 | return NULL; | |
35841 | } | |
35842 | ||
35843 | ||
35844 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
35845 | PyObject *obj; | |
35846 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35847 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
35848 | Py_INCREF(obj); | |
35849 | return Py_BuildValue((char *)""); | |
35850 | } | |
8edf1c75 | 35851 | static int _wrap_DefaultSpan_set(PyObject *) { |
d14a1e28 RD |
35852 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
35853 | return 1; | |
35854 | } | |
35855 | ||
35856 | ||
35857 | static PyObject *_wrap_DefaultSpan_get() { | |
35858 | PyObject *pyobj; | |
35859 | ||
35860 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSpan, SWIGTYPE_p_wxGBSpan, 0); | |
35861 | return pyobj; | |
35862 | } | |
35863 | ||
35864 | ||
35865 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35866 | PyObject *resultobj; | |
35867 | wxGBSizerItem *result; | |
35868 | char *kwnames[] = { | |
35869 | NULL | |
35870 | }; | |
35871 | ||
35872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
35873 | { | |
35874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35875 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
35876 | ||
35877 | wxPyEndAllowThreads(__tstate); | |
35878 | if (PyErr_Occurred()) SWIG_fail; | |
35879 | } | |
35880 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
35881 | return resultobj; | |
35882 | fail: | |
35883 | return NULL; | |
35884 | } | |
35885 | ||
35886 | ||
35887 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35888 | PyObject *resultobj; | |
35889 | wxWindow *arg1 = (wxWindow *) 0 ; | |
35890 | wxGBPosition *arg2 = 0 ; | |
35891 | wxGBSpan *arg3 = 0 ; | |
35892 | int arg4 ; | |
35893 | int arg5 ; | |
35894 | wxObject *arg6 = (wxObject *) 0 ; | |
35895 | wxGBSizerItem *result; | |
35896 | wxGBPosition temp2 ; | |
35897 | wxGBSpan temp3 ; | |
35898 | PyObject * obj0 = 0 ; | |
35899 | PyObject * obj1 = 0 ; | |
35900 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
35901 | PyObject * obj3 = 0 ; |
35902 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
35903 | PyObject * obj5 = 0 ; |
35904 | char *kwnames[] = { | |
35905 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35906 | }; | |
35907 | ||
8edf1c75 | 35908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
35909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35910 | { | |
35911 | arg2 = &temp2; | |
35912 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
35913 | } | |
35914 | { | |
35915 | arg3 = &temp3; | |
35916 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
35917 | } | |
8edf1c75 RD |
35918 | { |
35919 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
35920 | if (PyErr_Occurred()) SWIG_fail; | |
35921 | } | |
35922 | { | |
35923 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
35924 | if (PyErr_Occurred()) SWIG_fail; | |
35925 | } | |
d14a1e28 RD |
35926 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35927 | { | |
35928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35929 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
35930 | ||
35931 | wxPyEndAllowThreads(__tstate); | |
35932 | if (PyErr_Occurred()) SWIG_fail; | |
35933 | } | |
35934 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
35935 | return resultobj; | |
35936 | fail: | |
35937 | return NULL; | |
35938 | } | |
35939 | ||
35940 | ||
35941 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35942 | PyObject *resultobj; | |
35943 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35944 | wxGBPosition *arg2 = 0 ; | |
35945 | wxGBSpan *arg3 = 0 ; | |
35946 | int arg4 ; | |
35947 | int arg5 ; | |
35948 | wxObject *arg6 = (wxObject *) 0 ; | |
35949 | wxGBSizerItem *result; | |
35950 | wxGBPosition temp2 ; | |
35951 | wxGBSpan temp3 ; | |
35952 | PyObject * obj0 = 0 ; | |
35953 | PyObject * obj1 = 0 ; | |
35954 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
35955 | PyObject * obj3 = 0 ; |
35956 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
35957 | PyObject * obj5 = 0 ; |
35958 | char *kwnames[] = { | |
35959 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35960 | }; | |
35961 | ||
8edf1c75 | 35962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
35963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35964 | { | |
35965 | arg2 = &temp2; | |
35966 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
35967 | } | |
35968 | { | |
35969 | arg3 = &temp3; | |
35970 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
35971 | } | |
8edf1c75 RD |
35972 | { |
35973 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
35974 | if (PyErr_Occurred()) SWIG_fail; | |
35975 | } | |
35976 | { | |
35977 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
35978 | if (PyErr_Occurred()) SWIG_fail; | |
35979 | } | |
d14a1e28 RD |
35980 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35981 | { | |
35982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35983 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
35984 | ||
35985 | wxPyEndAllowThreads(__tstate); | |
35986 | if (PyErr_Occurred()) SWIG_fail; | |
35987 | } | |
35988 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
35989 | return resultobj; | |
35990 | fail: | |
35991 | return NULL; | |
35992 | } | |
35993 | ||
35994 | ||
35995 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35996 | PyObject *resultobj; | |
35997 | int arg1 ; | |
35998 | int arg2 ; | |
35999 | wxGBPosition *arg3 = 0 ; | |
36000 | wxGBSpan *arg4 = 0 ; | |
36001 | int arg5 ; | |
36002 | int arg6 ; | |
36003 | wxObject *arg7 = (wxObject *) 0 ; | |
36004 | wxGBSizerItem *result; | |
36005 | wxGBPosition temp3 ; | |
36006 | wxGBSpan temp4 ; | |
8edf1c75 RD |
36007 | PyObject * obj0 = 0 ; |
36008 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36009 | PyObject * obj2 = 0 ; |
36010 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
36011 | PyObject * obj4 = 0 ; |
36012 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
36013 | PyObject * obj6 = 0 ; |
36014 | char *kwnames[] = { | |
36015 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36016 | }; | |
36017 | ||
8edf1c75 RD |
36018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
36019 | { | |
36020 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
36021 | if (PyErr_Occurred()) SWIG_fail; | |
36022 | } | |
36023 | { | |
36024 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
36025 | if (PyErr_Occurred()) SWIG_fail; | |
36026 | } | |
d14a1e28 RD |
36027 | { |
36028 | arg3 = &temp3; | |
36029 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36030 | } | |
36031 | { | |
36032 | arg4 = &temp4; | |
36033 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
36034 | } | |
8edf1c75 RD |
36035 | { |
36036 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
36037 | if (PyErr_Occurred()) SWIG_fail; | |
36038 | } | |
36039 | { | |
36040 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
36041 | if (PyErr_Occurred()) SWIG_fail; | |
36042 | } | |
d14a1e28 RD |
36043 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
36044 | { | |
36045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36046 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
36047 | ||
36048 | wxPyEndAllowThreads(__tstate); | |
36049 | if (PyErr_Occurred()) SWIG_fail; | |
36050 | } | |
36051 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
36052 | return resultobj; | |
36053 | fail: | |
36054 | return NULL; | |
36055 | } | |
36056 | ||
36057 | ||
36058 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36059 | PyObject *resultobj; | |
36060 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36061 | wxGBPosition result; | |
36062 | PyObject * obj0 = 0 ; | |
36063 | char *kwnames[] = { | |
36064 | (char *) "self", NULL | |
36065 | }; | |
36066 | ||
36067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
36068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36069 | { | |
36070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36071 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
36072 | ||
36073 | wxPyEndAllowThreads(__tstate); | |
36074 | if (PyErr_Occurred()) SWIG_fail; | |
36075 | } | |
36076 | { | |
36077 | wxGBPosition * resultptr; | |
36078 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
36079 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
36080 | } | |
36081 | return resultobj; | |
36082 | fail: | |
36083 | return NULL; | |
36084 | } | |
36085 | ||
36086 | ||
36087 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36088 | PyObject *resultobj; | |
36089 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36090 | wxGBSpan result; | |
36091 | PyObject * obj0 = 0 ; | |
36092 | char *kwnames[] = { | |
36093 | (char *) "self", NULL | |
36094 | }; | |
36095 | ||
36096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
36097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36098 | { | |
36099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36100 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
36101 | ||
36102 | wxPyEndAllowThreads(__tstate); | |
36103 | if (PyErr_Occurred()) SWIG_fail; | |
36104 | } | |
36105 | { | |
36106 | wxGBSpan * resultptr; | |
36107 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
36108 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
36109 | } | |
36110 | return resultobj; | |
36111 | fail: | |
36112 | return NULL; | |
36113 | } | |
36114 | ||
36115 | ||
36116 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36117 | PyObject *resultobj; | |
36118 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36119 | wxGBPosition *arg2 = 0 ; | |
36120 | bool result; | |
36121 | wxGBPosition temp2 ; | |
36122 | PyObject * obj0 = 0 ; | |
36123 | PyObject * obj1 = 0 ; | |
36124 | char *kwnames[] = { | |
36125 | (char *) "self",(char *) "pos", NULL | |
36126 | }; | |
36127 | ||
36128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
36129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36130 | { | |
36131 | arg2 = &temp2; | |
36132 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36133 | } | |
36134 | { | |
36135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36136 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
36137 | ||
36138 | wxPyEndAllowThreads(__tstate); | |
36139 | if (PyErr_Occurred()) SWIG_fail; | |
36140 | } | |
4e760a36 | 36141 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36142 | return resultobj; |
36143 | fail: | |
36144 | return NULL; | |
36145 | } | |
36146 | ||
36147 | ||
36148 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36149 | PyObject *resultobj; | |
36150 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36151 | wxGBSpan *arg2 = 0 ; | |
36152 | bool result; | |
36153 | wxGBSpan temp2 ; | |
36154 | PyObject * obj0 = 0 ; | |
36155 | PyObject * obj1 = 0 ; | |
36156 | char *kwnames[] = { | |
36157 | (char *) "self",(char *) "span", NULL | |
36158 | }; | |
36159 | ||
36160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
36161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36162 | { | |
36163 | arg2 = &temp2; | |
36164 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36165 | } | |
36166 | { | |
36167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36168 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
36169 | ||
36170 | wxPyEndAllowThreads(__tstate); | |
36171 | if (PyErr_Occurred()) SWIG_fail; | |
36172 | } | |
4e760a36 | 36173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36174 | return resultobj; |
36175 | fail: | |
36176 | return NULL; | |
36177 | } | |
36178 | ||
36179 | ||
36180 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
36181 | PyObject *resultobj; | |
36182 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36183 | wxGBSizerItem *arg2 = 0 ; | |
36184 | bool result; | |
36185 | PyObject * obj0 = 0 ; | |
36186 | PyObject * obj1 = 0 ; | |
36187 | ||
36188 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
36189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36190 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36191 | if (arg2 == NULL) { | |
36192 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
36193 | } | |
36194 | { | |
36195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36196 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
36197 | ||
36198 | wxPyEndAllowThreads(__tstate); | |
36199 | if (PyErr_Occurred()) SWIG_fail; | |
36200 | } | |
4e760a36 | 36201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36202 | return resultobj; |
36203 | fail: | |
36204 | return NULL; | |
36205 | } | |
36206 | ||
36207 | ||
36208 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
36209 | PyObject *resultobj; | |
36210 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36211 | wxGBPosition *arg2 = 0 ; | |
36212 | wxGBSpan *arg3 = 0 ; | |
36213 | bool result; | |
36214 | wxGBPosition temp2 ; | |
36215 | wxGBSpan temp3 ; | |
36216 | PyObject * obj0 = 0 ; | |
36217 | PyObject * obj1 = 0 ; | |
36218 | PyObject * obj2 = 0 ; | |
36219 | ||
36220 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
36221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36222 | { | |
36223 | arg2 = &temp2; | |
36224 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36225 | } | |
36226 | { | |
36227 | arg3 = &temp3; | |
36228 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36229 | } | |
36230 | { | |
36231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36232 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
36233 | ||
36234 | wxPyEndAllowThreads(__tstate); | |
36235 | if (PyErr_Occurred()) SWIG_fail; | |
36236 | } | |
4e760a36 | 36237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36238 | return resultobj; |
36239 | fail: | |
36240 | return NULL; | |
36241 | } | |
36242 | ||
36243 | ||
36244 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
36245 | int argc; | |
36246 | PyObject *argv[4]; | |
36247 | int ii; | |
36248 | ||
36249 | argc = PyObject_Length(args); | |
36250 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
36251 | argv[ii] = PyTuple_GetItem(args,ii); | |
36252 | } | |
36253 | if (argc == 2) { | |
36254 | int _v; | |
36255 | { | |
36256 | void *ptr; | |
36257 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
36258 | _v = 0; | |
36259 | PyErr_Clear(); | |
36260 | } else { | |
36261 | _v = 1; | |
36262 | } | |
36263 | } | |
36264 | if (_v) { | |
36265 | { | |
36266 | void *ptr; | |
36267 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
36268 | _v = 0; | |
36269 | PyErr_Clear(); | |
36270 | } else { | |
36271 | _v = 1; | |
36272 | } | |
36273 | } | |
36274 | if (_v) { | |
36275 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
36276 | } | |
36277 | } | |
36278 | } | |
36279 | if (argc == 3) { | |
36280 | int _v; | |
36281 | { | |
36282 | void *ptr; | |
36283 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
36284 | _v = 0; | |
36285 | PyErr_Clear(); | |
36286 | } else { | |
36287 | _v = 1; | |
36288 | } | |
36289 | } | |
36290 | if (_v) { | |
36291 | { | |
36292 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
36293 | } | |
36294 | if (_v) { | |
36295 | { | |
36296 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
36297 | } | |
36298 | if (_v) { | |
36299 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
36300 | } | |
36301 | } | |
36302 | } | |
36303 | } | |
36304 | ||
36305 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
36306 | return NULL; | |
36307 | } | |
36308 | ||
36309 | ||
36310 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36311 | PyObject *resultobj; | |
36312 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36313 | int *arg2 = 0 ; | |
36314 | int *arg3 = 0 ; | |
36315 | PyObject * obj0 = 0 ; | |
36316 | PyObject * obj1 = 0 ; | |
36317 | PyObject * obj2 = 0 ; | |
36318 | char *kwnames[] = { | |
36319 | (char *) "self",(char *) "row",(char *) "col", NULL | |
36320 | }; | |
36321 | ||
36322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36324 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36325 | if (arg2 == NULL) { | |
36326 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
36327 | } | |
36328 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36329 | if (arg3 == NULL) { | |
36330 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
36331 | } | |
36332 | { | |
36333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36334 | (arg1)->GetEndPos(*arg2,*arg3); | |
36335 | ||
36336 | wxPyEndAllowThreads(__tstate); | |
36337 | if (PyErr_Occurred()) SWIG_fail; | |
36338 | } | |
36339 | Py_INCREF(Py_None); resultobj = Py_None; | |
36340 | return resultobj; | |
36341 | fail: | |
36342 | return NULL; | |
36343 | } | |
36344 | ||
36345 | ||
36346 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36347 | PyObject *resultobj; | |
36348 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36349 | wxGridBagSizer *result; | |
36350 | PyObject * obj0 = 0 ; | |
36351 | char *kwnames[] = { | |
36352 | (char *) "self", NULL | |
36353 | }; | |
36354 | ||
36355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
36356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36357 | { | |
36358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36359 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
36360 | ||
36361 | wxPyEndAllowThreads(__tstate); | |
36362 | if (PyErr_Occurred()) SWIG_fail; | |
36363 | } | |
36364 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 0); | |
36365 | return resultobj; | |
36366 | fail: | |
36367 | return NULL; | |
36368 | } | |
36369 | ||
36370 | ||
36371 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36372 | PyObject *resultobj; | |
36373 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36374 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
36375 | PyObject * obj0 = 0 ; | |
36376 | PyObject * obj1 = 0 ; | |
36377 | char *kwnames[] = { | |
36378 | (char *) "self",(char *) "sizer", NULL | |
36379 | }; | |
36380 | ||
36381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
36382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36383 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36384 | { | |
36385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36386 | (arg1)->SetGBSizer(arg2); | |
36387 | ||
36388 | wxPyEndAllowThreads(__tstate); | |
36389 | if (PyErr_Occurred()) SWIG_fail; | |
36390 | } | |
36391 | Py_INCREF(Py_None); resultobj = Py_None; | |
36392 | return resultobj; | |
36393 | fail: | |
36394 | return NULL; | |
36395 | } | |
36396 | ||
36397 | ||
36398 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
36399 | PyObject *obj; | |
36400 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36401 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
36402 | Py_INCREF(obj); | |
36403 | return Py_BuildValue((char *)""); | |
36404 | } | |
36405 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36406 | PyObject *resultobj; | |
36407 | int arg1 = (int) 0 ; | |
36408 | int arg2 = (int) 0 ; | |
36409 | wxGridBagSizer *result; | |
8edf1c75 RD |
36410 | PyObject * obj0 = 0 ; |
36411 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36412 | char *kwnames[] = { |
36413 | (char *) "vgap",(char *) "hgap", NULL | |
36414 | }; | |
36415 | ||
8edf1c75 RD |
36416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; |
36417 | if (obj0) { | |
36418 | { | |
36419 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
36420 | if (PyErr_Occurred()) SWIG_fail; | |
36421 | } | |
36422 | } | |
36423 | if (obj1) { | |
36424 | { | |
36425 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
36426 | if (PyErr_Occurred()) SWIG_fail; | |
36427 | } | |
36428 | } | |
d14a1e28 RD |
36429 | { |
36430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36431 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
36432 | ||
36433 | wxPyEndAllowThreads(__tstate); | |
36434 | if (PyErr_Occurred()) SWIG_fail; | |
36435 | } | |
36436 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 1); | |
36437 | return resultobj; | |
36438 | fail: | |
36439 | return NULL; | |
36440 | } | |
36441 | ||
36442 | ||
36443 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36444 | PyObject *resultobj; | |
36445 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36446 | PyObject *arg2 = (PyObject *) 0 ; | |
36447 | wxGBPosition *arg3 = 0 ; | |
36448 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
36449 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
36450 | int arg5 = (int) 0 ; | |
36451 | int arg6 = (int) 0 ; | |
36452 | PyObject *arg7 = (PyObject *) NULL ; | |
36453 | bool result; | |
36454 | wxGBPosition temp3 ; | |
36455 | wxGBSpan temp4 ; | |
36456 | PyObject * obj0 = 0 ; | |
36457 | PyObject * obj1 = 0 ; | |
36458 | PyObject * obj2 = 0 ; | |
36459 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
36460 | PyObject * obj4 = 0 ; |
36461 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
36462 | PyObject * obj6 = 0 ; |
36463 | char *kwnames[] = { | |
36464 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36465 | }; | |
36466 | ||
8edf1c75 | 36467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
36468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
36469 | arg2 = obj1; | |
36470 | { | |
36471 | arg3 = &temp3; | |
36472 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36473 | } | |
36474 | if (obj3) { | |
36475 | { | |
36476 | arg4 = &temp4; | |
36477 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
36478 | } | |
36479 | } | |
8edf1c75 RD |
36480 | if (obj4) { |
36481 | { | |
36482 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
36483 | if (PyErr_Occurred()) SWIG_fail; | |
36484 | } | |
36485 | } | |
36486 | if (obj5) { | |
36487 | { | |
36488 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
36489 | if (PyErr_Occurred()) SWIG_fail; | |
36490 | } | |
36491 | } | |
d14a1e28 RD |
36492 | if (obj6) { |
36493 | arg7 = obj6; | |
36494 | } | |
36495 | { | |
36496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36497 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
36498 | ||
36499 | wxPyEndAllowThreads(__tstate); | |
36500 | if (PyErr_Occurred()) SWIG_fail; | |
36501 | } | |
4e760a36 | 36502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36503 | return resultobj; |
36504 | fail: | |
36505 | return NULL; | |
36506 | } | |
36507 | ||
36508 | ||
36509 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36510 | PyObject *resultobj; | |
36511 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36512 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
36513 | bool result; | |
36514 | PyObject * obj0 = 0 ; | |
36515 | PyObject * obj1 = 0 ; | |
36516 | char *kwnames[] = { | |
36517 | (char *) "self",(char *) "item", NULL | |
36518 | }; | |
36519 | ||
36520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
36521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36522 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36523 | { | |
36524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36525 | result = (bool)(arg1)->Add(arg2); | |
36526 | ||
36527 | wxPyEndAllowThreads(__tstate); | |
36528 | if (PyErr_Occurred()) SWIG_fail; | |
36529 | } | |
4e760a36 | 36530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36531 | return resultobj; |
36532 | fail: | |
36533 | return NULL; | |
36534 | } | |
36535 | ||
36536 | ||
36537 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36538 | PyObject *resultobj; | |
36539 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36540 | wxSize result; | |
36541 | PyObject * obj0 = 0 ; | |
36542 | char *kwnames[] = { | |
36543 | (char *) "self", NULL | |
36544 | }; | |
36545 | ||
36546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
36547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36548 | { | |
36549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36550 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
36551 | ||
36552 | wxPyEndAllowThreads(__tstate); | |
36553 | if (PyErr_Occurred()) SWIG_fail; | |
36554 | } | |
36555 | { | |
36556 | wxSize * resultptr; | |
36557 | resultptr = new wxSize((wxSize &) result); | |
36558 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
36559 | } | |
36560 | return resultobj; | |
36561 | fail: | |
36562 | return NULL; | |
36563 | } | |
36564 | ||
36565 | ||
36566 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36567 | PyObject *resultobj; | |
36568 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36569 | wxSize *arg2 = 0 ; | |
36570 | wxSize temp2 ; | |
36571 | PyObject * obj0 = 0 ; | |
36572 | PyObject * obj1 = 0 ; | |
36573 | char *kwnames[] = { | |
36574 | (char *) "self",(char *) "sz", NULL | |
36575 | }; | |
36576 | ||
36577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
36578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36579 | { | |
36580 | arg2 = &temp2; | |
36581 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
36582 | } | |
36583 | { | |
36584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36585 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
36586 | ||
36587 | wxPyEndAllowThreads(__tstate); | |
36588 | if (PyErr_Occurred()) SWIG_fail; | |
36589 | } | |
36590 | Py_INCREF(Py_None); resultobj = Py_None; | |
36591 | return resultobj; | |
36592 | fail: | |
36593 | return NULL; | |
36594 | } | |
36595 | ||
36596 | ||
36597 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
36598 | PyObject *resultobj; | |
36599 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36600 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36601 | wxGBPosition result; | |
36602 | PyObject * obj0 = 0 ; | |
36603 | PyObject * obj1 = 0 ; | |
36604 | ||
36605 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
36606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36607 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36608 | { | |
36609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36610 | result = (arg1)->GetItemPosition(arg2); | |
36611 | ||
36612 | wxPyEndAllowThreads(__tstate); | |
36613 | if (PyErr_Occurred()) SWIG_fail; | |
36614 | } | |
36615 | { | |
36616 | wxGBPosition * resultptr; | |
36617 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
36618 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
36619 | } | |
36620 | return resultobj; | |
36621 | fail: | |
36622 | return NULL; | |
36623 | } | |
36624 | ||
36625 | ||
36626 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
36627 | PyObject *resultobj; | |
36628 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36629 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36630 | wxGBPosition result; | |
36631 | PyObject * obj0 = 0 ; | |
36632 | PyObject * obj1 = 0 ; | |
36633 | ||
36634 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
36635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36636 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36637 | { | |
36638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36639 | result = (arg1)->GetItemPosition(arg2); | |
36640 | ||
36641 | wxPyEndAllowThreads(__tstate); | |
36642 | if (PyErr_Occurred()) SWIG_fail; | |
36643 | } | |
36644 | { | |
36645 | wxGBPosition * resultptr; | |
36646 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
36647 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
36648 | } | |
36649 | return resultobj; | |
36650 | fail: | |
36651 | return NULL; | |
36652 | } | |
36653 | ||
36654 | ||
36655 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
36656 | PyObject *resultobj; | |
36657 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36658 | size_t arg2 ; | |
36659 | wxGBPosition result; | |
36660 | PyObject * obj0 = 0 ; | |
36661 | PyObject * obj1 = 0 ; | |
36662 | ||
36663 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
36664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 36665 | { |
8edf1c75 | 36666 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
36667 | if (PyErr_Occurred()) SWIG_fail; |
36668 | } | |
d14a1e28 RD |
36669 | { |
36670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36671 | result = (arg1)->GetItemPosition(arg2); | |
36672 | ||
36673 | wxPyEndAllowThreads(__tstate); | |
36674 | if (PyErr_Occurred()) SWIG_fail; | |
36675 | } | |
36676 | { | |
36677 | wxGBPosition * resultptr; | |
36678 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
36679 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
36680 | } | |
36681 | return resultobj; | |
36682 | fail: | |
36683 | return NULL; | |
36684 | } | |
36685 | ||
36686 | ||
36687 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
36688 | int argc; | |
36689 | PyObject *argv[3]; | |
36690 | int ii; | |
36691 | ||
36692 | argc = PyObject_Length(args); | |
36693 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
36694 | argv[ii] = PyTuple_GetItem(args,ii); | |
36695 | } | |
36696 | if (argc == 2) { | |
36697 | int _v; | |
36698 | { | |
36699 | void *ptr; | |
36700 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36701 | _v = 0; | |
36702 | PyErr_Clear(); | |
36703 | } else { | |
36704 | _v = 1; | |
36705 | } | |
36706 | } | |
36707 | if (_v) { | |
36708 | { | |
36709 | void *ptr; | |
36710 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
36711 | _v = 0; | |
36712 | PyErr_Clear(); | |
36713 | } else { | |
36714 | _v = 1; | |
36715 | } | |
36716 | } | |
36717 | if (_v) { | |
36718 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
36719 | } | |
36720 | } | |
36721 | } | |
36722 | if (argc == 2) { | |
36723 | int _v; | |
36724 | { | |
36725 | void *ptr; | |
36726 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36727 | _v = 0; | |
36728 | PyErr_Clear(); | |
36729 | } else { | |
36730 | _v = 1; | |
36731 | } | |
36732 | } | |
36733 | if (_v) { | |
36734 | { | |
36735 | void *ptr; | |
36736 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
36737 | _v = 0; | |
36738 | PyErr_Clear(); | |
36739 | } else { | |
36740 | _v = 1; | |
36741 | } | |
36742 | } | |
36743 | if (_v) { | |
36744 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
36745 | } | |
36746 | } | |
36747 | } | |
36748 | if (argc == 2) { | |
36749 | int _v; | |
36750 | { | |
36751 | void *ptr; | |
36752 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36753 | _v = 0; | |
36754 | PyErr_Clear(); | |
36755 | } else { | |
36756 | _v = 1; | |
36757 | } | |
36758 | } | |
36759 | if (_v) { | |
36760 | { | |
8edf1c75 | 36761 | SWIG_PyObj_AsUnsignedLong(argv[1]); |
83448d71 RD |
36762 | if (PyErr_Occurred()) { |
36763 | _v = 0; | |
36764 | PyErr_Clear(); | |
36765 | } else { | |
36766 | _v = 1; | |
36767 | } | |
d14a1e28 RD |
36768 | } |
36769 | if (_v) { | |
36770 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
36771 | } | |
36772 | } | |
36773 | } | |
36774 | ||
36775 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
36776 | return NULL; | |
36777 | } | |
36778 | ||
36779 | ||
36780 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
36781 | PyObject *resultobj; | |
36782 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36783 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36784 | wxGBPosition *arg3 = 0 ; | |
36785 | bool result; | |
36786 | wxGBPosition temp3 ; | |
36787 | PyObject * obj0 = 0 ; | |
36788 | PyObject * obj1 = 0 ; | |
36789 | PyObject * obj2 = 0 ; | |
36790 | ||
36791 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
36792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36793 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36794 | { | |
36795 | arg3 = &temp3; | |
36796 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36797 | } | |
36798 | { | |
36799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36800 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
36801 | ||
36802 | wxPyEndAllowThreads(__tstate); | |
36803 | if (PyErr_Occurred()) SWIG_fail; | |
36804 | } | |
4e760a36 | 36805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36806 | return resultobj; |
36807 | fail: | |
36808 | return NULL; | |
36809 | } | |
36810 | ||
36811 | ||
36812 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
36813 | PyObject *resultobj; | |
36814 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36815 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36816 | wxGBPosition *arg3 = 0 ; | |
36817 | bool result; | |
36818 | wxGBPosition temp3 ; | |
36819 | PyObject * obj0 = 0 ; | |
36820 | PyObject * obj1 = 0 ; | |
36821 | PyObject * obj2 = 0 ; | |
36822 | ||
36823 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
36824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36825 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36826 | { | |
36827 | arg3 = &temp3; | |
36828 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36829 | } | |
36830 | { | |
36831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36832 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
36833 | ||
36834 | wxPyEndAllowThreads(__tstate); | |
36835 | if (PyErr_Occurred()) SWIG_fail; | |
36836 | } | |
4e760a36 | 36837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36838 | return resultobj; |
36839 | fail: | |
36840 | return NULL; | |
36841 | } | |
36842 | ||
36843 | ||
36844 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
36845 | PyObject *resultobj; | |
36846 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36847 | size_t arg2 ; | |
36848 | wxGBPosition *arg3 = 0 ; | |
36849 | bool result; | |
36850 | wxGBPosition temp3 ; | |
36851 | PyObject * obj0 = 0 ; | |
36852 | PyObject * obj1 = 0 ; | |
36853 | PyObject * obj2 = 0 ; | |
36854 | ||
36855 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
36856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 36857 | { |
8edf1c75 | 36858 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
36859 | if (PyErr_Occurred()) SWIG_fail; |
36860 | } | |
d14a1e28 RD |
36861 | { |
36862 | arg3 = &temp3; | |
36863 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36864 | } | |
36865 | { | |
36866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36867 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
36868 | ||
36869 | wxPyEndAllowThreads(__tstate); | |
36870 | if (PyErr_Occurred()) SWIG_fail; | |
36871 | } | |
4e760a36 | 36872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36873 | return resultobj; |
36874 | fail: | |
36875 | return NULL; | |
36876 | } | |
36877 | ||
36878 | ||
36879 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
36880 | int argc; | |
36881 | PyObject *argv[4]; | |
36882 | int ii; | |
36883 | ||
36884 | argc = PyObject_Length(args); | |
36885 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
36886 | argv[ii] = PyTuple_GetItem(args,ii); | |
36887 | } | |
36888 | if (argc == 3) { | |
36889 | int _v; | |
36890 | { | |
36891 | void *ptr; | |
36892 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36893 | _v = 0; | |
36894 | PyErr_Clear(); | |
36895 | } else { | |
36896 | _v = 1; | |
36897 | } | |
36898 | } | |
36899 | if (_v) { | |
36900 | { | |
36901 | void *ptr; | |
36902 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
36903 | _v = 0; | |
36904 | PyErr_Clear(); | |
36905 | } else { | |
36906 | _v = 1; | |
36907 | } | |
36908 | } | |
36909 | if (_v) { | |
36910 | { | |
36911 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
36912 | } | |
36913 | if (_v) { | |
36914 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
36915 | } | |
36916 | } | |
36917 | } | |
36918 | } | |
36919 | if (argc == 3) { | |
36920 | int _v; | |
36921 | { | |
36922 | void *ptr; | |
36923 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36924 | _v = 0; | |
36925 | PyErr_Clear(); | |
36926 | } else { | |
36927 | _v = 1; | |
36928 | } | |
36929 | } | |
36930 | if (_v) { | |
36931 | { | |
36932 | void *ptr; | |
36933 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
36934 | _v = 0; | |
36935 | PyErr_Clear(); | |
36936 | } else { | |
36937 | _v = 1; | |
36938 | } | |
36939 | } | |
36940 | if (_v) { | |
36941 | { | |
36942 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
36943 | } | |
36944 | if (_v) { | |
36945 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
36946 | } | |
36947 | } | |
36948 | } | |
36949 | } | |
36950 | if (argc == 3) { | |
36951 | int _v; | |
36952 | { | |
36953 | void *ptr; | |
36954 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36955 | _v = 0; | |
36956 | PyErr_Clear(); | |
36957 | } else { | |
36958 | _v = 1; | |
36959 | } | |
36960 | } | |
36961 | if (_v) { | |
36962 | { | |
8edf1c75 | 36963 | SWIG_PyObj_AsUnsignedLong(argv[1]); |
83448d71 RD |
36964 | if (PyErr_Occurred()) { |
36965 | _v = 0; | |
36966 | PyErr_Clear(); | |
36967 | } else { | |
36968 | _v = 1; | |
36969 | } | |
d14a1e28 RD |
36970 | } |
36971 | if (_v) { | |
36972 | { | |
36973 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
36974 | } | |
36975 | if (_v) { | |
36976 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
36977 | } | |
36978 | } | |
36979 | } | |
36980 | } | |
36981 | ||
36982 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
36983 | return NULL; | |
36984 | } | |
36985 | ||
36986 | ||
36987 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
36988 | PyObject *resultobj; | |
36989 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36990 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36991 | wxGBSpan result; | |
36992 | PyObject * obj0 = 0 ; | |
36993 | PyObject * obj1 = 0 ; | |
36994 | ||
36995 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
36996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36997 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36998 | { | |
36999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37000 | result = (arg1)->GetItemSpan(arg2); | |
37001 | ||
37002 | wxPyEndAllowThreads(__tstate); | |
37003 | if (PyErr_Occurred()) SWIG_fail; | |
37004 | } | |
37005 | { | |
37006 | wxGBSpan * resultptr; | |
37007 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
37008 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
37009 | } | |
37010 | return resultobj; | |
37011 | fail: | |
37012 | return NULL; | |
37013 | } | |
37014 | ||
37015 | ||
37016 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
37017 | PyObject *resultobj; | |
37018 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37019 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37020 | wxGBSpan result; | |
37021 | PyObject * obj0 = 0 ; | |
37022 | PyObject * obj1 = 0 ; | |
37023 | ||
37024 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
37025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37026 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37027 | { | |
37028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37029 | result = (arg1)->GetItemSpan(arg2); | |
37030 | ||
37031 | wxPyEndAllowThreads(__tstate); | |
37032 | if (PyErr_Occurred()) SWIG_fail; | |
37033 | } | |
37034 | { | |
37035 | wxGBSpan * resultptr; | |
37036 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
37037 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
37038 | } | |
37039 | return resultobj; | |
37040 | fail: | |
37041 | return NULL; | |
37042 | } | |
37043 | ||
37044 | ||
37045 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
37046 | PyObject *resultobj; | |
37047 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37048 | size_t arg2 ; | |
37049 | wxGBSpan result; | |
37050 | PyObject * obj0 = 0 ; | |
37051 | PyObject * obj1 = 0 ; | |
37052 | ||
37053 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
37054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 37055 | { |
8edf1c75 | 37056 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
37057 | if (PyErr_Occurred()) SWIG_fail; |
37058 | } | |
d14a1e28 RD |
37059 | { |
37060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37061 | result = (arg1)->GetItemSpan(arg2); | |
37062 | ||
37063 | wxPyEndAllowThreads(__tstate); | |
37064 | if (PyErr_Occurred()) SWIG_fail; | |
37065 | } | |
37066 | { | |
37067 | wxGBSpan * resultptr; | |
37068 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
37069 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
37070 | } | |
37071 | return resultobj; | |
37072 | fail: | |
37073 | return NULL; | |
37074 | } | |
37075 | ||
37076 | ||
37077 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
37078 | int argc; | |
37079 | PyObject *argv[3]; | |
37080 | int ii; | |
37081 | ||
37082 | argc = PyObject_Length(args); | |
37083 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37084 | argv[ii] = PyTuple_GetItem(args,ii); | |
37085 | } | |
37086 | if (argc == 2) { | |
37087 | int _v; | |
37088 | { | |
37089 | void *ptr; | |
37090 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37091 | _v = 0; | |
37092 | PyErr_Clear(); | |
37093 | } else { | |
37094 | _v = 1; | |
37095 | } | |
37096 | } | |
37097 | if (_v) { | |
37098 | { | |
37099 | void *ptr; | |
37100 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
37101 | _v = 0; | |
37102 | PyErr_Clear(); | |
37103 | } else { | |
37104 | _v = 1; | |
37105 | } | |
37106 | } | |
37107 | if (_v) { | |
37108 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
37109 | } | |
37110 | } | |
37111 | } | |
37112 | if (argc == 2) { | |
37113 | int _v; | |
37114 | { | |
37115 | void *ptr; | |
37116 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37117 | _v = 0; | |
37118 | PyErr_Clear(); | |
37119 | } else { | |
37120 | _v = 1; | |
37121 | } | |
37122 | } | |
37123 | if (_v) { | |
37124 | { | |
37125 | void *ptr; | |
37126 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
37127 | _v = 0; | |
37128 | PyErr_Clear(); | |
37129 | } else { | |
37130 | _v = 1; | |
37131 | } | |
37132 | } | |
37133 | if (_v) { | |
37134 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
37135 | } | |
37136 | } | |
37137 | } | |
37138 | if (argc == 2) { | |
37139 | int _v; | |
37140 | { | |
37141 | void *ptr; | |
37142 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37143 | _v = 0; | |
37144 | PyErr_Clear(); | |
37145 | } else { | |
37146 | _v = 1; | |
37147 | } | |
37148 | } | |
37149 | if (_v) { | |
37150 | { | |
8edf1c75 | 37151 | SWIG_PyObj_AsUnsignedLong(argv[1]); |
83448d71 RD |
37152 | if (PyErr_Occurred()) { |
37153 | _v = 0; | |
37154 | PyErr_Clear(); | |
37155 | } else { | |
37156 | _v = 1; | |
37157 | } | |
d14a1e28 RD |
37158 | } |
37159 | if (_v) { | |
37160 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
37161 | } | |
37162 | } | |
37163 | } | |
37164 | ||
37165 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
37166 | return NULL; | |
37167 | } | |
37168 | ||
37169 | ||
37170 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
37171 | PyObject *resultobj; | |
37172 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37173 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37174 | wxGBSpan *arg3 = 0 ; | |
37175 | bool result; | |
37176 | wxGBSpan temp3 ; | |
37177 | PyObject * obj0 = 0 ; | |
37178 | PyObject * obj1 = 0 ; | |
37179 | PyObject * obj2 = 0 ; | |
37180 | ||
37181 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
37182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37183 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37184 | { | |
37185 | arg3 = &temp3; | |
37186 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37187 | } | |
37188 | { | |
37189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37190 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
37191 | ||
37192 | wxPyEndAllowThreads(__tstate); | |
37193 | if (PyErr_Occurred()) SWIG_fail; | |
37194 | } | |
4e760a36 | 37195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37196 | return resultobj; |
37197 | fail: | |
37198 | return NULL; | |
37199 | } | |
37200 | ||
37201 | ||
37202 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
37203 | PyObject *resultobj; | |
37204 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37205 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37206 | wxGBSpan *arg3 = 0 ; | |
37207 | bool result; | |
37208 | wxGBSpan temp3 ; | |
37209 | PyObject * obj0 = 0 ; | |
37210 | PyObject * obj1 = 0 ; | |
37211 | PyObject * obj2 = 0 ; | |
37212 | ||
37213 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
37214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37215 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37216 | { | |
37217 | arg3 = &temp3; | |
37218 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37219 | } | |
37220 | { | |
37221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37222 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
37223 | ||
37224 | wxPyEndAllowThreads(__tstate); | |
37225 | if (PyErr_Occurred()) SWIG_fail; | |
37226 | } | |
4e760a36 | 37227 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37228 | return resultobj; |
37229 | fail: | |
37230 | return NULL; | |
37231 | } | |
37232 | ||
37233 | ||
37234 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
37235 | PyObject *resultobj; | |
37236 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37237 | size_t arg2 ; | |
37238 | wxGBSpan *arg3 = 0 ; | |
37239 | bool result; | |
37240 | wxGBSpan temp3 ; | |
37241 | PyObject * obj0 = 0 ; | |
37242 | PyObject * obj1 = 0 ; | |
37243 | PyObject * obj2 = 0 ; | |
37244 | ||
37245 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
37246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 37247 | { |
8edf1c75 | 37248 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
37249 | if (PyErr_Occurred()) SWIG_fail; |
37250 | } | |
d14a1e28 RD |
37251 | { |
37252 | arg3 = &temp3; | |
37253 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37254 | } | |
37255 | { | |
37256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37257 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
37258 | ||
37259 | wxPyEndAllowThreads(__tstate); | |
37260 | if (PyErr_Occurred()) SWIG_fail; | |
37261 | } | |
4e760a36 | 37262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37263 | return resultobj; |
37264 | fail: | |
37265 | return NULL; | |
37266 | } | |
37267 | ||
37268 | ||
37269 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
37270 | int argc; | |
37271 | PyObject *argv[4]; | |
37272 | int ii; | |
37273 | ||
37274 | argc = PyObject_Length(args); | |
37275 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37276 | argv[ii] = PyTuple_GetItem(args,ii); | |
37277 | } | |
37278 | if (argc == 3) { | |
37279 | int _v; | |
37280 | { | |
37281 | void *ptr; | |
37282 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37283 | _v = 0; | |
37284 | PyErr_Clear(); | |
37285 | } else { | |
37286 | _v = 1; | |
37287 | } | |
37288 | } | |
37289 | if (_v) { | |
37290 | { | |
37291 | void *ptr; | |
37292 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
37293 | _v = 0; | |
37294 | PyErr_Clear(); | |
37295 | } else { | |
37296 | _v = 1; | |
37297 | } | |
37298 | } | |
37299 | if (_v) { | |
37300 | { | |
37301 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37302 | } | |
37303 | if (_v) { | |
37304 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
37305 | } | |
37306 | } | |
37307 | } | |
37308 | } | |
37309 | if (argc == 3) { | |
37310 | int _v; | |
37311 | { | |
37312 | void *ptr; | |
37313 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37314 | _v = 0; | |
37315 | PyErr_Clear(); | |
37316 | } else { | |
37317 | _v = 1; | |
37318 | } | |
37319 | } | |
37320 | if (_v) { | |
37321 | { | |
37322 | void *ptr; | |
37323 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
37324 | _v = 0; | |
37325 | PyErr_Clear(); | |
37326 | } else { | |
37327 | _v = 1; | |
37328 | } | |
37329 | } | |
37330 | if (_v) { | |
37331 | { | |
37332 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37333 | } | |
37334 | if (_v) { | |
37335 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
37336 | } | |
37337 | } | |
37338 | } | |
37339 | } | |
37340 | if (argc == 3) { | |
37341 | int _v; | |
37342 | { | |
37343 | void *ptr; | |
37344 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37345 | _v = 0; | |
37346 | PyErr_Clear(); | |
37347 | } else { | |
37348 | _v = 1; | |
37349 | } | |
37350 | } | |
37351 | if (_v) { | |
37352 | { | |
8edf1c75 | 37353 | SWIG_PyObj_AsUnsignedLong(argv[1]); |
83448d71 RD |
37354 | if (PyErr_Occurred()) { |
37355 | _v = 0; | |
37356 | PyErr_Clear(); | |
37357 | } else { | |
37358 | _v = 1; | |
37359 | } | |
d14a1e28 RD |
37360 | } |
37361 | if (_v) { | |
37362 | { | |
37363 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37364 | } | |
37365 | if (_v) { | |
37366 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
37367 | } | |
37368 | } | |
37369 | } | |
37370 | } | |
37371 | ||
37372 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
37373 | return NULL; | |
37374 | } | |
37375 | ||
37376 | ||
37377 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
37378 | PyObject *resultobj; | |
37379 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37380 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37381 | wxGBSizerItem *result; | |
37382 | PyObject * obj0 = 0 ; | |
37383 | PyObject * obj1 = 0 ; | |
37384 | ||
37385 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
37386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37387 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37388 | { | |
37389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37390 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
37391 | ||
37392 | wxPyEndAllowThreads(__tstate); | |
37393 | if (PyErr_Occurred()) SWIG_fail; | |
37394 | } | |
37395 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
37396 | return resultobj; | |
37397 | fail: | |
37398 | return NULL; | |
37399 | } | |
37400 | ||
37401 | ||
37402 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
37403 | PyObject *resultobj; | |
37404 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37405 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37406 | wxGBSizerItem *result; | |
37407 | PyObject * obj0 = 0 ; | |
37408 | PyObject * obj1 = 0 ; | |
37409 | ||
37410 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
37411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37412 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37413 | { | |
37414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37415 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
37416 | ||
37417 | wxPyEndAllowThreads(__tstate); | |
37418 | if (PyErr_Occurred()) SWIG_fail; | |
37419 | } | |
37420 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
37421 | return resultobj; | |
37422 | fail: | |
37423 | return NULL; | |
37424 | } | |
37425 | ||
37426 | ||
37427 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
37428 | int argc; | |
37429 | PyObject *argv[3]; | |
37430 | int ii; | |
37431 | ||
37432 | argc = PyObject_Length(args); | |
37433 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37434 | argv[ii] = PyTuple_GetItem(args,ii); | |
37435 | } | |
37436 | if (argc == 2) { | |
37437 | int _v; | |
37438 | { | |
37439 | void *ptr; | |
37440 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37441 | _v = 0; | |
37442 | PyErr_Clear(); | |
37443 | } else { | |
37444 | _v = 1; | |
37445 | } | |
37446 | } | |
37447 | if (_v) { | |
37448 | { | |
37449 | void *ptr; | |
37450 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
37451 | _v = 0; | |
37452 | PyErr_Clear(); | |
37453 | } else { | |
37454 | _v = 1; | |
37455 | } | |
37456 | } | |
37457 | if (_v) { | |
37458 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
37459 | } | |
37460 | } | |
37461 | } | |
37462 | if (argc == 2) { | |
37463 | int _v; | |
37464 | { | |
37465 | void *ptr; | |
37466 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37467 | _v = 0; | |
37468 | PyErr_Clear(); | |
37469 | } else { | |
37470 | _v = 1; | |
37471 | } | |
37472 | } | |
37473 | if (_v) { | |
37474 | { | |
37475 | void *ptr; | |
37476 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
37477 | _v = 0; | |
37478 | PyErr_Clear(); | |
37479 | } else { | |
37480 | _v = 1; | |
37481 | } | |
37482 | } | |
37483 | if (_v) { | |
37484 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
37485 | } | |
37486 | } | |
37487 | } | |
37488 | ||
37489 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
37490 | return NULL; | |
37491 | } | |
37492 | ||
37493 | ||
37494 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37495 | PyObject *resultobj; | |
37496 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37497 | wxGBPosition *arg2 = 0 ; | |
37498 | wxGBSizerItem *result; | |
37499 | wxGBPosition temp2 ; | |
37500 | PyObject * obj0 = 0 ; | |
37501 | PyObject * obj1 = 0 ; | |
37502 | char *kwnames[] = { | |
37503 | (char *) "self",(char *) "pos", NULL | |
37504 | }; | |
37505 | ||
37506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
37507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37508 | { | |
37509 | arg2 = &temp2; | |
37510 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37511 | } | |
37512 | { | |
37513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37514 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
37515 | ||
37516 | wxPyEndAllowThreads(__tstate); | |
37517 | if (PyErr_Occurred()) SWIG_fail; | |
37518 | } | |
37519 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
37520 | return resultobj; | |
37521 | fail: | |
37522 | return NULL; | |
37523 | } | |
37524 | ||
37525 | ||
423f194a RD |
37526 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
37527 | PyObject *resultobj; | |
37528 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37529 | wxPoint *arg2 = 0 ; | |
37530 | wxGBSizerItem *result; | |
37531 | wxPoint temp2 ; | |
37532 | PyObject * obj0 = 0 ; | |
37533 | PyObject * obj1 = 0 ; | |
37534 | char *kwnames[] = { | |
37535 | (char *) "self",(char *) "pt", NULL | |
37536 | }; | |
37537 | ||
37538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
37539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37540 | { | |
37541 | arg2 = &temp2; | |
37542 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37543 | } | |
37544 | { | |
37545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37546 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
37547 | ||
37548 | wxPyEndAllowThreads(__tstate); | |
37549 | if (PyErr_Occurred()) SWIG_fail; | |
37550 | } | |
37551 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
37552 | return resultobj; | |
37553 | fail: | |
37554 | return NULL; | |
37555 | } | |
37556 | ||
37557 | ||
d14a1e28 RD |
37558 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { |
37559 | PyObject *resultobj; | |
37560 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37561 | wxObject *arg2 = (wxObject *) 0 ; | |
37562 | wxGBSizerItem *result; | |
37563 | PyObject * obj0 = 0 ; | |
37564 | PyObject * obj1 = 0 ; | |
37565 | char *kwnames[] = { | |
37566 | (char *) "self",(char *) "userData", NULL | |
37567 | }; | |
37568 | ||
37569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
37570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37571 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37572 | { | |
37573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37574 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
37575 | ||
37576 | wxPyEndAllowThreads(__tstate); | |
37577 | if (PyErr_Occurred()) SWIG_fail; | |
37578 | } | |
37579 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
37580 | return resultobj; | |
37581 | fail: | |
37582 | return NULL; | |
37583 | } | |
37584 | ||
37585 | ||
37586 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37587 | PyObject *resultobj; | |
37588 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37589 | PyObject * obj0 = 0 ; | |
37590 | char *kwnames[] = { | |
37591 | (char *) "self", NULL | |
37592 | }; | |
37593 | ||
37594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
37595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37596 | { | |
37597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37598 | (arg1)->RecalcSizes(); | |
37599 | ||
37600 | wxPyEndAllowThreads(__tstate); | |
37601 | if (PyErr_Occurred()) SWIG_fail; | |
37602 | } | |
37603 | Py_INCREF(Py_None); resultobj = Py_None; | |
37604 | return resultobj; | |
37605 | fail: | |
37606 | return NULL; | |
37607 | } | |
37608 | ||
37609 | ||
37610 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37611 | PyObject *resultobj; | |
37612 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37613 | wxSize result; | |
37614 | PyObject * obj0 = 0 ; | |
37615 | char *kwnames[] = { | |
37616 | (char *) "self", NULL | |
37617 | }; | |
37618 | ||
37619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
37620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37621 | { | |
37622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37623 | result = (arg1)->CalcMin(); | |
37624 | ||
37625 | wxPyEndAllowThreads(__tstate); | |
37626 | if (PyErr_Occurred()) SWIG_fail; | |
37627 | } | |
37628 | { | |
37629 | wxSize * resultptr; | |
37630 | resultptr = new wxSize((wxSize &) result); | |
37631 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
37632 | } | |
37633 | return resultobj; | |
37634 | fail: | |
37635 | return NULL; | |
37636 | } | |
37637 | ||
37638 | ||
37639 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
37640 | PyObject *resultobj; | |
37641 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37642 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
37643 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
37644 | bool result; | |
37645 | PyObject * obj0 = 0 ; | |
37646 | PyObject * obj1 = 0 ; | |
37647 | PyObject * obj2 = 0 ; | |
37648 | ||
37649 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
37650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37651 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37652 | if (obj2) { | |
37653 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37654 | } | |
37655 | { | |
37656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37657 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
37658 | ||
37659 | wxPyEndAllowThreads(__tstate); | |
37660 | if (PyErr_Occurred()) SWIG_fail; | |
37661 | } | |
4e760a36 | 37662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37663 | return resultobj; |
37664 | fail: | |
37665 | return NULL; | |
37666 | } | |
37667 | ||
37668 | ||
37669 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
37670 | PyObject *resultobj; | |
37671 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37672 | wxGBPosition *arg2 = 0 ; | |
37673 | wxGBSpan *arg3 = 0 ; | |
37674 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
37675 | bool result; | |
37676 | wxGBPosition temp2 ; | |
37677 | wxGBSpan temp3 ; | |
37678 | PyObject * obj0 = 0 ; | |
37679 | PyObject * obj1 = 0 ; | |
37680 | PyObject * obj2 = 0 ; | |
37681 | PyObject * obj3 = 0 ; | |
37682 | ||
37683 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
37684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37685 | { | |
37686 | arg2 = &temp2; | |
37687 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37688 | } | |
37689 | { | |
37690 | arg3 = &temp3; | |
37691 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37692 | } | |
37693 | if (obj3) { | |
37694 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37695 | } | |
37696 | { | |
37697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37698 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
37699 | ||
37700 | wxPyEndAllowThreads(__tstate); | |
37701 | if (PyErr_Occurred()) SWIG_fail; | |
37702 | } | |
4e760a36 | 37703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37704 | return resultobj; |
37705 | fail: | |
37706 | return NULL; | |
37707 | } | |
37708 | ||
37709 | ||
37710 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
37711 | int argc; | |
37712 | PyObject *argv[5]; | |
37713 | int ii; | |
37714 | ||
37715 | argc = PyObject_Length(args); | |
37716 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
37717 | argv[ii] = PyTuple_GetItem(args,ii); | |
37718 | } | |
37719 | if ((argc >= 2) && (argc <= 3)) { | |
37720 | int _v; | |
37721 | { | |
37722 | void *ptr; | |
37723 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37724 | _v = 0; | |
37725 | PyErr_Clear(); | |
37726 | } else { | |
37727 | _v = 1; | |
37728 | } | |
37729 | } | |
37730 | if (_v) { | |
37731 | { | |
37732 | void *ptr; | |
37733 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37734 | _v = 0; | |
37735 | PyErr_Clear(); | |
37736 | } else { | |
37737 | _v = 1; | |
37738 | } | |
37739 | } | |
37740 | if (_v) { | |
37741 | if (argc <= 2) { | |
37742 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
37743 | } | |
37744 | { | |
37745 | void *ptr; | |
37746 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37747 | _v = 0; | |
37748 | PyErr_Clear(); | |
37749 | } else { | |
37750 | _v = 1; | |
37751 | } | |
37752 | } | |
37753 | if (_v) { | |
37754 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
37755 | } | |
37756 | } | |
37757 | } | |
37758 | } | |
37759 | if ((argc >= 3) && (argc <= 4)) { | |
37760 | int _v; | |
37761 | { | |
37762 | void *ptr; | |
37763 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37764 | _v = 0; | |
37765 | PyErr_Clear(); | |
37766 | } else { | |
37767 | _v = 1; | |
37768 | } | |
37769 | } | |
37770 | if (_v) { | |
37771 | { | |
37772 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
37773 | } | |
37774 | if (_v) { | |
37775 | { | |
37776 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37777 | } | |
37778 | if (_v) { | |
37779 | if (argc <= 3) { | |
37780 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
37781 | } | |
37782 | { | |
37783 | void *ptr; | |
37784 | if (SWIG_ConvertPtr(argv[3], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37785 | _v = 0; | |
37786 | PyErr_Clear(); | |
37787 | } else { | |
37788 | _v = 1; | |
37789 | } | |
37790 | } | |
37791 | if (_v) { | |
37792 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
37793 | } | |
37794 | } | |
37795 | } | |
37796 | } | |
37797 | } | |
37798 | ||
37799 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
37800 | return NULL; | |
37801 | } | |
37802 | ||
37803 | ||
37804 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
37805 | PyObject *obj; | |
37806 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37807 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
37808 | Py_INCREF(obj); | |
37809 | return Py_BuildValue((char *)""); | |
37810 | } | |
37811 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37812 | PyObject *resultobj; | |
37813 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37814 | int arg2 ; | |
37815 | wxWindow *arg3 = (wxWindow *) 0 ; | |
37816 | int arg4 ; | |
37817 | int arg5 = (int) 0 ; | |
37818 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
37819 | PyObject * obj0 = 0 ; | |
8edf1c75 | 37820 | PyObject * obj1 = 0 ; |
d14a1e28 | 37821 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
37822 | PyObject * obj3 = 0 ; |
37823 | PyObject * obj4 = 0 ; | |
37824 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37825 | char *kwnames[] = { |
37826 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
37827 | }; | |
37828 | ||
8edf1c75 | 37829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 37830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
37831 | { |
37832 | arg2 = (wxRelationship) SWIG_PyObj_AsInt(obj1); | |
37833 | if (PyErr_Occurred()) SWIG_fail; | |
37834 | } | |
d14a1e28 | 37835 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
37836 | { |
37837 | arg4 = (wxEdge) SWIG_PyObj_AsInt(obj3); | |
37838 | if (PyErr_Occurred()) SWIG_fail; | |
37839 | } | |
37840 | if (obj4) { | |
37841 | { | |
37842 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
37843 | if (PyErr_Occurred()) SWIG_fail; | |
37844 | } | |
37845 | } | |
37846 | if (obj5) { | |
37847 | { | |
37848 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
37849 | if (PyErr_Occurred()) SWIG_fail; | |
37850 | } | |
37851 | } | |
d14a1e28 RD |
37852 | { |
37853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37854 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
37855 | ||
37856 | wxPyEndAllowThreads(__tstate); | |
37857 | if (PyErr_Occurred()) SWIG_fail; | |
37858 | } | |
37859 | Py_INCREF(Py_None); resultobj = Py_None; | |
37860 | return resultobj; | |
37861 | fail: | |
37862 | return NULL; | |
37863 | } | |
37864 | ||
37865 | ||
37866 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37867 | PyObject *resultobj; | |
37868 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37869 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37870 | int arg3 = (int) 0 ; | |
37871 | PyObject * obj0 = 0 ; | |
37872 | PyObject * obj1 = 0 ; | |
8edf1c75 | 37873 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37874 | char *kwnames[] = { |
37875 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37876 | }; | |
37877 | ||
8edf1c75 | 37878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
37879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
37880 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
37881 | if (obj2) { |
37882 | { | |
37883 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
37884 | if (PyErr_Occurred()) SWIG_fail; | |
37885 | } | |
37886 | } | |
d14a1e28 RD |
37887 | { |
37888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37889 | (arg1)->LeftOf(arg2,arg3); | |
37890 | ||
37891 | wxPyEndAllowThreads(__tstate); | |
37892 | if (PyErr_Occurred()) SWIG_fail; | |
37893 | } | |
37894 | Py_INCREF(Py_None); resultobj = Py_None; | |
37895 | return resultobj; | |
37896 | fail: | |
37897 | return NULL; | |
37898 | } | |
37899 | ||
37900 | ||
37901 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37902 | PyObject *resultobj; | |
37903 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37904 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37905 | int arg3 = (int) 0 ; | |
37906 | PyObject * obj0 = 0 ; | |
37907 | PyObject * obj1 = 0 ; | |
8edf1c75 | 37908 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37909 | char *kwnames[] = { |
37910 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37911 | }; | |
37912 | ||
8edf1c75 | 37913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
37914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
37915 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
37916 | if (obj2) { |
37917 | { | |
37918 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
37919 | if (PyErr_Occurred()) SWIG_fail; | |
37920 | } | |
37921 | } | |
d14a1e28 RD |
37922 | { |
37923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37924 | (arg1)->RightOf(arg2,arg3); | |
37925 | ||
37926 | wxPyEndAllowThreads(__tstate); | |
37927 | if (PyErr_Occurred()) SWIG_fail; | |
37928 | } | |
37929 | Py_INCREF(Py_None); resultobj = Py_None; | |
37930 | return resultobj; | |
37931 | fail: | |
37932 | return NULL; | |
37933 | } | |
37934 | ||
37935 | ||
37936 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37937 | PyObject *resultobj; | |
37938 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37939 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37940 | int arg3 = (int) 0 ; | |
37941 | PyObject * obj0 = 0 ; | |
37942 | PyObject * obj1 = 0 ; | |
8edf1c75 | 37943 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37944 | char *kwnames[] = { |
37945 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37946 | }; | |
37947 | ||
8edf1c75 | 37948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
37949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
37950 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
37951 | if (obj2) { |
37952 | { | |
37953 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
37954 | if (PyErr_Occurred()) SWIG_fail; | |
37955 | } | |
37956 | } | |
d14a1e28 RD |
37957 | { |
37958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37959 | (arg1)->Above(arg2,arg3); | |
37960 | ||
37961 | wxPyEndAllowThreads(__tstate); | |
37962 | if (PyErr_Occurred()) SWIG_fail; | |
37963 | } | |
37964 | Py_INCREF(Py_None); resultobj = Py_None; | |
37965 | return resultobj; | |
37966 | fail: | |
37967 | return NULL; | |
37968 | } | |
37969 | ||
37970 | ||
37971 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37972 | PyObject *resultobj; | |
37973 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37974 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37975 | int arg3 = (int) 0 ; | |
37976 | PyObject * obj0 = 0 ; | |
37977 | PyObject * obj1 = 0 ; | |
8edf1c75 | 37978 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37979 | char *kwnames[] = { |
37980 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37981 | }; | |
37982 | ||
8edf1c75 | 37983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
37984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
37985 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
37986 | if (obj2) { |
37987 | { | |
37988 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
37989 | if (PyErr_Occurred()) SWIG_fail; | |
37990 | } | |
37991 | } | |
d14a1e28 RD |
37992 | { |
37993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37994 | (arg1)->Below(arg2,arg3); | |
37995 | ||
37996 | wxPyEndAllowThreads(__tstate); | |
37997 | if (PyErr_Occurred()) SWIG_fail; | |
37998 | } | |
37999 | Py_INCREF(Py_None); resultobj = Py_None; | |
38000 | return resultobj; | |
38001 | fail: | |
38002 | return NULL; | |
38003 | } | |
38004 | ||
38005 | ||
38006 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38007 | PyObject *resultobj; | |
38008 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38009 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38010 | int arg3 ; | |
38011 | int arg4 = (int) 0 ; | |
38012 | PyObject * obj0 = 0 ; | |
38013 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
38014 | PyObject * obj2 = 0 ; |
38015 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
38016 | char *kwnames[] = { |
38017 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
38018 | }; | |
38019 | ||
8edf1c75 | 38020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
38021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
38022 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
38023 | { |
38024 | arg3 = (wxEdge) SWIG_PyObj_AsInt(obj2); | |
38025 | if (PyErr_Occurred()) SWIG_fail; | |
38026 | } | |
38027 | if (obj3) { | |
38028 | { | |
38029 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
38030 | if (PyErr_Occurred()) SWIG_fail; | |
38031 | } | |
38032 | } | |
d14a1e28 RD |
38033 | { |
38034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38035 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
38036 | ||
38037 | wxPyEndAllowThreads(__tstate); | |
38038 | if (PyErr_Occurred()) SWIG_fail; | |
38039 | } | |
38040 | Py_INCREF(Py_None); resultobj = Py_None; | |
38041 | return resultobj; | |
38042 | fail: | |
38043 | return NULL; | |
38044 | } | |
38045 | ||
38046 | ||
38047 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38048 | PyObject *resultobj; | |
38049 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38050 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38051 | int arg3 ; | |
38052 | int arg4 ; | |
38053 | PyObject * obj0 = 0 ; | |
38054 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
38055 | PyObject * obj2 = 0 ; |
38056 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
38057 | char *kwnames[] = { |
38058 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
38059 | }; | |
38060 | ||
8edf1c75 | 38061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
38062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
38063 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
38064 | { |
38065 | arg3 = (wxEdge) SWIG_PyObj_AsInt(obj2); | |
38066 | if (PyErr_Occurred()) SWIG_fail; | |
38067 | } | |
38068 | { | |
38069 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
38070 | if (PyErr_Occurred()) SWIG_fail; | |
38071 | } | |
d14a1e28 RD |
38072 | { |
38073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38074 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
38075 | ||
38076 | wxPyEndAllowThreads(__tstate); | |
38077 | if (PyErr_Occurred()) SWIG_fail; | |
38078 | } | |
38079 | Py_INCREF(Py_None); resultobj = Py_None; | |
38080 | return resultobj; | |
38081 | fail: | |
38082 | return NULL; | |
38083 | } | |
38084 | ||
38085 | ||
38086 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38087 | PyObject *resultobj; | |
38088 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38089 | int arg2 ; | |
38090 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38091 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38092 | char *kwnames[] = { |
38093 | (char *) "self",(char *) "val", NULL | |
38094 | }; | |
38095 | ||
8edf1c75 | 38096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 38097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
38098 | { |
38099 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
38100 | if (PyErr_Occurred()) SWIG_fail; | |
38101 | } | |
d14a1e28 RD |
38102 | { |
38103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38104 | (arg1)->Absolute(arg2); | |
38105 | ||
38106 | wxPyEndAllowThreads(__tstate); | |
38107 | if (PyErr_Occurred()) SWIG_fail; | |
38108 | } | |
38109 | Py_INCREF(Py_None); resultobj = Py_None; | |
38110 | return resultobj; | |
38111 | fail: | |
38112 | return NULL; | |
38113 | } | |
38114 | ||
38115 | ||
38116 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38117 | PyObject *resultobj; | |
38118 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38119 | PyObject * obj0 = 0 ; | |
38120 | char *kwnames[] = { | |
38121 | (char *) "self", NULL | |
38122 | }; | |
38123 | ||
38124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
38125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38126 | { | |
38127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38128 | (arg1)->Unconstrained(); | |
38129 | ||
38130 | wxPyEndAllowThreads(__tstate); | |
38131 | if (PyErr_Occurred()) SWIG_fail; | |
38132 | } | |
38133 | Py_INCREF(Py_None); resultobj = Py_None; | |
38134 | return resultobj; | |
38135 | fail: | |
38136 | return NULL; | |
38137 | } | |
38138 | ||
38139 | ||
38140 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38141 | PyObject *resultobj; | |
38142 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38143 | PyObject * obj0 = 0 ; | |
38144 | char *kwnames[] = { | |
38145 | (char *) "self", NULL | |
38146 | }; | |
38147 | ||
38148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
38149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38150 | { | |
38151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38152 | (arg1)->AsIs(); | |
38153 | ||
38154 | wxPyEndAllowThreads(__tstate); | |
38155 | if (PyErr_Occurred()) SWIG_fail; | |
38156 | } | |
38157 | Py_INCREF(Py_None); resultobj = Py_None; | |
38158 | return resultobj; | |
38159 | fail: | |
38160 | return NULL; | |
38161 | } | |
38162 | ||
38163 | ||
38164 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38165 | PyObject *resultobj; | |
38166 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38167 | wxWindow *result; | |
38168 | PyObject * obj0 = 0 ; | |
38169 | char *kwnames[] = { | |
38170 | (char *) "self", NULL | |
38171 | }; | |
38172 | ||
38173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
38174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38175 | { | |
38176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38177 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
38178 | ||
38179 | wxPyEndAllowThreads(__tstate); | |
38180 | if (PyErr_Occurred()) SWIG_fail; | |
38181 | } | |
38182 | { | |
38183 | resultobj = wxPyMake_wxObject(result); | |
38184 | } | |
38185 | return resultobj; | |
38186 | fail: | |
38187 | return NULL; | |
38188 | } | |
38189 | ||
38190 | ||
38191 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38192 | PyObject *resultobj; | |
38193 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38194 | int result; | |
38195 | PyObject * obj0 = 0 ; | |
38196 | char *kwnames[] = { | |
38197 | (char *) "self", NULL | |
38198 | }; | |
38199 | ||
38200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
38201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38202 | { | |
38203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38204 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
38205 | ||
38206 | wxPyEndAllowThreads(__tstate); | |
38207 | if (PyErr_Occurred()) SWIG_fail; | |
38208 | } | |
8edf1c75 | 38209 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38210 | return resultobj; |
38211 | fail: | |
38212 | return NULL; | |
38213 | } | |
38214 | ||
38215 | ||
38216 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38217 | PyObject *resultobj; | |
38218 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38219 | int arg2 ; | |
38220 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38221 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38222 | char *kwnames[] = { |
38223 | (char *) "self",(char *) "which", NULL | |
38224 | }; | |
38225 | ||
8edf1c75 | 38226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 38227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
38228 | { |
38229 | arg2 = (wxEdge) SWIG_PyObj_AsInt(obj1); | |
38230 | if (PyErr_Occurred()) SWIG_fail; | |
38231 | } | |
d14a1e28 RD |
38232 | { |
38233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38234 | (arg1)->SetEdge((wxEdge )arg2); | |
38235 | ||
38236 | wxPyEndAllowThreads(__tstate); | |
38237 | if (PyErr_Occurred()) SWIG_fail; | |
38238 | } | |
38239 | Py_INCREF(Py_None); resultobj = Py_None; | |
38240 | return resultobj; | |
38241 | fail: | |
38242 | return NULL; | |
38243 | } | |
38244 | ||
38245 | ||
38246 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38247 | PyObject *resultobj; | |
38248 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38249 | int arg2 ; | |
38250 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38251 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38252 | char *kwnames[] = { |
38253 | (char *) "self",(char *) "v", NULL | |
38254 | }; | |
38255 | ||
8edf1c75 | 38256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 38257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
38258 | { |
38259 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
38260 | if (PyErr_Occurred()) SWIG_fail; | |
38261 | } | |
d14a1e28 RD |
38262 | { |
38263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38264 | (arg1)->SetValue(arg2); | |
38265 | ||
38266 | wxPyEndAllowThreads(__tstate); | |
38267 | if (PyErr_Occurred()) SWIG_fail; | |
38268 | } | |
38269 | Py_INCREF(Py_None); resultobj = Py_None; | |
38270 | return resultobj; | |
38271 | fail: | |
38272 | return NULL; | |
38273 | } | |
38274 | ||
38275 | ||
38276 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38277 | PyObject *resultobj; | |
38278 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38279 | int result; | |
38280 | PyObject * obj0 = 0 ; | |
38281 | char *kwnames[] = { | |
38282 | (char *) "self", NULL | |
38283 | }; | |
38284 | ||
38285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
38286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38287 | { | |
38288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38289 | result = (int)(arg1)->GetMargin(); | |
38290 | ||
38291 | wxPyEndAllowThreads(__tstate); | |
38292 | if (PyErr_Occurred()) SWIG_fail; | |
38293 | } | |
8edf1c75 | 38294 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38295 | return resultobj; |
38296 | fail: | |
38297 | return NULL; | |
38298 | } | |
38299 | ||
38300 | ||
38301 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38302 | PyObject *resultobj; | |
38303 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38304 | int arg2 ; | |
38305 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38306 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38307 | char *kwnames[] = { |
38308 | (char *) "self",(char *) "m", NULL | |
38309 | }; | |
38310 | ||
8edf1c75 | 38311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 38312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
38313 | { |
38314 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
38315 | if (PyErr_Occurred()) SWIG_fail; | |
38316 | } | |
d14a1e28 RD |
38317 | { |
38318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38319 | (arg1)->SetMargin(arg2); | |
38320 | ||
38321 | wxPyEndAllowThreads(__tstate); | |
38322 | if (PyErr_Occurred()) SWIG_fail; | |
38323 | } | |
38324 | Py_INCREF(Py_None); resultobj = Py_None; | |
38325 | return resultobj; | |
38326 | fail: | |
38327 | return NULL; | |
38328 | } | |
38329 | ||
38330 | ||
38331 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38332 | PyObject *resultobj; | |
38333 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38334 | int result; | |
38335 | PyObject * obj0 = 0 ; | |
38336 | char *kwnames[] = { | |
38337 | (char *) "self", NULL | |
38338 | }; | |
38339 | ||
38340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
38341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38342 | { | |
38343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38344 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
38345 | ||
38346 | wxPyEndAllowThreads(__tstate); | |
38347 | if (PyErr_Occurred()) SWIG_fail; | |
38348 | } | |
8edf1c75 | 38349 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38350 | return resultobj; |
38351 | fail: | |
38352 | return NULL; | |
38353 | } | |
38354 | ||
38355 | ||
38356 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38357 | PyObject *resultobj; | |
38358 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38359 | int result; | |
38360 | PyObject * obj0 = 0 ; | |
38361 | char *kwnames[] = { | |
38362 | (char *) "self", NULL | |
38363 | }; | |
38364 | ||
38365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
38366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38367 | { | |
38368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38369 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
38370 | ||
38371 | wxPyEndAllowThreads(__tstate); | |
38372 | if (PyErr_Occurred()) SWIG_fail; | |
38373 | } | |
8edf1c75 | 38374 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38375 | return resultobj; |
38376 | fail: | |
38377 | return NULL; | |
38378 | } | |
38379 | ||
38380 | ||
38381 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38382 | PyObject *resultobj; | |
38383 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38384 | int result; | |
38385 | PyObject * obj0 = 0 ; | |
38386 | char *kwnames[] = { | |
38387 | (char *) "self", NULL | |
38388 | }; | |
38389 | ||
38390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
38391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38392 | { | |
38393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38394 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
38395 | ||
38396 | wxPyEndAllowThreads(__tstate); | |
38397 | if (PyErr_Occurred()) SWIG_fail; | |
38398 | } | |
8edf1c75 | 38399 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38400 | return resultobj; |
38401 | fail: | |
38402 | return NULL; | |
38403 | } | |
38404 | ||
38405 | ||
38406 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38407 | PyObject *resultobj; | |
38408 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38409 | bool result; | |
38410 | PyObject * obj0 = 0 ; | |
38411 | char *kwnames[] = { | |
38412 | (char *) "self", NULL | |
38413 | }; | |
38414 | ||
38415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
38416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38417 | { | |
38418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38419 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
38420 | ||
38421 | wxPyEndAllowThreads(__tstate); | |
38422 | if (PyErr_Occurred()) SWIG_fail; | |
38423 | } | |
4e760a36 | 38424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38425 | return resultobj; |
38426 | fail: | |
38427 | return NULL; | |
38428 | } | |
38429 | ||
38430 | ||
38431 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38432 | PyObject *resultobj; | |
38433 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38434 | bool arg2 ; | |
38435 | PyObject * obj0 = 0 ; | |
38436 | PyObject * obj1 = 0 ; | |
38437 | char *kwnames[] = { | |
38438 | (char *) "self",(char *) "d", NULL | |
38439 | }; | |
38440 | ||
38441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
38442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 38443 | { |
8edf1c75 | 38444 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
38445 | if (PyErr_Occurred()) SWIG_fail; |
38446 | } | |
d14a1e28 RD |
38447 | { |
38448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38449 | (arg1)->SetDone(arg2); | |
38450 | ||
38451 | wxPyEndAllowThreads(__tstate); | |
38452 | if (PyErr_Occurred()) SWIG_fail; | |
38453 | } | |
38454 | Py_INCREF(Py_None); resultobj = Py_None; | |
38455 | return resultobj; | |
38456 | fail: | |
38457 | return NULL; | |
38458 | } | |
38459 | ||
38460 | ||
38461 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38462 | PyObject *resultobj; | |
38463 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38464 | int result; | |
38465 | PyObject * obj0 = 0 ; | |
38466 | char *kwnames[] = { | |
38467 | (char *) "self", NULL | |
38468 | }; | |
38469 | ||
38470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
38471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38472 | { | |
38473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38474 | result = (int)(arg1)->GetRelationship(); | |
38475 | ||
38476 | wxPyEndAllowThreads(__tstate); | |
38477 | if (PyErr_Occurred()) SWIG_fail; | |
38478 | } | |
8edf1c75 | 38479 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38480 | return resultobj; |
38481 | fail: | |
38482 | return NULL; | |
38483 | } | |
38484 | ||
38485 | ||
38486 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38487 | PyObject *resultobj; | |
38488 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38489 | int arg2 ; | |
38490 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38491 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38492 | char *kwnames[] = { |
38493 | (char *) "self",(char *) "r", NULL | |
38494 | }; | |
38495 | ||
8edf1c75 | 38496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 38497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
38498 | { |
38499 | arg2 = (wxRelationship) SWIG_PyObj_AsInt(obj1); | |
38500 | if (PyErr_Occurred()) SWIG_fail; | |
38501 | } | |
d14a1e28 RD |
38502 | { |
38503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38504 | (arg1)->SetRelationship((wxRelationship )arg2); | |
38505 | ||
38506 | wxPyEndAllowThreads(__tstate); | |
38507 | if (PyErr_Occurred()) SWIG_fail; | |
38508 | } | |
38509 | Py_INCREF(Py_None); resultobj = Py_None; | |
38510 | return resultobj; | |
38511 | fail: | |
38512 | return NULL; | |
38513 | } | |
38514 | ||
38515 | ||
38516 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38517 | PyObject *resultobj; | |
38518 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38519 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38520 | bool result; | |
38521 | PyObject * obj0 = 0 ; | |
38522 | PyObject * obj1 = 0 ; | |
38523 | char *kwnames[] = { | |
38524 | (char *) "self",(char *) "otherW", NULL | |
38525 | }; | |
38526 | ||
38527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
38528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38529 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38530 | { | |
38531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38532 | result = (bool)(arg1)->ResetIfWin(arg2); | |
38533 | ||
38534 | wxPyEndAllowThreads(__tstate); | |
38535 | if (PyErr_Occurred()) SWIG_fail; | |
38536 | } | |
4e760a36 | 38537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38538 | return resultobj; |
38539 | fail: | |
38540 | return NULL; | |
38541 | } | |
38542 | ||
38543 | ||
38544 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38545 | PyObject *resultobj; | |
38546 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38547 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
38548 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38549 | bool result; | |
38550 | PyObject * obj0 = 0 ; | |
38551 | PyObject * obj1 = 0 ; | |
38552 | PyObject * obj2 = 0 ; | |
38553 | char *kwnames[] = { | |
38554 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
38555 | }; | |
38556 | ||
38557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38559 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38560 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38561 | { | |
38562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38563 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
38564 | ||
38565 | wxPyEndAllowThreads(__tstate); | |
38566 | if (PyErr_Occurred()) SWIG_fail; | |
38567 | } | |
4e760a36 | 38568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38569 | return resultobj; |
38570 | fail: | |
38571 | return NULL; | |
38572 | } | |
38573 | ||
38574 | ||
38575 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38576 | PyObject *resultobj; | |
38577 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38578 | int arg2 ; | |
38579 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38580 | wxWindow *arg4 = (wxWindow *) 0 ; | |
38581 | int result; | |
38582 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38583 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38584 | PyObject * obj2 = 0 ; |
38585 | PyObject * obj3 = 0 ; | |
38586 | char *kwnames[] = { | |
38587 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
38588 | }; | |
38589 | ||
8edf1c75 | 38590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 38591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
38592 | { |
38593 | arg2 = (wxEdge) SWIG_PyObj_AsInt(obj1); | |
38594 | if (PyErr_Occurred()) SWIG_fail; | |
38595 | } | |
d14a1e28 RD |
38596 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
38597 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38598 | { | |
38599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38600 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
38601 | ||
38602 | wxPyEndAllowThreads(__tstate); | |
38603 | if (PyErr_Occurred()) SWIG_fail; | |
38604 | } | |
8edf1c75 | 38605 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38606 | return resultobj; |
38607 | fail: | |
38608 | return NULL; | |
38609 | } | |
38610 | ||
38611 | ||
38612 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
38613 | PyObject *obj; | |
38614 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38615 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
38616 | Py_INCREF(obj); | |
38617 | return Py_BuildValue((char *)""); | |
38618 | } | |
38619 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38620 | PyObject *resultobj; | |
38621 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38622 | wxIndividualLayoutConstraint *result; | |
38623 | PyObject * obj0 = 0 ; | |
38624 | char *kwnames[] = { | |
38625 | (char *) "self", NULL | |
38626 | }; | |
38627 | ||
38628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
38629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38630 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
38631 | ||
38632 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38633 | return resultobj; | |
38634 | fail: | |
38635 | return NULL; | |
38636 | } | |
38637 | ||
38638 | ||
38639 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38640 | PyObject *resultobj; | |
38641 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38642 | wxIndividualLayoutConstraint *result; | |
38643 | PyObject * obj0 = 0 ; | |
38644 | char *kwnames[] = { | |
38645 | (char *) "self", NULL | |
38646 | }; | |
38647 | ||
38648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
38649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38650 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
38651 | ||
38652 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38653 | return resultobj; | |
38654 | fail: | |
38655 | return NULL; | |
38656 | } | |
38657 | ||
38658 | ||
38659 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38660 | PyObject *resultobj; | |
38661 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38662 | wxIndividualLayoutConstraint *result; | |
38663 | PyObject * obj0 = 0 ; | |
38664 | char *kwnames[] = { | |
38665 | (char *) "self", NULL | |
38666 | }; | |
38667 | ||
38668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
38669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38670 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
38671 | ||
38672 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38673 | return resultobj; | |
38674 | fail: | |
38675 | return NULL; | |
38676 | } | |
38677 | ||
38678 | ||
38679 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38680 | PyObject *resultobj; | |
38681 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38682 | wxIndividualLayoutConstraint *result; | |
38683 | PyObject * obj0 = 0 ; | |
38684 | char *kwnames[] = { | |
38685 | (char *) "self", NULL | |
38686 | }; | |
38687 | ||
38688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
38689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38690 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
38691 | ||
38692 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38693 | return resultobj; | |
38694 | fail: | |
38695 | return NULL; | |
38696 | } | |
38697 | ||
38698 | ||
38699 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38700 | PyObject *resultobj; | |
38701 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38702 | wxIndividualLayoutConstraint *result; | |
38703 | PyObject * obj0 = 0 ; | |
38704 | char *kwnames[] = { | |
38705 | (char *) "self", NULL | |
38706 | }; | |
38707 | ||
38708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
38709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38710 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
38711 | ||
38712 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38713 | return resultobj; | |
38714 | fail: | |
38715 | return NULL; | |
38716 | } | |
38717 | ||
38718 | ||
38719 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38720 | PyObject *resultobj; | |
38721 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38722 | wxIndividualLayoutConstraint *result; | |
38723 | PyObject * obj0 = 0 ; | |
38724 | char *kwnames[] = { | |
38725 | (char *) "self", NULL | |
38726 | }; | |
38727 | ||
38728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
38729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38730 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
38731 | ||
38732 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38733 | return resultobj; | |
38734 | fail: | |
38735 | return NULL; | |
38736 | } | |
38737 | ||
38738 | ||
38739 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38740 | PyObject *resultobj; | |
38741 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38742 | wxIndividualLayoutConstraint *result; | |
38743 | PyObject * obj0 = 0 ; | |
38744 | char *kwnames[] = { | |
38745 | (char *) "self", NULL | |
38746 | }; | |
38747 | ||
38748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
38749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38750 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
38751 | ||
38752 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38753 | return resultobj; | |
38754 | fail: | |
38755 | return NULL; | |
38756 | } | |
38757 | ||
38758 | ||
38759 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38760 | PyObject *resultobj; | |
38761 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38762 | wxIndividualLayoutConstraint *result; | |
38763 | PyObject * obj0 = 0 ; | |
38764 | char *kwnames[] = { | |
38765 | (char *) "self", NULL | |
38766 | }; | |
38767 | ||
38768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
38769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38770 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
38771 | ||
38772 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38773 | return resultobj; | |
38774 | fail: | |
38775 | return NULL; | |
38776 | } | |
38777 | ||
38778 | ||
38779 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38780 | PyObject *resultobj; | |
38781 | wxLayoutConstraints *result; | |
38782 | char *kwnames[] = { | |
38783 | NULL | |
38784 | }; | |
38785 | ||
38786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
38787 | { | |
38788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38789 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
38790 | ||
38791 | wxPyEndAllowThreads(__tstate); | |
38792 | if (PyErr_Occurred()) SWIG_fail; | |
38793 | } | |
38794 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 1); | |
38795 | return resultobj; | |
38796 | fail: | |
38797 | return NULL; | |
38798 | } | |
38799 | ||
38800 | ||
38801 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38802 | PyObject *resultobj; | |
38803 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38804 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38805 | int *arg3 = (int *) 0 ; | |
38806 | bool result; | |
38807 | int temp3 ; | |
38808 | PyObject * obj0 = 0 ; | |
38809 | PyObject * obj1 = 0 ; | |
38810 | char *kwnames[] = { | |
38811 | (char *) "self",(char *) "win", NULL | |
38812 | }; | |
38813 | ||
38814 | arg3 = &temp3; | |
38815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
38816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38817 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38818 | { | |
38819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38820 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
38821 | ||
38822 | wxPyEndAllowThreads(__tstate); | |
38823 | if (PyErr_Occurred()) SWIG_fail; | |
38824 | } | |
4e760a36 | 38825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38826 | { |
38827 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
38828 | resultobj = t_output_helper(resultobj,o); | |
38829 | } | |
38830 | return resultobj; | |
38831 | fail: | |
38832 | return NULL; | |
38833 | } | |
38834 | ||
38835 | ||
38836 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38837 | PyObject *resultobj; | |
38838 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38839 | bool result; | |
38840 | PyObject * obj0 = 0 ; | |
38841 | char *kwnames[] = { | |
38842 | (char *) "self", NULL | |
38843 | }; | |
38844 | ||
38845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
38846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38847 | { | |
38848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38849 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
38850 | ||
38851 | wxPyEndAllowThreads(__tstate); | |
38852 | if (PyErr_Occurred()) SWIG_fail; | |
38853 | } | |
4e760a36 | 38854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38855 | return resultobj; |
38856 | fail: | |
38857 | return NULL; | |
38858 | } | |
38859 | ||
38860 | ||
38861 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
38862 | PyObject *obj; | |
38863 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38864 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
38865 | Py_INCREF(obj); | |
38866 | return Py_BuildValue((char *)""); | |
38867 | } | |
38868 | static PyMethodDef SwigMethods[] = { | |
38869 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
d03fd34d | 38870 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, |
d14a1e28 RD |
38871 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, |
38872 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
38873 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
38874 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
38875 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
38876 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
38877 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
38878 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
38879 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
38880 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
38881 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
38882 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
38883 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
38884 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
38885 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
38886 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
38887 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
38888 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
38889 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
38890 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 38891 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38892 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, |
38893 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
38894 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
38895 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
38896 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
38897 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
38898 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
38899 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, |
38900 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
38901 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, |
38902 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 38903 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, |
423f194a | 38904 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38905 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, |
38906 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
38907 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
38908 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
38909 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
38910 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
38911 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
38912 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
38913 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
38914 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
38915 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
38916 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
38917 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
38918 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 38919 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38920 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, |
38921 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
38922 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
38923 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
38924 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
38925 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
38926 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
38927 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
38928 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
38929 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
38930 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
38931 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
38932 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
38933 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38934 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38935 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
38936 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 RD |
38937 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, |
38938 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
38939 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
38940 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
38941 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, |
38942 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
38943 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
38944 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
38945 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
38946 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
38947 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
38948 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
38949 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
38950 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
38951 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
38952 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
38953 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
38954 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
38955 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
38956 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
38957 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
38958 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
38959 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
38960 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
38961 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
38962 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
38963 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
38964 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
38965 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
38966 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
38967 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
38968 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
38969 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 38970 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38971 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, |
38972 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
38973 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
38974 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
38975 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
38976 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
38977 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
38978 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
38979 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
38980 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
38981 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
38982 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
38983 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
38984 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
38985 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
38986 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
38987 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
38988 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
38989 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
38990 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
38991 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
38992 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
38993 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, |
38994 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
38995 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
38996 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
38997 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 38998 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38999 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, |
39000 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
39001 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
39002 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
39003 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
39004 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
39005 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
39006 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
39007 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
39008 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
39009 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
39010 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
39011 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
39012 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39013 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
39014 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
39015 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
39016 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
39017 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
39018 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
39019 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
39020 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
39021 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
39022 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
39023 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39024 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
39025 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
39026 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
39027 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
39028 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
39029 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
39030 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39031 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39032 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39033 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39034 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39035 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
39036 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
39037 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
39038 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
39039 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
39040 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
39041 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
39042 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
39043 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
39044 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
39045 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39046 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39047 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39048 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
39049 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
39050 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
39051 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
39052 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
39053 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39054 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39055 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39056 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
39057 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39058 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39059 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39060 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39061 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39062 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
39063 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
39064 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39065 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
39066 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39067 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
39068 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39069 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39070 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39071 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39072 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
39073 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
39074 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
39075 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
39076 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39077 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39078 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
39079 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
39080 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
39081 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39082 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
39083 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
39084 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
39085 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
39086 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
39087 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
39088 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
39089 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
39090 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
39091 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
39092 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, | |
39093 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39094 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
39095 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
39096 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39097 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
39098 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
39099 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
39100 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
39101 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
39102 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
39103 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
39104 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39105 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39106 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39107 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
39108 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
39109 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39110 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
39111 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
39112 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
39113 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
39114 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
39115 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
39116 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
39117 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
39118 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
39119 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39120 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39121 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
39122 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
39123 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
39124 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
39125 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
39126 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39127 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39128 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
39129 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
39130 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39131 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39132 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
39133 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
39134 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
39135 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
39136 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
39137 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
39138 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
39139 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
39140 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
39141 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
39142 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
39143 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
39144 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
39145 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
39146 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
39147 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
39148 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
39149 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
39150 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
39151 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
39152 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
39153 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
39154 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39155 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39156 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
39157 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
39158 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
39159 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
39160 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
39161 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
39162 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
39163 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
39164 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
39165 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
39166 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
39167 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
39168 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
39169 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
39170 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
39171 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
39172 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
39173 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
39174 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
39175 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
39176 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
39177 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
39178 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
39179 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
39180 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
39181 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
39182 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
39183 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
39184 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
39185 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39186 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39187 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
39188 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
39189 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
39190 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
39191 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
39192 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
39193 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
39194 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
39195 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
39196 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
39197 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
39198 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
39199 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
39200 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
39201 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
39202 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
39203 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
39204 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39205 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
39206 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
39207 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
39208 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
39209 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
39210 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
39211 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
39212 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
39213 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
39214 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
39215 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
39216 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
39217 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
39218 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39219 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
39220 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
39221 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
39222 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
39223 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
39224 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
39225 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
39226 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
39227 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
39228 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
39229 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
39230 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39231 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
39232 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
39233 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
39234 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
39235 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
39236 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39237 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39238 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39239 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39240 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
39241 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
39242 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39243 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39244 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39245 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39246 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
39247 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
39248 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
39249 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
39250 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
39251 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
39252 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
39253 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
39254 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
39255 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
39256 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
39257 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
39258 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
39259 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
39260 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
39261 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
39262 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
39263 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
39264 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
39265 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
39266 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
39267 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
39268 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
39269 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
39270 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
39271 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
39272 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
39273 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
39274 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
39275 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39276 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
39277 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
39278 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
39279 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
39280 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
39281 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
39282 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
39283 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
39284 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39285 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39286 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39287 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39288 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39289 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39290 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39291 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39292 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39293 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39294 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39295 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39296 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39297 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39298 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39299 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39300 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39301 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39302 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
39303 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
39304 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
39305 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
39306 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
39307 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
39308 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
39309 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
39310 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
39311 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
39312 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
39313 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
39314 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
39315 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
39316 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39317 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
39318 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
39319 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
39320 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
39321 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
39322 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
39323 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
39324 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
39325 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
39326 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39327 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
39328 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
39329 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
39330 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39331 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39332 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39333 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39334 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
39335 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
39336 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39337 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39338 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39339 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39340 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39341 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39342 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39343 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39344 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
39345 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
39346 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
39347 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
39348 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
39349 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
39350 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
39351 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
39352 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39353 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
39354 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
39355 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
39356 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
39357 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
39358 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
39359 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
39360 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
39361 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
39362 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39363 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
39364 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
39365 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39366 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
39367 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
39368 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
39369 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
39370 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
39371 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
39372 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
39373 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
39374 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
39375 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
39376 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
39377 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
39378 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
39379 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39380 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39381 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
39382 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
39383 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39384 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
39385 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
39386 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
39387 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
39388 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
39389 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
39390 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
39391 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
39392 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
39393 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
39394 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
39395 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
39396 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
39397 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
39398 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
39399 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
39400 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
39401 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
39402 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
39403 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
39404 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
39405 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
39406 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
39407 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
39408 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
39409 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
39410 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
39411 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
39412 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39413 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
39414 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
39415 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
39416 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
39417 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
39418 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39419 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
39420 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
39421 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
39422 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39423 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
39424 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39425 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
39426 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
39427 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
39428 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
39429 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
39430 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
39431 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
39432 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
39433 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
39434 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
39435 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
39436 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
39437 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
39438 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
39439 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
39440 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
39441 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
39442 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
39443 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
39444 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
39445 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
39446 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
39447 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
39448 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39449 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
39450 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
39451 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
39452 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
39453 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
39454 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
39455 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
39456 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
39457 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39458 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
39459 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39460 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39461 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
39462 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
39463 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39464 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39465 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
39466 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
39467 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
39468 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
39469 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
39470 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
39471 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
39472 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
39473 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39474 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39475 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39476 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39477 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
39478 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39479 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39480 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39481 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39482 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
39483 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
39484 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
39485 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39486 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
39487 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
39488 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
39489 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
39490 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
39491 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
39492 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
39493 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
39494 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
39495 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
39496 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
39497 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
39498 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
39499 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
39500 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
39501 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
39502 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39503 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, |
39504 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
39505 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
39506 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
39507 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
39508 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
39509 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
39510 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
39511 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 39512 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 39513 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39514 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, |
39515 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39516 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39517 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39518 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
39519 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
39520 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39521 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39522 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39523 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
39524 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
39525 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
39526 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
39527 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
39528 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
39529 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
39530 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
39531 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
39532 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
39533 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
39534 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
41f1cec7 RD |
39535 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, |
39536 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
39537 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
39538 | { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39539 | { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39540 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
39541 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
39542 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
39543 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
39544 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39545 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39546 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
39547 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
39548 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39549 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, |
39550 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
39551 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
39552 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
39553 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39554 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
39555 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
39556 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39557 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39558 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39559 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39560 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
39561 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
39562 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, | |
39563 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
39564 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
39565 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
39566 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
39567 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
39568 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
39569 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
39570 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
39571 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
39572 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
39573 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
39574 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
39575 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
39576 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
39577 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
39578 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39579 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
39580 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39581 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39582 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
39583 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
39584 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39585 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
39586 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
39587 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
39588 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39589 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
39590 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
39591 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
39592 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
39593 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
39594 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
39595 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39596 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39597 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, | |
39598 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
39599 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
39600 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
39601 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
39602 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
39603 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
39604 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
39605 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39606 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
39607 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
39608 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
39609 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39610 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
39611 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
39612 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39613 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
39614 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
39615 | { (char *)"Window_SetWindowStyle", (PyCFunction) _wrap_Window_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
39616 | { (char *)"Window_GetWindowStyle", (PyCFunction) _wrap_Window_GetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
39617 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
39618 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
39619 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
39620 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
39621 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
39622 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39623 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39624 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
39625 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
39626 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
39627 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
39628 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
39629 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
39630 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
39631 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
39632 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
39633 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
39634 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
39635 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
39636 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
39637 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
39638 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
39639 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
39640 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
39641 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
39642 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39643 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39644 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39645 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39646 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39647 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
39648 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
39649 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39650 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39651 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
39652 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
39653 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
39654 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
39655 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
39656 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
39657 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
39658 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
39659 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
39660 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
39661 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
39662 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
39663 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
39664 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
39665 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
39666 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
39667 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
39668 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
39669 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
39670 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
39671 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
39672 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
39673 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
39674 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
39675 | { (char *)"Window_isExposedRect", (PyCFunction) _wrap_Window_isExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
39676 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39677 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39678 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39679 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39680 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
39681 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
39682 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
39683 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
39684 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
39685 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
39686 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
39687 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
39688 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
39689 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
39690 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
39691 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
39692 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
39693 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
39694 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
39695 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
39696 | { (char *)"Window_GetBorderFlags", (PyCFunction) _wrap_Window_GetBorderFlags, METH_VARARGS | METH_KEYWORDS }, | |
39697 | { (char *)"Window_GetBorder", (PyCFunction) _wrap_Window_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
39698 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, | |
39699 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
39700 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
39701 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
39702 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS }, | |
39703 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
39704 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
39705 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
39706 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
39707 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
39708 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
39709 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
39710 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
39711 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
39712 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
39713 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
39714 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
39715 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
39716 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
39717 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
39718 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
39719 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
39720 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
39721 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
39722 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
39723 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
39724 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
39725 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
39726 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
39727 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
39728 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
39729 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
39730 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
39731 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
39732 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
39733 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
39734 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
39735 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
39736 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
39737 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
39738 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
39739 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
39740 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
39741 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
39742 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
39743 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
39744 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
39745 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39746 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39747 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
39748 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
39749 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
39750 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
39751 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39752 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
39753 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
39754 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
39755 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
39756 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
39757 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
39758 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
39759 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
39760 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
39761 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
39762 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
39763 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
39764 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
39765 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
39766 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
39767 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
39768 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
39769 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
39770 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
39771 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
39772 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
39773 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
39774 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
39775 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
39776 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
39777 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39778 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
39779 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
39780 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
39781 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
39782 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
39783 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
39784 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
39785 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39786 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39787 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
39788 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
39789 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39790 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39791 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
39792 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
39793 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39794 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39795 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39796 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39797 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
39798 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
39799 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
39800 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
39801 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
39802 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
39803 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
39804 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
39805 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
39806 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
39807 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
39808 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
39809 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
39810 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
39811 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
39812 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
39813 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
39814 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
39815 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
39816 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
39817 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
39818 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
39819 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39820 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
39821 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
39822 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39823 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
39824 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
39825 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39826 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39827 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39828 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
39829 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
39830 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
39831 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
39832 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
39833 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
39834 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
39835 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39836 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
39837 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
39838 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
39839 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
39840 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
39841 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
39842 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39843 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
39844 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
39845 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
39846 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
39847 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
39848 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
39849 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
39850 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
39851 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39852 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39853 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
39854 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
39855 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
39856 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
39857 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
39858 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
39859 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
39860 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
39861 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
39862 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
39863 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
39864 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39865 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39866 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
39867 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39868 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39869 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
39870 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
39871 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
39872 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
39873 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
39874 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
39875 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39876 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39877 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
39878 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
39879 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
39880 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
39881 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
39882 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39883 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39884 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
39885 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
39886 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
39887 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
39888 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
39889 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
39890 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
39891 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
39892 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
39893 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
39894 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
39895 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
39896 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
39897 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
39898 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
39899 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
39900 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
39901 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
39902 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
39903 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
39904 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
39905 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
39906 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
39907 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
39908 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
39909 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39910 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39911 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
39912 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
39913 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
39914 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
39915 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
39916 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
39917 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
39918 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
39919 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
39920 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
39921 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
39922 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
39923 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
39924 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
39925 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
39926 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
39927 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39928 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39929 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
39930 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
39931 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
39932 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
39933 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
39934 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
39935 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39936 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
39937 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
39938 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
39939 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
39940 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
39941 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
39942 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
39943 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, | |
39944 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
39945 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
39946 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
39947 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
39948 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
39949 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39950 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39951 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
39952 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39953 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39954 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
39955 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
39956 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
39957 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39958 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39959 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
39960 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
39961 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
39962 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
39963 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
39964 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
39965 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
39966 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
39967 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
39968 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39969 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
39970 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
39971 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39972 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39973 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39974 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39975 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
39976 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
39977 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
39978 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39979 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39980 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
39981 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
39982 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39983 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39984 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
39985 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
39986 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
39987 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
39988 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
39989 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
39990 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
39991 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
39992 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
39993 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
39994 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39995 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39996 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
39997 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
39998 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
39999 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
40000 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
40001 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
40002 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
40003 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40004 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, |
40005 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40006 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, |
40007 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
40008 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
40009 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
40010 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
40011 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
40012 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40013 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40014 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, |
40015 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40016 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, |
40017 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
40018 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
40019 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
40020 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
40021 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
40022 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40023 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40024 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, |
40025 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40026 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, |
40027 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
40028 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
40029 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
40030 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40031 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
40032 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
40033 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
40034 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
40035 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
40036 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
40037 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
40038 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
40039 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
40040 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
40041 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
40042 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
40043 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
40044 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
40045 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
40046 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
40047 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
40048 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
40049 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
40050 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 40051 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40052 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, |
40053 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40054 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40055 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
40056 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
40057 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
40058 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
40059 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
40060 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
40061 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
40062 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
40063 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
40064 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
40065 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
40066 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
40067 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
40068 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
40069 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
40070 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
40071 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
40072 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
40073 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
40074 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
40075 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
40076 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
40077 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
40078 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
40079 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
40080 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
40081 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
40082 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
40083 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
40084 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
40085 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
40086 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
40087 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
40088 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40089 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40090 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
40091 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
40092 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40093 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40094 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
40095 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
40096 | { NULL, NULL } | |
40097 | }; | |
40098 | ||
40099 | ||
40100 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
40101 | ||
40102 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
40103 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
40104 | } | |
40105 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
40106 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
40107 | } | |
40108 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
40109 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40110 | } | |
40111 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
40112 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40113 | } | |
40114 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
40115 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
40116 | } | |
40117 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
40118 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40119 | } | |
40120 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
40121 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
40122 | } | |
40123 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
40124 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40125 | } | |
40126 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
40127 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40128 | } | |
40129 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
40130 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
40131 | } | |
40132 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
40133 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
40134 | } | |
40135 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
40136 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
40137 | } | |
40138 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
40139 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
40140 | } | |
40141 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
40142 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
40143 | } | |
40144 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
40145 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
40146 | } | |
40147 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
40148 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
40149 | } | |
40150 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
40151 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
40152 | } | |
40153 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
40154 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40155 | } | |
40156 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
40157 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
40158 | } | |
40159 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
40160 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40161 | } | |
40162 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
40163 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
40164 | } | |
40165 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
40166 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
40167 | } | |
40168 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
40169 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
40170 | } | |
40171 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
40172 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
40173 | } | |
40174 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
40175 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
40176 | } | |
40177 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
40178 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
40179 | } | |
40180 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
40181 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
40182 | } | |
40183 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
40184 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
40185 | } | |
40186 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
40187 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40188 | } | |
40189 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
40190 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
40191 | } | |
40192 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
40193 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
40194 | } | |
40195 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
40196 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
40197 | } | |
40198 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
40199 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
40200 | } | |
40201 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
40202 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
40203 | } | |
40204 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
40205 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
40206 | } | |
40207 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
40208 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40209 | } | |
40210 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
40211 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
40212 | } | |
40213 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
40214 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
40215 | } | |
40216 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
40217 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40218 | } | |
40219 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
40220 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40221 | } | |
40222 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
40223 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40224 | } | |
40225 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
40226 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
40227 | } | |
40228 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
40229 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
40230 | } | |
40231 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
40232 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40233 | } | |
40234 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
40235 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40236 | } | |
40237 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
40238 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40239 | } | |
40240 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
40241 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
40242 | } | |
40243 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
40244 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
40245 | } | |
40246 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
40247 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
40248 | } | |
40249 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
40250 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
40251 | } | |
40252 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
40253 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
40254 | } | |
40255 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
40256 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
40257 | } | |
40258 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
40259 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
40260 | } | |
40261 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
40262 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
40263 | } | |
40264 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
40265 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
40266 | } | |
40267 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
40268 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
40269 | } | |
40270 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
40271 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
40272 | } | |
40273 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
40274 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
40275 | } | |
40276 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
40277 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
40278 | } | |
40279 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
40280 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
40281 | } | |
40282 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
40283 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
40284 | } | |
40285 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
40286 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40287 | } | |
40288 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
40289 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
40290 | } | |
40291 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
40292 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
40293 | } | |
40294 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
40295 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
40296 | } | |
40297 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
40298 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40299 | } | |
40300 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
40301 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
40302 | } | |
40303 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
40304 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
40305 | } | |
40306 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
40307 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
40308 | } | |
40309 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
40310 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
40311 | } | |
40312 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
40313 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
40314 | } | |
40315 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
40316 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
40317 | } | |
40318 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
40319 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
40320 | } | |
40321 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
40322 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
40323 | } | |
40324 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
40325 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
40326 | } | |
40327 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
40328 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
40329 | } | |
40330 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
40331 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
40332 | } | |
40333 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
40334 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
40335 | } | |
40336 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
40337 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
40338 | } | |
40339 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
40340 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40341 | } | |
40342 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
40343 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
40344 | } | |
40345 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
40346 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
40347 | } | |
40348 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
40349 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
40350 | } | |
40351 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
40352 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
40353 | } | |
40354 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
40355 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
40356 | } | |
40357 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
40358 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
40359 | } | |
40360 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
40361 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
40362 | } | |
40363 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
40364 | return (void *)((wxObject *) ((wxSizer *) x)); | |
40365 | } | |
40366 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
40367 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
40368 | } | |
40369 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
40370 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40371 | } | |
40372 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
40373 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
40374 | } | |
40375 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
40376 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
40377 | } | |
40378 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
40379 | return (void *)((wxObject *) ((wxImage *) x)); | |
40380 | } | |
40381 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
40382 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
40383 | } | |
40384 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
40385 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40386 | } | |
40387 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
40388 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
40389 | } | |
40390 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
40391 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
40392 | } | |
40393 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
40394 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
40395 | } | |
41f1cec7 RD |
40396 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
40397 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
40398 | } | |
d14a1e28 RD |
40399 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
40400 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
40401 | } | |
40402 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
40403 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40404 | } | |
40405 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
40406 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
40407 | } | |
40408 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
40409 | return (void *)((wxObject *) ((wxEvent *) x)); | |
40410 | } | |
40411 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
40412 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
40413 | } | |
40414 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
40415 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
40416 | } | |
40417 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
40418 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
40419 | } | |
40420 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
40421 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
40422 | } | |
40423 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
40424 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
40425 | } | |
40426 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
40427 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
40428 | } | |
40429 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
40430 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40431 | } | |
40432 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
40433 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
40434 | } | |
40435 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
40436 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
40437 | } | |
40438 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
40439 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
40440 | } | |
40441 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
40442 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
40443 | } | |
40444 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
40445 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
40446 | } | |
40447 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
40448 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
40449 | } | |
40450 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
40451 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
40452 | } | |
40453 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
40454 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
40455 | } | |
40456 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
40457 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40458 | } | |
40459 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
40460 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
40461 | } | |
40462 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
40463 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
40464 | } | |
40465 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
40466 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
40467 | } | |
40468 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
40469 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
40470 | } | |
40471 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
40472 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
40473 | } | |
40474 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
40475 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
40476 | } | |
40477 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
40478 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
40479 | } | |
40480 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
40481 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
40482 | } | |
40483 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
40484 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40485 | } | |
40486 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
40487 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
40488 | } | |
40489 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
40490 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
40491 | } | |
40492 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
40493 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
40494 | } | |
40495 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
40496 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
40497 | } | |
40498 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
40499 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
40500 | } | |
40501 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
40502 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
40503 | } | |
40504 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
40505 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40506 | } | |
40507 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
40508 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
40509 | } | |
40510 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
40511 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
40512 | } | |
40513 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
40514 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
40515 | } | |
40516 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
40517 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
40518 | } | |
40519 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
40520 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
40521 | } | |
40522 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
40523 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
40524 | } | |
40525 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
40526 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
40527 | } | |
40528 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
40529 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40530 | } | |
40531 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
40532 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
40533 | } | |
40534 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
40535 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40536 | } | |
40537 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
40538 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40539 | } | |
40540 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
40541 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40542 | } | |
40543 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
40544 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
40545 | } | |
40546 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
40547 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
40548 | } | |
40549 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
40550 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
40551 | } | |
40552 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
40553 | return (void *)((wxWindow *) ((wxControl *) x)); | |
40554 | } | |
40555 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
40556 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
40557 | } | |
40558 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
40559 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
40560 | } | |
40561 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
40562 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40563 | } | |
40564 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
40565 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
40566 | } | |
40567 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
40568 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40569 | } | |
40570 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
40571 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40572 | } | |
40573 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
40574 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40575 | } | |
40576 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
40577 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40578 | } | |
40579 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
40580 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40581 | } | |
40582 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
40583 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40584 | } | |
40585 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
40586 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
40587 | } | |
40588 | static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0},{"_p_wxLayoutConstraints"},{0}}; | |
40589 | static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0},{"_p_wxRealPoint"},{0}}; | |
40590 | static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0},{"_p_wxSizerItem"},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem},{0}}; | |
40591 | static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0},{"_p_wxGBSizerItem"},{0}}; | |
40592 | static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0},{"_p_wxScrollEvent"},{0}}; | |
40593 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0},{"_p_wxIndividualLayoutConstraint"},{0}}; | |
40594 | 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}}; | |
40595 | static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0},{"_p_wxBoxSizer"},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer},{0}}; | |
40596 | static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0},{"_p_wxStaticBoxSizer"},{0}}; | |
40597 | static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0},{"_p_wxGridBagSizer"},{0}}; | |
40598 | static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0},{"_p_wxAcceleratorEntry"},{0}}; | |
40599 | static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0},{"_p_wxUpdateUIEvent"},{0}}; | |
40600 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
40601 | 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}}; | |
40602 | 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}}; | |
40603 | static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer},{"_p_wxFlexGridSizer"},{0}}; | |
40604 | static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0},{"_p_wxInitDialogEvent"},{0}}; | |
40605 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer},{"_p_wxItemContainer"},{0}}; | |
40606 | static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0},{"_p_wxNcPaintEvent"},{0}}; | |
40607 | static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0},{"_p_wxPaintEvent"},{0}}; | |
40608 | static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0},{"_p_wxSysColourChangedEvent"},{0}}; | |
40609 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0},{"_p_wxMouseCaptureChangedEvent"},{0}}; | |
40610 | static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0},{"_p_wxDisplayChangedEvent"},{0}}; | |
40611 | static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0},{"_p_wxPaletteChangedEvent"},{0}}; | |
40612 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}}; | |
40613 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
40614 | static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0},{"_p_wxMenuBarBase"},{0}}; | |
40615 | static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0},{"_p_wxSetCursorEvent"},{0}}; | |
40616 | static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0},{"_p_wxFSFile"},{0}}; | |
40617 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
40618 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
40619 | static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0},{"_p_wxPoint2D"},{0}}; | |
40620 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
40621 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
40622 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
40623 | static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0},{"_p_wxPySizer"},{0}}; | |
40624 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxNotifyEvent"},{0}}; | |
40625 | static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0},{"_p_wxPyEvent"},{0}}; | |
40626 | static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0},{"_p_wxPropagationDisabler"},{0}}; | |
40627 | static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0},{"_p_wxAppTraits"},{0}}; | |
40628 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
40629 | static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0},{"_p_wxShowEvent"},{0}}; | |
40630 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
4e760a36 | 40631 | static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0},{"_p_wxMaximizeEvent"},{0}}; |
d14a1e28 RD |
40632 | static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0},{"_p_wxIconizeEvent"},{0}}; |
40633 | static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0},{"_p_wxActivateEvent"},{0}}; | |
40634 | static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0},{"_p_wxMoveEvent"},{0}}; | |
40635 | static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0},{"_p_wxSizeEvent"},{0}}; | |
40636 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0},{"_p_wxQueryNewPaletteEvent"},{0}}; | |
40637 | static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0},{"_p_wxWindowCreateEvent"},{0}}; | |
40638 | static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0},{"_p_wxIdleEvent"},{0}}; | |
40639 | static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0},{"_p_wxMenuItem"},{0}}; | |
40640 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
40641 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
40642 | static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0},{"_p_wxTIFFHandler"},{0}}; | |
40643 | static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0},{"_p_wxXPMHandler"},{0}}; | |
40644 | static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0},{"_p_wxPNMHandler"},{0}}; | |
40645 | static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0},{"_p_wxJPEGHandler"},{0}}; | |
40646 | static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0},{"_p_wxPCXHandler"},{0}}; | |
40647 | static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0},{"_p_wxGIFHandler"},{0}}; | |
40648 | static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0},{"_p_wxPNGHandler"},{0}}; | |
40649 | static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0},{"_p_wxANIHandler"},{0}}; | |
40650 | static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0},{"_p_wxMemoryFSHandler"},{0}}; | |
40651 | 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}}; | |
40652 | static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0},{"_p_wxCURHandler"},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler},{0}}; | |
40653 | 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}}; | |
40654 | 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}}; | |
40655 | 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}}; | |
40656 | 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}}; | |
40657 | static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0},{"_p_wxPyFileSystemHandler"},{0}}; | |
40658 | static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0},{"_p_wxInternetFSHandler"},{0}}; | |
4e760a36 | 40659 | static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0},{"_p_wxZipFSHandler"},{0}}; |
d14a1e28 RD |
40660 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; |
40661 | static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0},{"_p_wxGBSpan"},{0}}; | |
40662 | static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0},{"_p_wxPropagateOnce"},{0}}; | |
40663 | static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0},{"_p_wxAcceleratorTable"},{0}}; | |
8edf1c75 | 40664 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
40665 | static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0},{"_p_wxGBPosition"},{0}}; |
40666 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
40667 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
40668 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0},{"_p_wxScrollWinEvent"},{0}}; | |
40669 | static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0},{"_p_wxImageHistogram"},{0}}; | |
40670 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
40671 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
40672 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
41f1cec7 | 40673 | 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 |
40674 | static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0},{"_p_wxPyInputStream"},{0}}; |
40675 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; | |
40676 | static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}}; | |
40677 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
40678 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; | |
40679 | static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0},{"_p_wxNavigationKeyEvent"},{0}}; | |
40680 | static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0},{"_p_wxWindowDestroyEvent"},{0}}; | |
40681 | 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}}; | |
40682 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0},{"_p_wxMenuBar"},{0}}; | |
d14a1e28 RD |
40683 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}}; |
40684 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
40685 | static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0},{"_p_wxMenuEvent"},{0}}; | |
40686 | static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0},{"_p_wxContextMenuEvent"},{0}}; | |
40687 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
40688 | static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0},{"_p_wxCloseEvent"},{0}}; | |
40689 | static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0},{"_p_wxEraseEvent"},{0}}; | |
40690 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
40691 | static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0},{"_p_wxPyApp"},{0}}; | |
40692 | 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}}; | |
40693 | static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0},{"_p_wxPyCommandEvent"},{0}}; | |
44127b65 | 40694 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0},{"_p_wxPyDropTarget"},{0}}; |
d14a1e28 RD |
40695 | static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0},{"_p_wxChildFocusEvent"},{0}}; |
40696 | static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0},{"_p_wxFocusEvent"},{0}}; | |
40697 | static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0},{"_p_wxDropFilesEvent"},{0}}; | |
40698 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxControlWithItems"},{0}}; | |
40699 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
40700 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
40701 | static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0},{"_p_wxPyValidator"},{0}}; | |
40702 | ||
40703 | static swig_type_info *swig_types_initial[] = { | |
40704 | _swigt__p_wxLayoutConstraints, | |
40705 | _swigt__p_wxRealPoint, | |
40706 | _swigt__p_wxSizerItem, | |
40707 | _swigt__p_wxGBSizerItem, | |
40708 | _swigt__p_wxScrollEvent, | |
40709 | _swigt__p_wxIndividualLayoutConstraint, | |
40710 | _swigt__p_wxSizer, | |
40711 | _swigt__p_wxBoxSizer, | |
40712 | _swigt__p_wxStaticBoxSizer, | |
40713 | _swigt__p_wxGridBagSizer, | |
40714 | _swigt__p_wxAcceleratorEntry, | |
40715 | _swigt__p_wxUpdateUIEvent, | |
40716 | _swigt__p_wxMenu, | |
40717 | _swigt__p_wxEvent, | |
40718 | _swigt__p_wxGridSizer, | |
40719 | _swigt__p_wxFlexGridSizer, | |
40720 | _swigt__p_wxInitDialogEvent, | |
40721 | _swigt__p_wxItemContainer, | |
40722 | _swigt__p_wxNcPaintEvent, | |
40723 | _swigt__p_wxPaintEvent, | |
40724 | _swigt__p_wxSysColourChangedEvent, | |
40725 | _swigt__p_wxMouseCaptureChangedEvent, | |
40726 | _swigt__p_wxDisplayChangedEvent, | |
40727 | _swigt__p_wxPaletteChangedEvent, | |
40728 | _swigt__p_wxControl, | |
40729 | _swigt__p_wxFont, | |
40730 | _swigt__p_wxMenuBarBase, | |
40731 | _swigt__p_wxSetCursorEvent, | |
40732 | _swigt__p_wxFSFile, | |
40733 | _swigt__p_wxCaret, | |
40734 | _swigt__p_wxRegion, | |
40735 | _swigt__p_wxPoint2D, | |
40736 | _swigt__p_int, | |
40737 | _swigt__p_wxSize, | |
40738 | _swigt__p_wxDC, | |
40739 | _swigt__p_wxPySizer, | |
40740 | _swigt__p_wxNotifyEvent, | |
40741 | _swigt__p_wxPyEvent, | |
40742 | _swigt__p_wxPropagationDisabler, | |
40743 | _swigt__p_wxAppTraits, | |
40744 | _swigt__p_wxArrayString, | |
40745 | _swigt__p_wxShowEvent, | |
40746 | _swigt__p_wxToolTip, | |
4e760a36 | 40747 | _swigt__p_wxMaximizeEvent, |
d14a1e28 RD |
40748 | _swigt__p_wxIconizeEvent, |
40749 | _swigt__p_wxActivateEvent, | |
40750 | _swigt__p_wxMoveEvent, | |
40751 | _swigt__p_wxSizeEvent, | |
40752 | _swigt__p_wxQueryNewPaletteEvent, | |
40753 | _swigt__p_wxWindowCreateEvent, | |
40754 | _swigt__p_wxIdleEvent, | |
40755 | _swigt__p_wxMenuItem, | |
40756 | _swigt__p_wxStaticBox, | |
40757 | _swigt__p_long, | |
40758 | _swigt__p_wxTIFFHandler, | |
40759 | _swigt__p_wxXPMHandler, | |
40760 | _swigt__p_wxPNMHandler, | |
40761 | _swigt__p_wxJPEGHandler, | |
40762 | _swigt__p_wxPCXHandler, | |
40763 | _swigt__p_wxGIFHandler, | |
40764 | _swigt__p_wxPNGHandler, | |
40765 | _swigt__p_wxANIHandler, | |
40766 | _swigt__p_wxMemoryFSHandler, | |
40767 | _swigt__p_wxEvtHandler, | |
40768 | _swigt__p_wxCURHandler, | |
40769 | _swigt__p_wxICOHandler, | |
40770 | _swigt__p_wxBMPHandler, | |
40771 | _swigt__p_wxImageHandler, | |
40772 | _swigt__p_wxFileSystemHandler, | |
40773 | _swigt__p_wxPyFileSystemHandler, | |
40774 | _swigt__p_wxInternetFSHandler, | |
4e760a36 | 40775 | _swigt__p_wxZipFSHandler, |
d14a1e28 RD |
40776 | _swigt__p_wxRect, |
40777 | _swigt__p_wxGBSpan, | |
40778 | _swigt__p_wxPropagateOnce, | |
40779 | _swigt__p_wxAcceleratorTable, | |
8edf1c75 | 40780 | _swigt__p_char, |
d14a1e28 RD |
40781 | _swigt__p_wxGBPosition, |
40782 | _swigt__p_wxImage, | |
40783 | _swigt__p_wxFrame, | |
40784 | _swigt__p_wxScrollWinEvent, | |
40785 | _swigt__p_wxImageHistogram, | |
40786 | _swigt__p_byte, | |
40787 | _swigt__p_wxPoint, | |
40788 | _swigt__p_wxCursor, | |
40789 | _swigt__p_wxObject, | |
40790 | _swigt__p_wxPyInputStream, | |
40791 | _swigt__p_wxOutputStream, | |
40792 | _swigt__p_wxInputStream, | |
40793 | _swigt__p_wxDateTime, | |
40794 | _swigt__p_wxKeyEvent, | |
40795 | _swigt__p_wxNavigationKeyEvent, | |
40796 | _swigt__p_wxWindowDestroyEvent, | |
40797 | _swigt__p_wxWindow, | |
40798 | _swigt__p_wxMenuBar, | |
d14a1e28 RD |
40799 | _swigt__p_wxFileSystem, |
40800 | _swigt__p_wxBitmap, | |
40801 | _swigt__p_wxMenuEvent, | |
40802 | _swigt__p_wxContextMenuEvent, | |
40803 | _swigt__p_unsigned_char, | |
40804 | _swigt__p_wxCloseEvent, | |
40805 | _swigt__p_wxEraseEvent, | |
40806 | _swigt__p_wxMouseEvent, | |
40807 | _swigt__p_wxPyApp, | |
40808 | _swigt__p_wxCommandEvent, | |
40809 | _swigt__p_wxPyCommandEvent, | |
44127b65 | 40810 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
40811 | _swigt__p_wxChildFocusEvent, |
40812 | _swigt__p_wxFocusEvent, | |
40813 | _swigt__p_wxDropFilesEvent, | |
40814 | _swigt__p_wxControlWithItems, | |
40815 | _swigt__p_wxColour, | |
40816 | _swigt__p_wxValidator, | |
40817 | _swigt__p_wxPyValidator, | |
40818 | 0 | |
40819 | }; | |
40820 | ||
40821 | ||
40822 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
40823 | ||
40824 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
40825 | {0}}; |
40826 | ||
40827 | #ifdef __cplusplus | |
40828 | } | |
40829 | #endif | |
40830 | ||
40831 | #ifdef __cplusplus | |
40832 | extern "C" | |
40833 | #endif | |
40834 | SWIGEXPORT(void) SWIG_init(void) { | |
40835 | static PyObject *SWIG_globals = 0; | |
40836 | static int typeinit = 0; | |
40837 | PyObject *m, *d; | |
40838 | int i; | |
40839 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
40840 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
40841 | d = PyModule_GetDict(m); | |
40842 | ||
40843 | if (!typeinit) { | |
40844 | for (i = 0; swig_types_initial[i]; i++) { | |
40845 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
40846 | } | |
40847 | typeinit = 1; | |
40848 | } | |
40849 | SWIG_InstallConstants(d,swig_const_table); | |
40850 | ||
40851 | ||
40852 | #ifndef wxPyUSE_EXPORT | |
40853 | // Make our API structure a CObject so other modules can import it | |
40854 | // from this module. | |
40855 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
40856 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
40857 | Py_XDECREF(cobj); | |
40858 | #endif | |
40859 | ||
8edf1c75 RD |
40860 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_PyObj_FromInt((int)wxNOT_FOUND)); |
40861 | PyDict_SetItemString(d,"VSCROLL", SWIG_PyObj_FromInt((int)wxVSCROLL)); | |
40862 | PyDict_SetItemString(d,"HSCROLL", SWIG_PyObj_FromInt((int)wxHSCROLL)); | |
40863 | PyDict_SetItemString(d,"CAPTION", SWIG_PyObj_FromInt((int)wxCAPTION)); | |
40864 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_PyObj_FromInt((int)wxDOUBLE_BORDER)); | |
40865 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_PyObj_FromInt((int)wxSUNKEN_BORDER)); | |
40866 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_PyObj_FromInt((int)wxRAISED_BORDER)); | |
40867 | PyDict_SetItemString(d,"BORDER", SWIG_PyObj_FromInt((int)wxBORDER)); | |
40868 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_PyObj_FromInt((int)wxSIMPLE_BORDER)); | |
40869 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_PyObj_FromInt((int)wxSTATIC_BORDER)); | |
40870 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_PyObj_FromInt((int)wxTRANSPARENT_WINDOW)); | |
40871 | PyDict_SetItemString(d,"NO_BORDER", SWIG_PyObj_FromInt((int)wxNO_BORDER)); | |
40872 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_PyObj_FromInt((int)wxUSER_COLOURS)); | |
40873 | PyDict_SetItemString(d,"NO_3D", SWIG_PyObj_FromInt((int)wxNO_3D)); | |
40874 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_PyObj_FromInt((int)wxTAB_TRAVERSAL)); | |
40875 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_PyObj_FromInt((int)wxWANTS_CHARS)); | |
40876 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_PyObj_FromInt((int)wxPOPUP_WINDOW)); | |
40877 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_PyObj_FromInt((int)wxCENTER_FRAME)); | |
40878 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_PyObj_FromInt((int)wxCENTRE_ON_SCREEN)); | |
40879 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_PyObj_FromInt((int)wxCENTER_ON_SCREEN)); | |
40880 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_PyObj_FromInt((int)wxSTAY_ON_TOP)); | |
40881 | PyDict_SetItemString(d,"ICONIZE", SWIG_PyObj_FromInt((int)wxICONIZE)); | |
40882 | PyDict_SetItemString(d,"MINIMIZE", SWIG_PyObj_FromInt((int)wxMINIMIZE)); | |
40883 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_PyObj_FromInt((int)wxMAXIMIZE)); | |
40884 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_PyObj_FromInt((int)wxCLOSE_BOX)); | |
40885 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_PyObj_FromInt((int)wxTHICK_FRAME)); | |
40886 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_PyObj_FromInt((int)wxSYSTEM_MENU)); | |
40887 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_PyObj_FromInt((int)wxMINIMIZE_BOX)); | |
40888 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_PyObj_FromInt((int)wxMAXIMIZE_BOX)); | |
40889 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_PyObj_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
40890 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_PyObj_FromInt((int)wxTINY_CAPTION_VERT)); | |
40891 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_PyObj_FromInt((int)wxRESIZE_BOX)); | |
40892 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_PyObj_FromInt((int)wxRESIZE_BORDER)); | |
40893 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_PyObj_FromInt((int)wxDIALOG_MODAL)); | |
40894 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_PyObj_FromInt((int)wxDIALOG_MODELESS)); | |
40895 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_PyObj_FromInt((int)wxDIALOG_NO_PARENT)); | |
40896 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_PyObj_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
40897 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_PyObj_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
40898 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_PyObj_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
40899 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_PyObj_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
40900 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_PyObj_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
40901 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_PyObj_FromInt((int)wxFRAME_NO_TASKBAR)); | |
40902 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_PyObj_FromInt((int)wxFRAME_SHAPED)); | |
40903 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_PyObj_FromInt((int)wxED_CLIENT_MARGIN)); | |
40904 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_PyObj_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
40905 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_PyObj_FromInt((int)wxED_BUTTONS_RIGHT)); | |
40906 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_PyObj_FromInt((int)wxED_STATIC_LINE)); | |
40907 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_PyObj_FromInt((int)wxEXT_DIALOG_STYLE)); | |
40908 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_PyObj_FromInt((int)wxCLIP_CHILDREN)); | |
40909 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_PyObj_FromInt((int)wxCLIP_SIBLINGS)); | |
40910 | PyDict_SetItemString(d,"RETAINED", SWIG_PyObj_FromInt((int)wxRETAINED)); | |
40911 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_PyObj_FromInt((int)wxBACKINGSTORE)); | |
40912 | PyDict_SetItemString(d,"COLOURED", SWIG_PyObj_FromInt((int)wxCOLOURED)); | |
40913 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_PyObj_FromInt((int)wxFIXED_LENGTH)); | |
40914 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_PyObj_FromInt((int)wxLB_NEEDED_SB)); | |
40915 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_PyObj_FromInt((int)wxLB_ALWAYS_SB)); | |
40916 | PyDict_SetItemString(d,"LB_SORT", SWIG_PyObj_FromInt((int)wxLB_SORT)); | |
40917 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_PyObj_FromInt((int)wxLB_SINGLE)); | |
40918 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_PyObj_FromInt((int)wxLB_MULTIPLE)); | |
40919 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_PyObj_FromInt((int)wxLB_EXTENDED)); | |
40920 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_PyObj_FromInt((int)wxLB_OWNERDRAW)); | |
40921 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_PyObj_FromInt((int)wxLB_HSCROLL)); | |
40922 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxPROCESS_ENTER)); | |
40923 | PyDict_SetItemString(d,"PASSWORD", SWIG_PyObj_FromInt((int)wxPASSWORD)); | |
40924 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_PyObj_FromInt((int)wxCB_SIMPLE)); | |
40925 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_PyObj_FromInt((int)wxCB_DROPDOWN)); | |
40926 | PyDict_SetItemString(d,"CB_SORT", SWIG_PyObj_FromInt((int)wxCB_SORT)); | |
40927 | PyDict_SetItemString(d,"CB_READONLY", SWIG_PyObj_FromInt((int)wxCB_READONLY)); | |
40928 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxRA_HORIZONTAL)); | |
40929 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_PyObj_FromInt((int)wxRA_VERTICAL)); | |
40930 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_PyObj_FromInt((int)wxRA_SPECIFY_ROWS)); | |
40931 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_PyObj_FromInt((int)wxRA_SPECIFY_COLS)); | |
40932 | PyDict_SetItemString(d,"RB_GROUP", SWIG_PyObj_FromInt((int)wxRB_GROUP)); | |
40933 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_PyObj_FromInt((int)wxRB_SINGLE)); | |
40934 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSL_HORIZONTAL)); | |
40935 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_PyObj_FromInt((int)wxSL_VERTICAL)); | |
40936 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_PyObj_FromInt((int)wxSL_AUTOTICKS)); | |
40937 | PyDict_SetItemString(d,"SL_LABELS", SWIG_PyObj_FromInt((int)wxSL_LABELS)); | |
40938 | PyDict_SetItemString(d,"SL_LEFT", SWIG_PyObj_FromInt((int)wxSL_LEFT)); | |
40939 | PyDict_SetItemString(d,"SL_TOP", SWIG_PyObj_FromInt((int)wxSL_TOP)); | |
40940 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_PyObj_FromInt((int)wxSL_RIGHT)); | |
40941 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_PyObj_FromInt((int)wxSL_BOTTOM)); | |
40942 | PyDict_SetItemString(d,"SL_BOTH", SWIG_PyObj_FromInt((int)wxSL_BOTH)); | |
40943 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_PyObj_FromInt((int)wxSL_SELRANGE)); | |
40944 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSB_HORIZONTAL)); | |
40945 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_PyObj_FromInt((int)wxSB_VERTICAL)); | |
40946 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_PyObj_FromInt((int)wxST_SIZEGRIP)); | |
40947 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_PyObj_FromInt((int)wxST_NO_AUTORESIZE)); | |
40948 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_PyObj_FromInt((int)wxFLOOD_SURFACE)); | |
40949 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_PyObj_FromInt((int)wxFLOOD_BORDER)); | |
40950 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_PyObj_FromInt((int)wxODDEVEN_RULE)); | |
40951 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_PyObj_FromInt((int)wxWINDING_RULE)); | |
40952 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_PyObj_FromInt((int)wxTOOL_TOP)); | |
40953 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_PyObj_FromInt((int)wxTOOL_BOTTOM)); | |
40954 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_PyObj_FromInt((int)wxTOOL_LEFT)); | |
40955 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_PyObj_FromInt((int)wxTOOL_RIGHT)); | |
40956 | PyDict_SetItemString(d,"OK", SWIG_PyObj_FromInt((int)wxOK)); | |
40957 | PyDict_SetItemString(d,"YES_NO", SWIG_PyObj_FromInt((int)wxYES_NO)); | |
40958 | PyDict_SetItemString(d,"CANCEL", SWIG_PyObj_FromInt((int)wxCANCEL)); | |
40959 | PyDict_SetItemString(d,"YES", SWIG_PyObj_FromInt((int)wxYES)); | |
40960 | PyDict_SetItemString(d,"NO", SWIG_PyObj_FromInt((int)wxNO)); | |
40961 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_PyObj_FromInt((int)wxNO_DEFAULT)); | |
40962 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_PyObj_FromInt((int)wxYES_DEFAULT)); | |
40963 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_PyObj_FromInt((int)wxICON_EXCLAMATION)); | |
40964 | PyDict_SetItemString(d,"ICON_HAND", SWIG_PyObj_FromInt((int)wxICON_HAND)); | |
40965 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_PyObj_FromInt((int)wxICON_QUESTION)); | |
40966 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_PyObj_FromInt((int)wxICON_INFORMATION)); | |
40967 | PyDict_SetItemString(d,"ICON_STOP", SWIG_PyObj_FromInt((int)wxICON_STOP)); | |
40968 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_PyObj_FromInt((int)wxICON_ASTERISK)); | |
40969 | PyDict_SetItemString(d,"ICON_MASK", SWIG_PyObj_FromInt((int)wxICON_MASK)); | |
40970 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_PyObj_FromInt((int)wxICON_WARNING)); | |
40971 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_PyObj_FromInt((int)wxICON_ERROR)); | |
40972 | PyDict_SetItemString(d,"FORWARD", SWIG_PyObj_FromInt((int)wxFORWARD)); | |
40973 | PyDict_SetItemString(d,"BACKWARD", SWIG_PyObj_FromInt((int)wxBACKWARD)); | |
40974 | PyDict_SetItemString(d,"RESET", SWIG_PyObj_FromInt((int)wxRESET)); | |
40975 | PyDict_SetItemString(d,"HELP", SWIG_PyObj_FromInt((int)wxHELP)); | |
40976 | PyDict_SetItemString(d,"MORE", SWIG_PyObj_FromInt((int)wxMORE)); | |
40977 | PyDict_SetItemString(d,"SETUP", SWIG_PyObj_FromInt((int)wxSETUP)); | |
40978 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_PyObj_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
40979 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_PyObj_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
40980 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_PyObj_FromInt((int)wxSIZE_AUTO)); | |
40981 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_PyObj_FromInt((int)wxSIZE_USE_EXISTING)); | |
40982 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_PyObj_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
40983 | PyDict_SetItemString(d,"PORTRAIT", SWIG_PyObj_FromInt((int)wxPORTRAIT)); | |
40984 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_PyObj_FromInt((int)wxLANDSCAPE)); | |
40985 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
40986 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
40987 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_LOW)); | |
40988 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
40989 | PyDict_SetItemString(d,"ID_ANY", SWIG_PyObj_FromInt((int)wxID_ANY)); | |
40990 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_PyObj_FromInt((int)wxID_SEPARATOR)); | |
40991 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_PyObj_FromInt((int)wxID_LOWEST)); | |
40992 | PyDict_SetItemString(d,"ID_OPEN", SWIG_PyObj_FromInt((int)wxID_OPEN)); | |
40993 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_PyObj_FromInt((int)wxID_CLOSE)); | |
40994 | PyDict_SetItemString(d,"ID_NEW", SWIG_PyObj_FromInt((int)wxID_NEW)); | |
40995 | PyDict_SetItemString(d,"ID_SAVE", SWIG_PyObj_FromInt((int)wxID_SAVE)); | |
40996 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_PyObj_FromInt((int)wxID_SAVEAS)); | |
40997 | PyDict_SetItemString(d,"ID_REVERT", SWIG_PyObj_FromInt((int)wxID_REVERT)); | |
40998 | PyDict_SetItemString(d,"ID_EXIT", SWIG_PyObj_FromInt((int)wxID_EXIT)); | |
40999 | PyDict_SetItemString(d,"ID_UNDO", SWIG_PyObj_FromInt((int)wxID_UNDO)); | |
41000 | PyDict_SetItemString(d,"ID_REDO", SWIG_PyObj_FromInt((int)wxID_REDO)); | |
41001 | PyDict_SetItemString(d,"ID_HELP", SWIG_PyObj_FromInt((int)wxID_HELP)); | |
41002 | PyDict_SetItemString(d,"ID_PRINT", SWIG_PyObj_FromInt((int)wxID_PRINT)); | |
41003 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_PyObj_FromInt((int)wxID_PRINT_SETUP)); | |
41004 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_PyObj_FromInt((int)wxID_PREVIEW)); | |
41005 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_PyObj_FromInt((int)wxID_ABOUT)); | |
41006 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_PyObj_FromInt((int)wxID_HELP_CONTENTS)); | |
41007 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_PyObj_FromInt((int)wxID_HELP_COMMANDS)); | |
41008 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_PyObj_FromInt((int)wxID_HELP_PROCEDURES)); | |
41009 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_PyObj_FromInt((int)wxID_HELP_CONTEXT)); | |
41010 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_PyObj_FromInt((int)wxID_CLOSE_ALL)); | |
41011 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_PyObj_FromInt((int)wxID_PREFERENCES)); | |
41012 | PyDict_SetItemString(d,"ID_CUT", SWIG_PyObj_FromInt((int)wxID_CUT)); | |
41013 | PyDict_SetItemString(d,"ID_COPY", SWIG_PyObj_FromInt((int)wxID_COPY)); | |
41014 | PyDict_SetItemString(d,"ID_PASTE", SWIG_PyObj_FromInt((int)wxID_PASTE)); | |
41015 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_PyObj_FromInt((int)wxID_CLEAR)); | |
41016 | PyDict_SetItemString(d,"ID_FIND", SWIG_PyObj_FromInt((int)wxID_FIND)); | |
41017 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_PyObj_FromInt((int)wxID_DUPLICATE)); | |
41018 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_PyObj_FromInt((int)wxID_SELECTALL)); | |
41019 | PyDict_SetItemString(d,"ID_DELETE", SWIG_PyObj_FromInt((int)wxID_DELETE)); | |
41020 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_PyObj_FromInt((int)wxID_REPLACE)); | |
41021 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_PyObj_FromInt((int)wxID_REPLACE_ALL)); | |
41022 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_PyObj_FromInt((int)wxID_PROPERTIES)); | |
41023 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_PyObj_FromInt((int)wxID_VIEW_DETAILS)); | |
41024 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_PyObj_FromInt((int)wxID_VIEW_LARGEICONS)); | |
41025 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_PyObj_FromInt((int)wxID_VIEW_SMALLICONS)); | |
41026 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_PyObj_FromInt((int)wxID_VIEW_LIST)); | |
41027 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTDATE)); | |
41028 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTNAME)); | |
41029 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTSIZE)); | |
41030 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTTYPE)); | |
41031 | PyDict_SetItemString(d,"ID_FILE1", SWIG_PyObj_FromInt((int)wxID_FILE1)); | |
41032 | PyDict_SetItemString(d,"ID_FILE2", SWIG_PyObj_FromInt((int)wxID_FILE2)); | |
41033 | PyDict_SetItemString(d,"ID_FILE3", SWIG_PyObj_FromInt((int)wxID_FILE3)); | |
41034 | PyDict_SetItemString(d,"ID_FILE4", SWIG_PyObj_FromInt((int)wxID_FILE4)); | |
41035 | PyDict_SetItemString(d,"ID_FILE5", SWIG_PyObj_FromInt((int)wxID_FILE5)); | |
41036 | PyDict_SetItemString(d,"ID_FILE6", SWIG_PyObj_FromInt((int)wxID_FILE6)); | |
41037 | PyDict_SetItemString(d,"ID_FILE7", SWIG_PyObj_FromInt((int)wxID_FILE7)); | |
41038 | PyDict_SetItemString(d,"ID_FILE8", SWIG_PyObj_FromInt((int)wxID_FILE8)); | |
41039 | PyDict_SetItemString(d,"ID_FILE9", SWIG_PyObj_FromInt((int)wxID_FILE9)); | |
41040 | PyDict_SetItemString(d,"ID_OK", SWIG_PyObj_FromInt((int)wxID_OK)); | |
41041 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_PyObj_FromInt((int)wxID_CANCEL)); | |
41042 | PyDict_SetItemString(d,"ID_APPLY", SWIG_PyObj_FromInt((int)wxID_APPLY)); | |
41043 | PyDict_SetItemString(d,"ID_YES", SWIG_PyObj_FromInt((int)wxID_YES)); | |
41044 | PyDict_SetItemString(d,"ID_NO", SWIG_PyObj_FromInt((int)wxID_NO)); | |
41045 | PyDict_SetItemString(d,"ID_STATIC", SWIG_PyObj_FromInt((int)wxID_STATIC)); | |
41046 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_PyObj_FromInt((int)wxID_FORWARD)); | |
41047 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_PyObj_FromInt((int)wxID_BACKWARD)); | |
41048 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_PyObj_FromInt((int)wxID_DEFAULT)); | |
41049 | PyDict_SetItemString(d,"ID_MORE", SWIG_PyObj_FromInt((int)wxID_MORE)); | |
41050 | PyDict_SetItemString(d,"ID_SETUP", SWIG_PyObj_FromInt((int)wxID_SETUP)); | |
41051 | PyDict_SetItemString(d,"ID_RESET", SWIG_PyObj_FromInt((int)wxID_RESET)); | |
41052 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_PyObj_FromInt((int)wxID_CONTEXT_HELP)); | |
41053 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_PyObj_FromInt((int)wxID_YESTOALL)); | |
41054 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_PyObj_FromInt((int)wxID_NOTOALL)); | |
41055 | PyDict_SetItemString(d,"ID_ABORT", SWIG_PyObj_FromInt((int)wxID_ABORT)); | |
41056 | PyDict_SetItemString(d,"ID_RETRY", SWIG_PyObj_FromInt((int)wxID_RETRY)); | |
41057 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_PyObj_FromInt((int)wxID_IGNORE)); | |
41058 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_PyObj_FromInt((int)wxID_HIGHEST)); | |
41059 | PyDict_SetItemString(d,"OPEN", SWIG_PyObj_FromInt((int)wxOPEN)); | |
41060 | PyDict_SetItemString(d,"SAVE", SWIG_PyObj_FromInt((int)wxSAVE)); | |
41061 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_PyObj_FromInt((int)wxHIDE_READONLY)); | |
41062 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_PyObj_FromInt((int)wxOVERWRITE_PROMPT)); | |
41063 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_PyObj_FromInt((int)wxFILE_MUST_EXIST)); | |
41064 | PyDict_SetItemString(d,"MULTIPLE", SWIG_PyObj_FromInt((int)wxMULTIPLE)); | |
41065 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_PyObj_FromInt((int)wxCHANGE_DIR)); | |
41066 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_PyObj_FromInt((int)wxACCEL_ALT)); | |
41067 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_PyObj_FromInt((int)wxACCEL_CTRL)); | |
41068 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_PyObj_FromInt((int)wxACCEL_SHIFT)); | |
41069 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_PyObj_FromInt((int)wxACCEL_NORMAL)); | |
41070 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_PyObj_FromInt((int)wxPD_AUTO_HIDE)); | |
41071 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_PyObj_FromInt((int)wxPD_APP_MODAL)); | |
41072 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_PyObj_FromInt((int)wxPD_CAN_ABORT)); | |
41073 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_PyObj_FromInt((int)wxPD_ELAPSED_TIME)); | |
41074 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_PyObj_FromInt((int)wxPD_ESTIMATED_TIME)); | |
41075 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_PyObj_FromInt((int)wxPD_REMAINING_TIME)); | |
41076 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_PyObj_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
41077 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxDD_DEFAULT_STYLE)); | |
41078 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_PyObj_FromInt((int)wxMENU_TEAROFF)); | |
41079 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_PyObj_FromInt((int)wxMB_DOCKABLE)); | |
41080 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_PyObj_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
41081 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_PyObj_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
41082 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_PyObj_FromInt((int)wxLI_HORIZONTAL)); | |
41083 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_PyObj_FromInt((int)wxLI_VERTICAL)); | |
41084 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_PyObj_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
41085 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_PyObj_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
41086 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_PyObj_FromInt((int)wxWS_EX_TRANSIENT)); | |
41087 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_PyObj_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
41088 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_PyObj_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
41089 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_PyObj_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
41090 | PyDict_SetItemString(d,"MM_TEXT", SWIG_PyObj_FromInt((int)wxMM_TEXT)); | |
41091 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_PyObj_FromInt((int)wxMM_LOMETRIC)); | |
41092 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_PyObj_FromInt((int)wxMM_HIMETRIC)); | |
41093 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_PyObj_FromInt((int)wxMM_LOENGLISH)); | |
41094 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_PyObj_FromInt((int)wxMM_HIENGLISH)); | |
41095 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_PyObj_FromInt((int)wxMM_TWIPS)); | |
41096 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_PyObj_FromInt((int)wxMM_ISOTROPIC)); | |
41097 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_PyObj_FromInt((int)wxMM_ANISOTROPIC)); | |
41098 | PyDict_SetItemString(d,"MM_POINTS", SWIG_PyObj_FromInt((int)wxMM_POINTS)); | |
41099 | PyDict_SetItemString(d,"MM_METRIC", SWIG_PyObj_FromInt((int)wxMM_METRIC)); | |
41100 | PyDict_SetItemString(d,"CENTRE", SWIG_PyObj_FromInt((int)wxCENTRE)); | |
41101 | PyDict_SetItemString(d,"CENTER", SWIG_PyObj_FromInt((int)wxCENTER)); | |
41102 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_PyObj_FromInt((int)wxHORIZONTAL)); | |
41103 | PyDict_SetItemString(d,"VERTICAL", SWIG_PyObj_FromInt((int)wxVERTICAL)); | |
41104 | PyDict_SetItemString(d,"BOTH", SWIG_PyObj_FromInt((int)wxBOTH)); | |
41105 | PyDict_SetItemString(d,"LEFT", SWIG_PyObj_FromInt((int)wxLEFT)); | |
41106 | PyDict_SetItemString(d,"RIGHT", SWIG_PyObj_FromInt((int)wxRIGHT)); | |
41107 | PyDict_SetItemString(d,"UP", SWIG_PyObj_FromInt((int)wxUP)); | |
41108 | PyDict_SetItemString(d,"DOWN", SWIG_PyObj_FromInt((int)wxDOWN)); | |
41109 | PyDict_SetItemString(d,"TOP", SWIG_PyObj_FromInt((int)wxTOP)); | |
41110 | PyDict_SetItemString(d,"BOTTOM", SWIG_PyObj_FromInt((int)wxBOTTOM)); | |
41111 | PyDict_SetItemString(d,"NORTH", SWIG_PyObj_FromInt((int)wxNORTH)); | |
41112 | PyDict_SetItemString(d,"SOUTH", SWIG_PyObj_FromInt((int)wxSOUTH)); | |
41113 | PyDict_SetItemString(d,"WEST", SWIG_PyObj_FromInt((int)wxWEST)); | |
41114 | PyDict_SetItemString(d,"EAST", SWIG_PyObj_FromInt((int)wxEAST)); | |
41115 | PyDict_SetItemString(d,"ALL", SWIG_PyObj_FromInt((int)wxALL)); | |
41116 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_PyObj_FromInt((int)wxALIGN_NOT)); | |
41117 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
41118 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
41119 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxALIGN_LEFT)); | |
41120 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_PyObj_FromInt((int)wxALIGN_TOP)); | |
41121 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_PyObj_FromInt((int)wxALIGN_RIGHT)); | |
41122 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_PyObj_FromInt((int)wxALIGN_BOTTOM)); | |
41123 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
41124 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
41125 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_PyObj_FromInt((int)wxALIGN_CENTER)); | |
41126 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE)); | |
41127 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_PyObj_FromInt((int)wxALIGN_MASK)); | |
41128 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_PyObj_FromInt((int)wxSTRETCH_NOT)); | |
41129 | PyDict_SetItemString(d,"SHRINK", SWIG_PyObj_FromInt((int)wxSHRINK)); | |
41130 | PyDict_SetItemString(d,"GROW", SWIG_PyObj_FromInt((int)wxGROW)); | |
41131 | PyDict_SetItemString(d,"EXPAND", SWIG_PyObj_FromInt((int)wxEXPAND)); | |
41132 | PyDict_SetItemString(d,"SHAPED", SWIG_PyObj_FromInt((int)wxSHAPED)); | |
41133 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_PyObj_FromInt((int)wxADJUST_MINSIZE)); | |
41134 | PyDict_SetItemString(d,"TILE", SWIG_PyObj_FromInt((int)wxTILE)); | |
41135 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_PyObj_FromInt((int)wxBORDER_DEFAULT)); | |
41136 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_PyObj_FromInt((int)wxBORDER_NONE)); | |
41137 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_PyObj_FromInt((int)wxBORDER_STATIC)); | |
41138 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_PyObj_FromInt((int)wxBORDER_SIMPLE)); | |
41139 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_PyObj_FromInt((int)wxBORDER_RAISED)); | |
41140 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_PyObj_FromInt((int)wxBORDER_SUNKEN)); | |
41141 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_PyObj_FromInt((int)wxBORDER_DOUBLE)); | |
41142 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_PyObj_FromInt((int)wxBORDER_MASK)); | |
41143 | PyDict_SetItemString(d,"DEFAULT", SWIG_PyObj_FromInt((int)wxDEFAULT)); | |
41144 | PyDict_SetItemString(d,"DECORATIVE", SWIG_PyObj_FromInt((int)wxDECORATIVE)); | |
41145 | PyDict_SetItemString(d,"ROMAN", SWIG_PyObj_FromInt((int)wxROMAN)); | |
41146 | PyDict_SetItemString(d,"SCRIPT", SWIG_PyObj_FromInt((int)wxSCRIPT)); | |
41147 | PyDict_SetItemString(d,"SWISS", SWIG_PyObj_FromInt((int)wxSWISS)); | |
41148 | PyDict_SetItemString(d,"MODERN", SWIG_PyObj_FromInt((int)wxMODERN)); | |
41149 | PyDict_SetItemString(d,"TELETYPE", SWIG_PyObj_FromInt((int)wxTELETYPE)); | |
41150 | PyDict_SetItemString(d,"VARIABLE", SWIG_PyObj_FromInt((int)wxVARIABLE)); | |
41151 | PyDict_SetItemString(d,"FIXED", SWIG_PyObj_FromInt((int)wxFIXED)); | |
41152 | PyDict_SetItemString(d,"NORMAL", SWIG_PyObj_FromInt((int)wxNORMAL)); | |
41153 | PyDict_SetItemString(d,"LIGHT", SWIG_PyObj_FromInt((int)wxLIGHT)); | |
41154 | PyDict_SetItemString(d,"BOLD", SWIG_PyObj_FromInt((int)wxBOLD)); | |
41155 | PyDict_SetItemString(d,"ITALIC", SWIG_PyObj_FromInt((int)wxITALIC)); | |
41156 | PyDict_SetItemString(d,"SLANT", SWIG_PyObj_FromInt((int)wxSLANT)); | |
41157 | PyDict_SetItemString(d,"SOLID", SWIG_PyObj_FromInt((int)wxSOLID)); | |
41158 | PyDict_SetItemString(d,"DOT", SWIG_PyObj_FromInt((int)wxDOT)); | |
41159 | PyDict_SetItemString(d,"LONG_DASH", SWIG_PyObj_FromInt((int)wxLONG_DASH)); | |
41160 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_PyObj_FromInt((int)wxSHORT_DASH)); | |
41161 | PyDict_SetItemString(d,"DOT_DASH", SWIG_PyObj_FromInt((int)wxDOT_DASH)); | |
41162 | PyDict_SetItemString(d,"USER_DASH", SWIG_PyObj_FromInt((int)wxUSER_DASH)); | |
41163 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_PyObj_FromInt((int)wxTRANSPARENT)); | |
41164 | PyDict_SetItemString(d,"STIPPLE", SWIG_PyObj_FromInt((int)wxSTIPPLE)); | |
41165 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_PyObj_FromInt((int)wxBDIAGONAL_HATCH)); | |
41166 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_PyObj_FromInt((int)wxCROSSDIAG_HATCH)); | |
41167 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_PyObj_FromInt((int)wxFDIAGONAL_HATCH)); | |
41168 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_PyObj_FromInt((int)wxCROSS_HATCH)); | |
41169 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_PyObj_FromInt((int)wxHORIZONTAL_HATCH)); | |
41170 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_PyObj_FromInt((int)wxVERTICAL_HATCH)); | |
41171 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_PyObj_FromInt((int)wxJOIN_BEVEL)); | |
41172 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_PyObj_FromInt((int)wxJOIN_MITER)); | |
41173 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_PyObj_FromInt((int)wxJOIN_ROUND)); | |
41174 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_PyObj_FromInt((int)wxCAP_ROUND)); | |
41175 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_PyObj_FromInt((int)wxCAP_PROJECTING)); | |
41176 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_PyObj_FromInt((int)wxCAP_BUTT)); | |
41177 | PyDict_SetItemString(d,"CLEAR", SWIG_PyObj_FromInt((int)wxCLEAR)); | |
41178 | PyDict_SetItemString(d,"XOR", SWIG_PyObj_FromInt((int)wxXOR)); | |
41179 | PyDict_SetItemString(d,"INVERT", SWIG_PyObj_FromInt((int)wxINVERT)); | |
41180 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_PyObj_FromInt((int)wxOR_REVERSE)); | |
41181 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_PyObj_FromInt((int)wxAND_REVERSE)); | |
41182 | PyDict_SetItemString(d,"COPY", SWIG_PyObj_FromInt((int)wxCOPY)); | |
41183 | PyDict_SetItemString(d,"AND", SWIG_PyObj_FromInt((int)wxAND)); | |
41184 | PyDict_SetItemString(d,"AND_INVERT", SWIG_PyObj_FromInt((int)wxAND_INVERT)); | |
41185 | PyDict_SetItemString(d,"NO_OP", SWIG_PyObj_FromInt((int)wxNO_OP)); | |
41186 | PyDict_SetItemString(d,"NOR", SWIG_PyObj_FromInt((int)wxNOR)); | |
41187 | PyDict_SetItemString(d,"EQUIV", SWIG_PyObj_FromInt((int)wxEQUIV)); | |
41188 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_PyObj_FromInt((int)wxSRC_INVERT)); | |
41189 | PyDict_SetItemString(d,"OR_INVERT", SWIG_PyObj_FromInt((int)wxOR_INVERT)); | |
41190 | PyDict_SetItemString(d,"NAND", SWIG_PyObj_FromInt((int)wxNAND)); | |
41191 | PyDict_SetItemString(d,"OR", SWIG_PyObj_FromInt((int)wxOR)); | |
41192 | PyDict_SetItemString(d,"SET", SWIG_PyObj_FromInt((int)wxSET)); | |
41193 | PyDict_SetItemString(d,"WXK_BACK", SWIG_PyObj_FromInt((int)WXK_BACK)); | |
41194 | PyDict_SetItemString(d,"WXK_TAB", SWIG_PyObj_FromInt((int)WXK_TAB)); | |
41195 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_PyObj_FromInt((int)WXK_RETURN)); | |
41196 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_PyObj_FromInt((int)WXK_ESCAPE)); | |
41197 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_PyObj_FromInt((int)WXK_SPACE)); | |
41198 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_PyObj_FromInt((int)WXK_DELETE)); | |
41199 | PyDict_SetItemString(d,"WXK_START", SWIG_PyObj_FromInt((int)WXK_START)); | |
41200 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_PyObj_FromInt((int)WXK_LBUTTON)); | |
41201 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_PyObj_FromInt((int)WXK_RBUTTON)); | |
41202 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_PyObj_FromInt((int)WXK_CANCEL)); | |
41203 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_PyObj_FromInt((int)WXK_MBUTTON)); | |
41204 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_PyObj_FromInt((int)WXK_CLEAR)); | |
41205 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_PyObj_FromInt((int)WXK_SHIFT)); | |
41206 | PyDict_SetItemString(d,"WXK_ALT", SWIG_PyObj_FromInt((int)WXK_ALT)); | |
41207 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_PyObj_FromInt((int)WXK_CONTROL)); | |
41208 | PyDict_SetItemString(d,"WXK_MENU", SWIG_PyObj_FromInt((int)WXK_MENU)); | |
41209 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_PyObj_FromInt((int)WXK_PAUSE)); | |
41210 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_PyObj_FromInt((int)WXK_CAPITAL)); | |
41211 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_PyObj_FromInt((int)WXK_PRIOR)); | |
41212 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_PyObj_FromInt((int)WXK_NEXT)); | |
41213 | PyDict_SetItemString(d,"WXK_END", SWIG_PyObj_FromInt((int)WXK_END)); | |
41214 | PyDict_SetItemString(d,"WXK_HOME", SWIG_PyObj_FromInt((int)WXK_HOME)); | |
41215 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_PyObj_FromInt((int)WXK_LEFT)); | |
41216 | PyDict_SetItemString(d,"WXK_UP", SWIG_PyObj_FromInt((int)WXK_UP)); | |
41217 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_PyObj_FromInt((int)WXK_RIGHT)); | |
41218 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_PyObj_FromInt((int)WXK_DOWN)); | |
41219 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_PyObj_FromInt((int)WXK_SELECT)); | |
41220 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_PyObj_FromInt((int)WXK_PRINT)); | |
41221 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_PyObj_FromInt((int)WXK_EXECUTE)); | |
41222 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_PyObj_FromInt((int)WXK_SNAPSHOT)); | |
41223 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_PyObj_FromInt((int)WXK_INSERT)); | |
41224 | PyDict_SetItemString(d,"WXK_HELP", SWIG_PyObj_FromInt((int)WXK_HELP)); | |
41225 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_PyObj_FromInt((int)WXK_NUMPAD0)); | |
41226 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_PyObj_FromInt((int)WXK_NUMPAD1)); | |
41227 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_PyObj_FromInt((int)WXK_NUMPAD2)); | |
41228 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_PyObj_FromInt((int)WXK_NUMPAD3)); | |
41229 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_PyObj_FromInt((int)WXK_NUMPAD4)); | |
41230 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_PyObj_FromInt((int)WXK_NUMPAD5)); | |
41231 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_PyObj_FromInt((int)WXK_NUMPAD6)); | |
41232 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_PyObj_FromInt((int)WXK_NUMPAD7)); | |
41233 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_PyObj_FromInt((int)WXK_NUMPAD8)); | |
41234 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_PyObj_FromInt((int)WXK_NUMPAD9)); | |
41235 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_PyObj_FromInt((int)WXK_MULTIPLY)); | |
41236 | PyDict_SetItemString(d,"WXK_ADD", SWIG_PyObj_FromInt((int)WXK_ADD)); | |
41237 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_PyObj_FromInt((int)WXK_SEPARATOR)); | |
41238 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_PyObj_FromInt((int)WXK_SUBTRACT)); | |
41239 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_PyObj_FromInt((int)WXK_DECIMAL)); | |
41240 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_PyObj_FromInt((int)WXK_DIVIDE)); | |
41241 | PyDict_SetItemString(d,"WXK_F1", SWIG_PyObj_FromInt((int)WXK_F1)); | |
41242 | PyDict_SetItemString(d,"WXK_F2", SWIG_PyObj_FromInt((int)WXK_F2)); | |
41243 | PyDict_SetItemString(d,"WXK_F3", SWIG_PyObj_FromInt((int)WXK_F3)); | |
41244 | PyDict_SetItemString(d,"WXK_F4", SWIG_PyObj_FromInt((int)WXK_F4)); | |
41245 | PyDict_SetItemString(d,"WXK_F5", SWIG_PyObj_FromInt((int)WXK_F5)); | |
41246 | PyDict_SetItemString(d,"WXK_F6", SWIG_PyObj_FromInt((int)WXK_F6)); | |
41247 | PyDict_SetItemString(d,"WXK_F7", SWIG_PyObj_FromInt((int)WXK_F7)); | |
41248 | PyDict_SetItemString(d,"WXK_F8", SWIG_PyObj_FromInt((int)WXK_F8)); | |
41249 | PyDict_SetItemString(d,"WXK_F9", SWIG_PyObj_FromInt((int)WXK_F9)); | |
41250 | PyDict_SetItemString(d,"WXK_F10", SWIG_PyObj_FromInt((int)WXK_F10)); | |
41251 | PyDict_SetItemString(d,"WXK_F11", SWIG_PyObj_FromInt((int)WXK_F11)); | |
41252 | PyDict_SetItemString(d,"WXK_F12", SWIG_PyObj_FromInt((int)WXK_F12)); | |
41253 | PyDict_SetItemString(d,"WXK_F13", SWIG_PyObj_FromInt((int)WXK_F13)); | |
41254 | PyDict_SetItemString(d,"WXK_F14", SWIG_PyObj_FromInt((int)WXK_F14)); | |
41255 | PyDict_SetItemString(d,"WXK_F15", SWIG_PyObj_FromInt((int)WXK_F15)); | |
41256 | PyDict_SetItemString(d,"WXK_F16", SWIG_PyObj_FromInt((int)WXK_F16)); | |
41257 | PyDict_SetItemString(d,"WXK_F17", SWIG_PyObj_FromInt((int)WXK_F17)); | |
41258 | PyDict_SetItemString(d,"WXK_F18", SWIG_PyObj_FromInt((int)WXK_F18)); | |
41259 | PyDict_SetItemString(d,"WXK_F19", SWIG_PyObj_FromInt((int)WXK_F19)); | |
41260 | PyDict_SetItemString(d,"WXK_F20", SWIG_PyObj_FromInt((int)WXK_F20)); | |
41261 | PyDict_SetItemString(d,"WXK_F21", SWIG_PyObj_FromInt((int)WXK_F21)); | |
41262 | PyDict_SetItemString(d,"WXK_F22", SWIG_PyObj_FromInt((int)WXK_F22)); | |
41263 | PyDict_SetItemString(d,"WXK_F23", SWIG_PyObj_FromInt((int)WXK_F23)); | |
41264 | PyDict_SetItemString(d,"WXK_F24", SWIG_PyObj_FromInt((int)WXK_F24)); | |
41265 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_PyObj_FromInt((int)WXK_NUMLOCK)); | |
41266 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_PyObj_FromInt((int)WXK_SCROLL)); | |
41267 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_PyObj_FromInt((int)WXK_PAGEUP)); | |
41268 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_PyObj_FromInt((int)WXK_PAGEDOWN)); | |
41269 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SPACE)); | |
41270 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_PyObj_FromInt((int)WXK_NUMPAD_TAB)); | |
41271 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_PyObj_FromInt((int)WXK_NUMPAD_ENTER)); | |
41272 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F1)); | |
41273 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F2)); | |
41274 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F3)); | |
41275 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F4)); | |
41276 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_PyObj_FromInt((int)WXK_NUMPAD_HOME)); | |
41277 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_LEFT)); | |
41278 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_PyObj_FromInt((int)WXK_NUMPAD_UP)); | |
41279 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_RIGHT)); | |
41280 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DOWN)); | |
41281 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PRIOR)); | |
41282 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
41283 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_NEXT)); | |
41284 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
41285 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_PyObj_FromInt((int)WXK_NUMPAD_END)); | |
41286 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_BEGIN)); | |
41287 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_INSERT)); | |
41288 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DELETE)); | |
41289 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_PyObj_FromInt((int)WXK_NUMPAD_EQUAL)); | |
41290 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_PyObj_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
41291 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_PyObj_FromInt((int)WXK_NUMPAD_ADD)); | |
41292 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
41293 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
41294 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
41295 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
41296 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_PyObj_FromInt((int)WXK_WINDOWS_LEFT)); | |
41297 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_PyObj_FromInt((int)WXK_WINDOWS_RIGHT)); | |
41298 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_PyObj_FromInt((int)WXK_WINDOWS_MENU)); | |
41299 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_PyObj_FromInt((int)wxPAPER_NONE)); | |
41300 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_PyObj_FromInt((int)wxPAPER_LETTER)); | |
41301 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_PyObj_FromInt((int)wxPAPER_LEGAL)); | |
41302 | PyDict_SetItemString(d,"PAPER_A4", SWIG_PyObj_FromInt((int)wxPAPER_A4)); | |
41303 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_PyObj_FromInt((int)wxPAPER_CSHEET)); | |
41304 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_PyObj_FromInt((int)wxPAPER_DSHEET)); | |
41305 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_PyObj_FromInt((int)wxPAPER_ESHEET)); | |
41306 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_PyObj_FromInt((int)wxPAPER_LETTERSMALL)); | |
41307 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_PyObj_FromInt((int)wxPAPER_TABLOID)); | |
41308 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_PyObj_FromInt((int)wxPAPER_LEDGER)); | |
41309 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_PyObj_FromInt((int)wxPAPER_STATEMENT)); | |
41310 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_PyObj_FromInt((int)wxPAPER_EXECUTIVE)); | |
41311 | PyDict_SetItemString(d,"PAPER_A3", SWIG_PyObj_FromInt((int)wxPAPER_A3)); | |
41312 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_PyObj_FromInt((int)wxPAPER_A4SMALL)); | |
41313 | PyDict_SetItemString(d,"PAPER_A5", SWIG_PyObj_FromInt((int)wxPAPER_A5)); | |
41314 | PyDict_SetItemString(d,"PAPER_B4", SWIG_PyObj_FromInt((int)wxPAPER_B4)); | |
41315 | PyDict_SetItemString(d,"PAPER_B5", SWIG_PyObj_FromInt((int)wxPAPER_B5)); | |
41316 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_PyObj_FromInt((int)wxPAPER_FOLIO)); | |
41317 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_PyObj_FromInt((int)wxPAPER_QUARTO)); | |
41318 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_PyObj_FromInt((int)wxPAPER_10X14)); | |
41319 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_PyObj_FromInt((int)wxPAPER_11X17)); | |
41320 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_PyObj_FromInt((int)wxPAPER_NOTE)); | |
41321 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_PyObj_FromInt((int)wxPAPER_ENV_9)); | |
41322 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_PyObj_FromInt((int)wxPAPER_ENV_10)); | |
41323 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_PyObj_FromInt((int)wxPAPER_ENV_11)); | |
41324 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_PyObj_FromInt((int)wxPAPER_ENV_12)); | |
41325 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_PyObj_FromInt((int)wxPAPER_ENV_14)); | |
41326 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_PyObj_FromInt((int)wxPAPER_ENV_DL)); | |
41327 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C5)); | |
41328 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C3)); | |
41329 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C4)); | |
41330 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C6)); | |
41331 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C65)); | |
41332 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B4)); | |
41333 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B5)); | |
41334 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B6)); | |
41335 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_PyObj_FromInt((int)wxPAPER_ENV_ITALY)); | |
41336 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_PyObj_FromInt((int)wxPAPER_ENV_MONARCH)); | |
41337 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_PyObj_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
41338 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_US)); | |
41339 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
41340 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
41341 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_PyObj_FromInt((int)wxPAPER_ISO_B4)); | |
41342 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_PyObj_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
41343 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_PyObj_FromInt((int)wxPAPER_9X11)); | |
41344 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_PyObj_FromInt((int)wxPAPER_10X11)); | |
41345 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_PyObj_FromInt((int)wxPAPER_15X11)); | |
41346 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_PyObj_FromInt((int)wxPAPER_ENV_INVITE)); | |
41347 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
41348 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
41349 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
41350 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A4_EXTRA)); | |
41351 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
41352 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
41353 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
41354 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_A_PLUS)); | |
41355 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_B_PLUS)); | |
41356 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_PLUS)); | |
41357 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_A4_PLUS)); | |
41358 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
41359 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
41360 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A3_EXTRA)); | |
41361 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A5_EXTRA)); | |
41362 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_B5_EXTRA)); | |
41363 | PyDict_SetItemString(d,"PAPER_A2", SWIG_PyObj_FromInt((int)wxPAPER_A2)); | |
41364 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
41365 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
41366 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_PyObj_FromInt((int)wxDUPLEX_SIMPLEX)); | |
41367 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_PyObj_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
41368 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_PyObj_FromInt((int)wxDUPLEX_VERTICAL)); | |
41369 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_PyObj_FromInt((int)wxITEM_SEPARATOR)); | |
41370 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_PyObj_FromInt((int)wxITEM_NORMAL)); | |
41371 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_PyObj_FromInt((int)wxITEM_CHECK)); | |
41372 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_PyObj_FromInt((int)wxITEM_RADIO)); | |
41373 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_PyObj_FromInt((int)wxITEM_MAX)); | |
41374 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_PyObj_FromInt((int)wxHT_NOWHERE)); | |
41375 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
41376 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
41377 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
41378 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
41379 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
41380 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
41381 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
41382 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
41383 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
41384 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_PyObj_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
41385 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_PyObj_FromInt((int)wxHT_WINDOW_INSIDE)); | |
41386 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_PyObj_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
41387 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_PyObj_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
41388 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_PyObj_FromInt((int)wxHT_WINDOW_CORNER)); | |
41389 | PyDict_SetItemString(d,"HT_MAX", SWIG_PyObj_FromInt((int)wxHT_MAX)); | |
41390 | PyDict_SetItemString(d,"MOD_NONE", SWIG_PyObj_FromInt((int)wxMOD_NONE)); | |
41391 | PyDict_SetItemString(d,"MOD_ALT", SWIG_PyObj_FromInt((int)wxMOD_ALT)); | |
41392 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_PyObj_FromInt((int)wxMOD_CONTROL)); | |
41393 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_PyObj_FromInt((int)wxMOD_SHIFT)); | |
41394 | PyDict_SetItemString(d,"MOD_WIN", SWIG_PyObj_FromInt((int)wxMOD_WIN)); | |
41395 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_NONE)); | |
41396 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_RECURSE)); | |
41397 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
d14a1e28 | 41398 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
d03fd34d | 41399 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
8edf1c75 RD |
41400 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_INVALID)); |
41401 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_BMP)); | |
41402 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ICO)); | |
41403 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_CUR)); | |
41404 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XBM)); | |
41405 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
41406 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XPM)); | |
41407 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
41408 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_TIF)); | |
41409 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_GIF)); | |
41410 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PNG)); | |
41411 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
41412 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PNM)); | |
41413 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PCX)); | |
41414 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PICT)); | |
41415 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ICON)); | |
41416 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ANI)); | |
41417 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_IFF)); | |
41418 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
41419 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ANY)); | |
41420 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_PyObj_FromInt((int)wxCURSOR_NONE)); | |
41421 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_ARROW)); | |
41422 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
41423 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_PyObj_FromInt((int)wxCURSOR_BULLSEYE)); | |
41424 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_PyObj_FromInt((int)wxCURSOR_CHAR)); | |
41425 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_PyObj_FromInt((int)wxCURSOR_CROSS)); | |
41426 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_PyObj_FromInt((int)wxCURSOR_HAND)); | |
41427 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_PyObj_FromInt((int)wxCURSOR_IBEAM)); | |
41428 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
41429 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_PyObj_FromInt((int)wxCURSOR_MAGNIFIER)); | |
41430 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
41431 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_PyObj_FromInt((int)wxCURSOR_NO_ENTRY)); | |
41432 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_PyObj_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
41433 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_PyObj_FromInt((int)wxCURSOR_PENCIL)); | |
41434 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_PyObj_FromInt((int)wxCURSOR_POINT_LEFT)); | |
41435 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_PyObj_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
41436 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
41437 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
41438 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENESW)); | |
41439 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENS)); | |
41440 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENWSE)); | |
41441 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_PyObj_FromInt((int)wxCURSOR_SIZEWE)); | |
41442 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_PyObj_FromInt((int)wxCURSOR_SIZING)); | |
41443 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_PyObj_FromInt((int)wxCURSOR_SPRAYCAN)); | |
41444 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_PyObj_FromInt((int)wxCURSOR_WAIT)); | |
41445 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_PyObj_FromInt((int)wxCURSOR_WATCH)); | |
41446 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_PyObj_FromInt((int)wxCURSOR_BLANK)); | |
41447 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_PyObj_FromInt((int)wxCURSOR_DEFAULT)); | |
41448 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_COPY_ARROW)); | |
41449 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_PyObj_FromInt((int)wxCURSOR_ARROWWAIT)); | |
41450 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_PyObj_FromInt((int)wxCURSOR_MAX)); | |
d14a1e28 RD |
41451 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
41452 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
8edf1c75 RD |
41453 | PyDict_SetItemString(d,"FromStart", SWIG_PyObj_FromInt((int)wxFromStart)); |
41454 | PyDict_SetItemString(d,"FromCurrent", SWIG_PyObj_FromInt((int)wxFromCurrent)); | |
41455 | PyDict_SetItemString(d,"FromEnd", SWIG_PyObj_FromInt((int)wxFromEnd)); | |
d14a1e28 RD |
41456 | |
41457 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
41458 | ||
41459 | ||
41460 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
41461 | ||
41462 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
41463 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
41464 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
41465 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
41466 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
41467 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
8edf1c75 RD |
41468 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_PyObj_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); |
41469 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_PyObj_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
41470 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_PyObj_FromInt((int)wxBMP_24BPP)); | |
41471 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_PyObj_FromInt((int)wxBMP_8BPP)); | |
41472 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_PyObj_FromInt((int)wxBMP_8BPP_GREY)); | |
41473 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_PyObj_FromInt((int)wxBMP_8BPP_GRAY)); | |
41474 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_PyObj_FromInt((int)wxBMP_8BPP_RED)); | |
41475 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_PyObj_FromInt((int)wxBMP_8BPP_PALETTE)); | |
41476 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_PyObj_FromInt((int)wxBMP_4BPP)); | |
41477 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_PyObj_FromInt((int)wxBMP_1BPP)); | |
41478 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_PyObj_FromInt((int)wxBMP_1BPP_BW)); | |
41479 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_PyObj_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
41480 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_PyObj_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
d14a1e28 RD |
41481 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
41482 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
41483 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
41484 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
41485 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
41486 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
41487 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
41488 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
41489 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
41490 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
41491 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
41492 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
41493 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
41494 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
41495 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
41496 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
41497 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
41498 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
41499 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
41500 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
41501 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
41502 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
41503 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
41504 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
41505 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
41506 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
41507 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
41508 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
41509 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
41510 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
41511 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
41512 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
41513 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
41514 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
41515 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
41516 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
41517 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
41518 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
41519 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
41520 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
41521 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
41522 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
41523 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
41524 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
41525 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
41526 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
41527 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
41528 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
41529 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
41530 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
41531 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
41532 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
41533 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
41534 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
41535 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
41536 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
41537 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
41538 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
41539 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
41540 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
41541 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
41542 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
41543 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
41544 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
41545 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
41546 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
41547 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
41548 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
41549 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
41550 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
41551 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
41552 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
41553 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
41554 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
41555 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
41556 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
41557 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
41558 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
41559 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
41560 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
41561 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
41562 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
41563 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
41564 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
41565 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
41566 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
41567 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
41568 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
41569 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
41570 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
41571 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
41572 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
41573 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
41574 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
41575 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
41576 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
41577 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
41578 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
41579 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
41580 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
41581 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
41582 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
41583 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
41584 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
41585 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
41586 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
41587 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
41588 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
41589 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
41590 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
41591 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
41592 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
41593 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
41594 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
8edf1c75 RD |
41595 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_ANY)); |
41596 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_NONE)); | |
41597 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_LEFT)); | |
41598 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
41599 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
41600 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_PyObj_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
41601 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_PyObj_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
41602 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_PyObj_FromInt((int)wxIDLE_PROCESS_ALL)); | |
41603 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_PyObj_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
41604 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
41605 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
41606 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
41607 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
41608 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_PyObj_FromInt((int)wxPRINT_WINDOWS)); | |
41609 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_PyObj_FromInt((int)wxPRINT_POSTSCRIPT)); | |
41f1cec7 | 41610 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
423f194a | 41611 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
d14a1e28 | 41612 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
d03fd34d | 41613 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
8edf1c75 RD |
41614 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_NONE)); |
41615 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
41616 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
d14a1e28 | 41617 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
8edf1c75 RD |
41618 | PyDict_SetItemString(d,"Left", SWIG_PyObj_FromInt((int)wxLeft)); |
41619 | PyDict_SetItemString(d,"Top", SWIG_PyObj_FromInt((int)wxTop)); | |
41620 | PyDict_SetItemString(d,"Right", SWIG_PyObj_FromInt((int)wxRight)); | |
41621 | PyDict_SetItemString(d,"Bottom", SWIG_PyObj_FromInt((int)wxBottom)); | |
41622 | PyDict_SetItemString(d,"Width", SWIG_PyObj_FromInt((int)wxWidth)); | |
41623 | PyDict_SetItemString(d,"Height", SWIG_PyObj_FromInt((int)wxHeight)); | |
41624 | PyDict_SetItemString(d,"Centre", SWIG_PyObj_FromInt((int)wxCentre)); | |
41625 | PyDict_SetItemString(d,"Center", SWIG_PyObj_FromInt((int)wxCenter)); | |
41626 | PyDict_SetItemString(d,"CentreX", SWIG_PyObj_FromInt((int)wxCentreX)); | |
41627 | PyDict_SetItemString(d,"CentreY", SWIG_PyObj_FromInt((int)wxCentreY)); | |
41628 | PyDict_SetItemString(d,"Unconstrained", SWIG_PyObj_FromInt((int)wxUnconstrained)); | |
41629 | PyDict_SetItemString(d,"AsIs", SWIG_PyObj_FromInt((int)wxAsIs)); | |
41630 | PyDict_SetItemString(d,"PercentOf", SWIG_PyObj_FromInt((int)wxPercentOf)); | |
41631 | PyDict_SetItemString(d,"Above", SWIG_PyObj_FromInt((int)wxAbove)); | |
41632 | PyDict_SetItemString(d,"Below", SWIG_PyObj_FromInt((int)wxBelow)); | |
41633 | PyDict_SetItemString(d,"LeftOf", SWIG_PyObj_FromInt((int)wxLeftOf)); | |
41634 | PyDict_SetItemString(d,"RightOf", SWIG_PyObj_FromInt((int)wxRightOf)); | |
41635 | PyDict_SetItemString(d,"SameAs", SWIG_PyObj_FromInt((int)wxSameAs)); | |
41636 | PyDict_SetItemString(d,"Absolute", SWIG_PyObj_FromInt((int)wxAbsolute)); | |
d14a1e28 RD |
41637 | |
41638 | // Initialize threading, some globals and such | |
41639 | __wxPyPreStart(d); | |
41640 | ||
41641 | ||
41642 | // Although these are defined in __version__ they need to be here too so | |
41643 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
41644 | // versions match. | |
41645 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
41646 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
41647 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
41648 | ||
41649 | } | |
41650 |