]>
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] | |
8edf1c75 RD |
276 | #define SWIGTYPE_p_wxIconizeEvent swig_types[43] |
277 | #define SWIGTYPE_p_wxActivateEvent swig_types[44] | |
278 | #define SWIGTYPE_p_wxMoveEvent swig_types[45] | |
279 | #define SWIGTYPE_p_wxSizeEvent swig_types[46] | |
280 | #define SWIGTYPE_p_wxMaximizeEvent 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] | |
8edf1c75 RD |
296 | #define SWIGTYPE_p_wxZipFSHandler swig_types[63] |
297 | #define SWIGTYPE_p_wxEvtHandler swig_types[64] | |
298 | #define SWIGTYPE_p_wxCURHandler swig_types[65] | |
299 | #define SWIGTYPE_p_wxICOHandler swig_types[66] | |
300 | #define SWIGTYPE_p_wxBMPHandler swig_types[67] | |
301 | #define SWIGTYPE_p_wxImageHandler swig_types[68] | |
302 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[69] | |
303 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[70] | |
304 | #define SWIGTYPE_p_wxInternetFSHandler 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] | |
328 | #define SWIGTYPE_p_wxString swig_types[95] | |
329 | #define SWIGTYPE_p_wxFileSystem swig_types[96] | |
330 | #define SWIGTYPE_p_wxBitmap swig_types[97] | |
331 | #define SWIGTYPE_p_wxMenuEvent swig_types[98] | |
332 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[99] | |
333 | #define SWIGTYPE_p_unsigned_char swig_types[100] | |
334 | #define SWIGTYPE_p_wxCloseEvent swig_types[101] | |
335 | #define SWIGTYPE_p_wxEraseEvent swig_types[102] | |
336 | #define SWIGTYPE_p_wxMouseEvent swig_types[103] | |
337 | #define SWIGTYPE_p_wxPyApp swig_types[104] | |
338 | #define SWIGTYPE_p_wxCommandEvent swig_types[105] | |
339 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[106] | |
340 | #define SWIGTYPE_p_wxPyDropTarget swig_types[107] | |
341 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[108] | |
342 | #define SWIGTYPE_p_wxFocusEvent swig_types[109] | |
343 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[110] | |
344 | #define SWIGTYPE_p_wxControlWithItems swig_types[111] | |
345 | #define SWIGTYPE_p_wxColour swig_types[112] | |
346 | #define SWIGTYPE_p_wxValidator swig_types[113] | |
347 | #define SWIGTYPE_p_wxPyValidator swig_types[114] | |
348 | static swig_type_info *swig_types[116]; | |
d14a1e28 RD |
349 | |
350 | /* -------- TYPES TABLE (END) -------- */ | |
351 | ||
352 | ||
353 | /*----------------------------------------------- | |
354 | @(target):= _core.so | |
355 | ------------------------------------------------*/ | |
356 | #define SWIG_init init_core | |
357 | ||
358 | #define SWIG_name "_core" | |
359 | ||
8edf1c75 RD |
360 | #include <limits.h> |
361 | #include <float.h> | |
362 | #include <string.h> | |
363 | ||
364 | #ifndef SWIGSTATIC | |
365 | #ifdef __cplusplus | |
366 | #define SWIGSTATIC(a) static inline a | |
367 | #else | |
368 | #define SWIGSTATIC(a) static a | |
369 | #endif | |
370 | #endif | |
371 | ||
372 | #ifndef numeric_cast | |
373 | #ifdef __cplusplus | |
374 | #ifdef HAVE_NUMERIC_CAST | |
375 | #define numeric_cast(type,a) numeric_cast<type>(a) | |
376 | #else | |
377 | #define numeric_cast(type,a) static_cast<type>(a) | |
378 | #endif | |
379 | #else | |
380 | #define numeric_cast(type,a) (type)(a) | |
381 | #endif | |
382 | #endif | |
383 | ||
384 | ||
385 | ||
386 | #define SWIG_PyObj_FromSignedChar PyInt_FromLong | |
387 | #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong | |
388 | #define SWIG_PyObj_FromShort PyInt_FromLong | |
389 | #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong | |
390 | #define SWIG_PyObj_FromInt PyInt_FromLong | |
391 | #define SWIG_PyObj_FromLong PyInt_FromLong | |
392 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
393 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
394 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
395 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
396 | ||
397 | ||
d14a1e28 RD |
398 | #include "wx/wxPython/wxPython_int.h" |
399 | #include "wx/wxPython/pyclasses.h" | |
400 | ||
401 | ||
402 | #ifndef wxPyUSE_EXPORT | |
403 | // Helper functions for dealing with SWIG objects and such. These are | |
404 | // located here so they know about the SWIG types and functions declared | |
405 | // in the wrapper code. | |
406 | ||
407 | #include <wx/hashmap.h> | |
408 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
409 | ||
410 | ||
411 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
412 | // name of a class either looks up the type info in the cache, or scans the | |
413 | // SWIG tables for it. | |
414 | extern PyObject* wxPyPtrTypeMap; | |
415 | static | |
416 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
417 | ||
418 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
419 | ||
420 | if (typeInfoCache == NULL) | |
421 | typeInfoCache = new wxPyTypeInfoHashMap; | |
422 | ||
423 | wxString name(className); | |
424 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
425 | ||
426 | if (! swigType) { | |
427 | // it wasn't in the cache, so look it up from SWIG | |
428 | name.Append(wxT(" *")); | |
429 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
430 | ||
431 | // if it still wasn't found, try looking for a mapped name | |
432 | if (!swigType) { | |
433 | PyObject* item; | |
434 | name = className; | |
435 | ||
436 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
437 | (char*)(const char*)name.mbc_str())) != NULL) { | |
438 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
439 | name.Append(wxT(" *")); | |
440 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
441 | } | |
442 | } | |
443 | if (swigType) { | |
444 | // and add it to the map if found | |
445 | (*typeInfoCache)[className] = swigType; | |
446 | } | |
447 | } | |
448 | return swigType; | |
449 | } | |
450 | ||
451 | ||
452 | // Check if a class name is a type known to SWIG | |
453 | bool wxPyCheckSwigType(const wxChar* className) { | |
454 | ||
455 | swig_type_info* swigType = wxPyFindSwigType(className); | |
456 | return swigType != NULL; | |
457 | } | |
458 | ||
459 | ||
460 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
461 | // object for it. | |
462 | PyObject* wxPyConstructObject(void* ptr, | |
463 | const wxChar* className, | |
464 | int setThisOwn) { | |
465 | ||
466 | swig_type_info* swigType = wxPyFindSwigType(className); | |
467 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
468 | ||
469 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
470 | } | |
471 | ||
472 | ||
473 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
474 | // Ensures that the proxy object is of the specified (or derived) type. If | |
475 | // not able to perform the conversion then a Python exception is set and the | |
423f194a | 476 | // error should be handled properly in the caller. Returns True on success. |
d14a1e28 RD |
477 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, |
478 | const wxChar* className) { | |
479 | ||
480 | swig_type_info* swigType = wxPyFindSwigType(className); | |
423f194a | 481 | wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr")); |
d14a1e28 RD |
482 | |
483 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
484 | } | |
485 | ||
486 | ||
487 | // Make a SWIGified pointer object suitable for a .this attribute | |
488 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
489 | ||
490 | PyObject* robj = NULL; | |
491 | ||
492 | swig_type_info* swigType = wxPyFindSwigType(className); | |
493 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
494 | ||
495 | #ifdef SWIG_COBJECT_TYPES | |
496 | robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); | |
497 | #else | |
498 | { | |
499 | char result[1024]; | |
500 | char *r = result; | |
501 | *(r++) = '_'; | |
502 | r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); | |
503 | strcpy(r, swigType->name); | |
504 | robj = PyString_FromString(result); | |
505 | } | |
506 | #endif | |
507 | ||
508 | return robj; | |
509 | } | |
510 | ||
511 | ||
512 | ||
513 | ||
514 | // Export a C API in a struct. Other modules will be able to load this from | |
515 | // the wx.core module and will then have safe access to these functions, even if | |
516 | // they are located in another shared library. | |
517 | static wxPyCoreAPI API = { | |
518 | ||
519 | (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, | |
520 | (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, | |
521 | (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, | |
522 | (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, | |
523 | (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, | |
524 | (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, | |
525 | (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, | |
526 | (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, | |
527 | (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, | |
528 | (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, | |
529 | (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, | |
530 | (p_SWIG_Python_PackData_t)SWIG_Python_PackData, | |
531 | (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, | |
532 | (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, | |
533 | (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, | |
534 | (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, | |
535 | (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, | |
536 | ||
8edf1c75 RD |
537 | (p_SWIG_PyObj_AsCharPtr_t)SWIG_PyObj_AsCharPtr, |
538 | (p_SWIG_PyObj_FromCharPtr_t)SWIG_PyObj_FromCharPtr, | |
539 | (p_SWIG_PyObj_AsUnsignedLong_t)SWIG_PyObj_AsUnsignedLong, | |
540 | (p_SWIG_PyObj_AsLongInRange_t)SWIG_PyObj_AsLongInRange, | |
541 | (p_SWIG_PyObj_AsUnsignedLongInRange_t)SWIG_PyObj_AsUnsignedLongInRange, | |
542 | (p_SWIG_PyObj_AsNewCharPtr_t)SWIG_PyObj_AsNewCharPtr, | |
543 | (p_SWIG_PyObj_AsCharPtrAndSize_t)SWIG_PyObj_AsCharPtrAndSize, | |
544 | (p_SWIG_PyObj_AsCharArray_t)SWIG_PyObj_AsCharArray, | |
545 | (p_SWIG_PyObj_FromCharArray_t)SWIG_PyObj_FromCharArray, | |
546 | (p_SWIG_PyObj_AsFloatConv_t)SWIG_PyObj_AsFloatConv, | |
547 | ||
d14a1e28 RD |
548 | wxPyCheckSwigType, |
549 | wxPyConstructObject, | |
550 | wxPyConvertSwigPtr, | |
551 | wxPyMakeSwigPtr, | |
552 | ||
553 | wxPyBeginAllowThreads, | |
554 | wxPyEndAllowThreads, | |
555 | wxPyBeginBlockThreads, | |
556 | wxPyEndBlockThreads, | |
557 | ||
558 | wxPy_ConvertList, | |
559 | ||
560 | wxString_in_helper, | |
561 | Py2wxString, | |
562 | wx2PyString, | |
563 | ||
564 | byte_LIST_helper, | |
565 | int_LIST_helper, | |
566 | long_LIST_helper, | |
567 | string_LIST_helper, | |
568 | wxPoint_LIST_helper, | |
569 | wxBitmap_LIST_helper, | |
570 | wxString_LIST_helper, | |
571 | wxAcceleratorEntry_LIST_helper, | |
572 | ||
573 | wxSize_helper, | |
574 | wxPoint_helper, | |
575 | wxRealPoint_helper, | |
576 | wxRect_helper, | |
577 | wxColour_helper, | |
578 | wxPoint2D_helper, | |
579 | ||
580 | wxPySimple_typecheck, | |
581 | wxColour_typecheck, | |
582 | ||
583 | wxPyCBH_setCallbackInfo, | |
584 | wxPyCBH_findCallback, | |
585 | wxPyCBH_callCallback, | |
586 | wxPyCBH_callCallbackObj, | |
587 | wxPyCBH_delete, | |
588 | ||
589 | wxPyMake_wxObject, | |
590 | wxPyMake_wxSizer, | |
591 | wxPyPtrTypeMap_Add, | |
592 | wxPy2int_seq_helper, | |
593 | wxPy4int_seq_helper, | |
594 | wxArrayString2PyList_helper, | |
595 | wxArrayInt2PyList_helper, | |
596 | ||
597 | wxPyClientData_dtor, | |
598 | wxPyUserData_dtor, | |
599 | wxPyOORClientData_dtor, | |
600 | ||
601 | wxPyCBInputStream_create, | |
602 | ||
603 | wxPyInstance_Check, | |
604 | wxPySwigInstance_Check | |
605 | ||
606 | }; | |
607 | ||
608 | #endif | |
609 | ||
610 | ||
d14a1e28 RD |
611 | #if ! wxUSE_HOTKEY |
612 | enum wxHotkeyModifier | |
613 | { | |
614 | wxMOD_NONE = 0, | |
615 | wxMOD_ALT = 1, | |
616 | wxMOD_CONTROL = 2, | |
617 | wxMOD_SHIFT = 4, | |
618 | wxMOD_WIN = 8 | |
619 | }; | |
620 | #define wxEVT_HOTKEY 9999 | |
621 | #endif | |
622 | ||
d03fd34d | 623 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
624 | wxString wxObject_GetClassName(wxObject *self){ |
625 | return self->GetClassInfo()->GetClassName(); | |
626 | } | |
627 | void wxObject_Destroy(wxObject *self){ | |
628 | delete self; | |
629 | } | |
630 | ||
631 | #ifndef __WXMAC__ | |
632 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
633 | #endif | |
634 | ||
8edf1c75 RD |
635 | |
636 | SWIGSTATIC(int) | |
637 | SWIG_PyObj_AsInt(PyObject *obj) | |
638 | { | |
639 | return numeric_cast(int, | |
640 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
641 | } | |
642 | ||
643 | ||
644 | SWIGSTATIC(PyObject*) | |
645 | SWIG_PyObj_FromBool(bool value) | |
646 | { | |
647 | PyObject *obj = value ? Py_True : Py_False; | |
648 | Py_INCREF(obj); | |
649 | return obj; | |
650 | } | |
651 | ||
423f194a | 652 | PyObject *wxSize_Get(wxSize *self){ |
d14a1e28 RD |
653 | wxPyBeginBlockThreads(); |
654 | PyObject* tup = PyTuple_New(2); | |
655 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
656 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
657 | wxPyEndBlockThreads(); | |
658 | return tup; | |
659 | } | |
8edf1c75 RD |
660 | |
661 | SWIGSTATIC(double) | |
662 | SWIG_PyObj_AsDouble(PyObject *obj) | |
663 | { | |
664 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
665 | #if HAVE_LONG_LONG | |
666 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
667 | #else | |
668 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
669 | #endif | |
670 | if (PyErr_Occurred()) { | |
671 | PyErr_Clear(); | |
672 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
673 | } | |
674 | } | |
675 | ||
d14a1e28 RD |
676 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ |
677 | self->x = x; | |
678 | self->y = y; | |
679 | } | |
423f194a | 680 | PyObject *wxRealPoint_Get(wxRealPoint *self){ |
d14a1e28 RD |
681 | wxPyBeginBlockThreads(); |
682 | PyObject* tup = PyTuple_New(2); | |
683 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
684 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
685 | wxPyEndBlockThreads(); | |
686 | return tup; | |
687 | } | |
8edf1c75 RD |
688 | |
689 | SWIGSTATIC(long) | |
690 | SWIG_PyObj_AsLong(PyObject * obj) | |
691 | { | |
692 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
693 | } | |
694 | ||
d14a1e28 RD |
695 | void wxPoint_Set(wxPoint *self,long x,long y){ |
696 | self->x = x; | |
697 | self->y = y; | |
698 | } | |
423f194a | 699 | PyObject *wxPoint_Get(wxPoint *self){ |
d14a1e28 RD |
700 | wxPyBeginBlockThreads(); |
701 | PyObject* tup = PyTuple_New(2); | |
702 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
703 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
704 | wxPyEndBlockThreads(); | |
705 | return tup; | |
706 | } | |
707 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
708 | self->x = x; | |
709 | self->y = y; | |
710 | self->width = width; | |
711 | self->height = height; | |
712 | } | |
423f194a | 713 | PyObject *wxRect_Get(wxRect *self){ |
d14a1e28 RD |
714 | wxPyBeginBlockThreads(); |
715 | PyObject* tup = PyTuple_New(4); | |
716 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
717 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
718 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
719 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
720 | wxPyEndBlockThreads(); | |
721 | return tup; | |
722 | } | |
723 | ||
724 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
725 | wxRegion reg1(*r1); | |
726 | wxRegion reg2(*r2); | |
727 | wxRect dest(0,0,0,0); | |
728 | PyObject* obj; | |
729 | ||
730 | reg1.Intersect(reg2); | |
731 | dest = reg1.GetBox(); | |
732 | ||
733 | if (dest != wxRect(0,0,0,0)) { | |
734 | wxPyBeginBlockThreads(); | |
735 | wxRect* newRect = new wxRect(dest); | |
423f194a | 736 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); |
d14a1e28 RD |
737 | wxPyEndBlockThreads(); |
738 | return obj; | |
739 | } | |
740 | Py_INCREF(Py_None); | |
741 | return Py_None; | |
742 | } | |
743 | ||
744 | ||
745 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
746 | PyObject* o2; | |
747 | PyObject* o3; | |
748 | ||
749 | if (!target) { | |
750 | target = o; | |
751 | } else if (target == Py_None) { | |
752 | Py_DECREF(Py_None); | |
753 | target = o; | |
754 | } else { | |
755 | if (!PyTuple_Check(target)) { | |
756 | o2 = target; | |
757 | target = PyTuple_New(1); | |
758 | PyTuple_SetItem(target, 0, o2); | |
759 | } | |
760 | o3 = PyTuple_New(1); | |
761 | PyTuple_SetItem(o3, 0, o); | |
762 | ||
763 | o2 = target; | |
764 | target = PySequence_Concat(o2, o3); | |
765 | Py_DECREF(o2); | |
766 | Py_DECREF(o3); | |
767 | } | |
768 | return target; | |
769 | } | |
770 | ||
771 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
772 | self->m_x = x; | |
773 | self->m_y = y; | |
774 | } | |
423f194a | 775 | PyObject *wxPoint2D_Get(wxPoint2D *self){ |
d14a1e28 RD |
776 | wxPyBeginBlockThreads(); |
777 | PyObject* tup = PyTuple_New(2); | |
778 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
779 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
780 | wxPyEndBlockThreads(); | |
781 | return tup; | |
782 | } | |
783 | ||
784 | #include "wx/wxPython/pyistream.h" | |
785 | ||
786 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
787 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
788 | if (wxis) | |
789 | return new wxPyInputStream(wxis); | |
790 | else | |
791 | return NULL; | |
792 | } | |
8edf1c75 RD |
793 | |
794 | SWIGSTATIC(PyObject*) | |
795 | SWIG_PyObj_FromChar(char c) | |
796 | { | |
797 | return PyString_FromStringAndSize(&c,1); | |
798 | } | |
799 | ||
800 | ||
801 | SWIGSTATIC(PyObject* ) | |
802 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
803 | { | |
804 | return (value > (unsigned long)(LONG_MAX)) ? | |
805 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
806 | } | |
807 | ||
808 | ||
809 | SWIGSTATIC(char) | |
810 | SWIG_PyObj_AsChar(PyObject *obj) | |
811 | { | |
812 | char c = 0; | |
813 | if (PyInt_Check(obj) || PyLong_Check(obj)) { | |
814 | c = numeric_cast(char, | |
815 | SWIG_PyObj_AsLongInRange(obj, "char",CHAR_MIN, CHAR_MAX)); | |
816 | } else { | |
817 | char* cptr; size_t csize; | |
818 | SWIG_PyObj_AsCharPtrAndSize(obj, 0, &cptr, &csize); | |
819 | if (csize == 1) { | |
820 | c = cptr[0]; | |
821 | } else { | |
822 | PyErr_SetString(PyExc_TypeError, "a char is expected"); | |
823 | } | |
824 | } | |
825 | return c; | |
826 | } | |
827 | ||
d14a1e28 RD |
828 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ |
829 | // We use only strings for the streams, not unicode | |
830 | PyObject* str = PyObject_Str(obj); | |
831 | if (! str) { | |
832 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
833 | return; | |
834 | } | |
835 | self->Write(PyString_AS_STRING(str), | |
836 | PyString_GET_SIZE(str)); | |
837 | Py_DECREF(str); | |
838 | } | |
839 | ||
840 | #include "wx/wxPython/pyistream.h" | |
841 | ||
842 | ||
843 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
844 | { | |
845 | public: | |
846 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
847 | ||
848 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
849 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
850 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
851 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
852 | ||
853 | wxString GetProtocol(const wxString& location) { | |
854 | return wxFileSystemHandler::GetProtocol(location); | |
855 | } | |
856 | ||
857 | wxString GetLeftLocation(const wxString& location) { | |
858 | return wxFileSystemHandler::GetLeftLocation(location); | |
859 | } | |
860 | ||
861 | wxString GetAnchor(const wxString& location) { | |
862 | return wxFileSystemHandler::GetAnchor(location); | |
863 | } | |
864 | ||
865 | wxString GetRightLocation(const wxString& location) { | |
866 | return wxFileSystemHandler::GetRightLocation(location); | |
867 | } | |
868 | ||
869 | wxString GetMimeTypeFromExt(const wxString& location) { | |
870 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
871 | } | |
872 | ||
873 | PYPRIVATE; | |
874 | }; | |
875 | ||
876 | ||
877 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
878 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
879 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
880 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
881 | ||
882 | ||
8edf1c75 RD |
883 | SWIGSTATIC(bool) |
884 | SWIG_PyObj_AsBool(PyObject *obj) | |
885 | { | |
886 | return PyObject_IsTrue(obj) ? true : false; | |
887 | } | |
888 | ||
889 | ||
d14a1e28 RD |
890 | wxString wxFileSystem_URLToFileName(const wxString& url) { |
891 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
892 | return fname.GetFullPath(); | |
893 | } | |
894 | ||
895 | ||
896 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
897 | wxImage& image, | |
898 | long type) { | |
899 | wxMemoryFSHandler::AddFile(filename, image, type); | |
900 | } | |
901 | ||
902 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
903 | const wxBitmap& bitmap, | |
904 | long type) { | |
905 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
906 | } | |
907 | ||
908 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
909 | PyObject* data) { | |
910 | wxMemoryFSHandler::AddFile(filename, | |
911 | // TODO: Verify data type | |
912 | (void*)PyString_AsString(data), | |
913 | (size_t)PyString_Size(data)); | |
914 | } | |
915 | ||
916 | ||
917 | #include "wx/wxPython/pyistream.h" | |
918 | ||
8edf1c75 RD |
919 | |
920 | SWIGSTATIC(unsigned char) | |
921 | SWIG_PyObj_AsUnsignedChar(PyObject *obj) | |
922 | { | |
923 | return numeric_cast(unsigned char, | |
924 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX)); | |
925 | } | |
926 | ||
d14a1e28 RD |
927 | wxImage *new_wxImage(int width,int height,bool clear){ |
928 | if (width > 0 && height > 0) | |
929 | return new wxImage(width, height, clear); | |
930 | else | |
931 | return new wxImage; | |
932 | } | |
933 | wxImage *new_wxImage(wxBitmap const &bitmap){ | |
934 | return new wxImage(bitmap.ConvertToImage()); | |
935 | } | |
936 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
937 | // Copy the source data so the wxImage can clean it up later | |
938 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
939 | if (copy == NULL) { | |
940 | PyErr_NoMemory(); | |
941 | return NULL; | |
942 | } | |
943 | memcpy(copy, data, width*height*3); | |
423f194a | 944 | return new wxImage(width, height, copy, False); |
d14a1e28 RD |
945 | } |
946 | PyObject *wxImage_GetData(wxImage *self){ | |
947 | unsigned char* data = self->GetData(); | |
948 | int len = self->GetWidth() * self->GetHeight() * 3; | |
949 | PyObject* rv; | |
950 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
951 | return rv; | |
952 | } | |
953 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
954 | unsigned char* dataPtr; | |
955 | ||
956 | if (! PyString_Check(data)) { | |
957 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
958 | return /* NULL */ ; | |
959 | } | |
960 | ||
961 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
962 | dataPtr = (unsigned char*) malloc(len); | |
963 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
964 | self->SetData(dataPtr); | |
965 | // wxImage takes ownership of dataPtr... | |
966 | } | |
967 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
968 | unsigned char* data = self->GetData(); | |
969 | int len = self->GetWidth() * self->GetHeight() * 3; | |
970 | PyObject* rv; | |
971 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
972 | return rv; | |
973 | } | |
974 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
975 | unsigned char* buffer; | |
976 | int size; | |
977 | ||
978 | wxPyBeginBlockThreads(); | |
979 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
980 | goto done; | |
981 | ||
982 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
983 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
984 | goto done; | |
985 | } | |
986 | self->SetData(buffer); | |
987 | done: | |
988 | wxPyEndBlockThreads(); | |
989 | } | |
990 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
991 | unsigned char* data = self->GetAlpha(); | |
992 | if (! data) { | |
993 | RETURN_NONE(); | |
994 | } else { | |
995 | int len = self->GetWidth() * self->GetHeight(); | |
996 | PyObject* rv; | |
997 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
998 | return rv; | |
999 | } | |
1000 | } | |
1001 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1002 | unsigned char* dataPtr; | |
1003 | ||
1004 | if (! PyString_Check(data)) { | |
1005 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1006 | return /* NULL */ ; | |
1007 | } | |
1008 | ||
1009 | size_t len = self->GetWidth() * self->GetHeight(); | |
1010 | dataPtr = (unsigned char*) malloc(len); | |
1011 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1012 | self->SetAlpha(dataPtr); | |
1013 | // wxImage takes ownership of dataPtr... | |
1014 | } | |
1015 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1016 | unsigned char* data = self->GetAlpha(); | |
1017 | int len = self->GetWidth() * self->GetHeight(); | |
1018 | PyObject* rv; | |
1019 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1020 | return rv; | |
1021 | } | |
1022 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1023 | unsigned char* buffer; | |
1024 | int size; | |
1025 | ||
1026 | wxPyBeginBlockThreads(); | |
1027 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1028 | goto done; | |
1029 | ||
1030 | if (size != self->GetWidth() * self->GetHeight()) { | |
1031 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1032 | goto done; | |
1033 | } | |
1034 | self->SetAlpha(buffer); | |
1035 | done: | |
1036 | wxPyEndBlockThreads(); | |
1037 | } | |
1038 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ | |
1039 | wxBitmap bitmap(*self); | |
1040 | return bitmap; | |
1041 | } | |
1042 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1043 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1044 | wxBitmap bitmap( mono, 1 ); | |
1045 | return bitmap; | |
1046 | } | |
1047 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1048 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1049 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1050 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1051 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
1052 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
1053 | if (PyCallable_Check(func)) { | |
1054 | self->Connect(id, lastId, eventType, | |
1055 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1056 | new wxPyCallback(func)); | |
1057 | } | |
1058 | else if (func == Py_None) { | |
1059 | self->Disconnect(id, lastId, eventType, | |
1060 | (wxObjectEventFunction) | |
1061 | &wxPyCallback::EventThunker); | |
1062 | } | |
1063 | else { | |
1064 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
1065 | } | |
1066 | } | |
1067 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1068 | return self->Disconnect(id, lastId, eventType, | |
1069 | (wxObjectEventFunction) | |
1070 | &wxPyCallback::EventThunker); | |
1071 | } | |
1072 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1073 | if (_self && _self != Py_None) { | |
1074 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1075 | } | |
1076 | else { | |
1077 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1078 | if (data) { | |
1079 | self->SetClientObject(NULL); // This will delete it too | |
1080 | } | |
1081 | } | |
1082 | } | |
1083 | int wxKeyEvent_GetUniChar(wxKeyEvent *self){ | |
a64def11 RD |
1084 | #if wxUSE_UNICODE |
1085 | return self->m_uniChar; | |
1086 | #else | |
d14a1e28 | 1087 | return 0; |
a64def11 | 1088 | #endif |
d14a1e28 | 1089 | } |
8edf1c75 RD |
1090 | |
1091 | #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong | |
1092 | ||
1093 | ||
1094 | SWIGSTATIC(unsigned int) | |
1095 | SWIG_PyObj_AsUnsignedInt(PyObject *obj) | |
1096 | { | |
1097 | return numeric_cast(unsigned int, | |
1098 | SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX)); | |
1099 | } | |
1100 | ||
d14a1e28 RD |
1101 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ |
1102 | self->m_size = size; | |
1103 | } | |
1104 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1105 | self->m_pos = pos; | |
1106 | } | |
1107 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1108 | int count = self->GetNumberOfFiles(); | |
1109 | wxString* files = self->GetFiles(); | |
1110 | PyObject* list = PyList_New(count); | |
1111 | ||
1112 | if (!list) { | |
1113 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1114 | return NULL; | |
1115 | } | |
1116 | ||
1117 | for (int i=0; i<count; i++) { | |
a64def11 | 1118 | PyList_SetItem(list, i, wx2PyString(files[i])); |
d14a1e28 RD |
1119 | } |
1120 | return list; | |
1121 | } | |
1122 | ||
1123 | ||
1124 | wxPyApp *new_wxPyApp(){ | |
1125 | wxPythonApp = new wxPyApp(); | |
1126 | return wxPythonApp; | |
1127 | } | |
1128 | ||
1129 | void wxApp_CleanUp() { | |
1130 | __wxPyCleanup(); | |
1131 | } | |
1132 | ||
1133 | ||
1134 | wxPyApp* wxGetApp() { | |
1135 | return (wxPyApp*)wxTheApp; | |
1136 | } | |
1137 | ||
1138 | ||
1139 | ||
423f194a | 1140 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
d14a1e28 RD |
1141 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1142 | wxWindowList& list = self->GetChildren(); | |
1143 | return wxPy_ConvertList(&list); | |
1144 | } | |
1145 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1146 | ||
1147 | ||
1148 | ||
423f194a | 1149 | return False; |
d14a1e28 RD |
1150 | |
1151 | } | |
1152 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1153 | ||
1154 | ||
1155 | ||
423f194a | 1156 | return False; |
d14a1e28 RD |
1157 | |
1158 | } | |
1159 | long wxWindow_GetHandle(wxWindow *self){ | |
1160 | return wxPyGetWinHandle(self); | |
1161 | } | |
1162 | ||
1163 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1164 | return wxWindow::FindWindowById(id, parent); | |
1165 | } | |
1166 | ||
1167 | wxWindow* wxFindWindowByName( const wxString& name, | |
1168 | const wxWindow *parent = NULL ) { | |
1169 | return wxWindow::FindWindowByName(name, parent); | |
1170 | } | |
1171 | ||
1172 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1173 | const wxWindow *parent = NULL ) { | |
1174 | return wxWindow::FindWindowByLabel(label, parent); | |
1175 | } | |
1176 | ||
1177 | ||
1178 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
1179 | #ifdef __WXMSW__ | |
1180 | wxWindow* win = new wxWindow; | |
1181 | win->SetHWND(hWnd); | |
1182 | win->SubclassWin(hWnd); | |
1183 | return win; | |
1184 | #else | |
cbd72d4f | 1185 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1186 | return NULL; |
1187 | #endif | |
1188 | } | |
1189 | ||
1190 | ||
1191 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1192 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1193 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1194 | ||
1195 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1196 | ||
1197 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1198 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1199 | wxMenuItemList& list = self->GetMenuItems(); | |
1200 | return wxPy_ConvertList(&list); | |
1201 | } | |
d03fd34d | 1202 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1203 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1204 | if (clientData) { | |
1205 | wxPyClientData* data = new wxPyClientData(clientData); | |
1206 | return self->Append(item, data); | |
1207 | } else | |
1208 | return self->Append(item); | |
1209 | } | |
1210 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1211 | if (clientData) { | |
1212 | wxPyClientData* data = new wxPyClientData(clientData); | |
1213 | return self->Insert(item, pos, data); | |
1214 | } else | |
1215 | return self->Insert(item, pos); | |
1216 | } | |
1217 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1218 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1219 | if (data) { | |
1220 | Py_INCREF(data->m_obj); | |
1221 | return data->m_obj; | |
1222 | } else { | |
1223 | Py_INCREF(Py_None); | |
1224 | return Py_None; | |
1225 | } | |
1226 | } | |
1227 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1228 | wxPyClientData* data = new wxPyClientData(clientData); | |
1229 | self->SetClientObject(n, data); | |
1230 | } | |
1231 | ||
1232 | ||
8edf1c75 RD |
1233 | |
1234 | SWIGSTATIC(float) | |
1235 | SWIG_PyObj_AsFloat(PyObject *obj) | |
1236 | { | |
1237 | return SWIG_PyObj_AsFloatConv(obj, SWIG_PyObj_AsDouble); | |
1238 | } | |
1239 | ||
d14a1e28 RD |
1240 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ |
1241 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1242 | if (data) { | |
1243 | Py_INCREF(data->m_obj); | |
1244 | return data->m_obj; | |
1245 | } else { | |
1246 | Py_INCREF(Py_None); | |
1247 | return Py_None; | |
1248 | } | |
1249 | } | |
1250 | ||
1251 | // Figure out the type of the sizer item | |
1252 | ||
1253 | struct wxPySizerItemInfo { | |
1254 | wxPySizerItemInfo() | |
423f194a RD |
1255 | : window(NULL), sizer(NULL), gotSize(False), |
1256 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1257 | {} |
1258 | ||
1259 | wxWindow* window; | |
1260 | wxSizer* sizer; | |
1261 | bool gotSize; | |
1262 | wxSize size; | |
1263 | bool gotPos; | |
1264 | int pos; | |
1265 | }; | |
1266 | ||
1267 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1268 | ||
1269 | wxPySizerItemInfo info; | |
1270 | wxSize size; | |
1271 | wxSize* sizePtr = &size; | |
1272 | ||
1273 | // Find out what the type of the item is | |
1274 | // try wxWindow | |
1275 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1276 | PyErr_Clear(); | |
1277 | info.window = NULL; | |
1278 | ||
1279 | // try wxSizer | |
1280 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1281 | PyErr_Clear(); | |
1282 | info.sizer = NULL; | |
1283 | ||
1284 | // try wxSize or (w,h) | |
1285 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1286 | info.size = *sizePtr; | |
423f194a | 1287 | info.gotSize = True; |
d14a1e28 RD |
1288 | } |
1289 | ||
1290 | // or a single int | |
1291 | if (checkIdx && PyInt_Check(item)) { | |
1292 | info.pos = PyInt_AsLong(item); | |
423f194a | 1293 | info.gotPos = True; |
d14a1e28 RD |
1294 | } |
1295 | } | |
1296 | } | |
1297 | ||
1298 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1299 | // no expected type, figure out what kind of error message to generate | |
1300 | if ( !checkSize && !checkIdx ) | |
1301 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1302 | else if ( checkSize && !checkIdx ) | |
1303 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1304 | else if ( !checkSize && checkIdx) | |
1305 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1306 | else | |
1307 | // can this one happen? | |
1308 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1309 | } | |
1310 | ||
1311 | return info; | |
1312 | } | |
1313 | ||
1314 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1315 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1316 | } | |
1317 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1318 | ||
1319 | wxPyUserData* data = NULL; | |
1320 | wxPyBeginBlockThreads(); | |
423f194a | 1321 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1322 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1323 | data = new wxPyUserData(userData); | |
1324 | wxPyEndBlockThreads(); | |
1325 | ||
1326 | // Now call the real Add method if a valid item type was found | |
1327 | if ( info.window ) | |
1328 | self->Add(info.window, proportion, flag, border, data); | |
1329 | else if ( info.sizer ) | |
1330 | self->Add(info.sizer, proportion, flag, border, data); | |
1331 | else if (info.gotSize) | |
1332 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1333 | proportion, flag, border, data); | |
1334 | } | |
1335 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1336 | ||
1337 | wxPyUserData* data = NULL; | |
1338 | wxPyBeginBlockThreads(); | |
423f194a | 1339 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1340 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1341 | data = new wxPyUserData(userData); | |
1342 | wxPyEndBlockThreads(); | |
1343 | ||
1344 | // Now call the real Insert method if a valid item type was found | |
1345 | if ( info.window ) | |
1346 | self->Insert(before, info.window, proportion, flag, border, data); | |
1347 | else if ( info.sizer ) | |
1348 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1349 | else if (info.gotSize) | |
1350 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1351 | proportion, flag, border, data); | |
1352 | } | |
1353 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1354 | ||
1355 | wxPyUserData* data = NULL; | |
1356 | wxPyBeginBlockThreads(); | |
423f194a | 1357 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1358 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1359 | data = new wxPyUserData(userData); | |
1360 | wxPyEndBlockThreads(); | |
1361 | ||
1362 | // Now call the real Prepend method if a valid item type was found | |
1363 | if ( info.window ) | |
1364 | self->Prepend(info.window, proportion, flag, border, data); | |
1365 | else if ( info.sizer ) | |
1366 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1367 | else if (info.gotSize) | |
1368 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1369 | proportion, flag, border, data); | |
1370 | } | |
1371 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1372 | wxPyBeginBlockThreads(); | |
423f194a | 1373 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1374 | wxPyEndBlockThreads(); |
1375 | if ( info.window ) | |
1376 | return self->Remove(info.window); | |
1377 | else if ( info.sizer ) | |
1378 | return self->Remove(info.sizer); | |
1379 | else if ( info.gotPos ) | |
1380 | return self->Remove(info.pos); | |
1381 | else | |
423f194a | 1382 | return False; |
d14a1e28 | 1383 | } |
423f194a | 1384 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
d14a1e28 | 1385 | wxPyBeginBlockThreads(); |
423f194a | 1386 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1387 | wxPyEndBlockThreads(); |
1388 | if ( info.window ) | |
1389 | self->SetItemMinSize(info.window, size); | |
1390 | else if ( info.sizer ) | |
1391 | self->SetItemMinSize(info.sizer, size); | |
1392 | else if ( info.gotPos ) | |
1393 | self->SetItemMinSize(info.pos, size); | |
1394 | } | |
1395 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1396 | wxSizerItemList& list = self->GetChildren(); | |
1397 | return wxPy_ConvertList(&list); | |
1398 | } | |
1399 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
423f194a | 1400 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1401 | if ( info.window ) |
1402 | self->Show(info.window, show); | |
1403 | else if ( info.sizer ) | |
1404 | self->Show(info.sizer, show); | |
1405 | } | |
1406 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
423f194a | 1407 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1408 | if ( info.window ) |
1409 | self->Hide(info.window); | |
1410 | else if ( info.sizer ) | |
1411 | self->Hide(info.sizer); | |
1412 | } | |
1413 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
423f194a | 1414 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1415 | if ( info.window ) |
1416 | return self->IsShown(info.window); | |
1417 | else if ( info.sizer ) | |
1418 | return self->IsShown(info.sizer); | |
1419 | else | |
423f194a | 1420 | return False; |
d14a1e28 RD |
1421 | } |
1422 | ||
1423 | // See pyclasses.h | |
1424 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1425 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1426 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1427 | ||
1428 | ||
1429 | ||
1430 | ||
1431 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1432 | { | |
1433 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1434 | } | |
1435 | ||
1436 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1437 | { | |
1438 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1439 | } | |
1440 | ||
1441 | ||
423f194a RD |
1442 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1443 | self->SetRow(row); | |
1444 | self->SetCol(col); | |
1445 | } | |
1446 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
d14a1e28 RD |
1447 | wxPyBeginBlockThreads(); |
1448 | PyObject* tup = PyTuple_New(2); | |
1449 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1450 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1451 | wxPyEndBlockThreads(); | |
1452 | return tup; | |
1453 | } | |
423f194a RD |
1454 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1455 | self->SetRowspan(rowspan); | |
1456 | self->SetColspan(colspan); | |
1457 | } | |
1458 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
d14a1e28 RD |
1459 | wxPyBeginBlockThreads(); |
1460 | PyObject* tup = PyTuple_New(2); | |
1461 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1462 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
1463 | wxPyEndBlockThreads(); | |
1464 | return tup; | |
1465 | } | |
1466 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1467 | ||
1468 | wxPyUserData* data = NULL; | |
1469 | wxPyBeginBlockThreads(); | |
423f194a | 1470 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1471 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1472 | data = new wxPyUserData(userData); | |
1473 | wxPyEndBlockThreads(); | |
1474 | ||
1475 | // Now call the real Add method if a valid item type was found | |
1476 | if ( info.window ) | |
1477 | return self->Add(info.window, pos, span, flag, border, data); | |
1478 | else if ( info.sizer ) | |
1479 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1480 | else if (info.gotSize) | |
1481 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1482 | pos, span, flag, border, data); | |
423f194a | 1483 | return False; |
d14a1e28 RD |
1484 | } |
1485 | ||
1486 | ||
1487 | #ifdef __cplusplus | |
1488 | extern "C" { | |
1489 | #endif | |
8edf1c75 | 1490 | static int _wrap_EmptyString_set(PyObject *) { |
d03fd34d RD |
1491 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
1492 | return 1; | |
1493 | } | |
1494 | ||
1495 | ||
1496 | static PyObject *_wrap_EmptyString_get() { | |
1497 | PyObject *pyobj; | |
1498 | ||
1499 | { | |
1500 | #if wxUSE_UNICODE | |
1501 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1502 | #else | |
1503 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1504 | #endif | |
1505 | } | |
1506 | return pyobj; | |
1507 | } | |
1508 | ||
1509 | ||
d14a1e28 RD |
1510 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1511 | PyObject *resultobj; | |
1512 | wxObject *arg1 = (wxObject *) 0 ; | |
1513 | wxString result; | |
1514 | PyObject * obj0 = 0 ; | |
1515 | char *kwnames[] = { | |
1516 | (char *) "self", NULL | |
1517 | }; | |
1518 | ||
1519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
1520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1521 | { | |
1522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1523 | result = wxObject_GetClassName(arg1); | |
1524 | ||
1525 | wxPyEndAllowThreads(__tstate); | |
1526 | if (PyErr_Occurred()) SWIG_fail; | |
1527 | } | |
1528 | { | |
1529 | #if wxUSE_UNICODE | |
1530 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1531 | #else | |
1532 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1533 | #endif | |
1534 | } | |
1535 | return resultobj; | |
1536 | fail: | |
1537 | return NULL; | |
1538 | } | |
1539 | ||
1540 | ||
1541 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1542 | PyObject *resultobj; | |
1543 | wxObject *arg1 = (wxObject *) 0 ; | |
1544 | PyObject * obj0 = 0 ; | |
1545 | char *kwnames[] = { | |
1546 | (char *) "self", NULL | |
1547 | }; | |
1548 | ||
1549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
1550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1551 | { | |
1552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1553 | wxObject_Destroy(arg1); | |
1554 | ||
1555 | wxPyEndAllowThreads(__tstate); | |
1556 | if (PyErr_Occurred()) SWIG_fail; | |
1557 | } | |
1558 | Py_INCREF(Py_None); resultobj = Py_None; | |
1559 | return resultobj; | |
1560 | fail: | |
1561 | return NULL; | |
1562 | } | |
1563 | ||
1564 | ||
1565 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1566 | PyObject *obj; | |
1567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1568 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1569 | Py_INCREF(obj); | |
1570 | return Py_BuildValue((char *)""); | |
1571 | } | |
1572 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1573 | PyObject *resultobj; | |
1574 | wxSize *arg1 = (wxSize *) 0 ; | |
1575 | int arg2 ; | |
1576 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1577 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1578 | char *kwnames[] = { |
1579 | (char *) "self",(char *) "x", NULL | |
1580 | }; | |
1581 | ||
8edf1c75 | 1582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1584 | { |
1585 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1586 | if (PyErr_Occurred()) SWIG_fail; | |
1587 | } | |
d14a1e28 RD |
1588 | if (arg1) (arg1)->x = arg2; |
1589 | ||
1590 | Py_INCREF(Py_None); resultobj = Py_None; | |
1591 | return resultobj; | |
1592 | fail: | |
1593 | return NULL; | |
1594 | } | |
1595 | ||
1596 | ||
1597 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1598 | PyObject *resultobj; | |
1599 | wxSize *arg1 = (wxSize *) 0 ; | |
1600 | int result; | |
1601 | PyObject * obj0 = 0 ; | |
1602 | char *kwnames[] = { | |
1603 | (char *) "self", NULL | |
1604 | }; | |
1605 | ||
1606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
1607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1608 | result = (int) ((arg1)->x); | |
1609 | ||
8edf1c75 | 1610 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1611 | return resultobj; |
1612 | fail: | |
1613 | return NULL; | |
1614 | } | |
1615 | ||
1616 | ||
1617 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1618 | PyObject *resultobj; | |
1619 | wxSize *arg1 = (wxSize *) 0 ; | |
1620 | int arg2 ; | |
1621 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1622 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1623 | char *kwnames[] = { |
1624 | (char *) "self",(char *) "y", NULL | |
1625 | }; | |
1626 | ||
8edf1c75 | 1627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1629 | { |
1630 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1631 | if (PyErr_Occurred()) SWIG_fail; | |
1632 | } | |
d14a1e28 RD |
1633 | if (arg1) (arg1)->y = arg2; |
1634 | ||
1635 | Py_INCREF(Py_None); resultobj = Py_None; | |
1636 | return resultobj; | |
1637 | fail: | |
1638 | return NULL; | |
1639 | } | |
1640 | ||
1641 | ||
1642 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1643 | PyObject *resultobj; | |
1644 | wxSize *arg1 = (wxSize *) 0 ; | |
1645 | int result; | |
1646 | PyObject * obj0 = 0 ; | |
1647 | char *kwnames[] = { | |
1648 | (char *) "self", NULL | |
1649 | }; | |
1650 | ||
1651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
1652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1653 | result = (int) ((arg1)->y); | |
1654 | ||
8edf1c75 | 1655 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1656 | return resultobj; |
1657 | fail: | |
1658 | return NULL; | |
1659 | } | |
1660 | ||
1661 | ||
1662 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1663 | PyObject *resultobj; | |
1664 | int arg1 = (int) 0 ; | |
1665 | int arg2 = (int) 0 ; | |
1666 | wxSize *result; | |
8edf1c75 RD |
1667 | PyObject * obj0 = 0 ; |
1668 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
1669 | char *kwnames[] = { |
1670 | (char *) "w",(char *) "h", NULL | |
1671 | }; | |
1672 | ||
8edf1c75 RD |
1673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; |
1674 | if (obj0) { | |
1675 | { | |
1676 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
1677 | if (PyErr_Occurred()) SWIG_fail; | |
1678 | } | |
1679 | } | |
1680 | if (obj1) { | |
1681 | { | |
1682 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1683 | if (PyErr_Occurred()) SWIG_fail; | |
1684 | } | |
1685 | } | |
d14a1e28 RD |
1686 | { |
1687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1688 | result = (wxSize *)new wxSize(arg1,arg2); | |
1689 | ||
1690 | wxPyEndAllowThreads(__tstate); | |
1691 | if (PyErr_Occurred()) SWIG_fail; | |
1692 | } | |
1693 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 1); | |
1694 | return resultobj; | |
1695 | fail: | |
1696 | return NULL; | |
1697 | } | |
1698 | ||
1699 | ||
1700 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1701 | PyObject *resultobj; | |
1702 | wxSize *arg1 = (wxSize *) 0 ; | |
1703 | PyObject * obj0 = 0 ; | |
1704 | char *kwnames[] = { | |
1705 | (char *) "self", NULL | |
1706 | }; | |
1707 | ||
1708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
1709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1710 | { | |
1711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1712 | delete arg1; | |
1713 | ||
1714 | wxPyEndAllowThreads(__tstate); | |
1715 | if (PyErr_Occurred()) SWIG_fail; | |
1716 | } | |
1717 | Py_INCREF(Py_None); resultobj = Py_None; | |
1718 | return resultobj; | |
1719 | fail: | |
1720 | return NULL; | |
1721 | } | |
1722 | ||
1723 | ||
1724 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1725 | PyObject *resultobj; | |
1726 | wxSize *arg1 = (wxSize *) 0 ; | |
1727 | wxSize *arg2 = 0 ; | |
1728 | bool result; | |
1729 | wxSize temp2 ; | |
1730 | PyObject * obj0 = 0 ; | |
1731 | PyObject * obj1 = 0 ; | |
1732 | char *kwnames[] = { | |
1733 | (char *) "self",(char *) "sz", NULL | |
1734 | }; | |
1735 | ||
1736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1738 | { | |
1739 | arg2 = &temp2; | |
1740 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1741 | } | |
1742 | { | |
1743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 1744 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
1745 | |
1746 | wxPyEndAllowThreads(__tstate); | |
1747 | if (PyErr_Occurred()) SWIG_fail; | |
1748 | } | |
8edf1c75 | 1749 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
1750 | return resultobj; |
1751 | fail: | |
1752 | return NULL; | |
1753 | } | |
1754 | ||
1755 | ||
1756 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1757 | PyObject *resultobj; | |
1758 | wxSize *arg1 = (wxSize *) 0 ; | |
1759 | wxSize *arg2 = 0 ; | |
1760 | bool result; | |
1761 | wxSize temp2 ; | |
1762 | PyObject * obj0 = 0 ; | |
1763 | PyObject * obj1 = 0 ; | |
1764 | char *kwnames[] = { | |
1765 | (char *) "self",(char *) "sz", NULL | |
1766 | }; | |
1767 | ||
1768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1770 | { | |
1771 | arg2 = &temp2; | |
1772 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1773 | } | |
1774 | { | |
1775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 1776 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
1777 | |
1778 | wxPyEndAllowThreads(__tstate); | |
1779 | if (PyErr_Occurred()) SWIG_fail; | |
1780 | } | |
8edf1c75 | 1781 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
1782 | return resultobj; |
1783 | fail: | |
1784 | return NULL; | |
1785 | } | |
1786 | ||
1787 | ||
1788 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1789 | PyObject *resultobj; | |
1790 | wxSize *arg1 = (wxSize *) 0 ; | |
1791 | wxSize *arg2 = 0 ; | |
1792 | wxSize result; | |
1793 | wxSize temp2 ; | |
1794 | PyObject * obj0 = 0 ; | |
1795 | PyObject * obj1 = 0 ; | |
1796 | char *kwnames[] = { | |
1797 | (char *) "self",(char *) "sz", NULL | |
1798 | }; | |
1799 | ||
1800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
1801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1802 | { | |
1803 | arg2 = &temp2; | |
1804 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1805 | } | |
1806 | { | |
1807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1808 | result = (arg1)->operator +((wxSize const &)*arg2); | |
1809 | ||
1810 | wxPyEndAllowThreads(__tstate); | |
1811 | if (PyErr_Occurred()) SWIG_fail; | |
1812 | } | |
1813 | { | |
1814 | wxSize * resultptr; | |
1815 | resultptr = new wxSize((wxSize &) result); | |
1816 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1817 | } | |
1818 | return resultobj; | |
1819 | fail: | |
1820 | return NULL; | |
1821 | } | |
1822 | ||
1823 | ||
1824 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1825 | PyObject *resultobj; | |
1826 | wxSize *arg1 = (wxSize *) 0 ; | |
1827 | wxSize *arg2 = 0 ; | |
1828 | wxSize result; | |
1829 | wxSize temp2 ; | |
1830 | PyObject * obj0 = 0 ; | |
1831 | PyObject * obj1 = 0 ; | |
1832 | char *kwnames[] = { | |
1833 | (char *) "self",(char *) "sz", NULL | |
1834 | }; | |
1835 | ||
1836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
1837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1838 | { | |
1839 | arg2 = &temp2; | |
1840 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1841 | } | |
1842 | { | |
1843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1844 | result = (arg1)->operator -((wxSize const &)*arg2); | |
1845 | ||
1846 | wxPyEndAllowThreads(__tstate); | |
1847 | if (PyErr_Occurred()) SWIG_fail; | |
1848 | } | |
1849 | { | |
1850 | wxSize * resultptr; | |
1851 | resultptr = new wxSize((wxSize &) result); | |
1852 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1853 | } | |
1854 | return resultobj; | |
1855 | fail: | |
1856 | return NULL; | |
1857 | } | |
1858 | ||
1859 | ||
1860 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1861 | PyObject *resultobj; | |
1862 | wxSize *arg1 = (wxSize *) 0 ; | |
1863 | wxSize *arg2 = 0 ; | |
1864 | wxSize temp2 ; | |
1865 | PyObject * obj0 = 0 ; | |
1866 | PyObject * obj1 = 0 ; | |
1867 | char *kwnames[] = { | |
1868 | (char *) "self",(char *) "sz", NULL | |
1869 | }; | |
1870 | ||
1871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
1872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1873 | { | |
1874 | arg2 = &temp2; | |
1875 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1876 | } | |
1877 | { | |
1878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1879 | (arg1)->IncTo((wxSize const &)*arg2); | |
1880 | ||
1881 | wxPyEndAllowThreads(__tstate); | |
1882 | if (PyErr_Occurred()) SWIG_fail; | |
1883 | } | |
1884 | Py_INCREF(Py_None); resultobj = Py_None; | |
1885 | return resultobj; | |
1886 | fail: | |
1887 | return NULL; | |
1888 | } | |
1889 | ||
1890 | ||
1891 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1892 | PyObject *resultobj; | |
1893 | wxSize *arg1 = (wxSize *) 0 ; | |
1894 | wxSize *arg2 = 0 ; | |
1895 | wxSize temp2 ; | |
1896 | PyObject * obj0 = 0 ; | |
1897 | PyObject * obj1 = 0 ; | |
1898 | char *kwnames[] = { | |
1899 | (char *) "self",(char *) "sz", NULL | |
1900 | }; | |
1901 | ||
1902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
1903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1904 | { | |
1905 | arg2 = &temp2; | |
1906 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1907 | } | |
1908 | { | |
1909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1910 | (arg1)->DecTo((wxSize const &)*arg2); | |
1911 | ||
1912 | wxPyEndAllowThreads(__tstate); | |
1913 | if (PyErr_Occurred()) SWIG_fail; | |
1914 | } | |
1915 | Py_INCREF(Py_None); resultobj = Py_None; | |
1916 | return resultobj; | |
1917 | fail: | |
1918 | return NULL; | |
1919 | } | |
1920 | ||
1921 | ||
1922 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1923 | PyObject *resultobj; | |
1924 | wxSize *arg1 = (wxSize *) 0 ; | |
1925 | int arg2 ; | |
1926 | int arg3 ; | |
1927 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1928 | PyObject * obj1 = 0 ; |
1929 | PyObject * obj2 = 0 ; | |
d14a1e28 | 1930 | char *kwnames[] = { |
423f194a | 1931 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
1932 | }; |
1933 | ||
8edf1c75 | 1934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1936 | { |
1937 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1938 | if (PyErr_Occurred()) SWIG_fail; | |
1939 | } | |
1940 | { | |
1941 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1942 | if (PyErr_Occurred()) SWIG_fail; | |
1943 | } | |
d14a1e28 RD |
1944 | { |
1945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1946 | (arg1)->Set(arg2,arg3); | |
1947 | ||
1948 | wxPyEndAllowThreads(__tstate); | |
1949 | if (PyErr_Occurred()) SWIG_fail; | |
1950 | } | |
1951 | Py_INCREF(Py_None); resultobj = Py_None; | |
1952 | return resultobj; | |
1953 | fail: | |
1954 | return NULL; | |
1955 | } | |
1956 | ||
1957 | ||
1958 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1959 | PyObject *resultobj; | |
1960 | wxSize *arg1 = (wxSize *) 0 ; | |
1961 | int arg2 ; | |
1962 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1963 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1964 | char *kwnames[] = { |
1965 | (char *) "self",(char *) "w", NULL | |
1966 | }; | |
1967 | ||
8edf1c75 | 1968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1970 | { |
1971 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1972 | if (PyErr_Occurred()) SWIG_fail; | |
1973 | } | |
d14a1e28 RD |
1974 | { |
1975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1976 | (arg1)->SetWidth(arg2); | |
1977 | ||
1978 | wxPyEndAllowThreads(__tstate); | |
1979 | if (PyErr_Occurred()) SWIG_fail; | |
1980 | } | |
1981 | Py_INCREF(Py_None); resultobj = Py_None; | |
1982 | return resultobj; | |
1983 | fail: | |
1984 | return NULL; | |
1985 | } | |
1986 | ||
1987 | ||
1988 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1989 | PyObject *resultobj; | |
1990 | wxSize *arg1 = (wxSize *) 0 ; | |
1991 | int arg2 ; | |
1992 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1993 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1994 | char *kwnames[] = { |
1995 | (char *) "self",(char *) "h", NULL | |
1996 | }; | |
1997 | ||
8edf1c75 | 1998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2000 | { |
2001 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2002 | if (PyErr_Occurred()) SWIG_fail; | |
2003 | } | |
d14a1e28 RD |
2004 | { |
2005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2006 | (arg1)->SetHeight(arg2); | |
2007 | ||
2008 | wxPyEndAllowThreads(__tstate); | |
2009 | if (PyErr_Occurred()) SWIG_fail; | |
2010 | } | |
2011 | Py_INCREF(Py_None); resultobj = Py_None; | |
2012 | return resultobj; | |
2013 | fail: | |
2014 | return NULL; | |
2015 | } | |
2016 | ||
2017 | ||
2018 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2019 | PyObject *resultobj; | |
2020 | wxSize *arg1 = (wxSize *) 0 ; | |
2021 | int result; | |
2022 | PyObject * obj0 = 0 ; | |
2023 | char *kwnames[] = { | |
2024 | (char *) "self", NULL | |
2025 | }; | |
2026 | ||
2027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2029 | { | |
2030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2031 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2032 | ||
2033 | wxPyEndAllowThreads(__tstate); | |
2034 | if (PyErr_Occurred()) SWIG_fail; | |
2035 | } | |
8edf1c75 | 2036 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2037 | return resultobj; |
2038 | fail: | |
2039 | return NULL; | |
2040 | } | |
2041 | ||
2042 | ||
2043 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2044 | PyObject *resultobj; | |
2045 | wxSize *arg1 = (wxSize *) 0 ; | |
2046 | int result; | |
2047 | PyObject * obj0 = 0 ; | |
2048 | char *kwnames[] = { | |
2049 | (char *) "self", NULL | |
2050 | }; | |
2051 | ||
2052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2054 | { | |
2055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2056 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2057 | ||
2058 | wxPyEndAllowThreads(__tstate); | |
2059 | if (PyErr_Occurred()) SWIG_fail; | |
2060 | } | |
8edf1c75 | 2061 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2062 | return resultobj; |
2063 | fail: | |
2064 | return NULL; | |
2065 | } | |
2066 | ||
2067 | ||
423f194a | 2068 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2069 | PyObject *resultobj; |
2070 | wxSize *arg1 = (wxSize *) 0 ; | |
2071 | PyObject *result; | |
2072 | PyObject * obj0 = 0 ; | |
2073 | char *kwnames[] = { | |
2074 | (char *) "self", NULL | |
2075 | }; | |
2076 | ||
423f194a | 2077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2079 | { | |
2080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2081 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
2082 | |
2083 | wxPyEndAllowThreads(__tstate); | |
2084 | if (PyErr_Occurred()) SWIG_fail; | |
2085 | } | |
2086 | resultobj = result; | |
2087 | return resultobj; | |
2088 | fail: | |
2089 | return NULL; | |
2090 | } | |
2091 | ||
2092 | ||
2093 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2094 | PyObject *obj; | |
2095 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2096 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2097 | Py_INCREF(obj); | |
2098 | return Py_BuildValue((char *)""); | |
2099 | } | |
2100 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2101 | PyObject *resultobj; | |
2102 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2103 | double arg2 ; | |
2104 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2105 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2106 | char *kwnames[] = { |
2107 | (char *) "self",(char *) "x", NULL | |
2108 | }; | |
2109 | ||
8edf1c75 | 2110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2112 | { |
2113 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
2114 | if (PyErr_Occurred()) SWIG_fail; | |
2115 | } | |
d14a1e28 RD |
2116 | if (arg1) (arg1)->x = arg2; |
2117 | ||
2118 | Py_INCREF(Py_None); resultobj = Py_None; | |
2119 | return resultobj; | |
2120 | fail: | |
2121 | return NULL; | |
2122 | } | |
2123 | ||
2124 | ||
2125 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2126 | PyObject *resultobj; | |
2127 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2128 | double result; | |
2129 | PyObject * obj0 = 0 ; | |
2130 | char *kwnames[] = { | |
2131 | (char *) "self", NULL | |
2132 | }; | |
2133 | ||
2134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2136 | result = (double) ((arg1)->x); | |
2137 | ||
8edf1c75 | 2138 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
2139 | return resultobj; |
2140 | fail: | |
2141 | return NULL; | |
2142 | } | |
2143 | ||
2144 | ||
2145 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2146 | PyObject *resultobj; | |
2147 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2148 | double arg2 ; | |
2149 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2150 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2151 | char *kwnames[] = { |
2152 | (char *) "self",(char *) "y", NULL | |
2153 | }; | |
2154 | ||
8edf1c75 | 2155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2157 | { |
2158 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
2159 | if (PyErr_Occurred()) SWIG_fail; | |
2160 | } | |
d14a1e28 RD |
2161 | if (arg1) (arg1)->y = arg2; |
2162 | ||
2163 | Py_INCREF(Py_None); resultobj = Py_None; | |
2164 | return resultobj; | |
2165 | fail: | |
2166 | return NULL; | |
2167 | } | |
2168 | ||
2169 | ||
2170 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2171 | PyObject *resultobj; | |
2172 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2173 | double result; | |
2174 | PyObject * obj0 = 0 ; | |
2175 | char *kwnames[] = { | |
2176 | (char *) "self", NULL | |
2177 | }; | |
2178 | ||
2179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2181 | result = (double) ((arg1)->y); | |
2182 | ||
8edf1c75 | 2183 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
2184 | return resultobj; |
2185 | fail: | |
2186 | return NULL; | |
2187 | } | |
2188 | ||
2189 | ||
2190 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2191 | PyObject *resultobj; | |
2192 | double arg1 = (double) 0.0 ; | |
2193 | double arg2 = (double) 0.0 ; | |
2194 | wxRealPoint *result; | |
8edf1c75 RD |
2195 | PyObject * obj0 = 0 ; |
2196 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2197 | char *kwnames[] = { |
2198 | (char *) "x",(char *) "y", NULL | |
2199 | }; | |
2200 | ||
8edf1c75 RD |
2201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; |
2202 | if (obj0) { | |
2203 | { | |
2204 | arg1 = (double) SWIG_PyObj_AsDouble(obj0); | |
2205 | if (PyErr_Occurred()) SWIG_fail; | |
2206 | } | |
2207 | } | |
2208 | if (obj1) { | |
2209 | { | |
2210 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
2211 | if (PyErr_Occurred()) SWIG_fail; | |
2212 | } | |
2213 | } | |
d14a1e28 RD |
2214 | { |
2215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2216 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2217 | ||
2218 | wxPyEndAllowThreads(__tstate); | |
2219 | if (PyErr_Occurred()) SWIG_fail; | |
2220 | } | |
2221 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRealPoint, 1); | |
2222 | return resultobj; | |
2223 | fail: | |
2224 | return NULL; | |
2225 | } | |
2226 | ||
2227 | ||
2228 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2229 | PyObject *resultobj; | |
2230 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2231 | PyObject * obj0 = 0 ; | |
2232 | char *kwnames[] = { | |
2233 | (char *) "self", NULL | |
2234 | }; | |
2235 | ||
2236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2238 | { | |
2239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2240 | delete arg1; | |
2241 | ||
2242 | wxPyEndAllowThreads(__tstate); | |
2243 | if (PyErr_Occurred()) SWIG_fail; | |
2244 | } | |
2245 | Py_INCREF(Py_None); resultobj = Py_None; | |
2246 | return resultobj; | |
2247 | fail: | |
2248 | return NULL; | |
2249 | } | |
2250 | ||
2251 | ||
423f194a | 2252 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2253 | PyObject *resultobj; |
2254 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2255 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2256 | bool result; |
d14a1e28 RD |
2257 | wxRealPoint temp2 ; |
2258 | PyObject * obj0 = 0 ; | |
2259 | PyObject * obj1 = 0 ; | |
2260 | char *kwnames[] = { | |
2261 | (char *) "self",(char *) "pt", NULL | |
2262 | }; | |
2263 | ||
423f194a | 2264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2266 | { | |
2267 | arg2 = &temp2; | |
2268 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2269 | } | |
2270 | { | |
2271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2272 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2273 | |
2274 | wxPyEndAllowThreads(__tstate); | |
2275 | if (PyErr_Occurred()) SWIG_fail; | |
2276 | } | |
8edf1c75 | 2277 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2278 | return resultobj; |
2279 | fail: | |
2280 | return NULL; | |
2281 | } | |
2282 | ||
2283 | ||
423f194a | 2284 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2285 | PyObject *resultobj; |
2286 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2287 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2288 | bool result; |
d14a1e28 RD |
2289 | wxRealPoint temp2 ; |
2290 | PyObject * obj0 = 0 ; | |
2291 | PyObject * obj1 = 0 ; | |
2292 | char *kwnames[] = { | |
2293 | (char *) "self",(char *) "pt", NULL | |
2294 | }; | |
2295 | ||
423f194a | 2296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2298 | { | |
2299 | arg2 = &temp2; | |
2300 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2301 | } | |
2302 | { | |
2303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2304 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2305 | |
2306 | wxPyEndAllowThreads(__tstate); | |
2307 | if (PyErr_Occurred()) SWIG_fail; | |
2308 | } | |
8edf1c75 | 2309 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2310 | return resultobj; |
2311 | fail: | |
2312 | return NULL; | |
2313 | } | |
2314 | ||
2315 | ||
423f194a | 2316 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2317 | PyObject *resultobj; |
2318 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2319 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2320 | wxRealPoint result; |
d14a1e28 RD |
2321 | wxRealPoint temp2 ; |
2322 | PyObject * obj0 = 0 ; | |
2323 | PyObject * obj1 = 0 ; | |
2324 | char *kwnames[] = { | |
2325 | (char *) "self",(char *) "pt", NULL | |
2326 | }; | |
2327 | ||
423f194a | 2328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2330 | { | |
2331 | arg2 = &temp2; | |
2332 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2333 | } | |
2334 | { | |
2335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2336 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2337 | |
2338 | wxPyEndAllowThreads(__tstate); | |
2339 | if (PyErr_Occurred()) SWIG_fail; | |
2340 | } | |
423f194a RD |
2341 | { |
2342 | wxRealPoint * resultptr; | |
2343 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2344 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2345 | } | |
d14a1e28 RD |
2346 | return resultobj; |
2347 | fail: | |
2348 | return NULL; | |
2349 | } | |
2350 | ||
2351 | ||
423f194a | 2352 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2353 | PyObject *resultobj; |
2354 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2355 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2356 | wxRealPoint result; |
d14a1e28 RD |
2357 | wxRealPoint temp2 ; |
2358 | PyObject * obj0 = 0 ; | |
2359 | PyObject * obj1 = 0 ; | |
2360 | char *kwnames[] = { | |
2361 | (char *) "self",(char *) "pt", NULL | |
2362 | }; | |
2363 | ||
423f194a | 2364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2366 | { | |
2367 | arg2 = &temp2; | |
2368 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2369 | } | |
2370 | { | |
2371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2372 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2373 | |
2374 | wxPyEndAllowThreads(__tstate); | |
2375 | if (PyErr_Occurred()) SWIG_fail; | |
2376 | } | |
423f194a RD |
2377 | { |
2378 | wxRealPoint * resultptr; | |
2379 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2380 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1); | |
2381 | } | |
d14a1e28 RD |
2382 | return resultobj; |
2383 | fail: | |
2384 | return NULL; | |
2385 | } | |
2386 | ||
2387 | ||
2388 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2389 | PyObject *resultobj; | |
2390 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2391 | double arg2 ; | |
2392 | double arg3 ; | |
2393 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2394 | PyObject * obj1 = 0 ; |
2395 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2396 | char *kwnames[] = { |
2397 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2398 | }; | |
2399 | ||
8edf1c75 | 2400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2402 | { |
2403 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
2404 | if (PyErr_Occurred()) SWIG_fail; | |
2405 | } | |
2406 | { | |
2407 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
2408 | if (PyErr_Occurred()) SWIG_fail; | |
2409 | } | |
d14a1e28 RD |
2410 | { |
2411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2412 | wxRealPoint_Set(arg1,arg2,arg3); | |
2413 | ||
2414 | wxPyEndAllowThreads(__tstate); | |
2415 | if (PyErr_Occurred()) SWIG_fail; | |
2416 | } | |
2417 | Py_INCREF(Py_None); resultobj = Py_None; | |
2418 | return resultobj; | |
2419 | fail: | |
2420 | return NULL; | |
2421 | } | |
2422 | ||
2423 | ||
423f194a | 2424 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2425 | PyObject *resultobj; |
2426 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2427 | PyObject *result; | |
2428 | PyObject * obj0 = 0 ; | |
2429 | char *kwnames[] = { | |
2430 | (char *) "self", NULL | |
2431 | }; | |
2432 | ||
423f194a | 2433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2435 | { | |
2436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2437 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2438 | |
2439 | wxPyEndAllowThreads(__tstate); | |
2440 | if (PyErr_Occurred()) SWIG_fail; | |
2441 | } | |
2442 | resultobj = result; | |
2443 | return resultobj; | |
2444 | fail: | |
2445 | return NULL; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2450 | PyObject *obj; | |
2451 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2452 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2453 | Py_INCREF(obj); | |
2454 | return Py_BuildValue((char *)""); | |
2455 | } | |
2456 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2457 | PyObject *resultobj; | |
2458 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2459 | int arg2 ; | |
2460 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2461 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2462 | char *kwnames[] = { |
2463 | (char *) "self",(char *) "x", NULL | |
2464 | }; | |
2465 | ||
8edf1c75 | 2466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2468 | { |
2469 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2470 | if (PyErr_Occurred()) SWIG_fail; | |
2471 | } | |
d14a1e28 RD |
2472 | if (arg1) (arg1)->x = arg2; |
2473 | ||
2474 | Py_INCREF(Py_None); resultobj = Py_None; | |
2475 | return resultobj; | |
2476 | fail: | |
2477 | return NULL; | |
2478 | } | |
2479 | ||
2480 | ||
2481 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2482 | PyObject *resultobj; | |
2483 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2484 | int result; | |
2485 | PyObject * obj0 = 0 ; | |
2486 | char *kwnames[] = { | |
2487 | (char *) "self", NULL | |
2488 | }; | |
2489 | ||
2490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2492 | result = (int) ((arg1)->x); | |
2493 | ||
8edf1c75 | 2494 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2495 | return resultobj; |
2496 | fail: | |
2497 | return NULL; | |
2498 | } | |
2499 | ||
2500 | ||
2501 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2502 | PyObject *resultobj; | |
2503 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2504 | int arg2 ; | |
2505 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2506 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2507 | char *kwnames[] = { |
2508 | (char *) "self",(char *) "y", NULL | |
2509 | }; | |
2510 | ||
8edf1c75 | 2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 2512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2513 | { |
2514 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2515 | if (PyErr_Occurred()) SWIG_fail; | |
2516 | } | |
d14a1e28 RD |
2517 | if (arg1) (arg1)->y = arg2; |
2518 | ||
2519 | Py_INCREF(Py_None); resultobj = Py_None; | |
2520 | return resultobj; | |
2521 | fail: | |
2522 | return NULL; | |
2523 | } | |
2524 | ||
2525 | ||
2526 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2527 | PyObject *resultobj; | |
2528 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2529 | int result; | |
2530 | PyObject * obj0 = 0 ; | |
2531 | char *kwnames[] = { | |
2532 | (char *) "self", NULL | |
2533 | }; | |
2534 | ||
2535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2537 | result = (int) ((arg1)->y); | |
2538 | ||
8edf1c75 | 2539 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2540 | return resultobj; |
2541 | fail: | |
2542 | return NULL; | |
2543 | } | |
2544 | ||
2545 | ||
2546 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2547 | PyObject *resultobj; | |
2548 | int arg1 = (int) 0 ; | |
2549 | int arg2 = (int) 0 ; | |
2550 | wxPoint *result; | |
8edf1c75 RD |
2551 | PyObject * obj0 = 0 ; |
2552 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2553 | char *kwnames[] = { |
2554 | (char *) "x",(char *) "y", NULL | |
2555 | }; | |
2556 | ||
8edf1c75 RD |
2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; |
2558 | if (obj0) { | |
2559 | { | |
2560 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2561 | if (PyErr_Occurred()) SWIG_fail; | |
2562 | } | |
2563 | } | |
2564 | if (obj1) { | |
2565 | { | |
2566 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2567 | if (PyErr_Occurred()) SWIG_fail; | |
2568 | } | |
2569 | } | |
d14a1e28 RD |
2570 | { |
2571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2572 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2573 | ||
2574 | wxPyEndAllowThreads(__tstate); | |
2575 | if (PyErr_Occurred()) SWIG_fail; | |
2576 | } | |
2577 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 1); | |
2578 | return resultobj; | |
2579 | fail: | |
2580 | return NULL; | |
2581 | } | |
2582 | ||
2583 | ||
2584 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2585 | PyObject *resultobj; | |
2586 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2587 | PyObject * obj0 = 0 ; | |
2588 | char *kwnames[] = { | |
2589 | (char *) "self", NULL | |
2590 | }; | |
2591 | ||
2592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2594 | { | |
2595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2596 | delete arg1; | |
2597 | ||
2598 | wxPyEndAllowThreads(__tstate); | |
2599 | if (PyErr_Occurred()) SWIG_fail; | |
2600 | } | |
2601 | Py_INCREF(Py_None); resultobj = Py_None; | |
2602 | return resultobj; | |
2603 | fail: | |
2604 | return NULL; | |
2605 | } | |
2606 | ||
2607 | ||
2608 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2609 | PyObject *resultobj; | |
2610 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2611 | wxPoint *arg2 = 0 ; | |
2612 | bool result; | |
2613 | wxPoint temp2 ; | |
2614 | PyObject * obj0 = 0 ; | |
2615 | PyObject * obj1 = 0 ; | |
2616 | char *kwnames[] = { | |
423f194a | 2617 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2618 | }; |
2619 | ||
2620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2622 | { | |
2623 | arg2 = &temp2; | |
2624 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2625 | } | |
2626 | { | |
2627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2628 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
2629 | |
2630 | wxPyEndAllowThreads(__tstate); | |
2631 | if (PyErr_Occurred()) SWIG_fail; | |
2632 | } | |
8edf1c75 | 2633 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2634 | return resultobj; |
2635 | fail: | |
2636 | return NULL; | |
2637 | } | |
2638 | ||
2639 | ||
2640 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2641 | PyObject *resultobj; | |
2642 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2643 | wxPoint *arg2 = 0 ; | |
2644 | bool result; | |
2645 | wxPoint temp2 ; | |
2646 | PyObject * obj0 = 0 ; | |
2647 | PyObject * obj1 = 0 ; | |
2648 | char *kwnames[] = { | |
423f194a | 2649 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2650 | }; |
2651 | ||
2652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2654 | { | |
2655 | arg2 = &temp2; | |
2656 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2657 | } | |
2658 | { | |
2659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2660 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
2661 | |
2662 | wxPyEndAllowThreads(__tstate); | |
2663 | if (PyErr_Occurred()) SWIG_fail; | |
2664 | } | |
8edf1c75 | 2665 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2666 | return resultobj; |
2667 | fail: | |
2668 | return NULL; | |
2669 | } | |
2670 | ||
2671 | ||
2672 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2673 | PyObject *resultobj; | |
2674 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2675 | wxPoint *arg2 = 0 ; | |
2676 | wxPoint result; | |
2677 | wxPoint temp2 ; | |
2678 | PyObject * obj0 = 0 ; | |
2679 | PyObject * obj1 = 0 ; | |
2680 | char *kwnames[] = { | |
423f194a | 2681 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2682 | }; |
2683 | ||
2684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
2685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2686 | { | |
2687 | arg2 = &temp2; | |
2688 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2689 | } | |
2690 | { | |
2691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2692 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
2693 | |
2694 | wxPyEndAllowThreads(__tstate); | |
2695 | if (PyErr_Occurred()) SWIG_fail; | |
2696 | } | |
2697 | { | |
2698 | wxPoint * resultptr; | |
2699 | resultptr = new wxPoint((wxPoint &) result); | |
2700 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2701 | } | |
2702 | return resultobj; | |
2703 | fail: | |
2704 | return NULL; | |
2705 | } | |
2706 | ||
2707 | ||
2708 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2709 | PyObject *resultobj; | |
2710 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2711 | wxPoint *arg2 = 0 ; | |
2712 | wxPoint result; | |
2713 | wxPoint temp2 ; | |
2714 | PyObject * obj0 = 0 ; | |
2715 | PyObject * obj1 = 0 ; | |
2716 | char *kwnames[] = { | |
423f194a | 2717 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2718 | }; |
2719 | ||
2720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2722 | { | |
2723 | arg2 = &temp2; | |
2724 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2725 | } | |
2726 | { | |
2727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2728 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
2729 | |
2730 | wxPyEndAllowThreads(__tstate); | |
2731 | if (PyErr_Occurred()) SWIG_fail; | |
2732 | } | |
2733 | { | |
2734 | wxPoint * resultptr; | |
2735 | resultptr = new wxPoint((wxPoint &) result); | |
2736 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
2737 | } | |
2738 | return resultobj; | |
2739 | fail: | |
2740 | return NULL; | |
2741 | } | |
2742 | ||
2743 | ||
2744 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2745 | PyObject *resultobj; | |
2746 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2747 | wxPoint *arg2 = 0 ; | |
2748 | wxPoint *result; | |
2749 | wxPoint temp2 ; | |
2750 | PyObject * obj0 = 0 ; | |
2751 | PyObject * obj1 = 0 ; | |
2752 | char *kwnames[] = { | |
423f194a | 2753 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2754 | }; |
2755 | ||
2756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2758 | { | |
2759 | arg2 = &temp2; | |
2760 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2761 | } | |
2762 | { | |
2763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2764 | { | |
2765 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
2766 | result = (wxPoint *) &_result_ref; | |
2767 | } | |
2768 | ||
2769 | wxPyEndAllowThreads(__tstate); | |
2770 | if (PyErr_Occurred()) SWIG_fail; | |
2771 | } | |
2772 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2773 | return resultobj; | |
2774 | fail: | |
2775 | return NULL; | |
2776 | } | |
2777 | ||
2778 | ||
2779 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2780 | PyObject *resultobj; | |
2781 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2782 | wxPoint *arg2 = 0 ; | |
2783 | wxPoint *result; | |
2784 | wxPoint temp2 ; | |
2785 | PyObject * obj0 = 0 ; | |
2786 | PyObject * obj1 = 0 ; | |
2787 | char *kwnames[] = { | |
423f194a | 2788 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2789 | }; |
2790 | ||
2791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2793 | { | |
2794 | arg2 = &temp2; | |
2795 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2796 | } | |
2797 | { | |
2798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2799 | { | |
2800 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
2801 | result = (wxPoint *) &_result_ref; | |
2802 | } | |
2803 | ||
2804 | wxPyEndAllowThreads(__tstate); | |
2805 | if (PyErr_Occurred()) SWIG_fail; | |
2806 | } | |
2807 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
2808 | return resultobj; | |
2809 | fail: | |
2810 | return NULL; | |
2811 | } | |
2812 | ||
2813 | ||
2814 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2815 | PyObject *resultobj; | |
2816 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2817 | long arg2 ; | |
2818 | long arg3 ; | |
2819 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2820 | PyObject * obj1 = 0 ; |
2821 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2822 | char *kwnames[] = { |
2823 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2824 | }; | |
2825 | ||
8edf1c75 | 2826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2828 | { |
2829 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
2830 | if (PyErr_Occurred()) SWIG_fail; | |
2831 | } | |
2832 | { | |
2833 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
2834 | if (PyErr_Occurred()) SWIG_fail; | |
2835 | } | |
d14a1e28 RD |
2836 | { |
2837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2838 | wxPoint_Set(arg1,arg2,arg3); | |
2839 | ||
2840 | wxPyEndAllowThreads(__tstate); | |
2841 | if (PyErr_Occurred()) SWIG_fail; | |
2842 | } | |
2843 | Py_INCREF(Py_None); resultobj = Py_None; | |
2844 | return resultobj; | |
2845 | fail: | |
2846 | return NULL; | |
2847 | } | |
2848 | ||
2849 | ||
423f194a | 2850 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2851 | PyObject *resultobj; |
2852 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2853 | PyObject *result; | |
2854 | PyObject * obj0 = 0 ; | |
2855 | char *kwnames[] = { | |
2856 | (char *) "self", NULL | |
2857 | }; | |
2858 | ||
423f194a | 2859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
2860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2861 | { | |
2862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2863 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
2864 | |
2865 | wxPyEndAllowThreads(__tstate); | |
2866 | if (PyErr_Occurred()) SWIG_fail; | |
2867 | } | |
2868 | resultobj = result; | |
2869 | return resultobj; | |
2870 | fail: | |
2871 | return NULL; | |
2872 | } | |
2873 | ||
2874 | ||
2875 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
2876 | PyObject *obj; | |
2877 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2878 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
2879 | Py_INCREF(obj); | |
2880 | return Py_BuildValue((char *)""); | |
2881 | } | |
2882 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2883 | PyObject *resultobj; | |
2884 | int arg1 = (int) 0 ; | |
2885 | int arg2 = (int) 0 ; | |
2886 | int arg3 = (int) 0 ; | |
2887 | int arg4 = (int) 0 ; | |
2888 | wxRect *result; | |
8edf1c75 RD |
2889 | PyObject * obj0 = 0 ; |
2890 | PyObject * obj1 = 0 ; | |
2891 | PyObject * obj2 = 0 ; | |
2892 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2893 | char *kwnames[] = { |
2894 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
2895 | }; | |
2896 | ||
8edf1c75 RD |
2897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2898 | if (obj0) { | |
2899 | { | |
2900 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
2901 | if (PyErr_Occurred()) SWIG_fail; | |
2902 | } | |
2903 | } | |
2904 | if (obj1) { | |
2905 | { | |
2906 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2907 | if (PyErr_Occurred()) SWIG_fail; | |
2908 | } | |
2909 | } | |
2910 | if (obj2) { | |
2911 | { | |
2912 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2913 | if (PyErr_Occurred()) SWIG_fail; | |
2914 | } | |
2915 | } | |
2916 | if (obj3) { | |
2917 | { | |
2918 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
2919 | if (PyErr_Occurred()) SWIG_fail; | |
2920 | } | |
2921 | } | |
d14a1e28 RD |
2922 | { |
2923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2924 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
2925 | ||
2926 | wxPyEndAllowThreads(__tstate); | |
2927 | if (PyErr_Occurred()) SWIG_fail; | |
2928 | } | |
2929 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2930 | return resultobj; | |
2931 | fail: | |
2932 | return NULL; | |
2933 | } | |
2934 | ||
2935 | ||
2936 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2937 | PyObject *resultobj; | |
2938 | wxPoint *arg1 = 0 ; | |
2939 | wxPoint *arg2 = 0 ; | |
2940 | wxRect *result; | |
2941 | wxPoint temp1 ; | |
2942 | wxPoint temp2 ; | |
2943 | PyObject * obj0 = 0 ; | |
2944 | PyObject * obj1 = 0 ; | |
2945 | char *kwnames[] = { | |
2946 | (char *) "topLeft",(char *) "bottomRight", NULL | |
2947 | }; | |
2948 | ||
2949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
2950 | { | |
2951 | arg1 = &temp1; | |
2952 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2953 | } | |
2954 | { | |
2955 | arg2 = &temp2; | |
2956 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2957 | } | |
2958 | { | |
2959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2960 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
2961 | ||
2962 | wxPyEndAllowThreads(__tstate); | |
2963 | if (PyErr_Occurred()) SWIG_fail; | |
2964 | } | |
2965 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
2966 | return resultobj; | |
2967 | fail: | |
2968 | return NULL; | |
2969 | } | |
2970 | ||
2971 | ||
2972 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2973 | PyObject *resultobj; | |
2974 | wxPoint *arg1 = 0 ; | |
2975 | wxSize *arg2 = 0 ; | |
2976 | wxRect *result; | |
2977 | wxPoint temp1 ; | |
2978 | wxSize temp2 ; | |
2979 | PyObject * obj0 = 0 ; | |
2980 | PyObject * obj1 = 0 ; | |
2981 | char *kwnames[] = { | |
2982 | (char *) "pos",(char *) "size", NULL | |
2983 | }; | |
2984 | ||
2985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
2986 | { | |
2987 | arg1 = &temp1; | |
2988 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
2989 | } | |
2990 | { | |
2991 | arg2 = &temp2; | |
2992 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2993 | } | |
2994 | { | |
2995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2996 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
2997 | ||
2998 | wxPyEndAllowThreads(__tstate); | |
2999 | if (PyErr_Occurred()) SWIG_fail; | |
3000 | } | |
3001 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1); | |
3002 | return resultobj; | |
3003 | fail: | |
3004 | return NULL; | |
3005 | } | |
3006 | ||
3007 | ||
3008 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3009 | PyObject *resultobj; | |
3010 | wxRect *arg1 = (wxRect *) 0 ; | |
3011 | PyObject * obj0 = 0 ; | |
3012 | char *kwnames[] = { | |
3013 | (char *) "self", NULL | |
3014 | }; | |
3015 | ||
3016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
3017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3018 | { | |
3019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3020 | delete arg1; | |
3021 | ||
3022 | wxPyEndAllowThreads(__tstate); | |
3023 | if (PyErr_Occurred()) SWIG_fail; | |
3024 | } | |
3025 | Py_INCREF(Py_None); resultobj = Py_None; | |
3026 | return resultobj; | |
3027 | fail: | |
3028 | return NULL; | |
3029 | } | |
3030 | ||
3031 | ||
3032 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3033 | PyObject *resultobj; | |
3034 | wxRect *arg1 = (wxRect *) 0 ; | |
3035 | int result; | |
3036 | PyObject * obj0 = 0 ; | |
3037 | char *kwnames[] = { | |
3038 | (char *) "self", NULL | |
3039 | }; | |
3040 | ||
3041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
3042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3043 | { | |
3044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3045 | result = (int)((wxRect const *)arg1)->GetX(); | |
3046 | ||
3047 | wxPyEndAllowThreads(__tstate); | |
3048 | if (PyErr_Occurred()) SWIG_fail; | |
3049 | } | |
8edf1c75 | 3050 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3051 | return resultobj; |
3052 | fail: | |
3053 | return NULL; | |
3054 | } | |
3055 | ||
3056 | ||
3057 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3058 | PyObject *resultobj; | |
3059 | wxRect *arg1 = (wxRect *) 0 ; | |
3060 | int arg2 ; | |
3061 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3062 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3063 | char *kwnames[] = { |
3064 | (char *) "self",(char *) "x", NULL | |
3065 | }; | |
3066 | ||
8edf1c75 | 3067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3069 | { |
3070 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3071 | if (PyErr_Occurred()) SWIG_fail; | |
3072 | } | |
d14a1e28 RD |
3073 | { |
3074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3075 | (arg1)->SetX(arg2); | |
3076 | ||
3077 | wxPyEndAllowThreads(__tstate); | |
3078 | if (PyErr_Occurred()) SWIG_fail; | |
3079 | } | |
3080 | Py_INCREF(Py_None); resultobj = Py_None; | |
3081 | return resultobj; | |
3082 | fail: | |
3083 | return NULL; | |
3084 | } | |
3085 | ||
3086 | ||
3087 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3088 | PyObject *resultobj; | |
3089 | wxRect *arg1 = (wxRect *) 0 ; | |
3090 | int result; | |
3091 | PyObject * obj0 = 0 ; | |
3092 | char *kwnames[] = { | |
3093 | (char *) "self", NULL | |
3094 | }; | |
3095 | ||
3096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
3097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3098 | { | |
3099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3100 | result = (int)(arg1)->GetY(); | |
3101 | ||
3102 | wxPyEndAllowThreads(__tstate); | |
3103 | if (PyErr_Occurred()) SWIG_fail; | |
3104 | } | |
8edf1c75 | 3105 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3106 | return resultobj; |
3107 | fail: | |
3108 | return NULL; | |
3109 | } | |
3110 | ||
3111 | ||
3112 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3113 | PyObject *resultobj; | |
3114 | wxRect *arg1 = (wxRect *) 0 ; | |
3115 | int arg2 ; | |
3116 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3117 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3118 | char *kwnames[] = { |
3119 | (char *) "self",(char *) "y", NULL | |
3120 | }; | |
3121 | ||
8edf1c75 | 3122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3124 | { |
3125 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3126 | if (PyErr_Occurred()) SWIG_fail; | |
3127 | } | |
d14a1e28 RD |
3128 | { |
3129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3130 | (arg1)->SetY(arg2); | |
3131 | ||
3132 | wxPyEndAllowThreads(__tstate); | |
3133 | if (PyErr_Occurred()) SWIG_fail; | |
3134 | } | |
3135 | Py_INCREF(Py_None); resultobj = Py_None; | |
3136 | return resultobj; | |
3137 | fail: | |
3138 | return NULL; | |
3139 | } | |
3140 | ||
3141 | ||
3142 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3143 | PyObject *resultobj; | |
3144 | wxRect *arg1 = (wxRect *) 0 ; | |
3145 | int result; | |
3146 | PyObject * obj0 = 0 ; | |
3147 | char *kwnames[] = { | |
3148 | (char *) "self", NULL | |
3149 | }; | |
3150 | ||
3151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
3152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3153 | { | |
3154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3155 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3156 | ||
3157 | wxPyEndAllowThreads(__tstate); | |
3158 | if (PyErr_Occurred()) SWIG_fail; | |
3159 | } | |
8edf1c75 | 3160 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3161 | return resultobj; |
3162 | fail: | |
3163 | return NULL; | |
3164 | } | |
3165 | ||
3166 | ||
3167 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3168 | PyObject *resultobj; | |
3169 | wxRect *arg1 = (wxRect *) 0 ; | |
3170 | int arg2 ; | |
3171 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3172 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3173 | char *kwnames[] = { |
3174 | (char *) "self",(char *) "w", NULL | |
3175 | }; | |
3176 | ||
8edf1c75 | 3177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3179 | { |
3180 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3181 | if (PyErr_Occurred()) SWIG_fail; | |
3182 | } | |
d14a1e28 RD |
3183 | { |
3184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3185 | (arg1)->SetWidth(arg2); | |
3186 | ||
3187 | wxPyEndAllowThreads(__tstate); | |
3188 | if (PyErr_Occurred()) SWIG_fail; | |
3189 | } | |
3190 | Py_INCREF(Py_None); resultobj = Py_None; | |
3191 | return resultobj; | |
3192 | fail: | |
3193 | return NULL; | |
3194 | } | |
3195 | ||
3196 | ||
3197 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3198 | PyObject *resultobj; | |
3199 | wxRect *arg1 = (wxRect *) 0 ; | |
3200 | int result; | |
3201 | PyObject * obj0 = 0 ; | |
3202 | char *kwnames[] = { | |
3203 | (char *) "self", NULL | |
3204 | }; | |
3205 | ||
3206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3208 | { | |
3209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3210 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3211 | ||
3212 | wxPyEndAllowThreads(__tstate); | |
3213 | if (PyErr_Occurred()) SWIG_fail; | |
3214 | } | |
8edf1c75 | 3215 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3216 | return resultobj; |
3217 | fail: | |
3218 | return NULL; | |
3219 | } | |
3220 | ||
3221 | ||
3222 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3223 | PyObject *resultobj; | |
3224 | wxRect *arg1 = (wxRect *) 0 ; | |
3225 | int arg2 ; | |
3226 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3227 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3228 | char *kwnames[] = { |
3229 | (char *) "self",(char *) "h", NULL | |
3230 | }; | |
3231 | ||
8edf1c75 | 3232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3234 | { |
3235 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3236 | if (PyErr_Occurred()) SWIG_fail; | |
3237 | } | |
d14a1e28 RD |
3238 | { |
3239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3240 | (arg1)->SetHeight(arg2); | |
3241 | ||
3242 | wxPyEndAllowThreads(__tstate); | |
3243 | if (PyErr_Occurred()) SWIG_fail; | |
3244 | } | |
3245 | Py_INCREF(Py_None); resultobj = Py_None; | |
3246 | return resultobj; | |
3247 | fail: | |
3248 | return NULL; | |
3249 | } | |
3250 | ||
3251 | ||
3252 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3253 | PyObject *resultobj; | |
3254 | wxRect *arg1 = (wxRect *) 0 ; | |
3255 | wxPoint result; | |
3256 | PyObject * obj0 = 0 ; | |
3257 | char *kwnames[] = { | |
3258 | (char *) "self", NULL | |
3259 | }; | |
3260 | ||
3261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
3262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3263 | { | |
3264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3265 | result = ((wxRect const *)arg1)->GetPosition(); | |
3266 | ||
3267 | wxPyEndAllowThreads(__tstate); | |
3268 | if (PyErr_Occurred()) SWIG_fail; | |
3269 | } | |
3270 | { | |
3271 | wxPoint * resultptr; | |
3272 | resultptr = new wxPoint((wxPoint &) result); | |
3273 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3274 | } | |
3275 | return resultobj; | |
3276 | fail: | |
3277 | return NULL; | |
3278 | } | |
3279 | ||
3280 | ||
3281 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3282 | PyObject *resultobj; | |
3283 | wxRect *arg1 = (wxRect *) 0 ; | |
3284 | wxPoint *arg2 = 0 ; | |
3285 | wxPoint temp2 ; | |
3286 | PyObject * obj0 = 0 ; | |
3287 | PyObject * obj1 = 0 ; | |
3288 | char *kwnames[] = { | |
3289 | (char *) "self",(char *) "p", NULL | |
3290 | }; | |
3291 | ||
3292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
3293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3294 | { | |
3295 | arg2 = &temp2; | |
3296 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3297 | } | |
3298 | { | |
3299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3300 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3301 | ||
3302 | wxPyEndAllowThreads(__tstate); | |
3303 | if (PyErr_Occurred()) SWIG_fail; | |
3304 | } | |
3305 | Py_INCREF(Py_None); resultobj = Py_None; | |
3306 | return resultobj; | |
3307 | fail: | |
3308 | return NULL; | |
3309 | } | |
3310 | ||
3311 | ||
3312 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3313 | PyObject *resultobj; | |
3314 | wxRect *arg1 = (wxRect *) 0 ; | |
3315 | wxSize result; | |
3316 | PyObject * obj0 = 0 ; | |
3317 | char *kwnames[] = { | |
3318 | (char *) "self", NULL | |
3319 | }; | |
3320 | ||
3321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
3322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3323 | { | |
3324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3325 | result = ((wxRect const *)arg1)->GetSize(); | |
3326 | ||
3327 | wxPyEndAllowThreads(__tstate); | |
3328 | if (PyErr_Occurred()) SWIG_fail; | |
3329 | } | |
3330 | { | |
3331 | wxSize * resultptr; | |
3332 | resultptr = new wxSize((wxSize &) result); | |
3333 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3334 | } | |
3335 | return resultobj; | |
3336 | fail: | |
3337 | return NULL; | |
3338 | } | |
3339 | ||
3340 | ||
3341 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3342 | PyObject *resultobj; | |
3343 | wxRect *arg1 = (wxRect *) 0 ; | |
3344 | wxSize *arg2 = 0 ; | |
3345 | wxSize temp2 ; | |
3346 | PyObject * obj0 = 0 ; | |
3347 | PyObject * obj1 = 0 ; | |
3348 | char *kwnames[] = { | |
3349 | (char *) "self",(char *) "s", NULL | |
3350 | }; | |
3351 | ||
3352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3354 | { | |
3355 | arg2 = &temp2; | |
3356 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3357 | } | |
3358 | { | |
3359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3360 | (arg1)->SetSize((wxSize const &)*arg2); | |
3361 | ||
3362 | wxPyEndAllowThreads(__tstate); | |
3363 | if (PyErr_Occurred()) SWIG_fail; | |
3364 | } | |
3365 | Py_INCREF(Py_None); resultobj = Py_None; | |
3366 | return resultobj; | |
3367 | fail: | |
3368 | return NULL; | |
3369 | } | |
3370 | ||
3371 | ||
9fd4be55 RD |
3372 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3373 | PyObject *resultobj; | |
3374 | wxRect *arg1 = (wxRect *) 0 ; | |
3375 | wxPoint result; | |
3376 | PyObject * obj0 = 0 ; | |
3377 | char *kwnames[] = { | |
3378 | (char *) "self", NULL | |
3379 | }; | |
3380 | ||
3381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
3382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3383 | { | |
3384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3385 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3386 | ||
3387 | wxPyEndAllowThreads(__tstate); | |
3388 | if (PyErr_Occurred()) SWIG_fail; | |
3389 | } | |
3390 | { | |
3391 | wxPoint * resultptr; | |
3392 | resultptr = new wxPoint((wxPoint &) result); | |
3393 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3394 | } | |
3395 | return resultobj; | |
3396 | fail: | |
3397 | return NULL; | |
3398 | } | |
3399 | ||
3400 | ||
3401 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3402 | PyObject *resultobj; | |
3403 | wxRect *arg1 = (wxRect *) 0 ; | |
3404 | wxPoint *arg2 = 0 ; | |
3405 | wxPoint temp2 ; | |
3406 | PyObject * obj0 = 0 ; | |
3407 | PyObject * obj1 = 0 ; | |
3408 | char *kwnames[] = { | |
3409 | (char *) "self",(char *) "p", NULL | |
3410 | }; | |
3411 | ||
3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
3413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3414 | { | |
3415 | arg2 = &temp2; | |
3416 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3417 | } | |
3418 | { | |
3419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3420 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3421 | ||
3422 | wxPyEndAllowThreads(__tstate); | |
3423 | if (PyErr_Occurred()) SWIG_fail; | |
3424 | } | |
3425 | Py_INCREF(Py_None); resultobj = Py_None; | |
3426 | return resultobj; | |
3427 | fail: | |
3428 | return NULL; | |
3429 | } | |
3430 | ||
3431 | ||
3432 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3433 | PyObject *resultobj; | |
3434 | wxRect *arg1 = (wxRect *) 0 ; | |
3435 | wxPoint result; | |
3436 | PyObject * obj0 = 0 ; | |
3437 | char *kwnames[] = { | |
3438 | (char *) "self", NULL | |
3439 | }; | |
3440 | ||
3441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
3442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3443 | { | |
3444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3445 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3446 | ||
3447 | wxPyEndAllowThreads(__tstate); | |
3448 | if (PyErr_Occurred()) SWIG_fail; | |
3449 | } | |
3450 | { | |
3451 | wxPoint * resultptr; | |
3452 | resultptr = new wxPoint((wxPoint &) result); | |
3453 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3454 | } | |
3455 | return resultobj; | |
3456 | fail: | |
3457 | return NULL; | |
3458 | } | |
3459 | ||
3460 | ||
3461 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3462 | PyObject *resultobj; | |
3463 | wxRect *arg1 = (wxRect *) 0 ; | |
3464 | wxPoint *arg2 = 0 ; | |
3465 | wxPoint temp2 ; | |
3466 | PyObject * obj0 = 0 ; | |
3467 | PyObject * obj1 = 0 ; | |
3468 | char *kwnames[] = { | |
3469 | (char *) "self",(char *) "p", NULL | |
3470 | }; | |
3471 | ||
3472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
3473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3474 | { | |
3475 | arg2 = &temp2; | |
3476 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3477 | } | |
3478 | { | |
3479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3480 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3481 | ||
3482 | wxPyEndAllowThreads(__tstate); | |
3483 | if (PyErr_Occurred()) SWIG_fail; | |
3484 | } | |
3485 | Py_INCREF(Py_None); resultobj = Py_None; | |
3486 | return resultobj; | |
3487 | fail: | |
3488 | return NULL; | |
3489 | } | |
3490 | ||
3491 | ||
d14a1e28 RD |
3492 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3493 | PyObject *resultobj; | |
3494 | wxRect *arg1 = (wxRect *) 0 ; | |
3495 | int result; | |
3496 | PyObject * obj0 = 0 ; | |
3497 | char *kwnames[] = { | |
3498 | (char *) "self", NULL | |
3499 | }; | |
3500 | ||
3501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
3502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3503 | { | |
3504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3505 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3506 | ||
3507 | wxPyEndAllowThreads(__tstate); | |
3508 | if (PyErr_Occurred()) SWIG_fail; | |
3509 | } | |
8edf1c75 | 3510 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3511 | return resultobj; |
3512 | fail: | |
3513 | return NULL; | |
3514 | } | |
3515 | ||
3516 | ||
3517 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3518 | PyObject *resultobj; | |
3519 | wxRect *arg1 = (wxRect *) 0 ; | |
3520 | int result; | |
3521 | PyObject * obj0 = 0 ; | |
3522 | char *kwnames[] = { | |
3523 | (char *) "self", NULL | |
3524 | }; | |
3525 | ||
3526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
3527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3528 | { | |
3529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3530 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3531 | ||
3532 | wxPyEndAllowThreads(__tstate); | |
3533 | if (PyErr_Occurred()) SWIG_fail; | |
3534 | } | |
8edf1c75 | 3535 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3536 | return resultobj; |
3537 | fail: | |
3538 | return NULL; | |
3539 | } | |
3540 | ||
3541 | ||
3542 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3543 | PyObject *resultobj; | |
3544 | wxRect *arg1 = (wxRect *) 0 ; | |
3545 | int result; | |
3546 | PyObject * obj0 = 0 ; | |
3547 | char *kwnames[] = { | |
3548 | (char *) "self", NULL | |
3549 | }; | |
3550 | ||
3551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
3552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3553 | { | |
3554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3555 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3556 | ||
3557 | wxPyEndAllowThreads(__tstate); | |
3558 | if (PyErr_Occurred()) SWIG_fail; | |
3559 | } | |
8edf1c75 | 3560 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3561 | return resultobj; |
3562 | fail: | |
3563 | return NULL; | |
3564 | } | |
3565 | ||
3566 | ||
3567 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3568 | PyObject *resultobj; | |
3569 | wxRect *arg1 = (wxRect *) 0 ; | |
3570 | int result; | |
3571 | PyObject * obj0 = 0 ; | |
3572 | char *kwnames[] = { | |
3573 | (char *) "self", NULL | |
3574 | }; | |
3575 | ||
3576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
3577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3578 | { | |
3579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3580 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3581 | ||
3582 | wxPyEndAllowThreads(__tstate); | |
3583 | if (PyErr_Occurred()) SWIG_fail; | |
3584 | } | |
8edf1c75 | 3585 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3586 | return resultobj; |
3587 | fail: | |
3588 | return NULL; | |
3589 | } | |
3590 | ||
3591 | ||
3592 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3593 | PyObject *resultobj; | |
3594 | wxRect *arg1 = (wxRect *) 0 ; | |
3595 | int arg2 ; | |
3596 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3597 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3598 | char *kwnames[] = { |
3599 | (char *) "self",(char *) "left", NULL | |
3600 | }; | |
3601 | ||
8edf1c75 | 3602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3604 | { |
3605 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3606 | if (PyErr_Occurred()) SWIG_fail; | |
3607 | } | |
d14a1e28 RD |
3608 | { |
3609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3610 | (arg1)->SetLeft(arg2); | |
3611 | ||
3612 | wxPyEndAllowThreads(__tstate); | |
3613 | if (PyErr_Occurred()) SWIG_fail; | |
3614 | } | |
3615 | Py_INCREF(Py_None); resultobj = Py_None; | |
3616 | return resultobj; | |
3617 | fail: | |
3618 | return NULL; | |
3619 | } | |
3620 | ||
3621 | ||
3622 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3623 | PyObject *resultobj; | |
3624 | wxRect *arg1 = (wxRect *) 0 ; | |
3625 | int arg2 ; | |
3626 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3627 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3628 | char *kwnames[] = { |
3629 | (char *) "self",(char *) "right", NULL | |
3630 | }; | |
3631 | ||
8edf1c75 | 3632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3634 | { |
3635 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3636 | if (PyErr_Occurred()) SWIG_fail; | |
3637 | } | |
d14a1e28 RD |
3638 | { |
3639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3640 | (arg1)->SetRight(arg2); | |
3641 | ||
3642 | wxPyEndAllowThreads(__tstate); | |
3643 | if (PyErr_Occurred()) SWIG_fail; | |
3644 | } | |
3645 | Py_INCREF(Py_None); resultobj = Py_None; | |
3646 | return resultobj; | |
3647 | fail: | |
3648 | return NULL; | |
3649 | } | |
3650 | ||
3651 | ||
3652 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3653 | PyObject *resultobj; | |
3654 | wxRect *arg1 = (wxRect *) 0 ; | |
3655 | int arg2 ; | |
3656 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3657 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3658 | char *kwnames[] = { |
3659 | (char *) "self",(char *) "top", NULL | |
3660 | }; | |
3661 | ||
8edf1c75 | 3662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3664 | { |
3665 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3666 | if (PyErr_Occurred()) SWIG_fail; | |
3667 | } | |
d14a1e28 RD |
3668 | { |
3669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3670 | (arg1)->SetTop(arg2); | |
3671 | ||
3672 | wxPyEndAllowThreads(__tstate); | |
3673 | if (PyErr_Occurred()) SWIG_fail; | |
3674 | } | |
3675 | Py_INCREF(Py_None); resultobj = Py_None; | |
3676 | return resultobj; | |
3677 | fail: | |
3678 | return NULL; | |
3679 | } | |
3680 | ||
3681 | ||
3682 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3683 | PyObject *resultobj; | |
3684 | wxRect *arg1 = (wxRect *) 0 ; | |
3685 | int arg2 ; | |
3686 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3687 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3688 | char *kwnames[] = { |
3689 | (char *) "self",(char *) "bottom", NULL | |
3690 | }; | |
3691 | ||
8edf1c75 | 3692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3694 | { |
3695 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3696 | if (PyErr_Occurred()) SWIG_fail; | |
3697 | } | |
d14a1e28 RD |
3698 | { |
3699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3700 | (arg1)->SetBottom(arg2); | |
3701 | ||
3702 | wxPyEndAllowThreads(__tstate); | |
3703 | if (PyErr_Occurred()) SWIG_fail; | |
3704 | } | |
3705 | Py_INCREF(Py_None); resultobj = Py_None; | |
3706 | return resultobj; | |
3707 | fail: | |
3708 | return NULL; | |
3709 | } | |
3710 | ||
3711 | ||
3712 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3713 | PyObject *resultobj; | |
3714 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3715 | int arg2 ; |
3716 | int arg3 ; | |
d14a1e28 RD |
3717 | wxRect *result; |
3718 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3719 | PyObject * obj1 = 0 ; |
3720 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3721 | char *kwnames[] = { |
3722 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3723 | }; | |
3724 | ||
8edf1c75 | 3725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3727 | { |
3728 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3729 | if (PyErr_Occurred()) SWIG_fail; | |
3730 | } | |
3731 | { | |
3732 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3733 | if (PyErr_Occurred()) SWIG_fail; | |
3734 | } | |
d14a1e28 RD |
3735 | { |
3736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3737 | { | |
3738 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
3739 | result = (wxRect *) &_result_ref; | |
3740 | } | |
3741 | ||
3742 | wxPyEndAllowThreads(__tstate); | |
3743 | if (PyErr_Occurred()) SWIG_fail; | |
3744 | } | |
3745 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3746 | return resultobj; | |
3747 | fail: | |
3748 | return NULL; | |
3749 | } | |
3750 | ||
3751 | ||
3752 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3753 | PyObject *resultobj; | |
3754 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3755 | int arg2 ; |
3756 | int arg3 ; | |
d14a1e28 RD |
3757 | wxRect *result; |
3758 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3759 | PyObject * obj1 = 0 ; |
3760 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3761 | char *kwnames[] = { |
3762 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3763 | }; | |
3764 | ||
8edf1c75 | 3765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3767 | { |
3768 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3769 | if (PyErr_Occurred()) SWIG_fail; | |
3770 | } | |
3771 | { | |
3772 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3773 | if (PyErr_Occurred()) SWIG_fail; | |
3774 | } | |
d14a1e28 RD |
3775 | { |
3776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3777 | { | |
3778 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
3779 | result = (wxRect *) &_result_ref; | |
3780 | } | |
3781 | ||
3782 | wxPyEndAllowThreads(__tstate); | |
3783 | if (PyErr_Occurred()) SWIG_fail; | |
3784 | } | |
3785 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3786 | return resultobj; | |
3787 | fail: | |
3788 | return NULL; | |
3789 | } | |
3790 | ||
3791 | ||
3792 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3793 | PyObject *resultobj; | |
3794 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3795 | int arg2 ; |
3796 | int arg3 ; | |
d14a1e28 | 3797 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3798 | PyObject * obj1 = 0 ; |
3799 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3800 | char *kwnames[] = { |
3801 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3802 | }; | |
3803 | ||
8edf1c75 | 3804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 3805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3806 | { |
3807 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3808 | if (PyErr_Occurred()) SWIG_fail; | |
3809 | } | |
3810 | { | |
3811 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3812 | if (PyErr_Occurred()) SWIG_fail; | |
3813 | } | |
d14a1e28 RD |
3814 | { |
3815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3816 | (arg1)->Offset(arg2,arg3); | |
3817 | ||
3818 | wxPyEndAllowThreads(__tstate); | |
3819 | if (PyErr_Occurred()) SWIG_fail; | |
3820 | } | |
3821 | Py_INCREF(Py_None); resultobj = Py_None; | |
3822 | return resultobj; | |
3823 | fail: | |
3824 | return NULL; | |
3825 | } | |
3826 | ||
3827 | ||
3828 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3829 | PyObject *resultobj; | |
3830 | wxRect *arg1 = (wxRect *) 0 ; | |
3831 | wxPoint *arg2 = 0 ; | |
3832 | wxPoint temp2 ; | |
3833 | PyObject * obj0 = 0 ; | |
3834 | PyObject * obj1 = 0 ; | |
3835 | char *kwnames[] = { | |
3836 | (char *) "self",(char *) "pt", NULL | |
3837 | }; | |
3838 | ||
3839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
3840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3841 | { | |
3842 | arg2 = &temp2; | |
3843 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3844 | } | |
3845 | { | |
3846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3847 | (arg1)->Offset((wxPoint const &)*arg2); | |
3848 | ||
3849 | wxPyEndAllowThreads(__tstate); | |
3850 | if (PyErr_Occurred()) SWIG_fail; | |
3851 | } | |
3852 | Py_INCREF(Py_None); resultobj = Py_None; | |
3853 | return resultobj; | |
3854 | fail: | |
3855 | return NULL; | |
3856 | } | |
3857 | ||
3858 | ||
3859 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3860 | PyObject *resultobj; | |
3861 | wxRect *arg1 = (wxRect *) 0 ; | |
3862 | wxRect *arg2 = 0 ; | |
3863 | wxRect *result; | |
3864 | wxRect temp2 ; | |
3865 | PyObject * obj0 = 0 ; | |
3866 | PyObject * obj1 = 0 ; | |
3867 | char *kwnames[] = { | |
3868 | (char *) "self",(char *) "rect", NULL | |
3869 | }; | |
3870 | ||
3871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
3872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3873 | { | |
3874 | arg2 = &temp2; | |
3875 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3876 | } | |
3877 | { | |
3878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3879 | { | |
3880 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
3881 | result = (wxRect *) &_result_ref; | |
3882 | } | |
3883 | ||
3884 | wxPyEndAllowThreads(__tstate); | |
3885 | if (PyErr_Occurred()) SWIG_fail; | |
3886 | } | |
3887 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3888 | return resultobj; | |
3889 | fail: | |
3890 | return NULL; | |
3891 | } | |
3892 | ||
3893 | ||
3894 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3895 | PyObject *resultobj; | |
3896 | wxRect *arg1 = (wxRect *) 0 ; | |
3897 | wxRect *arg2 = 0 ; | |
3898 | wxRect result; | |
3899 | wxRect temp2 ; | |
3900 | PyObject * obj0 = 0 ; | |
3901 | PyObject * obj1 = 0 ; | |
3902 | char *kwnames[] = { | |
3903 | (char *) "self",(char *) "rect", NULL | |
3904 | }; | |
3905 | ||
3906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
3907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3908 | { | |
3909 | arg2 = &temp2; | |
3910 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3911 | } | |
3912 | { | |
3913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3914 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
3915 | ||
3916 | wxPyEndAllowThreads(__tstate); | |
3917 | if (PyErr_Occurred()) SWIG_fail; | |
3918 | } | |
3919 | { | |
3920 | wxRect * resultptr; | |
3921 | resultptr = new wxRect((wxRect &) result); | |
3922 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3923 | } | |
3924 | return resultobj; | |
3925 | fail: | |
3926 | return NULL; | |
3927 | } | |
3928 | ||
3929 | ||
3930 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3931 | PyObject *resultobj; | |
3932 | wxRect *arg1 = (wxRect *) 0 ; | |
3933 | wxRect *arg2 = 0 ; | |
3934 | wxRect *result; | |
3935 | wxRect temp2 ; | |
3936 | PyObject * obj0 = 0 ; | |
3937 | PyObject * obj1 = 0 ; | |
3938 | char *kwnames[] = { | |
3939 | (char *) "self",(char *) "rect", NULL | |
3940 | }; | |
3941 | ||
3942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3944 | { | |
3945 | arg2 = &temp2; | |
3946 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3947 | } | |
3948 | { | |
3949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3950 | { | |
3951 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
3952 | result = (wxRect *) &_result_ref; | |
3953 | } | |
3954 | ||
3955 | wxPyEndAllowThreads(__tstate); | |
3956 | if (PyErr_Occurred()) SWIG_fail; | |
3957 | } | |
3958 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
3959 | return resultobj; | |
3960 | fail: | |
3961 | return NULL; | |
3962 | } | |
3963 | ||
3964 | ||
3965 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3966 | PyObject *resultobj; | |
3967 | wxRect *arg1 = (wxRect *) 0 ; | |
3968 | wxRect *arg2 = 0 ; | |
3969 | bool result; | |
3970 | wxRect temp2 ; | |
3971 | PyObject * obj0 = 0 ; | |
3972 | PyObject * obj1 = 0 ; | |
3973 | char *kwnames[] = { | |
3974 | (char *) "self",(char *) "rect", NULL | |
3975 | }; | |
3976 | ||
3977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3979 | { | |
3980 | arg2 = &temp2; | |
3981 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3982 | } | |
3983 | { | |
3984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3985 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
3986 | ||
3987 | wxPyEndAllowThreads(__tstate); | |
3988 | if (PyErr_Occurred()) SWIG_fail; | |
3989 | } | |
8edf1c75 | 3990 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
3991 | return resultobj; |
3992 | fail: | |
3993 | return NULL; | |
3994 | } | |
3995 | ||
3996 | ||
3997 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3998 | PyObject *resultobj; | |
3999 | wxRect *arg1 = (wxRect *) 0 ; | |
4000 | wxRect *arg2 = 0 ; | |
4001 | bool result; | |
4002 | wxRect temp2 ; | |
4003 | PyObject * obj0 = 0 ; | |
4004 | PyObject * obj1 = 0 ; | |
4005 | char *kwnames[] = { | |
4006 | (char *) "self",(char *) "rect", NULL | |
4007 | }; | |
4008 | ||
4009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4011 | { | |
4012 | arg2 = &temp2; | |
4013 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4014 | } | |
4015 | { | |
4016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4017 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4018 | ||
4019 | wxPyEndAllowThreads(__tstate); | |
4020 | if (PyErr_Occurred()) SWIG_fail; | |
4021 | } | |
8edf1c75 | 4022 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4023 | return resultobj; |
4024 | fail: | |
4025 | return NULL; | |
4026 | } | |
4027 | ||
4028 | ||
4029 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4030 | PyObject *resultobj; | |
4031 | wxRect *arg1 = (wxRect *) 0 ; | |
4032 | int arg2 ; | |
4033 | int arg3 ; | |
4034 | bool result; | |
4035 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4036 | PyObject * obj1 = 0 ; |
4037 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4038 | char *kwnames[] = { |
4039 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4040 | }; | |
4041 | ||
8edf1c75 | 4042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 4043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4044 | { |
4045 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4046 | if (PyErr_Occurred()) SWIG_fail; | |
4047 | } | |
4048 | { | |
4049 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4050 | if (PyErr_Occurred()) SWIG_fail; | |
4051 | } | |
d14a1e28 RD |
4052 | { |
4053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4054 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4055 | ||
4056 | wxPyEndAllowThreads(__tstate); | |
4057 | if (PyErr_Occurred()) SWIG_fail; | |
4058 | } | |
8edf1c75 | 4059 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4060 | return resultobj; |
4061 | fail: | |
4062 | return NULL; | |
4063 | } | |
4064 | ||
4065 | ||
4066 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4067 | PyObject *resultobj; | |
4068 | wxRect *arg1 = (wxRect *) 0 ; | |
4069 | wxPoint *arg2 = 0 ; | |
4070 | bool result; | |
4071 | wxPoint temp2 ; | |
4072 | PyObject * obj0 = 0 ; | |
4073 | PyObject * obj1 = 0 ; | |
4074 | char *kwnames[] = { | |
4075 | (char *) "self",(char *) "pt", NULL | |
4076 | }; | |
4077 | ||
4078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
4079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4080 | { | |
4081 | arg2 = &temp2; | |
4082 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4083 | } | |
4084 | { | |
4085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4086 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4087 | ||
4088 | wxPyEndAllowThreads(__tstate); | |
4089 | if (PyErr_Occurred()) SWIG_fail; | |
4090 | } | |
8edf1c75 | 4091 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4092 | return resultobj; |
4093 | fail: | |
4094 | return NULL; | |
4095 | } | |
4096 | ||
4097 | ||
4098 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4099 | PyObject *resultobj; | |
4100 | wxRect *arg1 = (wxRect *) 0 ; | |
4101 | wxRect *arg2 = 0 ; | |
4102 | bool result; | |
4103 | wxRect temp2 ; | |
4104 | PyObject * obj0 = 0 ; | |
4105 | PyObject * obj1 = 0 ; | |
4106 | char *kwnames[] = { | |
4107 | (char *) "self",(char *) "rect", NULL | |
4108 | }; | |
4109 | ||
4110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
4111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4112 | { | |
4113 | arg2 = &temp2; | |
4114 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4115 | } | |
4116 | { | |
4117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4118 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4119 | ||
4120 | wxPyEndAllowThreads(__tstate); | |
4121 | if (PyErr_Occurred()) SWIG_fail; | |
4122 | } | |
8edf1c75 | 4123 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4124 | return resultobj; |
4125 | fail: | |
4126 | return NULL; | |
4127 | } | |
4128 | ||
4129 | ||
4130 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4131 | PyObject *resultobj; | |
4132 | wxRect *arg1 = (wxRect *) 0 ; | |
4133 | int arg2 ; | |
4134 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4135 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4136 | char *kwnames[] = { |
4137 | (char *) "self",(char *) "x", NULL | |
4138 | }; | |
4139 | ||
8edf1c75 | 4140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4142 | { |
4143 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4144 | if (PyErr_Occurred()) SWIG_fail; | |
4145 | } | |
d14a1e28 RD |
4146 | if (arg1) (arg1)->x = arg2; |
4147 | ||
4148 | Py_INCREF(Py_None); resultobj = Py_None; | |
4149 | return resultobj; | |
4150 | fail: | |
4151 | return NULL; | |
4152 | } | |
4153 | ||
4154 | ||
4155 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4156 | PyObject *resultobj; | |
4157 | wxRect *arg1 = (wxRect *) 0 ; | |
4158 | int result; | |
4159 | PyObject * obj0 = 0 ; | |
4160 | char *kwnames[] = { | |
4161 | (char *) "self", NULL | |
4162 | }; | |
4163 | ||
4164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
4165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4166 | result = (int) ((arg1)->x); | |
4167 | ||
8edf1c75 | 4168 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4169 | return resultobj; |
4170 | fail: | |
4171 | return NULL; | |
4172 | } | |
4173 | ||
4174 | ||
4175 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4176 | PyObject *resultobj; | |
4177 | wxRect *arg1 = (wxRect *) 0 ; | |
4178 | int arg2 ; | |
4179 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4180 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4181 | char *kwnames[] = { |
4182 | (char *) "self",(char *) "y", NULL | |
4183 | }; | |
4184 | ||
8edf1c75 | 4185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4187 | { |
4188 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4189 | if (PyErr_Occurred()) SWIG_fail; | |
4190 | } | |
d14a1e28 RD |
4191 | if (arg1) (arg1)->y = arg2; |
4192 | ||
4193 | Py_INCREF(Py_None); resultobj = Py_None; | |
4194 | return resultobj; | |
4195 | fail: | |
4196 | return NULL; | |
4197 | } | |
4198 | ||
4199 | ||
4200 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4201 | PyObject *resultobj; | |
4202 | wxRect *arg1 = (wxRect *) 0 ; | |
4203 | int result; | |
4204 | PyObject * obj0 = 0 ; | |
4205 | char *kwnames[] = { | |
4206 | (char *) "self", NULL | |
4207 | }; | |
4208 | ||
4209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
4210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4211 | result = (int) ((arg1)->y); | |
4212 | ||
8edf1c75 | 4213 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4214 | return resultobj; |
4215 | fail: | |
4216 | return NULL; | |
4217 | } | |
4218 | ||
4219 | ||
4220 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4221 | PyObject *resultobj; | |
4222 | wxRect *arg1 = (wxRect *) 0 ; | |
4223 | int arg2 ; | |
4224 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4225 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4226 | char *kwnames[] = { |
4227 | (char *) "self",(char *) "width", NULL | |
4228 | }; | |
4229 | ||
8edf1c75 | 4230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4232 | { |
4233 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4234 | if (PyErr_Occurred()) SWIG_fail; | |
4235 | } | |
d14a1e28 RD |
4236 | if (arg1) (arg1)->width = arg2; |
4237 | ||
4238 | Py_INCREF(Py_None); resultobj = Py_None; | |
4239 | return resultobj; | |
4240 | fail: | |
4241 | return NULL; | |
4242 | } | |
4243 | ||
4244 | ||
4245 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4246 | PyObject *resultobj; | |
4247 | wxRect *arg1 = (wxRect *) 0 ; | |
4248 | int result; | |
4249 | PyObject * obj0 = 0 ; | |
4250 | char *kwnames[] = { | |
4251 | (char *) "self", NULL | |
4252 | }; | |
4253 | ||
4254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
4255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4256 | result = (int) ((arg1)->width); | |
4257 | ||
8edf1c75 | 4258 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4259 | return resultobj; |
4260 | fail: | |
4261 | return NULL; | |
4262 | } | |
4263 | ||
4264 | ||
4265 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4266 | PyObject *resultobj; | |
4267 | wxRect *arg1 = (wxRect *) 0 ; | |
4268 | int arg2 ; | |
4269 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4270 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4271 | char *kwnames[] = { |
4272 | (char *) "self",(char *) "height", NULL | |
4273 | }; | |
4274 | ||
8edf1c75 | 4275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4277 | { |
4278 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4279 | if (PyErr_Occurred()) SWIG_fail; | |
4280 | } | |
d14a1e28 RD |
4281 | if (arg1) (arg1)->height = arg2; |
4282 | ||
4283 | Py_INCREF(Py_None); resultobj = Py_None; | |
4284 | return resultobj; | |
4285 | fail: | |
4286 | return NULL; | |
4287 | } | |
4288 | ||
4289 | ||
4290 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4291 | PyObject *resultobj; | |
4292 | wxRect *arg1 = (wxRect *) 0 ; | |
4293 | int result; | |
4294 | PyObject * obj0 = 0 ; | |
4295 | char *kwnames[] = { | |
4296 | (char *) "self", NULL | |
4297 | }; | |
4298 | ||
4299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
4300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4301 | result = (int) ((arg1)->height); | |
4302 | ||
8edf1c75 | 4303 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4304 | return resultobj; |
4305 | fail: | |
4306 | return NULL; | |
4307 | } | |
4308 | ||
4309 | ||
4310 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4311 | PyObject *resultobj; | |
4312 | wxRect *arg1 = (wxRect *) 0 ; | |
4313 | int arg2 = (int) 0 ; | |
4314 | int arg3 = (int) 0 ; | |
4315 | int arg4 = (int) 0 ; | |
4316 | int arg5 = (int) 0 ; | |
4317 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4318 | PyObject * obj1 = 0 ; |
4319 | PyObject * obj2 = 0 ; | |
4320 | PyObject * obj3 = 0 ; | |
4321 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4322 | char *kwnames[] = { |
4323 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4324 | }; | |
4325 | ||
8edf1c75 | 4326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 4327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4328 | if (obj1) { |
4329 | { | |
4330 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4331 | if (PyErr_Occurred()) SWIG_fail; | |
4332 | } | |
4333 | } | |
4334 | if (obj2) { | |
4335 | { | |
4336 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4337 | if (PyErr_Occurred()) SWIG_fail; | |
4338 | } | |
4339 | } | |
4340 | if (obj3) { | |
4341 | { | |
4342 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
4343 | if (PyErr_Occurred()) SWIG_fail; | |
4344 | } | |
4345 | } | |
4346 | if (obj4) { | |
4347 | { | |
4348 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4349 | if (PyErr_Occurred()) SWIG_fail; | |
4350 | } | |
4351 | } | |
d14a1e28 RD |
4352 | { |
4353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4354 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4355 | ||
4356 | wxPyEndAllowThreads(__tstate); | |
4357 | if (PyErr_Occurred()) SWIG_fail; | |
4358 | } | |
4359 | Py_INCREF(Py_None); resultobj = Py_None; | |
4360 | return resultobj; | |
4361 | fail: | |
4362 | return NULL; | |
4363 | } | |
4364 | ||
4365 | ||
423f194a | 4366 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4367 | PyObject *resultobj; |
4368 | wxRect *arg1 = (wxRect *) 0 ; | |
4369 | PyObject *result; | |
4370 | PyObject * obj0 = 0 ; | |
4371 | char *kwnames[] = { | |
4372 | (char *) "self", NULL | |
4373 | }; | |
4374 | ||
423f194a | 4375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4377 | { | |
4378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4379 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
4380 | |
4381 | wxPyEndAllowThreads(__tstate); | |
4382 | if (PyErr_Occurred()) SWIG_fail; | |
4383 | } | |
4384 | resultobj = result; | |
4385 | return resultobj; | |
4386 | fail: | |
4387 | return NULL; | |
4388 | } | |
4389 | ||
4390 | ||
4391 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4392 | PyObject *obj; | |
4393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4394 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4395 | Py_INCREF(obj); | |
4396 | return Py_BuildValue((char *)""); | |
4397 | } | |
4398 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4399 | PyObject *resultobj; | |
4400 | wxRect *arg1 = (wxRect *) 0 ; | |
4401 | wxRect *arg2 = (wxRect *) 0 ; | |
4402 | PyObject *result; | |
4403 | PyObject * obj0 = 0 ; | |
4404 | PyObject * obj1 = 0 ; | |
4405 | char *kwnames[] = { | |
4406 | (char *) "r1",(char *) "r2", NULL | |
4407 | }; | |
4408 | ||
4409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4411 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4412 | { | |
4413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4414 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4415 | ||
4416 | wxPyEndAllowThreads(__tstate); | |
4417 | if (PyErr_Occurred()) SWIG_fail; | |
4418 | } | |
4419 | resultobj = result; | |
4420 | return resultobj; | |
4421 | fail: | |
4422 | return NULL; | |
4423 | } | |
4424 | ||
4425 | ||
4426 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4427 | PyObject *resultobj; | |
4428 | double arg1 = (double) 0.0 ; | |
4429 | double arg2 = (double) 0.0 ; | |
4430 | wxPoint2D *result; | |
8edf1c75 RD |
4431 | PyObject * obj0 = 0 ; |
4432 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
4433 | char *kwnames[] = { |
4434 | (char *) "x",(char *) "y", NULL | |
4435 | }; | |
4436 | ||
8edf1c75 RD |
4437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; |
4438 | if (obj0) { | |
4439 | { | |
4440 | arg1 = (double) SWIG_PyObj_AsDouble(obj0); | |
4441 | if (PyErr_Occurred()) SWIG_fail; | |
4442 | } | |
4443 | } | |
4444 | if (obj1) { | |
4445 | { | |
4446 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
4447 | if (PyErr_Occurred()) SWIG_fail; | |
4448 | } | |
4449 | } | |
d14a1e28 RD |
4450 | { |
4451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4452 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4453 | ||
4454 | wxPyEndAllowThreads(__tstate); | |
4455 | if (PyErr_Occurred()) SWIG_fail; | |
4456 | } | |
4457 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4458 | return resultobj; | |
4459 | fail: | |
4460 | return NULL; | |
4461 | } | |
4462 | ||
4463 | ||
4464 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4465 | PyObject *resultobj; | |
4466 | wxPoint2D *arg1 = 0 ; | |
4467 | wxPoint2D *result; | |
4468 | wxPoint2D temp1 ; | |
4469 | PyObject * obj0 = 0 ; | |
4470 | char *kwnames[] = { | |
4471 | (char *) "pt", NULL | |
4472 | }; | |
4473 | ||
4474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4475 | { | |
4476 | arg1 = &temp1; | |
4477 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4478 | } | |
4479 | { | |
4480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4481 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4482 | ||
4483 | wxPyEndAllowThreads(__tstate); | |
4484 | if (PyErr_Occurred()) SWIG_fail; | |
4485 | } | |
4486 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4487 | return resultobj; | |
4488 | fail: | |
4489 | return NULL; | |
4490 | } | |
4491 | ||
4492 | ||
4493 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4494 | PyObject *resultobj; | |
4495 | wxPoint *arg1 = 0 ; | |
4496 | wxPoint2D *result; | |
4497 | wxPoint temp1 ; | |
4498 | PyObject * obj0 = 0 ; | |
4499 | char *kwnames[] = { | |
4500 | (char *) "pt", NULL | |
4501 | }; | |
4502 | ||
4503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4504 | { | |
4505 | arg1 = &temp1; | |
4506 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4507 | } | |
4508 | { | |
4509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4510 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4511 | ||
4512 | wxPyEndAllowThreads(__tstate); | |
4513 | if (PyErr_Occurred()) SWIG_fail; | |
4514 | } | |
4515 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1); | |
4516 | return resultobj; | |
4517 | fail: | |
4518 | return NULL; | |
4519 | } | |
4520 | ||
4521 | ||
4522 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4523 | PyObject *resultobj; | |
4524 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4525 | int *arg2 = (int *) 0 ; | |
4526 | int *arg3 = (int *) 0 ; | |
4527 | int temp2 ; | |
4528 | int temp3 ; | |
4529 | PyObject * obj0 = 0 ; | |
4530 | char *kwnames[] = { | |
4531 | (char *) "self", NULL | |
4532 | }; | |
4533 | ||
4534 | arg2 = &temp2; | |
4535 | arg3 = &temp3; | |
4536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
4537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4538 | { | |
4539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4540 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4541 | ||
4542 | wxPyEndAllowThreads(__tstate); | |
4543 | if (PyErr_Occurred()) SWIG_fail; | |
4544 | } | |
4545 | Py_INCREF(Py_None); resultobj = Py_None; | |
4546 | { | |
4547 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4548 | resultobj = t_output_helper(resultobj,o); | |
4549 | } | |
4550 | { | |
4551 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4552 | resultobj = t_output_helper(resultobj,o); | |
4553 | } | |
4554 | return resultobj; | |
4555 | fail: | |
4556 | return NULL; | |
4557 | } | |
4558 | ||
4559 | ||
4560 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4561 | PyObject *resultobj; | |
4562 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4563 | int *arg2 = (int *) 0 ; | |
4564 | int *arg3 = (int *) 0 ; | |
4565 | int temp2 ; | |
4566 | int temp3 ; | |
4567 | PyObject * obj0 = 0 ; | |
4568 | char *kwnames[] = { | |
4569 | (char *) "self", NULL | |
4570 | }; | |
4571 | ||
4572 | arg2 = &temp2; | |
4573 | arg3 = &temp3; | |
4574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
4575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4576 | { | |
4577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4578 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4579 | ||
4580 | wxPyEndAllowThreads(__tstate); | |
4581 | if (PyErr_Occurred()) SWIG_fail; | |
4582 | } | |
4583 | Py_INCREF(Py_None); resultobj = Py_None; | |
4584 | { | |
4585 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4586 | resultobj = t_output_helper(resultobj,o); | |
4587 | } | |
4588 | { | |
4589 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4590 | resultobj = t_output_helper(resultobj,o); | |
4591 | } | |
4592 | return resultobj; | |
4593 | fail: | |
4594 | return NULL; | |
4595 | } | |
4596 | ||
4597 | ||
4598 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4599 | PyObject *resultobj; | |
4600 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4601 | double result; | |
4602 | PyObject * obj0 = 0 ; | |
4603 | char *kwnames[] = { | |
4604 | (char *) "self", NULL | |
4605 | }; | |
4606 | ||
4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
4608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4609 | { | |
4610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4611 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4612 | ||
4613 | wxPyEndAllowThreads(__tstate); | |
4614 | if (PyErr_Occurred()) SWIG_fail; | |
4615 | } | |
8edf1c75 | 4616 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4617 | return resultobj; |
4618 | fail: | |
4619 | return NULL; | |
4620 | } | |
4621 | ||
4622 | ||
4623 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4624 | PyObject *resultobj; | |
4625 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4626 | double result; | |
4627 | PyObject * obj0 = 0 ; | |
4628 | char *kwnames[] = { | |
4629 | (char *) "self", NULL | |
4630 | }; | |
4631 | ||
4632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
4633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4634 | { | |
4635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4636 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4637 | ||
4638 | wxPyEndAllowThreads(__tstate); | |
4639 | if (PyErr_Occurred()) SWIG_fail; | |
4640 | } | |
8edf1c75 | 4641 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4642 | return resultobj; |
4643 | fail: | |
4644 | return NULL; | |
4645 | } | |
4646 | ||
4647 | ||
4648 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4649 | PyObject *resultobj; | |
4650 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4651 | double arg2 ; | |
4652 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4653 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4654 | char *kwnames[] = { |
4655 | (char *) "self",(char *) "length", NULL | |
4656 | }; | |
4657 | ||
8edf1c75 | 4658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4660 | { |
4661 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
4662 | if (PyErr_Occurred()) SWIG_fail; | |
4663 | } | |
d14a1e28 RD |
4664 | { |
4665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4666 | (arg1)->SetVectorLength(arg2); | |
4667 | ||
4668 | wxPyEndAllowThreads(__tstate); | |
4669 | if (PyErr_Occurred()) SWIG_fail; | |
4670 | } | |
4671 | Py_INCREF(Py_None); resultobj = Py_None; | |
4672 | return resultobj; | |
4673 | fail: | |
4674 | return NULL; | |
4675 | } | |
4676 | ||
4677 | ||
4678 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4679 | PyObject *resultobj; | |
4680 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4681 | double arg2 ; | |
4682 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4683 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4684 | char *kwnames[] = { |
4685 | (char *) "self",(char *) "degrees", NULL | |
4686 | }; | |
4687 | ||
8edf1c75 | 4688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4690 | { |
4691 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
4692 | if (PyErr_Occurred()) SWIG_fail; | |
4693 | } | |
d14a1e28 RD |
4694 | { |
4695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4696 | (arg1)->SetVectorAngle(arg2); | |
4697 | ||
4698 | wxPyEndAllowThreads(__tstate); | |
4699 | if (PyErr_Occurred()) SWIG_fail; | |
4700 | } | |
4701 | Py_INCREF(Py_None); resultobj = Py_None; | |
4702 | return resultobj; | |
4703 | fail: | |
4704 | return NULL; | |
4705 | } | |
4706 | ||
4707 | ||
4708 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4709 | PyObject *resultobj; | |
4710 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4711 | wxPoint2D *arg2 = 0 ; | |
4712 | double result; | |
4713 | wxPoint2D temp2 ; | |
4714 | PyObject * obj0 = 0 ; | |
4715 | PyObject * obj1 = 0 ; | |
4716 | char *kwnames[] = { | |
4717 | (char *) "self",(char *) "pt", NULL | |
4718 | }; | |
4719 | ||
4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
4721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4722 | { | |
4723 | arg2 = &temp2; | |
4724 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4725 | } | |
4726 | { | |
4727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4728 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
4729 | ||
4730 | wxPyEndAllowThreads(__tstate); | |
4731 | if (PyErr_Occurred()) SWIG_fail; | |
4732 | } | |
8edf1c75 | 4733 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4734 | return resultobj; |
4735 | fail: | |
4736 | return NULL; | |
4737 | } | |
4738 | ||
4739 | ||
4740 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4741 | PyObject *resultobj; | |
4742 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4743 | wxPoint2D *arg2 = 0 ; | |
4744 | double result; | |
4745 | wxPoint2D temp2 ; | |
4746 | PyObject * obj0 = 0 ; | |
4747 | PyObject * obj1 = 0 ; | |
4748 | char *kwnames[] = { | |
4749 | (char *) "self",(char *) "pt", NULL | |
4750 | }; | |
4751 | ||
4752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
4753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4754 | { | |
4755 | arg2 = &temp2; | |
4756 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4757 | } | |
4758 | { | |
4759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4760 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
4761 | ||
4762 | wxPyEndAllowThreads(__tstate); | |
4763 | if (PyErr_Occurred()) SWIG_fail; | |
4764 | } | |
8edf1c75 | 4765 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4766 | return resultobj; |
4767 | fail: | |
4768 | return NULL; | |
4769 | } | |
4770 | ||
4771 | ||
4772 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4773 | PyObject *resultobj; | |
4774 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4775 | wxPoint2D *arg2 = 0 ; | |
4776 | double result; | |
4777 | wxPoint2D temp2 ; | |
4778 | PyObject * obj0 = 0 ; | |
4779 | PyObject * obj1 = 0 ; | |
4780 | char *kwnames[] = { | |
4781 | (char *) "self",(char *) "vec", NULL | |
4782 | }; | |
4783 | ||
4784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
4785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4786 | { | |
4787 | arg2 = &temp2; | |
4788 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4789 | } | |
4790 | { | |
4791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4792 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
4793 | ||
4794 | wxPyEndAllowThreads(__tstate); | |
4795 | if (PyErr_Occurred()) SWIG_fail; | |
4796 | } | |
8edf1c75 | 4797 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4798 | return resultobj; |
4799 | fail: | |
4800 | return NULL; | |
4801 | } | |
4802 | ||
4803 | ||
4804 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4805 | PyObject *resultobj; | |
4806 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4807 | wxPoint2D *arg2 = 0 ; | |
4808 | double result; | |
4809 | wxPoint2D temp2 ; | |
4810 | PyObject * obj0 = 0 ; | |
4811 | PyObject * obj1 = 0 ; | |
4812 | char *kwnames[] = { | |
4813 | (char *) "self",(char *) "vec", NULL | |
4814 | }; | |
4815 | ||
4816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
4817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4818 | { | |
4819 | arg2 = &temp2; | |
4820 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4821 | } | |
4822 | { | |
4823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4824 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
4825 | ||
4826 | wxPyEndAllowThreads(__tstate); | |
4827 | if (PyErr_Occurred()) SWIG_fail; | |
4828 | } | |
8edf1c75 | 4829 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
4830 | return resultobj; |
4831 | fail: | |
4832 | return NULL; | |
4833 | } | |
4834 | ||
4835 | ||
4836 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4837 | PyObject *resultobj; | |
4838 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4839 | wxPoint2D result; | |
4840 | PyObject * obj0 = 0 ; | |
4841 | char *kwnames[] = { | |
4842 | (char *) "self", NULL | |
4843 | }; | |
4844 | ||
4845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
4846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4847 | { | |
4848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4849 | result = (arg1)->operator -(); | |
4850 | ||
4851 | wxPyEndAllowThreads(__tstate); | |
4852 | if (PyErr_Occurred()) SWIG_fail; | |
4853 | } | |
4854 | { | |
4855 | wxPoint2D * resultptr; | |
4856 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
4857 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint2D, 1); | |
4858 | } | |
4859 | return resultobj; | |
4860 | fail: | |
4861 | return NULL; | |
4862 | } | |
4863 | ||
4864 | ||
4865 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4866 | PyObject *resultobj; | |
4867 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4868 | wxPoint2D *arg2 = 0 ; | |
4869 | wxPoint2D *result; | |
4870 | wxPoint2D temp2 ; | |
4871 | PyObject * obj0 = 0 ; | |
4872 | PyObject * obj1 = 0 ; | |
4873 | char *kwnames[] = { | |
4874 | (char *) "self",(char *) "pt", NULL | |
4875 | }; | |
4876 | ||
4877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4879 | { | |
4880 | arg2 = &temp2; | |
4881 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4882 | } | |
4883 | { | |
4884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4885 | { | |
4886 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
4887 | result = (wxPoint2D *) &_result_ref; | |
4888 | } | |
4889 | ||
4890 | wxPyEndAllowThreads(__tstate); | |
4891 | if (PyErr_Occurred()) SWIG_fail; | |
4892 | } | |
4893 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4894 | return resultobj; | |
4895 | fail: | |
4896 | return NULL; | |
4897 | } | |
4898 | ||
4899 | ||
4900 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4901 | PyObject *resultobj; | |
4902 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4903 | wxPoint2D *arg2 = 0 ; | |
4904 | wxPoint2D *result; | |
4905 | wxPoint2D temp2 ; | |
4906 | PyObject * obj0 = 0 ; | |
4907 | PyObject * obj1 = 0 ; | |
4908 | char *kwnames[] = { | |
4909 | (char *) "self",(char *) "pt", NULL | |
4910 | }; | |
4911 | ||
4912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
4913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4914 | { | |
4915 | arg2 = &temp2; | |
4916 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4917 | } | |
4918 | { | |
4919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4920 | { | |
4921 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
4922 | result = (wxPoint2D *) &_result_ref; | |
4923 | } | |
4924 | ||
4925 | wxPyEndAllowThreads(__tstate); | |
4926 | if (PyErr_Occurred()) SWIG_fail; | |
4927 | } | |
4928 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4929 | return resultobj; | |
4930 | fail: | |
4931 | return NULL; | |
4932 | } | |
4933 | ||
4934 | ||
4935 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4936 | PyObject *resultobj; | |
4937 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4938 | wxPoint2D *arg2 = 0 ; | |
4939 | wxPoint2D *result; | |
4940 | wxPoint2D temp2 ; | |
4941 | PyObject * obj0 = 0 ; | |
4942 | PyObject * obj1 = 0 ; | |
4943 | char *kwnames[] = { | |
4944 | (char *) "self",(char *) "pt", NULL | |
4945 | }; | |
4946 | ||
4947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
4948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4949 | { | |
4950 | arg2 = &temp2; | |
4951 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4952 | } | |
4953 | { | |
4954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4955 | { | |
4956 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
4957 | result = (wxPoint2D *) &_result_ref; | |
4958 | } | |
4959 | ||
4960 | wxPyEndAllowThreads(__tstate); | |
4961 | if (PyErr_Occurred()) SWIG_fail; | |
4962 | } | |
4963 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4964 | return resultobj; | |
4965 | fail: | |
4966 | return NULL; | |
4967 | } | |
4968 | ||
4969 | ||
4970 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4971 | PyObject *resultobj; | |
4972 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4973 | wxPoint2D *arg2 = 0 ; | |
4974 | wxPoint2D *result; | |
4975 | wxPoint2D temp2 ; | |
4976 | PyObject * obj0 = 0 ; | |
4977 | PyObject * obj1 = 0 ; | |
4978 | char *kwnames[] = { | |
4979 | (char *) "self",(char *) "pt", NULL | |
4980 | }; | |
4981 | ||
4982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
4983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4984 | { | |
4985 | arg2 = &temp2; | |
4986 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4987 | } | |
4988 | { | |
4989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4990 | { | |
4991 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
4992 | result = (wxPoint2D *) &_result_ref; | |
4993 | } | |
4994 | ||
4995 | wxPyEndAllowThreads(__tstate); | |
4996 | if (PyErr_Occurred()) SWIG_fail; | |
4997 | } | |
4998 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0); | |
4999 | return resultobj; | |
5000 | fail: | |
5001 | return NULL; | |
5002 | } | |
5003 | ||
5004 | ||
5005 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5006 | PyObject *resultobj; | |
5007 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5008 | wxPoint2D *arg2 = 0 ; | |
5009 | bool result; | |
5010 | wxPoint2D temp2 ; | |
5011 | PyObject * obj0 = 0 ; | |
5012 | PyObject * obj1 = 0 ; | |
5013 | char *kwnames[] = { | |
5014 | (char *) "self",(char *) "pt", NULL | |
5015 | }; | |
5016 | ||
5017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
5018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5019 | { | |
5020 | arg2 = &temp2; | |
5021 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5022 | } | |
5023 | { | |
5024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5025 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5026 | ||
5027 | wxPyEndAllowThreads(__tstate); | |
5028 | if (PyErr_Occurred()) SWIG_fail; | |
5029 | } | |
8edf1c75 | 5030 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5031 | return resultobj; |
5032 | fail: | |
5033 | return NULL; | |
5034 | } | |
5035 | ||
5036 | ||
5037 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5038 | PyObject *resultobj; | |
5039 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5040 | wxPoint2D *arg2 = 0 ; | |
5041 | bool result; | |
5042 | wxPoint2D temp2 ; | |
5043 | PyObject * obj0 = 0 ; | |
5044 | PyObject * obj1 = 0 ; | |
5045 | char *kwnames[] = { | |
5046 | (char *) "self",(char *) "pt", NULL | |
5047 | }; | |
5048 | ||
5049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
5050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5051 | { | |
5052 | arg2 = &temp2; | |
5053 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5054 | } | |
5055 | { | |
5056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5057 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5058 | ||
5059 | wxPyEndAllowThreads(__tstate); | |
5060 | if (PyErr_Occurred()) SWIG_fail; | |
5061 | } | |
8edf1c75 | 5062 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5063 | return resultobj; |
5064 | fail: | |
5065 | return NULL; | |
5066 | } | |
5067 | ||
5068 | ||
d14a1e28 RD |
5069 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
5070 | PyObject *resultobj; | |
5071 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5072 | double arg2 ; | |
5073 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5074 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5075 | char *kwnames[] = { |
5076 | (char *) "self",(char *) "m_x", NULL | |
5077 | }; | |
5078 | ||
8edf1c75 | 5079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5081 | { |
5082 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
5083 | if (PyErr_Occurred()) SWIG_fail; | |
5084 | } | |
d14a1e28 RD |
5085 | if (arg1) (arg1)->m_x = arg2; |
5086 | ||
5087 | Py_INCREF(Py_None); resultobj = Py_None; | |
5088 | return resultobj; | |
5089 | fail: | |
5090 | return NULL; | |
5091 | } | |
5092 | ||
5093 | ||
5094 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5095 | PyObject *resultobj; | |
5096 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5097 | double result; | |
5098 | PyObject * obj0 = 0 ; | |
5099 | char *kwnames[] = { | |
5100 | (char *) "self", NULL | |
5101 | }; | |
5102 | ||
5103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
5104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5105 | result = (double) ((arg1)->m_x); | |
5106 | ||
8edf1c75 | 5107 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
5108 | return resultobj; |
5109 | fail: | |
5110 | return NULL; | |
5111 | } | |
5112 | ||
5113 | ||
5114 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5115 | PyObject *resultobj; | |
5116 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5117 | double arg2 ; | |
5118 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5119 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5120 | char *kwnames[] = { |
5121 | (char *) "self",(char *) "m_y", NULL | |
5122 | }; | |
5123 | ||
8edf1c75 | 5124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5126 | { |
5127 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
5128 | if (PyErr_Occurred()) SWIG_fail; | |
5129 | } | |
d14a1e28 RD |
5130 | if (arg1) (arg1)->m_y = arg2; |
5131 | ||
5132 | Py_INCREF(Py_None); resultobj = Py_None; | |
5133 | return resultobj; | |
5134 | fail: | |
5135 | return NULL; | |
5136 | } | |
5137 | ||
5138 | ||
5139 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5140 | PyObject *resultobj; | |
5141 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5142 | double result; | |
5143 | PyObject * obj0 = 0 ; | |
5144 | char *kwnames[] = { | |
5145 | (char *) "self", NULL | |
5146 | }; | |
5147 | ||
5148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
5149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5150 | result = (double) ((arg1)->m_y); | |
5151 | ||
8edf1c75 | 5152 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
5153 | return resultobj; |
5154 | fail: | |
5155 | return NULL; | |
5156 | } | |
5157 | ||
5158 | ||
5159 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5160 | PyObject *resultobj; | |
5161 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5162 | double arg2 = (double) 0 ; | |
5163 | double arg3 = (double) 0 ; | |
5164 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5165 | PyObject * obj1 = 0 ; |
5166 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5167 | char *kwnames[] = { |
5168 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5169 | }; | |
5170 | ||
8edf1c75 | 5171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5173 | if (obj1) { |
5174 | { | |
5175 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
5176 | if (PyErr_Occurred()) SWIG_fail; | |
5177 | } | |
5178 | } | |
5179 | if (obj2) { | |
5180 | { | |
5181 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
5182 | if (PyErr_Occurred()) SWIG_fail; | |
5183 | } | |
5184 | } | |
d14a1e28 RD |
5185 | { |
5186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5187 | wxPoint2D_Set(arg1,arg2,arg3); | |
5188 | ||
5189 | wxPyEndAllowThreads(__tstate); | |
5190 | if (PyErr_Occurred()) SWIG_fail; | |
5191 | } | |
5192 | Py_INCREF(Py_None); resultobj = Py_None; | |
5193 | return resultobj; | |
5194 | fail: | |
5195 | return NULL; | |
5196 | } | |
5197 | ||
5198 | ||
423f194a | 5199 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5200 | PyObject *resultobj; |
5201 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5202 | PyObject *result; | |
5203 | PyObject * obj0 = 0 ; | |
5204 | char *kwnames[] = { | |
5205 | (char *) "self", NULL | |
5206 | }; | |
5207 | ||
423f194a | 5208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
5209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5210 | { | |
5211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5212 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
5213 | |
5214 | wxPyEndAllowThreads(__tstate); | |
5215 | if (PyErr_Occurred()) SWIG_fail; | |
5216 | } | |
5217 | resultobj = result; | |
5218 | return resultobj; | |
5219 | fail: | |
5220 | return NULL; | |
5221 | } | |
5222 | ||
5223 | ||
5224 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5225 | PyObject *obj; | |
5226 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5227 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5228 | Py_INCREF(obj); | |
5229 | return Py_BuildValue((char *)""); | |
5230 | } | |
8edf1c75 | 5231 | static int _wrap_DefaultPosition_set(PyObject *) { |
d14a1e28 RD |
5232 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
5233 | return 1; | |
5234 | } | |
5235 | ||
5236 | ||
5237 | static PyObject *_wrap_DefaultPosition_get() { | |
5238 | PyObject *pyobj; | |
5239 | ||
5240 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultPosition, SWIGTYPE_p_wxPoint, 0); | |
5241 | return pyobj; | |
5242 | } | |
5243 | ||
5244 | ||
8edf1c75 | 5245 | static int _wrap_DefaultSize_set(PyObject *) { |
d14a1e28 RD |
5246 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
5247 | return 1; | |
5248 | } | |
5249 | ||
5250 | ||
5251 | static PyObject *_wrap_DefaultSize_get() { | |
5252 | PyObject *pyobj; | |
5253 | ||
5254 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSize, SWIGTYPE_p_wxSize, 0); | |
5255 | return pyobj; | |
5256 | } | |
5257 | ||
5258 | ||
5259 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5260 | PyObject *resultobj; | |
5261 | PyObject *arg1 = (PyObject *) 0 ; | |
5262 | wxPyInputStream *result; | |
5263 | PyObject * obj0 = 0 ; | |
5264 | char *kwnames[] = { | |
5265 | (char *) "p", NULL | |
5266 | }; | |
5267 | ||
5268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5269 | arg1 = obj0; | |
5270 | { | |
5271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5272 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5273 | ||
5274 | wxPyEndAllowThreads(__tstate); | |
5275 | if (PyErr_Occurred()) SWIG_fail; | |
5276 | } | |
5277 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyInputStream, 1); | |
5278 | return resultobj; | |
5279 | fail: | |
5280 | return NULL; | |
5281 | } | |
5282 | ||
5283 | ||
5284 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5285 | PyObject *resultobj; | |
5286 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5287 | PyObject * obj0 = 0 ; | |
5288 | char *kwnames[] = { | |
5289 | (char *) "self", NULL | |
5290 | }; | |
5291 | ||
5292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
5293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5294 | { | |
5295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5296 | (arg1)->close(); | |
5297 | ||
5298 | wxPyEndAllowThreads(__tstate); | |
5299 | if (PyErr_Occurred()) SWIG_fail; | |
5300 | } | |
5301 | Py_INCREF(Py_None); resultobj = Py_None; | |
5302 | return resultobj; | |
5303 | fail: | |
5304 | return NULL; | |
5305 | } | |
5306 | ||
5307 | ||
5308 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5309 | PyObject *resultobj; | |
5310 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5311 | PyObject * obj0 = 0 ; | |
5312 | char *kwnames[] = { | |
5313 | (char *) "self", NULL | |
5314 | }; | |
5315 | ||
5316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
5317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5318 | { | |
5319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5320 | (arg1)->flush(); | |
5321 | ||
5322 | wxPyEndAllowThreads(__tstate); | |
5323 | if (PyErr_Occurred()) SWIG_fail; | |
5324 | } | |
5325 | Py_INCREF(Py_None); resultobj = Py_None; | |
5326 | return resultobj; | |
5327 | fail: | |
5328 | return NULL; | |
5329 | } | |
5330 | ||
5331 | ||
5332 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5333 | PyObject *resultobj; | |
5334 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5335 | bool result; | |
5336 | PyObject * obj0 = 0 ; | |
5337 | char *kwnames[] = { | |
5338 | (char *) "self", NULL | |
5339 | }; | |
5340 | ||
5341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
5342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5343 | { | |
5344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5345 | result = (bool)(arg1)->eof(); | |
5346 | ||
5347 | wxPyEndAllowThreads(__tstate); | |
5348 | if (PyErr_Occurred()) SWIG_fail; | |
5349 | } | |
8edf1c75 | 5350 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5351 | return resultobj; |
5352 | fail: | |
5353 | return NULL; | |
5354 | } | |
5355 | ||
5356 | ||
5357 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5358 | PyObject *resultobj; | |
5359 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5360 | int arg2 = (int) -1 ; | |
5361 | PyObject *result; | |
5362 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5363 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5364 | char *kwnames[] = { |
5365 | (char *) "self",(char *) "size", NULL | |
5366 | }; | |
5367 | ||
8edf1c75 | 5368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5370 | if (obj1) { |
5371 | { | |
5372 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5373 | if (PyErr_Occurred()) SWIG_fail; | |
5374 | } | |
5375 | } | |
d14a1e28 RD |
5376 | { |
5377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5378 | result = (PyObject *)(arg1)->read(arg2); | |
5379 | ||
5380 | wxPyEndAllowThreads(__tstate); | |
5381 | if (PyErr_Occurred()) SWIG_fail; | |
5382 | } | |
5383 | resultobj = result; | |
5384 | return resultobj; | |
5385 | fail: | |
5386 | return NULL; | |
5387 | } | |
5388 | ||
5389 | ||
5390 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5391 | PyObject *resultobj; | |
5392 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5393 | int arg2 = (int) -1 ; | |
5394 | PyObject *result; | |
5395 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5396 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5397 | char *kwnames[] = { |
5398 | (char *) "self",(char *) "size", NULL | |
5399 | }; | |
5400 | ||
8edf1c75 | 5401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5403 | if (obj1) { |
5404 | { | |
5405 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5406 | if (PyErr_Occurred()) SWIG_fail; | |
5407 | } | |
5408 | } | |
d14a1e28 RD |
5409 | { |
5410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5411 | result = (PyObject *)(arg1)->readline(arg2); | |
5412 | ||
5413 | wxPyEndAllowThreads(__tstate); | |
5414 | if (PyErr_Occurred()) SWIG_fail; | |
5415 | } | |
5416 | resultobj = result; | |
5417 | return resultobj; | |
5418 | fail: | |
5419 | return NULL; | |
5420 | } | |
5421 | ||
5422 | ||
5423 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5424 | PyObject *resultobj; | |
5425 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5426 | int arg2 = (int) -1 ; | |
5427 | PyObject *result; | |
5428 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5429 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5430 | char *kwnames[] = { |
5431 | (char *) "self",(char *) "sizehint", NULL | |
5432 | }; | |
5433 | ||
8edf1c75 | 5434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5436 | if (obj1) { |
5437 | { | |
5438 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5439 | if (PyErr_Occurred()) SWIG_fail; | |
5440 | } | |
5441 | } | |
d14a1e28 RD |
5442 | { |
5443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5444 | result = (PyObject *)(arg1)->readlines(arg2); | |
5445 | ||
5446 | wxPyEndAllowThreads(__tstate); | |
5447 | if (PyErr_Occurred()) SWIG_fail; | |
5448 | } | |
5449 | resultobj = result; | |
5450 | return resultobj; | |
5451 | fail: | |
5452 | return NULL; | |
5453 | } | |
5454 | ||
5455 | ||
5456 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5457 | PyObject *resultobj; | |
5458 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5459 | int arg2 ; | |
5460 | int arg3 = (int) 0 ; | |
5461 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5462 | PyObject * obj1 = 0 ; |
5463 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5464 | char *kwnames[] = { |
5465 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5466 | }; | |
5467 | ||
8edf1c75 | 5468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5470 | { |
5471 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5472 | if (PyErr_Occurred()) SWIG_fail; | |
5473 | } | |
5474 | if (obj2) { | |
5475 | { | |
5476 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5477 | if (PyErr_Occurred()) SWIG_fail; | |
5478 | } | |
5479 | } | |
d14a1e28 RD |
5480 | { |
5481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5482 | (arg1)->seek(arg2,arg3); | |
5483 | ||
5484 | wxPyEndAllowThreads(__tstate); | |
5485 | if (PyErr_Occurred()) SWIG_fail; | |
5486 | } | |
5487 | Py_INCREF(Py_None); resultobj = Py_None; | |
5488 | return resultobj; | |
5489 | fail: | |
5490 | return NULL; | |
5491 | } | |
5492 | ||
5493 | ||
5494 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5495 | PyObject *resultobj; | |
5496 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5497 | int result; | |
5498 | PyObject * obj0 = 0 ; | |
5499 | char *kwnames[] = { | |
5500 | (char *) "self", NULL | |
5501 | }; | |
5502 | ||
5503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
5504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5505 | { | |
5506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5507 | result = (int)(arg1)->tell(); | |
5508 | ||
5509 | wxPyEndAllowThreads(__tstate); | |
5510 | if (PyErr_Occurred()) SWIG_fail; | |
5511 | } | |
8edf1c75 | 5512 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5513 | return resultobj; |
5514 | fail: | |
5515 | return NULL; | |
5516 | } | |
5517 | ||
5518 | ||
5519 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5520 | PyObject *resultobj; | |
5521 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5522 | char result; | |
5523 | PyObject * obj0 = 0 ; | |
5524 | char *kwnames[] = { | |
5525 | (char *) "self", NULL | |
5526 | }; | |
5527 | ||
5528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
5529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5530 | { | |
5531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5532 | result = (char)(arg1)->Peek(); | |
5533 | ||
5534 | wxPyEndAllowThreads(__tstate); | |
5535 | if (PyErr_Occurred()) SWIG_fail; | |
5536 | } | |
8edf1c75 | 5537 | resultobj = SWIG_PyObj_FromChar((char)result); |
d14a1e28 RD |
5538 | return resultobj; |
5539 | fail: | |
5540 | return NULL; | |
5541 | } | |
5542 | ||
5543 | ||
5544 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5545 | PyObject *resultobj; | |
5546 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5547 | char result; | |
5548 | PyObject * obj0 = 0 ; | |
5549 | char *kwnames[] = { | |
5550 | (char *) "self", NULL | |
5551 | }; | |
5552 | ||
5553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
5554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5555 | { | |
5556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5557 | result = (char)(arg1)->GetC(); | |
5558 | ||
5559 | wxPyEndAllowThreads(__tstate); | |
5560 | if (PyErr_Occurred()) SWIG_fail; | |
5561 | } | |
8edf1c75 | 5562 | resultobj = SWIG_PyObj_FromChar((char)result); |
d14a1e28 RD |
5563 | return resultobj; |
5564 | fail: | |
5565 | return NULL; | |
5566 | } | |
5567 | ||
5568 | ||
5569 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5570 | PyObject *resultobj; | |
5571 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5572 | size_t result; | |
5573 | PyObject * obj0 = 0 ; | |
5574 | char *kwnames[] = { | |
5575 | (char *) "self", NULL | |
5576 | }; | |
5577 | ||
5578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
5579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5580 | { | |
5581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5582 | result = (size_t)(arg1)->LastRead(); | |
5583 | ||
5584 | wxPyEndAllowThreads(__tstate); | |
5585 | if (PyErr_Occurred()) SWIG_fail; | |
5586 | } | |
8edf1c75 | 5587 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
5588 | return resultobj; |
5589 | fail: | |
5590 | return NULL; | |
5591 | } | |
5592 | ||
5593 | ||
5594 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5595 | PyObject *resultobj; | |
5596 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5597 | bool result; | |
5598 | PyObject * obj0 = 0 ; | |
5599 | char *kwnames[] = { | |
5600 | (char *) "self", NULL | |
5601 | }; | |
5602 | ||
5603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
5604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5605 | { | |
5606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5607 | result = (bool)(arg1)->CanRead(); | |
5608 | ||
5609 | wxPyEndAllowThreads(__tstate); | |
5610 | if (PyErr_Occurred()) SWIG_fail; | |
5611 | } | |
8edf1c75 | 5612 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5613 | return resultobj; |
5614 | fail: | |
5615 | return NULL; | |
5616 | } | |
5617 | ||
5618 | ||
5619 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5620 | PyObject *resultobj; | |
5621 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5622 | bool result; | |
5623 | PyObject * obj0 = 0 ; | |
5624 | char *kwnames[] = { | |
5625 | (char *) "self", NULL | |
5626 | }; | |
5627 | ||
5628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
5629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5630 | { | |
5631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5632 | result = (bool)(arg1)->Eof(); | |
5633 | ||
5634 | wxPyEndAllowThreads(__tstate); | |
5635 | if (PyErr_Occurred()) SWIG_fail; | |
5636 | } | |
8edf1c75 | 5637 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5638 | return resultobj; |
5639 | fail: | |
5640 | return NULL; | |
5641 | } | |
5642 | ||
5643 | ||
5644 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5645 | PyObject *resultobj; | |
5646 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5647 | char arg2 ; | |
5648 | bool result; | |
5649 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5650 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5651 | char *kwnames[] = { |
5652 | (char *) "self",(char *) "c", NULL | |
5653 | }; | |
5654 | ||
8edf1c75 | 5655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5657 | { |
5658 | arg2 = (char) SWIG_PyObj_AsChar(obj1); | |
5659 | if (PyErr_Occurred()) SWIG_fail; | |
5660 | } | |
d14a1e28 RD |
5661 | { |
5662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5663 | result = (bool)(arg1)->Ungetch(arg2); | |
5664 | ||
5665 | wxPyEndAllowThreads(__tstate); | |
5666 | if (PyErr_Occurred()) SWIG_fail; | |
5667 | } | |
8edf1c75 | 5668 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5669 | return resultobj; |
5670 | fail: | |
5671 | return NULL; | |
5672 | } | |
5673 | ||
5674 | ||
5675 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5676 | PyObject *resultobj; | |
5677 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5678 | long arg2 ; | |
5679 | int arg3 = (int) wxFromStart ; | |
5680 | long result; | |
5681 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5682 | PyObject * obj1 = 0 ; |
5683 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5684 | char *kwnames[] = { |
5685 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
5686 | }; | |
5687 | ||
8edf1c75 | 5688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5690 | { |
5691 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
5692 | if (PyErr_Occurred()) SWIG_fail; | |
5693 | } | |
5694 | if (obj2) { | |
5695 | { | |
5696 | arg3 = (wxSeekMode) SWIG_PyObj_AsInt(obj2); | |
5697 | if (PyErr_Occurred()) SWIG_fail; | |
5698 | } | |
5699 | } | |
d14a1e28 RD |
5700 | { |
5701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5702 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
5703 | ||
5704 | wxPyEndAllowThreads(__tstate); | |
5705 | if (PyErr_Occurred()) SWIG_fail; | |
5706 | } | |
8edf1c75 | 5707 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
5708 | return resultobj; |
5709 | fail: | |
5710 | return NULL; | |
5711 | } | |
5712 | ||
5713 | ||
5714 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5715 | PyObject *resultobj; | |
5716 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5717 | long result; | |
5718 | PyObject * obj0 = 0 ; | |
5719 | char *kwnames[] = { | |
5720 | (char *) "self", NULL | |
5721 | }; | |
5722 | ||
5723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
5724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5725 | { | |
5726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5727 | result = (long)(arg1)->TellI(); | |
5728 | ||
5729 | wxPyEndAllowThreads(__tstate); | |
5730 | if (PyErr_Occurred()) SWIG_fail; | |
5731 | } | |
8edf1c75 | 5732 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
5733 | return resultobj; |
5734 | fail: | |
5735 | return NULL; | |
5736 | } | |
5737 | ||
5738 | ||
5739 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
5740 | PyObject *obj; | |
5741 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5742 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
5743 | Py_INCREF(obj); | |
5744 | return Py_BuildValue((char *)""); | |
5745 | } | |
5746 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5747 | PyObject *resultobj; | |
5748 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
5749 | PyObject *arg2 = (PyObject *) 0 ; | |
5750 | PyObject * obj0 = 0 ; | |
5751 | PyObject * obj1 = 0 ; | |
5752 | char *kwnames[] = { | |
5753 | (char *) "self",(char *) "obj", NULL | |
5754 | }; | |
5755 | ||
5756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
5757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxOutputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5758 | arg2 = obj1; | |
5759 | { | |
5760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5761 | wxOutputStream_write(arg1,arg2); | |
5762 | ||
5763 | wxPyEndAllowThreads(__tstate); | |
5764 | if (PyErr_Occurred()) SWIG_fail; | |
5765 | } | |
5766 | Py_INCREF(Py_None); resultobj = Py_None; | |
5767 | return resultobj; | |
5768 | fail: | |
5769 | return NULL; | |
5770 | } | |
5771 | ||
5772 | ||
5773 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
5774 | PyObject *obj; | |
5775 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5776 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
5777 | Py_INCREF(obj); | |
5778 | return Py_BuildValue((char *)""); | |
5779 | } | |
5780 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5781 | PyObject *resultobj; | |
5782 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
5783 | wxString *arg2 = 0 ; | |
5784 | wxString *arg3 = 0 ; | |
5785 | wxString *arg4 = 0 ; | |
5786 | wxDateTime arg5 ; | |
5787 | wxFSFile *result; | |
5788 | wxPyInputStream *temp1 ; | |
5789 | bool created1 ; | |
423f194a RD |
5790 | bool temp2 = False ; |
5791 | bool temp3 = False ; | |
5792 | bool temp4 = False ; | |
d14a1e28 RD |
5793 | wxDateTime *argp5 ; |
5794 | PyObject * obj0 = 0 ; | |
5795 | PyObject * obj1 = 0 ; | |
5796 | PyObject * obj2 = 0 ; | |
5797 | PyObject * obj3 = 0 ; | |
5798 | PyObject * obj4 = 0 ; | |
5799 | char *kwnames[] = { | |
5800 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
5801 | }; | |
5802 | ||
5803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5804 | { | |
5805 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
5806 | arg1 = temp1->m_wxis; | |
423f194a | 5807 | created1 = False; |
d14a1e28 RD |
5808 | } else { |
5809 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 5810 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
5811 | if (arg1 == NULL) { |
5812 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
5813 | SWIG_fail; | |
5814 | } | |
423f194a | 5815 | created1 = True; |
d14a1e28 RD |
5816 | } |
5817 | } | |
5818 | { | |
5819 | arg2 = wxString_in_helper(obj1); | |
5820 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5821 | temp2 = True; |
d14a1e28 RD |
5822 | } |
5823 | { | |
5824 | arg3 = wxString_in_helper(obj2); | |
5825 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 5826 | temp3 = True; |
d14a1e28 RD |
5827 | } |
5828 | { | |
5829 | arg4 = wxString_in_helper(obj3); | |
5830 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 5831 | temp4 = True; |
d14a1e28 RD |
5832 | } |
5833 | if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
5834 | arg5 = *argp5; | |
5835 | { | |
5836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5837 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
5838 | ||
5839 | wxPyEndAllowThreads(__tstate); | |
5840 | if (PyErr_Occurred()) SWIG_fail; | |
5841 | } | |
5842 | { | |
5843 | resultobj = wxPyMake_wxObject(result); | |
5844 | } | |
5845 | { | |
5846 | if (created1) | |
5847 | delete arg1; | |
5848 | } | |
5849 | { | |
5850 | if (temp2) | |
5851 | delete arg2; | |
5852 | } | |
5853 | { | |
5854 | if (temp3) | |
5855 | delete arg3; | |
5856 | } | |
5857 | { | |
5858 | if (temp4) | |
5859 | delete arg4; | |
5860 | } | |
5861 | return resultobj; | |
5862 | fail: | |
5863 | { | |
5864 | if (created1) | |
5865 | delete arg1; | |
5866 | } | |
5867 | { | |
5868 | if (temp2) | |
5869 | delete arg2; | |
5870 | } | |
5871 | { | |
5872 | if (temp3) | |
5873 | delete arg3; | |
5874 | } | |
5875 | { | |
5876 | if (temp4) | |
5877 | delete arg4; | |
5878 | } | |
5879 | return NULL; | |
5880 | } | |
5881 | ||
5882 | ||
5883 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5884 | PyObject *resultobj; | |
5885 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5886 | PyObject * obj0 = 0 ; | |
5887 | char *kwnames[] = { | |
5888 | (char *) "self", NULL | |
5889 | }; | |
5890 | ||
5891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
5892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5893 | { | |
5894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5895 | delete arg1; | |
5896 | ||
5897 | wxPyEndAllowThreads(__tstate); | |
5898 | if (PyErr_Occurred()) SWIG_fail; | |
5899 | } | |
5900 | Py_INCREF(Py_None); resultobj = Py_None; | |
5901 | return resultobj; | |
5902 | fail: | |
5903 | return NULL; | |
5904 | } | |
5905 | ||
5906 | ||
5907 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5908 | PyObject *resultobj; | |
5909 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5910 | wxInputStream *result; | |
5911 | PyObject * obj0 = 0 ; | |
5912 | char *kwnames[] = { | |
5913 | (char *) "self", NULL | |
5914 | }; | |
5915 | ||
5916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
5917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5918 | { | |
5919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5920 | result = (wxInputStream *)(arg1)->GetStream(); | |
5921 | ||
5922 | wxPyEndAllowThreads(__tstate); | |
5923 | if (PyErr_Occurred()) SWIG_fail; | |
5924 | } | |
5925 | { | |
5926 | wxPyInputStream * _ptr = NULL; | |
5927 | ||
5928 | if (result) { | |
5929 | _ptr = new wxPyInputStream(result); | |
5930 | } | |
423f194a | 5931 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
5932 | } |
5933 | return resultobj; | |
5934 | fail: | |
5935 | return NULL; | |
5936 | } | |
5937 | ||
5938 | ||
5939 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5940 | PyObject *resultobj; | |
5941 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5942 | wxString *result; | |
5943 | PyObject * obj0 = 0 ; | |
5944 | char *kwnames[] = { | |
5945 | (char *) "self", NULL | |
5946 | }; | |
5947 | ||
5948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
5949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5950 | { | |
5951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5952 | { | |
5953 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
5954 | result = (wxString *) &_result_ref; | |
5955 | } | |
5956 | ||
5957 | wxPyEndAllowThreads(__tstate); | |
5958 | if (PyErr_Occurred()) SWIG_fail; | |
5959 | } | |
f0983263 RD |
5960 | { |
5961 | #if wxUSE_UNICODE | |
5962 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5963 | #else | |
5964 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5965 | #endif | |
5966 | } | |
d14a1e28 RD |
5967 | return resultobj; |
5968 | fail: | |
5969 | return NULL; | |
5970 | } | |
5971 | ||
5972 | ||
5973 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5974 | PyObject *resultobj; | |
5975 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
5976 | wxString *result; | |
5977 | PyObject * obj0 = 0 ; | |
5978 | char *kwnames[] = { | |
5979 | (char *) "self", NULL | |
5980 | }; | |
5981 | ||
5982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
5983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5984 | { | |
5985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5986 | { | |
5987 | wxString const &_result_ref = (arg1)->GetLocation(); | |
5988 | result = (wxString *) &_result_ref; | |
5989 | } | |
5990 | ||
5991 | wxPyEndAllowThreads(__tstate); | |
5992 | if (PyErr_Occurred()) SWIG_fail; | |
5993 | } | |
f0983263 RD |
5994 | { |
5995 | #if wxUSE_UNICODE | |
5996 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
5997 | #else | |
5998 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
5999 | #endif | |
6000 | } | |
d14a1e28 RD |
6001 | return resultobj; |
6002 | fail: | |
6003 | return NULL; | |
6004 | } | |
6005 | ||
6006 | ||
6007 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6008 | PyObject *resultobj; | |
6009 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6010 | wxString *result; | |
6011 | PyObject * obj0 = 0 ; | |
6012 | char *kwnames[] = { | |
6013 | (char *) "self", NULL | |
6014 | }; | |
6015 | ||
6016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
6017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6018 | { | |
6019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6020 | { | |
6021 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6022 | result = (wxString *) &_result_ref; | |
6023 | } | |
6024 | ||
6025 | wxPyEndAllowThreads(__tstate); | |
6026 | if (PyErr_Occurred()) SWIG_fail; | |
6027 | } | |
f0983263 RD |
6028 | { |
6029 | #if wxUSE_UNICODE | |
6030 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6031 | #else | |
6032 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6033 | #endif | |
6034 | } | |
d14a1e28 RD |
6035 | return resultobj; |
6036 | fail: | |
6037 | return NULL; | |
6038 | } | |
6039 | ||
6040 | ||
6041 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6042 | PyObject *resultobj; | |
6043 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6044 | wxDateTime result; | |
6045 | PyObject * obj0 = 0 ; | |
6046 | char *kwnames[] = { | |
6047 | (char *) "self", NULL | |
6048 | }; | |
6049 | ||
6050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
6051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6052 | { | |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6054 | result = (arg1)->GetModificationTime(); | |
6055 | ||
6056 | wxPyEndAllowThreads(__tstate); | |
6057 | if (PyErr_Occurred()) SWIG_fail; | |
6058 | } | |
6059 | { | |
6060 | wxDateTime * resultptr; | |
6061 | resultptr = new wxDateTime((wxDateTime &) result); | |
6062 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
6063 | } | |
6064 | return resultobj; | |
6065 | fail: | |
6066 | return NULL; | |
6067 | } | |
6068 | ||
6069 | ||
6070 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6071 | PyObject *obj; | |
6072 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6073 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6074 | Py_INCREF(obj); | |
6075 | return Py_BuildValue((char *)""); | |
6076 | } | |
6077 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6078 | PyObject *obj; | |
6079 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6080 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6081 | Py_INCREF(obj); | |
6082 | return Py_BuildValue((char *)""); | |
6083 | } | |
6084 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6085 | PyObject *resultobj; | |
6086 | wxPyFileSystemHandler *result; | |
6087 | char *kwnames[] = { | |
6088 | NULL | |
6089 | }; | |
6090 | ||
6091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6092 | { | |
6093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6094 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6095 | ||
6096 | wxPyEndAllowThreads(__tstate); | |
6097 | if (PyErr_Occurred()) SWIG_fail; | |
6098 | } | |
6099 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
6100 | return resultobj; | |
6101 | fail: | |
6102 | return NULL; | |
6103 | } | |
6104 | ||
6105 | ||
6106 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6107 | PyObject *resultobj; | |
6108 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6109 | PyObject *arg2 = (PyObject *) 0 ; | |
6110 | PyObject *arg3 = (PyObject *) 0 ; | |
6111 | PyObject * obj0 = 0 ; | |
6112 | PyObject * obj1 = 0 ; | |
6113 | PyObject * obj2 = 0 ; | |
6114 | char *kwnames[] = { | |
6115 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6116 | }; | |
6117 | ||
6118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6120 | arg2 = obj1; | |
6121 | arg3 = obj2; | |
6122 | { | |
6123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6124 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6125 | ||
6126 | wxPyEndAllowThreads(__tstate); | |
6127 | if (PyErr_Occurred()) SWIG_fail; | |
6128 | } | |
6129 | Py_INCREF(Py_None); resultobj = Py_None; | |
6130 | return resultobj; | |
6131 | fail: | |
6132 | return NULL; | |
6133 | } | |
6134 | ||
6135 | ||
6136 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6137 | PyObject *resultobj; | |
6138 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6139 | wxString *arg2 = 0 ; | |
6140 | bool result; | |
423f194a | 6141 | bool temp2 = False ; |
d14a1e28 RD |
6142 | PyObject * obj0 = 0 ; |
6143 | PyObject * obj1 = 0 ; | |
6144 | char *kwnames[] = { | |
6145 | (char *) "self",(char *) "location", NULL | |
6146 | }; | |
6147 | ||
6148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6150 | { | |
6151 | arg2 = wxString_in_helper(obj1); | |
6152 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6153 | temp2 = True; |
d14a1e28 RD |
6154 | } |
6155 | { | |
6156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6157 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6158 | ||
6159 | wxPyEndAllowThreads(__tstate); | |
6160 | if (PyErr_Occurred()) SWIG_fail; | |
6161 | } | |
8edf1c75 | 6162 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
6163 | { |
6164 | if (temp2) | |
6165 | delete arg2; | |
6166 | } | |
6167 | return resultobj; | |
6168 | fail: | |
6169 | { | |
6170 | if (temp2) | |
6171 | delete arg2; | |
6172 | } | |
6173 | return NULL; | |
6174 | } | |
6175 | ||
6176 | ||
6177 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6178 | PyObject *resultobj; | |
6179 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6180 | wxFileSystem *arg2 = 0 ; | |
6181 | wxString *arg3 = 0 ; | |
6182 | wxFSFile *result; | |
423f194a | 6183 | bool temp3 = False ; |
d14a1e28 RD |
6184 | PyObject * obj0 = 0 ; |
6185 | PyObject * obj1 = 0 ; | |
6186 | PyObject * obj2 = 0 ; | |
6187 | char *kwnames[] = { | |
6188 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6189 | }; | |
6190 | ||
6191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6193 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6194 | if (arg2 == NULL) { | |
6195 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6196 | } | |
6197 | { | |
6198 | arg3 = wxString_in_helper(obj2); | |
6199 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6200 | temp3 = True; |
d14a1e28 RD |
6201 | } |
6202 | { | |
6203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6204 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6205 | ||
6206 | wxPyEndAllowThreads(__tstate); | |
6207 | if (PyErr_Occurred()) SWIG_fail; | |
6208 | } | |
6209 | { | |
6210 | resultobj = wxPyMake_wxObject(result); | |
6211 | } | |
6212 | { | |
6213 | if (temp3) | |
6214 | delete arg3; | |
6215 | } | |
6216 | return resultobj; | |
6217 | fail: | |
6218 | { | |
6219 | if (temp3) | |
6220 | delete arg3; | |
6221 | } | |
6222 | return NULL; | |
6223 | } | |
6224 | ||
6225 | ||
6226 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6227 | PyObject *resultobj; | |
6228 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6229 | wxString *arg2 = 0 ; | |
6230 | int arg3 = (int) 0 ; | |
6231 | wxString result; | |
423f194a | 6232 | bool temp2 = False ; |
d14a1e28 RD |
6233 | PyObject * obj0 = 0 ; |
6234 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6235 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6236 | char *kwnames[] = { |
6237 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6238 | }; | |
6239 | ||
8edf1c75 | 6240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6242 | { | |
6243 | arg2 = wxString_in_helper(obj1); | |
6244 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6245 | temp2 = True; |
d14a1e28 | 6246 | } |
8edf1c75 RD |
6247 | if (obj2) { |
6248 | { | |
6249 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6250 | if (PyErr_Occurred()) SWIG_fail; | |
6251 | } | |
6252 | } | |
d14a1e28 RD |
6253 | { |
6254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6255 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6256 | ||
6257 | wxPyEndAllowThreads(__tstate); | |
6258 | if (PyErr_Occurred()) SWIG_fail; | |
6259 | } | |
6260 | { | |
6261 | #if wxUSE_UNICODE | |
6262 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6263 | #else | |
6264 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6265 | #endif | |
6266 | } | |
6267 | { | |
6268 | if (temp2) | |
6269 | delete arg2; | |
6270 | } | |
6271 | return resultobj; | |
6272 | fail: | |
6273 | { | |
6274 | if (temp2) | |
6275 | delete arg2; | |
6276 | } | |
6277 | return NULL; | |
6278 | } | |
6279 | ||
6280 | ||
6281 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6282 | PyObject *resultobj; | |
6283 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6284 | wxString result; | |
6285 | PyObject * obj0 = 0 ; | |
6286 | char *kwnames[] = { | |
6287 | (char *) "self", NULL | |
6288 | }; | |
6289 | ||
6290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
6291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6292 | { | |
6293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6294 | result = (arg1)->FindNext(); | |
6295 | ||
6296 | wxPyEndAllowThreads(__tstate); | |
6297 | if (PyErr_Occurred()) SWIG_fail; | |
6298 | } | |
6299 | { | |
6300 | #if wxUSE_UNICODE | |
6301 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6302 | #else | |
6303 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6304 | #endif | |
6305 | } | |
6306 | return resultobj; | |
6307 | fail: | |
6308 | return NULL; | |
6309 | } | |
6310 | ||
6311 | ||
6312 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6313 | PyObject *resultobj; | |
6314 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6315 | wxString *arg2 = 0 ; | |
6316 | wxString result; | |
423f194a | 6317 | bool temp2 = False ; |
d14a1e28 RD |
6318 | PyObject * obj0 = 0 ; |
6319 | PyObject * obj1 = 0 ; | |
6320 | char *kwnames[] = { | |
6321 | (char *) "self",(char *) "location", NULL | |
6322 | }; | |
6323 | ||
6324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
6325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6326 | { | |
6327 | arg2 = wxString_in_helper(obj1); | |
6328 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6329 | temp2 = True; |
d14a1e28 RD |
6330 | } |
6331 | { | |
6332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6333 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6334 | ||
6335 | wxPyEndAllowThreads(__tstate); | |
6336 | if (PyErr_Occurred()) SWIG_fail; | |
6337 | } | |
6338 | { | |
6339 | #if wxUSE_UNICODE | |
6340 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6341 | #else | |
6342 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6343 | #endif | |
6344 | } | |
6345 | { | |
6346 | if (temp2) | |
6347 | delete arg2; | |
6348 | } | |
6349 | return resultobj; | |
6350 | fail: | |
6351 | { | |
6352 | if (temp2) | |
6353 | delete arg2; | |
6354 | } | |
6355 | return NULL; | |
6356 | } | |
6357 | ||
6358 | ||
6359 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6360 | PyObject *resultobj; | |
6361 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6362 | wxString *arg2 = 0 ; | |
6363 | wxString result; | |
423f194a | 6364 | bool temp2 = False ; |
d14a1e28 RD |
6365 | PyObject * obj0 = 0 ; |
6366 | PyObject * obj1 = 0 ; | |
6367 | char *kwnames[] = { | |
6368 | (char *) "self",(char *) "location", NULL | |
6369 | }; | |
6370 | ||
6371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
6372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6373 | { | |
6374 | arg2 = wxString_in_helper(obj1); | |
6375 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6376 | temp2 = True; |
d14a1e28 RD |
6377 | } |
6378 | { | |
6379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6380 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6381 | ||
6382 | wxPyEndAllowThreads(__tstate); | |
6383 | if (PyErr_Occurred()) SWIG_fail; | |
6384 | } | |
6385 | { | |
6386 | #if wxUSE_UNICODE | |
6387 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6388 | #else | |
6389 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6390 | #endif | |
6391 | } | |
6392 | { | |
6393 | if (temp2) | |
6394 | delete arg2; | |
6395 | } | |
6396 | return resultobj; | |
6397 | fail: | |
6398 | { | |
6399 | if (temp2) | |
6400 | delete arg2; | |
6401 | } | |
6402 | return NULL; | |
6403 | } | |
6404 | ||
6405 | ||
6406 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6407 | PyObject *resultobj; | |
6408 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6409 | wxString *arg2 = 0 ; | |
6410 | wxString result; | |
423f194a | 6411 | bool temp2 = False ; |
d14a1e28 RD |
6412 | PyObject * obj0 = 0 ; |
6413 | PyObject * obj1 = 0 ; | |
6414 | char *kwnames[] = { | |
6415 | (char *) "self",(char *) "location", NULL | |
6416 | }; | |
6417 | ||
6418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
6419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6420 | { | |
6421 | arg2 = wxString_in_helper(obj1); | |
6422 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6423 | temp2 = True; |
d14a1e28 RD |
6424 | } |
6425 | { | |
6426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6427 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6428 | ||
6429 | wxPyEndAllowThreads(__tstate); | |
6430 | if (PyErr_Occurred()) SWIG_fail; | |
6431 | } | |
6432 | { | |
6433 | #if wxUSE_UNICODE | |
6434 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6435 | #else | |
6436 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6437 | #endif | |
6438 | } | |
6439 | { | |
6440 | if (temp2) | |
6441 | delete arg2; | |
6442 | } | |
6443 | return resultobj; | |
6444 | fail: | |
6445 | { | |
6446 | if (temp2) | |
6447 | delete arg2; | |
6448 | } | |
6449 | return NULL; | |
6450 | } | |
6451 | ||
6452 | ||
6453 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6454 | PyObject *resultobj; | |
6455 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6456 | wxString *arg2 = 0 ; | |
6457 | wxString result; | |
423f194a | 6458 | bool temp2 = False ; |
d14a1e28 RD |
6459 | PyObject * obj0 = 0 ; |
6460 | PyObject * obj1 = 0 ; | |
6461 | char *kwnames[] = { | |
6462 | (char *) "self",(char *) "location", NULL | |
6463 | }; | |
6464 | ||
6465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
6466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6467 | { | |
6468 | arg2 = wxString_in_helper(obj1); | |
6469 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6470 | temp2 = True; |
d14a1e28 RD |
6471 | } |
6472 | { | |
6473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6474 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6475 | ||
6476 | wxPyEndAllowThreads(__tstate); | |
6477 | if (PyErr_Occurred()) SWIG_fail; | |
6478 | } | |
6479 | { | |
6480 | #if wxUSE_UNICODE | |
6481 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6482 | #else | |
6483 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6484 | #endif | |
6485 | } | |
6486 | { | |
6487 | if (temp2) | |
6488 | delete arg2; | |
6489 | } | |
6490 | return resultobj; | |
6491 | fail: | |
6492 | { | |
6493 | if (temp2) | |
6494 | delete arg2; | |
6495 | } | |
6496 | return NULL; | |
6497 | } | |
6498 | ||
6499 | ||
6500 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6501 | PyObject *resultobj; | |
6502 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6503 | wxString *arg2 = 0 ; | |
6504 | wxString result; | |
423f194a | 6505 | bool temp2 = False ; |
d14a1e28 RD |
6506 | PyObject * obj0 = 0 ; |
6507 | PyObject * obj1 = 0 ; | |
6508 | char *kwnames[] = { | |
6509 | (char *) "self",(char *) "location", NULL | |
6510 | }; | |
6511 | ||
6512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
6513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6514 | { | |
6515 | arg2 = wxString_in_helper(obj1); | |
6516 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6517 | temp2 = True; |
d14a1e28 RD |
6518 | } |
6519 | { | |
6520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6521 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6522 | ||
6523 | wxPyEndAllowThreads(__tstate); | |
6524 | if (PyErr_Occurred()) SWIG_fail; | |
6525 | } | |
6526 | { | |
6527 | #if wxUSE_UNICODE | |
6528 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6529 | #else | |
6530 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6531 | #endif | |
6532 | } | |
6533 | { | |
6534 | if (temp2) | |
6535 | delete arg2; | |
6536 | } | |
6537 | return resultobj; | |
6538 | fail: | |
6539 | { | |
6540 | if (temp2) | |
6541 | delete arg2; | |
6542 | } | |
6543 | return NULL; | |
6544 | } | |
6545 | ||
6546 | ||
6547 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6548 | PyObject *obj; | |
6549 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6550 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
6551 | Py_INCREF(obj); | |
6552 | return Py_BuildValue((char *)""); | |
6553 | } | |
6554 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6555 | PyObject *resultobj; | |
6556 | wxFileSystem *result; | |
6557 | char *kwnames[] = { | |
6558 | NULL | |
6559 | }; | |
6560 | ||
6561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6562 | { | |
6563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6564 | result = (wxFileSystem *)new wxFileSystem(); | |
6565 | ||
6566 | wxPyEndAllowThreads(__tstate); | |
6567 | if (PyErr_Occurred()) SWIG_fail; | |
6568 | } | |
6569 | { | |
6570 | resultobj = wxPyMake_wxObject(result); | |
6571 | } | |
6572 | return resultobj; | |
6573 | fail: | |
6574 | return NULL; | |
6575 | } | |
6576 | ||
6577 | ||
6578 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6579 | PyObject *resultobj; | |
6580 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6581 | PyObject * obj0 = 0 ; | |
6582 | char *kwnames[] = { | |
6583 | (char *) "self", NULL | |
6584 | }; | |
6585 | ||
6586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
6587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6588 | { | |
6589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6590 | delete arg1; | |
6591 | ||
6592 | wxPyEndAllowThreads(__tstate); | |
6593 | if (PyErr_Occurred()) SWIG_fail; | |
6594 | } | |
6595 | Py_INCREF(Py_None); resultobj = Py_None; | |
6596 | return resultobj; | |
6597 | fail: | |
6598 | return NULL; | |
6599 | } | |
6600 | ||
6601 | ||
6602 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6603 | PyObject *resultobj; | |
6604 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6605 | wxString *arg2 = 0 ; | |
423f194a RD |
6606 | bool arg3 = (bool) False ; |
6607 | bool temp2 = False ; | |
d14a1e28 RD |
6608 | PyObject * obj0 = 0 ; |
6609 | PyObject * obj1 = 0 ; | |
6610 | PyObject * obj2 = 0 ; | |
6611 | char *kwnames[] = { | |
6612 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
6613 | }; | |
6614 | ||
6615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6617 | { | |
6618 | arg2 = wxString_in_helper(obj1); | |
6619 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6620 | temp2 = True; |
d14a1e28 RD |
6621 | } |
6622 | if (obj2) { | |
83448d71 | 6623 | { |
8edf1c75 | 6624 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
6625 | if (PyErr_Occurred()) SWIG_fail; |
6626 | } | |
d14a1e28 RD |
6627 | } |
6628 | { | |
6629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6630 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
6631 | ||
6632 | wxPyEndAllowThreads(__tstate); | |
6633 | if (PyErr_Occurred()) SWIG_fail; | |
6634 | } | |
6635 | Py_INCREF(Py_None); resultobj = Py_None; | |
6636 | { | |
6637 | if (temp2) | |
6638 | delete arg2; | |
6639 | } | |
6640 | return resultobj; | |
6641 | fail: | |
6642 | { | |
6643 | if (temp2) | |
6644 | delete arg2; | |
6645 | } | |
6646 | return NULL; | |
6647 | } | |
6648 | ||
6649 | ||
6650 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6651 | PyObject *resultobj; | |
6652 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6653 | wxString result; | |
6654 | PyObject * obj0 = 0 ; | |
6655 | char *kwnames[] = { | |
6656 | (char *) "self", NULL | |
6657 | }; | |
6658 | ||
6659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
6660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6661 | { | |
6662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6663 | result = (arg1)->GetPath(); | |
6664 | ||
6665 | wxPyEndAllowThreads(__tstate); | |
6666 | if (PyErr_Occurred()) SWIG_fail; | |
6667 | } | |
6668 | { | |
6669 | #if wxUSE_UNICODE | |
6670 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6671 | #else | |
6672 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6673 | #endif | |
6674 | } | |
6675 | return resultobj; | |
6676 | fail: | |
6677 | return NULL; | |
6678 | } | |
6679 | ||
6680 | ||
6681 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6682 | PyObject *resultobj; | |
6683 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6684 | wxString *arg2 = 0 ; | |
6685 | wxFSFile *result; | |
423f194a | 6686 | bool temp2 = False ; |
d14a1e28 RD |
6687 | PyObject * obj0 = 0 ; |
6688 | PyObject * obj1 = 0 ; | |
6689 | char *kwnames[] = { | |
6690 | (char *) "self",(char *) "location", NULL | |
6691 | }; | |
6692 | ||
6693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
6694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6695 | { | |
6696 | arg2 = wxString_in_helper(obj1); | |
6697 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6698 | temp2 = True; |
d14a1e28 RD |
6699 | } |
6700 | { | |
6701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6702 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
6703 | ||
6704 | wxPyEndAllowThreads(__tstate); | |
6705 | if (PyErr_Occurred()) SWIG_fail; | |
6706 | } | |
6707 | { | |
6708 | resultobj = wxPyMake_wxObject(result); | |
6709 | } | |
6710 | { | |
6711 | if (temp2) | |
6712 | delete arg2; | |
6713 | } | |
6714 | return resultobj; | |
6715 | fail: | |
6716 | { | |
6717 | if (temp2) | |
6718 | delete arg2; | |
6719 | } | |
6720 | return NULL; | |
6721 | } | |
6722 | ||
6723 | ||
6724 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6725 | PyObject *resultobj; | |
6726 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6727 | wxString *arg2 = 0 ; | |
6728 | int arg3 = (int) 0 ; | |
6729 | wxString result; | |
423f194a | 6730 | bool temp2 = False ; |
d14a1e28 RD |
6731 | PyObject * obj0 = 0 ; |
6732 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6733 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6734 | char *kwnames[] = { |
6735 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6736 | }; | |
6737 | ||
8edf1c75 | 6738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
6739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6740 | { | |
6741 | arg2 = wxString_in_helper(obj1); | |
6742 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6743 | temp2 = True; |
d14a1e28 | 6744 | } |
8edf1c75 RD |
6745 | if (obj2) { |
6746 | { | |
6747 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6748 | if (PyErr_Occurred()) SWIG_fail; | |
6749 | } | |
6750 | } | |
d14a1e28 RD |
6751 | { |
6752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6753 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6754 | ||
6755 | wxPyEndAllowThreads(__tstate); | |
6756 | if (PyErr_Occurred()) SWIG_fail; | |
6757 | } | |
6758 | { | |
6759 | #if wxUSE_UNICODE | |
6760 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6761 | #else | |
6762 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6763 | #endif | |
6764 | } | |
6765 | { | |
6766 | if (temp2) | |
6767 | delete arg2; | |
6768 | } | |
6769 | return resultobj; | |
6770 | fail: | |
6771 | { | |
6772 | if (temp2) | |
6773 | delete arg2; | |
6774 | } | |
6775 | return NULL; | |
6776 | } | |
6777 | ||
6778 | ||
6779 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6780 | PyObject *resultobj; | |
6781 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6782 | wxString result; | |
6783 | PyObject * obj0 = 0 ; | |
6784 | char *kwnames[] = { | |
6785 | (char *) "self", NULL | |
6786 | }; | |
6787 | ||
6788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
6789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6790 | { | |
6791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6792 | result = (arg1)->FindNext(); | |
6793 | ||
6794 | wxPyEndAllowThreads(__tstate); | |
6795 | if (PyErr_Occurred()) SWIG_fail; | |
6796 | } | |
6797 | { | |
6798 | #if wxUSE_UNICODE | |
6799 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6800 | #else | |
6801 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6802 | #endif | |
6803 | } | |
6804 | return resultobj; | |
6805 | fail: | |
6806 | return NULL; | |
6807 | } | |
6808 | ||
6809 | ||
6810 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6811 | PyObject *resultobj; | |
6812 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
6813 | PyObject * obj0 = 0 ; | |
6814 | char *kwnames[] = { | |
6815 | (char *) "handler", NULL | |
6816 | }; | |
6817 | ||
6818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
6819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6820 | { | |
6821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6822 | wxFileSystem::AddHandler(arg1); | |
6823 | ||
6824 | wxPyEndAllowThreads(__tstate); | |
6825 | if (PyErr_Occurred()) SWIG_fail; | |
6826 | } | |
6827 | Py_INCREF(Py_None); resultobj = Py_None; | |
6828 | return resultobj; | |
6829 | fail: | |
6830 | return NULL; | |
6831 | } | |
6832 | ||
6833 | ||
6834 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6835 | PyObject *resultobj; | |
6836 | char *kwnames[] = { | |
6837 | NULL | |
6838 | }; | |
6839 | ||
6840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
6841 | { | |
6842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6843 | wxFileSystem::CleanUpHandlers(); | |
6844 | ||
6845 | wxPyEndAllowThreads(__tstate); | |
6846 | if (PyErr_Occurred()) SWIG_fail; | |
6847 | } | |
6848 | Py_INCREF(Py_None); resultobj = Py_None; | |
6849 | return resultobj; | |
6850 | fail: | |
6851 | return NULL; | |
6852 | } | |
6853 | ||
6854 | ||
6855 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6856 | PyObject *resultobj; | |
6857 | wxString *arg1 = 0 ; | |
6858 | wxString result; | |
423f194a | 6859 | bool temp1 = False ; |
d14a1e28 RD |
6860 | PyObject * obj0 = 0 ; |
6861 | char *kwnames[] = { | |
6862 | (char *) "filename", NULL | |
6863 | }; | |
6864 | ||
6865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
6866 | { | |
6867 | arg1 = wxString_in_helper(obj0); | |
6868 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6869 | temp1 = True; |
d14a1e28 RD |
6870 | } |
6871 | { | |
6872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6873 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
6874 | ||
6875 | wxPyEndAllowThreads(__tstate); | |
6876 | if (PyErr_Occurred()) SWIG_fail; | |
6877 | } | |
6878 | { | |
6879 | #if wxUSE_UNICODE | |
6880 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6881 | #else | |
6882 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6883 | #endif | |
6884 | } | |
6885 | { | |
6886 | if (temp1) | |
6887 | delete arg1; | |
6888 | } | |
6889 | return resultobj; | |
6890 | fail: | |
6891 | { | |
6892 | if (temp1) | |
6893 | delete arg1; | |
6894 | } | |
6895 | return NULL; | |
6896 | } | |
6897 | ||
6898 | ||
6899 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
6900 | PyObject *obj; | |
6901 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6902 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
6903 | Py_INCREF(obj); | |
6904 | return Py_BuildValue((char *)""); | |
6905 | } | |
6906 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6907 | PyObject *resultobj; | |
6908 | wxString *arg1 = 0 ; | |
6909 | wxString result; | |
423f194a | 6910 | bool temp1 = False ; |
d14a1e28 RD |
6911 | PyObject * obj0 = 0 ; |
6912 | char *kwnames[] = { | |
6913 | (char *) "url", NULL | |
6914 | }; | |
6915 | ||
6916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
6917 | { | |
6918 | arg1 = wxString_in_helper(obj0); | |
6919 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6920 | temp1 = True; |
d14a1e28 RD |
6921 | } |
6922 | { | |
6923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6924 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
6925 | ||
6926 | wxPyEndAllowThreads(__tstate); | |
6927 | if (PyErr_Occurred()) SWIG_fail; | |
6928 | } | |
6929 | { | |
6930 | #if wxUSE_UNICODE | |
6931 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6932 | #else | |
6933 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6934 | #endif | |
6935 | } | |
6936 | { | |
6937 | if (temp1) | |
6938 | delete arg1; | |
6939 | } | |
6940 | return resultobj; | |
6941 | fail: | |
6942 | { | |
6943 | if (temp1) | |
6944 | delete arg1; | |
6945 | } | |
6946 | return NULL; | |
6947 | } | |
6948 | ||
6949 | ||
6950 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6951 | PyObject *resultobj; | |
6952 | wxInternetFSHandler *result; | |
6953 | char *kwnames[] = { | |
6954 | NULL | |
6955 | }; | |
6956 | ||
6957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
6958 | { | |
6959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6960 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
6961 | ||
6962 | wxPyEndAllowThreads(__tstate); | |
6963 | if (PyErr_Occurred()) SWIG_fail; | |
6964 | } | |
6965 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInternetFSHandler, 1); | |
6966 | return resultobj; | |
6967 | fail: | |
6968 | return NULL; | |
6969 | } | |
6970 | ||
6971 | ||
6972 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6973 | PyObject *resultobj; | |
6974 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
6975 | wxString *arg2 = 0 ; | |
6976 | bool result; | |
423f194a | 6977 | bool temp2 = False ; |
d14a1e28 RD |
6978 | PyObject * obj0 = 0 ; |
6979 | PyObject * obj1 = 0 ; | |
6980 | char *kwnames[] = { | |
6981 | (char *) "self",(char *) "location", NULL | |
6982 | }; | |
6983 | ||
6984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6986 | { | |
6987 | arg2 = wxString_in_helper(obj1); | |
6988 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6989 | temp2 = True; |
d14a1e28 RD |
6990 | } |
6991 | { | |
6992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6993 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6994 | ||
6995 | wxPyEndAllowThreads(__tstate); | |
6996 | if (PyErr_Occurred()) SWIG_fail; | |
6997 | } | |
8edf1c75 | 6998 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
6999 | { |
7000 | if (temp2) | |
7001 | delete arg2; | |
7002 | } | |
7003 | return resultobj; | |
7004 | fail: | |
7005 | { | |
7006 | if (temp2) | |
7007 | delete arg2; | |
7008 | } | |
7009 | return NULL; | |
7010 | } | |
7011 | ||
7012 | ||
7013 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7014 | PyObject *resultobj; | |
7015 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7016 | wxFileSystem *arg2 = 0 ; | |
7017 | wxString *arg3 = 0 ; | |
7018 | wxFSFile *result; | |
423f194a | 7019 | bool temp3 = False ; |
d14a1e28 RD |
7020 | PyObject * obj0 = 0 ; |
7021 | PyObject * obj1 = 0 ; | |
7022 | PyObject * obj2 = 0 ; | |
7023 | char *kwnames[] = { | |
7024 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7025 | }; | |
7026 | ||
7027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7029 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7030 | if (arg2 == NULL) { | |
7031 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7032 | } | |
7033 | { | |
7034 | arg3 = wxString_in_helper(obj2); | |
7035 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7036 | temp3 = True; |
d14a1e28 RD |
7037 | } |
7038 | { | |
7039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7040 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7041 | ||
7042 | wxPyEndAllowThreads(__tstate); | |
7043 | if (PyErr_Occurred()) SWIG_fail; | |
7044 | } | |
7045 | { | |
7046 | resultobj = wxPyMake_wxObject(result); | |
7047 | } | |
7048 | { | |
7049 | if (temp3) | |
7050 | delete arg3; | |
7051 | } | |
7052 | return resultobj; | |
7053 | fail: | |
7054 | { | |
7055 | if (temp3) | |
7056 | delete arg3; | |
7057 | } | |
7058 | return NULL; | |
7059 | } | |
7060 | ||
7061 | ||
7062 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7063 | PyObject *obj; | |
7064 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7065 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7066 | Py_INCREF(obj); | |
7067 | return Py_BuildValue((char *)""); | |
7068 | } | |
7069 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7070 | PyObject *resultobj; | |
7071 | wxZipFSHandler *result; | |
7072 | char *kwnames[] = { | |
7073 | NULL | |
7074 | }; | |
7075 | ||
7076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7077 | { | |
7078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7079 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7080 | ||
7081 | wxPyEndAllowThreads(__tstate); | |
7082 | if (PyErr_Occurred()) SWIG_fail; | |
7083 | } | |
7084 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxZipFSHandler, 1); | |
7085 | return resultobj; | |
7086 | fail: | |
7087 | return NULL; | |
7088 | } | |
7089 | ||
7090 | ||
7091 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7092 | PyObject *resultobj; | |
7093 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7094 | wxString *arg2 = 0 ; | |
7095 | bool result; | |
423f194a | 7096 | bool temp2 = False ; |
d14a1e28 RD |
7097 | PyObject * obj0 = 0 ; |
7098 | PyObject * obj1 = 0 ; | |
7099 | char *kwnames[] = { | |
7100 | (char *) "self",(char *) "location", NULL | |
7101 | }; | |
7102 | ||
7103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7105 | { | |
7106 | arg2 = wxString_in_helper(obj1); | |
7107 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7108 | temp2 = True; |
d14a1e28 RD |
7109 | } |
7110 | { | |
7111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7112 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7113 | ||
7114 | wxPyEndAllowThreads(__tstate); | |
7115 | if (PyErr_Occurred()) SWIG_fail; | |
7116 | } | |
8edf1c75 | 7117 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
7118 | { |
7119 | if (temp2) | |
7120 | delete arg2; | |
7121 | } | |
7122 | return resultobj; | |
7123 | fail: | |
7124 | { | |
7125 | if (temp2) | |
7126 | delete arg2; | |
7127 | } | |
7128 | return NULL; | |
7129 | } | |
7130 | ||
7131 | ||
7132 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7133 | PyObject *resultobj; | |
7134 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7135 | wxFileSystem *arg2 = 0 ; | |
7136 | wxString *arg3 = 0 ; | |
7137 | wxFSFile *result; | |
423f194a | 7138 | bool temp3 = False ; |
d14a1e28 RD |
7139 | PyObject * obj0 = 0 ; |
7140 | PyObject * obj1 = 0 ; | |
7141 | PyObject * obj2 = 0 ; | |
7142 | char *kwnames[] = { | |
7143 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7144 | }; | |
7145 | ||
7146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7148 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7149 | if (arg2 == NULL) { | |
7150 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7151 | } | |
7152 | { | |
7153 | arg3 = wxString_in_helper(obj2); | |
7154 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7155 | temp3 = True; |
d14a1e28 RD |
7156 | } |
7157 | { | |
7158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7159 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7160 | ||
7161 | wxPyEndAllowThreads(__tstate); | |
7162 | if (PyErr_Occurred()) SWIG_fail; | |
7163 | } | |
7164 | { | |
7165 | resultobj = wxPyMake_wxObject(result); | |
7166 | } | |
7167 | { | |
7168 | if (temp3) | |
7169 | delete arg3; | |
7170 | } | |
7171 | return resultobj; | |
7172 | fail: | |
7173 | { | |
7174 | if (temp3) | |
7175 | delete arg3; | |
7176 | } | |
7177 | return NULL; | |
7178 | } | |
7179 | ||
7180 | ||
7181 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7182 | PyObject *resultobj; | |
7183 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7184 | wxString *arg2 = 0 ; | |
7185 | int arg3 = (int) 0 ; | |
7186 | wxString result; | |
423f194a | 7187 | bool temp2 = False ; |
d14a1e28 RD |
7188 | PyObject * obj0 = 0 ; |
7189 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7190 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7191 | char *kwnames[] = { |
7192 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7193 | }; | |
7194 | ||
8edf1c75 | 7195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7197 | { | |
7198 | arg2 = wxString_in_helper(obj1); | |
7199 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7200 | temp2 = True; |
d14a1e28 | 7201 | } |
8edf1c75 RD |
7202 | if (obj2) { |
7203 | { | |
7204 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7205 | if (PyErr_Occurred()) SWIG_fail; | |
7206 | } | |
7207 | } | |
d14a1e28 RD |
7208 | { |
7209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7210 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7211 | ||
7212 | wxPyEndAllowThreads(__tstate); | |
7213 | if (PyErr_Occurred()) SWIG_fail; | |
7214 | } | |
7215 | { | |
7216 | #if wxUSE_UNICODE | |
7217 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7218 | #else | |
7219 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7220 | #endif | |
7221 | } | |
7222 | { | |
7223 | if (temp2) | |
7224 | delete arg2; | |
7225 | } | |
7226 | return resultobj; | |
7227 | fail: | |
7228 | { | |
7229 | if (temp2) | |
7230 | delete arg2; | |
7231 | } | |
7232 | return NULL; | |
7233 | } | |
7234 | ||
7235 | ||
7236 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7237 | PyObject *resultobj; | |
7238 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7239 | wxString result; | |
7240 | PyObject * obj0 = 0 ; | |
7241 | char *kwnames[] = { | |
7242 | (char *) "self", NULL | |
7243 | }; | |
7244 | ||
7245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7247 | { | |
7248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7249 | result = (arg1)->FindNext(); | |
7250 | ||
7251 | wxPyEndAllowThreads(__tstate); | |
7252 | if (PyErr_Occurred()) SWIG_fail; | |
7253 | } | |
7254 | { | |
7255 | #if wxUSE_UNICODE | |
7256 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7257 | #else | |
7258 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7259 | #endif | |
7260 | } | |
7261 | return resultobj; | |
7262 | fail: | |
7263 | return NULL; | |
7264 | } | |
7265 | ||
7266 | ||
7267 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7268 | PyObject *obj; | |
7269 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7270 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7271 | Py_INCREF(obj); | |
7272 | return Py_BuildValue((char *)""); | |
7273 | } | |
7274 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7275 | PyObject *resultobj; | |
7276 | wxString *arg1 = 0 ; | |
7277 | wxImage *arg2 = 0 ; | |
7278 | long arg3 ; | |
423f194a | 7279 | bool temp1 = False ; |
d14a1e28 RD |
7280 | PyObject * obj0 = 0 ; |
7281 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7282 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7283 | char *kwnames[] = { |
7284 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7285 | }; | |
7286 | ||
8edf1c75 | 7287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7288 | { |
7289 | arg1 = wxString_in_helper(obj0); | |
7290 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7291 | temp1 = True; |
d14a1e28 RD |
7292 | } |
7293 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7294 | if (arg2 == NULL) { | |
7295 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7296 | } | |
8edf1c75 RD |
7297 | { |
7298 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7299 | if (PyErr_Occurred()) SWIG_fail; | |
7300 | } | |
d14a1e28 RD |
7301 | { |
7302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7303 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7304 | ||
7305 | wxPyEndAllowThreads(__tstate); | |
7306 | if (PyErr_Occurred()) SWIG_fail; | |
7307 | } | |
7308 | Py_INCREF(Py_None); resultobj = Py_None; | |
7309 | { | |
7310 | if (temp1) | |
7311 | delete arg1; | |
7312 | } | |
7313 | return resultobj; | |
7314 | fail: | |
7315 | { | |
7316 | if (temp1) | |
7317 | delete arg1; | |
7318 | } | |
7319 | return NULL; | |
7320 | } | |
7321 | ||
7322 | ||
7323 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7324 | PyObject *resultobj; | |
7325 | wxString *arg1 = 0 ; | |
7326 | wxBitmap *arg2 = 0 ; | |
7327 | long arg3 ; | |
423f194a | 7328 | bool temp1 = False ; |
d14a1e28 RD |
7329 | PyObject * obj0 = 0 ; |
7330 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7331 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7332 | char *kwnames[] = { |
7333 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7334 | }; | |
7335 | ||
8edf1c75 | 7336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7337 | { |
7338 | arg1 = wxString_in_helper(obj0); | |
7339 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7340 | temp1 = True; |
d14a1e28 RD |
7341 | } |
7342 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7343 | if (arg2 == NULL) { | |
7344 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7345 | } | |
8edf1c75 RD |
7346 | { |
7347 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
7348 | if (PyErr_Occurred()) SWIG_fail; | |
7349 | } | |
d14a1e28 RD |
7350 | { |
7351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7352 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7353 | ||
7354 | wxPyEndAllowThreads(__tstate); | |
7355 | if (PyErr_Occurred()) SWIG_fail; | |
7356 | } | |
7357 | Py_INCREF(Py_None); resultobj = Py_None; | |
7358 | { | |
7359 | if (temp1) | |
7360 | delete arg1; | |
7361 | } | |
7362 | return resultobj; | |
7363 | fail: | |
7364 | { | |
7365 | if (temp1) | |
7366 | delete arg1; | |
7367 | } | |
7368 | return NULL; | |
7369 | } | |
7370 | ||
7371 | ||
7372 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7373 | PyObject *resultobj; | |
7374 | wxString *arg1 = 0 ; | |
7375 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 7376 | bool temp1 = False ; |
d14a1e28 RD |
7377 | PyObject * obj0 = 0 ; |
7378 | PyObject * obj1 = 0 ; | |
7379 | char *kwnames[] = { | |
7380 | (char *) "filename",(char *) "data", NULL | |
7381 | }; | |
7382 | ||
7383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7384 | { | |
7385 | arg1 = wxString_in_helper(obj0); | |
7386 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7387 | temp1 = True; |
d14a1e28 RD |
7388 | } |
7389 | arg2 = obj1; | |
7390 | { | |
7391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7392 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7393 | ||
7394 | wxPyEndAllowThreads(__tstate); | |
7395 | if (PyErr_Occurred()) SWIG_fail; | |
7396 | } | |
7397 | Py_INCREF(Py_None); resultobj = Py_None; | |
7398 | { | |
7399 | if (temp1) | |
7400 | delete arg1; | |
7401 | } | |
7402 | return resultobj; | |
7403 | fail: | |
7404 | { | |
7405 | if (temp1) | |
7406 | delete arg1; | |
7407 | } | |
7408 | return NULL; | |
7409 | } | |
7410 | ||
7411 | ||
7412 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7413 | PyObject *resultobj; | |
7414 | wxMemoryFSHandler *result; | |
7415 | char *kwnames[] = { | |
7416 | NULL | |
7417 | }; | |
7418 | ||
7419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7420 | { | |
7421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7422 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7423 | ||
7424 | wxPyEndAllowThreads(__tstate); | |
7425 | if (PyErr_Occurred()) SWIG_fail; | |
7426 | } | |
7427 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryFSHandler, 1); | |
7428 | return resultobj; | |
7429 | fail: | |
7430 | return NULL; | |
7431 | } | |
7432 | ||
7433 | ||
7434 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7435 | PyObject *resultobj; | |
7436 | wxString *arg1 = 0 ; | |
423f194a | 7437 | bool temp1 = False ; |
d14a1e28 RD |
7438 | PyObject * obj0 = 0 ; |
7439 | char *kwnames[] = { | |
7440 | (char *) "filename", NULL | |
7441 | }; | |
7442 | ||
7443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7444 | { | |
7445 | arg1 = wxString_in_helper(obj0); | |
7446 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7447 | temp1 = True; |
d14a1e28 RD |
7448 | } |
7449 | { | |
7450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7451 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7452 | ||
7453 | wxPyEndAllowThreads(__tstate); | |
7454 | if (PyErr_Occurred()) SWIG_fail; | |
7455 | } | |
7456 | Py_INCREF(Py_None); resultobj = Py_None; | |
7457 | { | |
7458 | if (temp1) | |
7459 | delete arg1; | |
7460 | } | |
7461 | return resultobj; | |
7462 | fail: | |
7463 | { | |
7464 | if (temp1) | |
7465 | delete arg1; | |
7466 | } | |
7467 | return NULL; | |
7468 | } | |
7469 | ||
7470 | ||
7471 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7472 | PyObject *resultobj; | |
7473 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7474 | wxString *arg2 = 0 ; | |
7475 | bool result; | |
423f194a | 7476 | bool temp2 = False ; |
d14a1e28 RD |
7477 | PyObject * obj0 = 0 ; |
7478 | PyObject * obj1 = 0 ; | |
7479 | char *kwnames[] = { | |
7480 | (char *) "self",(char *) "location", NULL | |
7481 | }; | |
7482 | ||
7483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7485 | { | |
7486 | arg2 = wxString_in_helper(obj1); | |
7487 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7488 | temp2 = True; |
d14a1e28 RD |
7489 | } |
7490 | { | |
7491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7492 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7493 | ||
7494 | wxPyEndAllowThreads(__tstate); | |
7495 | if (PyErr_Occurred()) SWIG_fail; | |
7496 | } | |
8edf1c75 | 7497 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
7498 | { |
7499 | if (temp2) | |
7500 | delete arg2; | |
7501 | } | |
7502 | return resultobj; | |
7503 | fail: | |
7504 | { | |
7505 | if (temp2) | |
7506 | delete arg2; | |
7507 | } | |
7508 | return NULL; | |
7509 | } | |
7510 | ||
7511 | ||
7512 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7513 | PyObject *resultobj; | |
7514 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7515 | wxFileSystem *arg2 = 0 ; | |
7516 | wxString *arg3 = 0 ; | |
7517 | wxFSFile *result; | |
423f194a | 7518 | bool temp3 = False ; |
d14a1e28 RD |
7519 | PyObject * obj0 = 0 ; |
7520 | PyObject * obj1 = 0 ; | |
7521 | PyObject * obj2 = 0 ; | |
7522 | char *kwnames[] = { | |
7523 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7524 | }; | |
7525 | ||
7526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7528 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7529 | if (arg2 == NULL) { | |
7530 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7531 | } | |
7532 | { | |
7533 | arg3 = wxString_in_helper(obj2); | |
7534 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7535 | temp3 = True; |
d14a1e28 RD |
7536 | } |
7537 | { | |
7538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7539 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7540 | ||
7541 | wxPyEndAllowThreads(__tstate); | |
7542 | if (PyErr_Occurred()) SWIG_fail; | |
7543 | } | |
7544 | { | |
7545 | resultobj = wxPyMake_wxObject(result); | |
7546 | } | |
7547 | { | |
7548 | if (temp3) | |
7549 | delete arg3; | |
7550 | } | |
7551 | return resultobj; | |
7552 | fail: | |
7553 | { | |
7554 | if (temp3) | |
7555 | delete arg3; | |
7556 | } | |
7557 | return NULL; | |
7558 | } | |
7559 | ||
7560 | ||
7561 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7562 | PyObject *resultobj; | |
7563 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7564 | wxString *arg2 = 0 ; | |
7565 | int arg3 = (int) 0 ; | |
7566 | wxString result; | |
423f194a | 7567 | bool temp2 = False ; |
d14a1e28 RD |
7568 | PyObject * obj0 = 0 ; |
7569 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7570 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7571 | char *kwnames[] = { |
7572 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7573 | }; | |
7574 | ||
8edf1c75 | 7575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7577 | { | |
7578 | arg2 = wxString_in_helper(obj1); | |
7579 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7580 | temp2 = True; |
d14a1e28 | 7581 | } |
8edf1c75 RD |
7582 | if (obj2) { |
7583 | { | |
7584 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7585 | if (PyErr_Occurred()) SWIG_fail; | |
7586 | } | |
7587 | } | |
d14a1e28 RD |
7588 | { |
7589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7590 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7591 | ||
7592 | wxPyEndAllowThreads(__tstate); | |
7593 | if (PyErr_Occurred()) SWIG_fail; | |
7594 | } | |
7595 | { | |
7596 | #if wxUSE_UNICODE | |
7597 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7598 | #else | |
7599 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7600 | #endif | |
7601 | } | |
7602 | { | |
7603 | if (temp2) | |
7604 | delete arg2; | |
7605 | } | |
7606 | return resultobj; | |
7607 | fail: | |
7608 | { | |
7609 | if (temp2) | |
7610 | delete arg2; | |
7611 | } | |
7612 | return NULL; | |
7613 | } | |
7614 | ||
7615 | ||
7616 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7617 | PyObject *resultobj; | |
7618 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7619 | wxString result; | |
7620 | PyObject * obj0 = 0 ; | |
7621 | char *kwnames[] = { | |
7622 | (char *) "self", NULL | |
7623 | }; | |
7624 | ||
7625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7627 | { | |
7628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7629 | result = (arg1)->FindNext(); | |
7630 | ||
7631 | wxPyEndAllowThreads(__tstate); | |
7632 | if (PyErr_Occurred()) SWIG_fail; | |
7633 | } | |
7634 | { | |
7635 | #if wxUSE_UNICODE | |
7636 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7637 | #else | |
7638 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7639 | #endif | |
7640 | } | |
7641 | return resultobj; | |
7642 | fail: | |
7643 | return NULL; | |
7644 | } | |
7645 | ||
7646 | ||
7647 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7648 | PyObject *obj; | |
7649 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7650 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
7651 | Py_INCREF(obj); | |
7652 | return Py_BuildValue((char *)""); | |
7653 | } | |
7654 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7655 | PyObject *resultobj; | |
7656 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7657 | wxString result; | |
7658 | PyObject * obj0 = 0 ; | |
7659 | char *kwnames[] = { | |
7660 | (char *) "self", NULL | |
7661 | }; | |
7662 | ||
7663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
7664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7665 | { | |
7666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7667 | result = (arg1)->GetName(); | |
7668 | ||
7669 | wxPyEndAllowThreads(__tstate); | |
7670 | if (PyErr_Occurred()) SWIG_fail; | |
7671 | } | |
7672 | { | |
7673 | #if wxUSE_UNICODE | |
7674 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7675 | #else | |
7676 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7677 | #endif | |
7678 | } | |
7679 | return resultobj; | |
7680 | fail: | |
7681 | return NULL; | |
7682 | } | |
7683 | ||
7684 | ||
7685 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7686 | PyObject *resultobj; | |
7687 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7688 | wxString result; | |
7689 | PyObject * obj0 = 0 ; | |
7690 | char *kwnames[] = { | |
7691 | (char *) "self", NULL | |
7692 | }; | |
7693 | ||
7694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
7695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7696 | { | |
7697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7698 | result = (arg1)->GetExtension(); | |
7699 | ||
7700 | wxPyEndAllowThreads(__tstate); | |
7701 | if (PyErr_Occurred()) SWIG_fail; | |
7702 | } | |
7703 | { | |
7704 | #if wxUSE_UNICODE | |
7705 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7706 | #else | |
7707 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7708 | #endif | |
7709 | } | |
7710 | return resultobj; | |
7711 | fail: | |
7712 | return NULL; | |
7713 | } | |
7714 | ||
7715 | ||
7716 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7717 | PyObject *resultobj; | |
7718 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7719 | long result; | |
7720 | PyObject * obj0 = 0 ; | |
7721 | char *kwnames[] = { | |
7722 | (char *) "self", NULL | |
7723 | }; | |
7724 | ||
7725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
7726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7727 | { | |
7728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7729 | result = (long)(arg1)->GetType(); | |
7730 | ||
7731 | wxPyEndAllowThreads(__tstate); | |
7732 | if (PyErr_Occurred()) SWIG_fail; | |
7733 | } | |
8edf1c75 | 7734 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
7735 | return resultobj; |
7736 | fail: | |
7737 | return NULL; | |
7738 | } | |
7739 | ||
7740 | ||
7741 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7742 | PyObject *resultobj; | |
7743 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7744 | wxString result; | |
7745 | PyObject * obj0 = 0 ; | |
7746 | char *kwnames[] = { | |
7747 | (char *) "self", NULL | |
7748 | }; | |
7749 | ||
7750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
7751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7752 | { | |
7753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7754 | result = (arg1)->GetMimeType(); | |
7755 | ||
7756 | wxPyEndAllowThreads(__tstate); | |
7757 | if (PyErr_Occurred()) SWIG_fail; | |
7758 | } | |
7759 | { | |
7760 | #if wxUSE_UNICODE | |
7761 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7762 | #else | |
7763 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7764 | #endif | |
7765 | } | |
7766 | return resultobj; | |
7767 | fail: | |
7768 | return NULL; | |
7769 | } | |
7770 | ||
7771 | ||
7772 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7773 | PyObject *resultobj; | |
7774 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7775 | wxString *arg2 = 0 ; | |
7776 | bool result; | |
423f194a | 7777 | bool temp2 = False ; |
d14a1e28 RD |
7778 | PyObject * obj0 = 0 ; |
7779 | PyObject * obj1 = 0 ; | |
7780 | char *kwnames[] = { | |
7781 | (char *) "self",(char *) "name", NULL | |
7782 | }; | |
7783 | ||
7784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
7785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7786 | { | |
7787 | arg2 = wxString_in_helper(obj1); | |
7788 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7789 | temp2 = True; |
d14a1e28 RD |
7790 | } |
7791 | { | |
7792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7793 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
7794 | ||
7795 | wxPyEndAllowThreads(__tstate); | |
7796 | if (PyErr_Occurred()) SWIG_fail; | |
7797 | } | |
8edf1c75 | 7798 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
7799 | { |
7800 | if (temp2) | |
7801 | delete arg2; | |
7802 | } | |
7803 | return resultobj; | |
7804 | fail: | |
7805 | { | |
7806 | if (temp2) | |
7807 | delete arg2; | |
7808 | } | |
7809 | return NULL; | |
7810 | } | |
7811 | ||
7812 | ||
7813 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7814 | PyObject *resultobj; | |
7815 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7816 | wxString *arg2 = 0 ; | |
423f194a | 7817 | bool temp2 = False ; |
d14a1e28 RD |
7818 | PyObject * obj0 = 0 ; |
7819 | PyObject * obj1 = 0 ; | |
7820 | char *kwnames[] = { | |
7821 | (char *) "self",(char *) "name", NULL | |
7822 | }; | |
7823 | ||
7824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
7825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7826 | { | |
7827 | arg2 = wxString_in_helper(obj1); | |
7828 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7829 | temp2 = True; |
d14a1e28 RD |
7830 | } |
7831 | { | |
7832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7833 | (arg1)->SetName((wxString const &)*arg2); | |
7834 | ||
7835 | wxPyEndAllowThreads(__tstate); | |
7836 | if (PyErr_Occurred()) SWIG_fail; | |
7837 | } | |
7838 | Py_INCREF(Py_None); resultobj = Py_None; | |
7839 | { | |
7840 | if (temp2) | |
7841 | delete arg2; | |
7842 | } | |
7843 | return resultobj; | |
7844 | fail: | |
7845 | { | |
7846 | if (temp2) | |
7847 | delete arg2; | |
7848 | } | |
7849 | return NULL; | |
7850 | } | |
7851 | ||
7852 | ||
7853 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7854 | PyObject *resultobj; | |
7855 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7856 | wxString *arg2 = 0 ; | |
423f194a | 7857 | bool temp2 = False ; |
d14a1e28 RD |
7858 | PyObject * obj0 = 0 ; |
7859 | PyObject * obj1 = 0 ; | |
7860 | char *kwnames[] = { | |
7861 | (char *) "self",(char *) "extension", NULL | |
7862 | }; | |
7863 | ||
7864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
7865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7866 | { | |
7867 | arg2 = wxString_in_helper(obj1); | |
7868 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7869 | temp2 = True; |
d14a1e28 RD |
7870 | } |
7871 | { | |
7872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7873 | (arg1)->SetExtension((wxString const &)*arg2); | |
7874 | ||
7875 | wxPyEndAllowThreads(__tstate); | |
7876 | if (PyErr_Occurred()) SWIG_fail; | |
7877 | } | |
7878 | Py_INCREF(Py_None); resultobj = Py_None; | |
7879 | { | |
7880 | if (temp2) | |
7881 | delete arg2; | |
7882 | } | |
7883 | return resultobj; | |
7884 | fail: | |
7885 | { | |
7886 | if (temp2) | |
7887 | delete arg2; | |
7888 | } | |
7889 | return NULL; | |
7890 | } | |
7891 | ||
7892 | ||
7893 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7894 | PyObject *resultobj; | |
7895 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7896 | long arg2 ; | |
7897 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7898 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7899 | char *kwnames[] = { |
7900 | (char *) "self",(char *) "type", NULL | |
7901 | }; | |
7902 | ||
8edf1c75 | 7903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7905 | { |
7906 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
7907 | if (PyErr_Occurred()) SWIG_fail; | |
7908 | } | |
d14a1e28 RD |
7909 | { |
7910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7911 | (arg1)->SetType(arg2); | |
7912 | ||
7913 | wxPyEndAllowThreads(__tstate); | |
7914 | if (PyErr_Occurred()) SWIG_fail; | |
7915 | } | |
7916 | Py_INCREF(Py_None); resultobj = Py_None; | |
7917 | return resultobj; | |
7918 | fail: | |
7919 | return NULL; | |
7920 | } | |
7921 | ||
7922 | ||
7923 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7924 | PyObject *resultobj; | |
7925 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7926 | wxString *arg2 = 0 ; | |
423f194a | 7927 | bool temp2 = False ; |
d14a1e28 RD |
7928 | PyObject * obj0 = 0 ; |
7929 | PyObject * obj1 = 0 ; | |
7930 | char *kwnames[] = { | |
7931 | (char *) "self",(char *) "mimetype", NULL | |
7932 | }; | |
7933 | ||
7934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
7935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7936 | { | |
7937 | arg2 = wxString_in_helper(obj1); | |
7938 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7939 | temp2 = True; |
d14a1e28 RD |
7940 | } |
7941 | { | |
7942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7943 | (arg1)->SetMimeType((wxString const &)*arg2); | |
7944 | ||
7945 | wxPyEndAllowThreads(__tstate); | |
7946 | if (PyErr_Occurred()) SWIG_fail; | |
7947 | } | |
7948 | Py_INCREF(Py_None); resultobj = Py_None; | |
7949 | { | |
7950 | if (temp2) | |
7951 | delete arg2; | |
7952 | } | |
7953 | return resultobj; | |
7954 | fail: | |
7955 | { | |
7956 | if (temp2) | |
7957 | delete arg2; | |
7958 | } | |
7959 | return NULL; | |
7960 | } | |
7961 | ||
7962 | ||
7963 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
7964 | PyObject *obj; | |
7965 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7966 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
7967 | Py_INCREF(obj); | |
7968 | return Py_BuildValue((char *)""); | |
7969 | } | |
7970 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7971 | PyObject *resultobj; | |
7972 | wxImageHistogram *result; | |
7973 | char *kwnames[] = { | |
7974 | NULL | |
7975 | }; | |
7976 | ||
7977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
7978 | { | |
7979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7980 | result = (wxImageHistogram *)new wxImageHistogram(); | |
7981 | ||
7982 | wxPyEndAllowThreads(__tstate); | |
7983 | if (PyErr_Occurred()) SWIG_fail; | |
7984 | } | |
7985 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImageHistogram, 1); | |
7986 | return resultobj; | |
7987 | fail: | |
7988 | return NULL; | |
7989 | } | |
7990 | ||
7991 | ||
7992 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7993 | PyObject *resultobj; | |
7994 | unsigned char arg1 ; | |
7995 | unsigned char arg2 ; | |
7996 | unsigned char arg3 ; | |
7997 | unsigned long result; | |
7998 | PyObject * obj0 = 0 ; | |
7999 | PyObject * obj1 = 0 ; | |
8000 | PyObject * obj2 = 0 ; | |
8001 | char *kwnames[] = { | |
8002 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8003 | }; | |
8004 | ||
8005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
83448d71 | 8006 | { |
8edf1c75 | 8007 | arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0); |
83448d71 RD |
8008 | if (PyErr_Occurred()) SWIG_fail; |
8009 | } | |
8010 | { | |
8edf1c75 | 8011 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
8012 | if (PyErr_Occurred()) SWIG_fail; |
8013 | } | |
8014 | { | |
8edf1c75 | 8015 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
8016 | if (PyErr_Occurred()) SWIG_fail; |
8017 | } | |
d14a1e28 RD |
8018 | { |
8019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8020 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8021 | ||
8022 | wxPyEndAllowThreads(__tstate); | |
8023 | if (PyErr_Occurred()) SWIG_fail; | |
8024 | } | |
8edf1c75 | 8025 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8026 | return resultobj; |
8027 | fail: | |
8028 | return NULL; | |
8029 | } | |
8030 | ||
8031 | ||
8032 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8033 | PyObject *resultobj; | |
8034 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8035 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8036 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8037 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8038 | unsigned char arg5 = (unsigned char) 1 ; | |
8039 | unsigned char arg6 = (unsigned char) 0 ; | |
8040 | unsigned char arg7 = (unsigned char) 0 ; | |
8041 | bool result; | |
8042 | unsigned char temp2 ; | |
8043 | unsigned char temp3 ; | |
8044 | unsigned char temp4 ; | |
8045 | PyObject * obj0 = 0 ; | |
8046 | PyObject * obj1 = 0 ; | |
8047 | PyObject * obj2 = 0 ; | |
8048 | PyObject * obj3 = 0 ; | |
8049 | char *kwnames[] = { | |
8050 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8051 | }; | |
8052 | ||
8053 | arg2 = &temp2; | |
8054 | arg3 = &temp3; | |
8055 | arg4 = &temp4; | |
8056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8058 | if (obj1) { | |
83448d71 | 8059 | { |
8edf1c75 | 8060 | arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
8061 | if (PyErr_Occurred()) SWIG_fail; |
8062 | } | |
d14a1e28 RD |
8063 | } |
8064 | if (obj2) { | |
83448d71 | 8065 | { |
8edf1c75 | 8066 | arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
8067 | if (PyErr_Occurred()) SWIG_fail; |
8068 | } | |
d14a1e28 RD |
8069 | } |
8070 | if (obj3) { | |
83448d71 | 8071 | { |
8edf1c75 | 8072 | arg7 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
8073 | if (PyErr_Occurred()) SWIG_fail; |
8074 | } | |
d14a1e28 RD |
8075 | } |
8076 | { | |
8077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8078 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8079 | ||
8080 | wxPyEndAllowThreads(__tstate); | |
8081 | if (PyErr_Occurred()) SWIG_fail; | |
8082 | } | |
8edf1c75 | 8083 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8084 | { |
8085 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8086 | resultobj = t_output_helper(resultobj,o); | |
8087 | } | |
8088 | { | |
8089 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8090 | resultobj = t_output_helper(resultobj,o); | |
8091 | } | |
8092 | { | |
8093 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8094 | resultobj = t_output_helper(resultobj,o); | |
8095 | } | |
8096 | return resultobj; | |
8097 | fail: | |
8098 | return NULL; | |
8099 | } | |
8100 | ||
8101 | ||
8102 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8103 | PyObject *obj; | |
8104 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8105 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8106 | Py_INCREF(obj); | |
8107 | return Py_BuildValue((char *)""); | |
8108 | } | |
8109 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8110 | PyObject *resultobj; | |
8111 | wxString *arg1 = 0 ; | |
8112 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8113 | int arg3 = (int) -1 ; | |
8114 | wxImage *result; | |
423f194a | 8115 | bool temp1 = False ; |
d14a1e28 | 8116 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
8117 | PyObject * obj1 = 0 ; |
8118 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8119 | char *kwnames[] = { |
8120 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8121 | }; | |
8122 | ||
8edf1c75 | 8123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8124 | { |
8125 | arg1 = wxString_in_helper(obj0); | |
8126 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8127 | temp1 = True; |
d14a1e28 | 8128 | } |
8edf1c75 RD |
8129 | if (obj1) { |
8130 | { | |
8131 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8132 | if (PyErr_Occurred()) SWIG_fail; | |
8133 | } | |
8134 | } | |
8135 | if (obj2) { | |
8136 | { | |
8137 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8138 | if (PyErr_Occurred()) SWIG_fail; | |
8139 | } | |
8140 | } | |
d14a1e28 RD |
8141 | { |
8142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8143 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8144 | ||
8145 | wxPyEndAllowThreads(__tstate); | |
8146 | if (PyErr_Occurred()) SWIG_fail; | |
8147 | } | |
8148 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8149 | { | |
8150 | if (temp1) | |
8151 | delete arg1; | |
8152 | } | |
8153 | return resultobj; | |
8154 | fail: | |
8155 | { | |
8156 | if (temp1) | |
8157 | delete arg1; | |
8158 | } | |
8159 | return NULL; | |
8160 | } | |
8161 | ||
8162 | ||
8163 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8164 | PyObject *resultobj; | |
8165 | wxImage *arg1 = (wxImage *) 0 ; | |
8166 | PyObject * obj0 = 0 ; | |
8167 | char *kwnames[] = { | |
8168 | (char *) "self", NULL | |
8169 | }; | |
8170 | ||
8171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
8172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8173 | { | |
8174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8175 | delete arg1; | |
8176 | ||
8177 | wxPyEndAllowThreads(__tstate); | |
8178 | if (PyErr_Occurred()) SWIG_fail; | |
8179 | } | |
8180 | Py_INCREF(Py_None); resultobj = Py_None; | |
8181 | return resultobj; | |
8182 | fail: | |
8183 | return NULL; | |
8184 | } | |
8185 | ||
8186 | ||
8187 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8188 | PyObject *resultobj; | |
8189 | wxString *arg1 = 0 ; | |
8190 | wxString *arg2 = 0 ; | |
8191 | int arg3 = (int) -1 ; | |
8192 | wxImage *result; | |
423f194a RD |
8193 | bool temp1 = False ; |
8194 | bool temp2 = False ; | |
d14a1e28 RD |
8195 | PyObject * obj0 = 0 ; |
8196 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8197 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8198 | char *kwnames[] = { |
8199 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8200 | }; | |
8201 | ||
8edf1c75 | 8202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8203 | { |
8204 | arg1 = wxString_in_helper(obj0); | |
8205 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8206 | temp1 = True; |
d14a1e28 RD |
8207 | } |
8208 | { | |
8209 | arg2 = wxString_in_helper(obj1); | |
8210 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8211 | temp2 = True; |
d14a1e28 | 8212 | } |
8edf1c75 RD |
8213 | if (obj2) { |
8214 | { | |
8215 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8216 | if (PyErr_Occurred()) SWIG_fail; | |
8217 | } | |
8218 | } | |
d14a1e28 RD |
8219 | { |
8220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8221 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8222 | ||
8223 | wxPyEndAllowThreads(__tstate); | |
8224 | if (PyErr_Occurred()) SWIG_fail; | |
8225 | } | |
8226 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8227 | { | |
8228 | if (temp1) | |
8229 | delete arg1; | |
8230 | } | |
8231 | { | |
8232 | if (temp2) | |
8233 | delete arg2; | |
8234 | } | |
8235 | return resultobj; | |
8236 | fail: | |
8237 | { | |
8238 | if (temp1) | |
8239 | delete arg1; | |
8240 | } | |
8241 | { | |
8242 | if (temp2) | |
8243 | delete arg2; | |
8244 | } | |
8245 | return NULL; | |
8246 | } | |
8247 | ||
8248 | ||
8249 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8250 | PyObject *resultobj; | |
8251 | wxInputStream *arg1 = 0 ; | |
8252 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8253 | int arg3 = (int) -1 ; | |
8254 | wxImage *result; | |
8255 | wxPyInputStream *temp1 ; | |
8256 | bool created1 ; | |
8257 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8258 | PyObject * obj1 = 0 ; |
8259 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8260 | char *kwnames[] = { |
8261 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8262 | }; | |
8263 | ||
8edf1c75 | 8264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8265 | { |
8266 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8267 | arg1 = temp1->m_wxis; | |
423f194a | 8268 | created1 = False; |
d14a1e28 RD |
8269 | } else { |
8270 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8271 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8272 | if (arg1 == NULL) { |
8273 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8274 | SWIG_fail; | |
8275 | } | |
423f194a | 8276 | created1 = True; |
d14a1e28 RD |
8277 | } |
8278 | } | |
8edf1c75 RD |
8279 | if (obj1) { |
8280 | { | |
8281 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
8282 | if (PyErr_Occurred()) SWIG_fail; | |
8283 | } | |
8284 | } | |
8285 | if (obj2) { | |
8286 | { | |
8287 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8288 | if (PyErr_Occurred()) SWIG_fail; | |
8289 | } | |
8290 | } | |
d14a1e28 RD |
8291 | { |
8292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8293 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8294 | ||
8295 | wxPyEndAllowThreads(__tstate); | |
8296 | if (PyErr_Occurred()) SWIG_fail; | |
8297 | } | |
8298 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8299 | { | |
8300 | if (created1) | |
8301 | delete arg1; | |
8302 | } | |
8303 | return resultobj; | |
8304 | fail: | |
8305 | { | |
8306 | if (created1) | |
8307 | delete arg1; | |
8308 | } | |
8309 | return NULL; | |
8310 | } | |
8311 | ||
8312 | ||
8313 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8314 | PyObject *resultobj; | |
8315 | wxInputStream *arg1 = 0 ; | |
8316 | wxString *arg2 = 0 ; | |
8317 | int arg3 = (int) -1 ; | |
8318 | wxImage *result; | |
8319 | wxPyInputStream *temp1 ; | |
8320 | bool created1 ; | |
423f194a | 8321 | bool temp2 = False ; |
d14a1e28 RD |
8322 | PyObject * obj0 = 0 ; |
8323 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8324 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8325 | char *kwnames[] = { |
8326 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8327 | }; | |
8328 | ||
8edf1c75 | 8329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8330 | { |
8331 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8332 | arg1 = temp1->m_wxis; | |
423f194a | 8333 | created1 = False; |
d14a1e28 RD |
8334 | } else { |
8335 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8336 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8337 | if (arg1 == NULL) { |
8338 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8339 | SWIG_fail; | |
8340 | } | |
423f194a | 8341 | created1 = True; |
d14a1e28 RD |
8342 | } |
8343 | } | |
8344 | { | |
8345 | arg2 = wxString_in_helper(obj1); | |
8346 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8347 | temp2 = True; |
d14a1e28 | 8348 | } |
8edf1c75 RD |
8349 | if (obj2) { |
8350 | { | |
8351 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8352 | if (PyErr_Occurred()) SWIG_fail; | |
8353 | } | |
8354 | } | |
d14a1e28 RD |
8355 | { |
8356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8357 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8358 | ||
8359 | wxPyEndAllowThreads(__tstate); | |
8360 | if (PyErr_Occurred()) SWIG_fail; | |
8361 | } | |
8362 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8363 | { | |
8364 | if (created1) | |
8365 | delete arg1; | |
8366 | } | |
8367 | { | |
8368 | if (temp2) | |
8369 | delete arg2; | |
8370 | } | |
8371 | return resultobj; | |
8372 | fail: | |
8373 | { | |
8374 | if (created1) | |
8375 | delete arg1; | |
8376 | } | |
8377 | { | |
8378 | if (temp2) | |
8379 | delete arg2; | |
8380 | } | |
8381 | return NULL; | |
8382 | } | |
8383 | ||
8384 | ||
8385 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8386 | PyObject *resultobj; | |
8387 | int arg1 = (int) 0 ; | |
8388 | int arg2 = (int) 0 ; | |
423f194a | 8389 | bool arg3 = (bool) True ; |
d14a1e28 | 8390 | wxImage *result; |
8edf1c75 RD |
8391 | PyObject * obj0 = 0 ; |
8392 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8393 | PyObject * obj2 = 0 ; |
8394 | char *kwnames[] = { | |
8395 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8396 | }; | |
8397 | ||
8edf1c75 RD |
8398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8399 | if (obj0) { | |
8400 | { | |
8401 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8402 | if (PyErr_Occurred()) SWIG_fail; | |
8403 | } | |
8404 | } | |
8405 | if (obj1) { | |
8406 | { | |
8407 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8408 | if (PyErr_Occurred()) SWIG_fail; | |
8409 | } | |
8410 | } | |
d14a1e28 | 8411 | if (obj2) { |
83448d71 | 8412 | { |
8edf1c75 | 8413 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
8414 | if (PyErr_Occurred()) SWIG_fail; |
8415 | } | |
d14a1e28 RD |
8416 | } |
8417 | { | |
8418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8419 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8420 | ||
8421 | wxPyEndAllowThreads(__tstate); | |
8422 | if (PyErr_Occurred()) SWIG_fail; | |
8423 | } | |
8424 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8425 | return resultobj; | |
8426 | fail: | |
8427 | return NULL; | |
8428 | } | |
8429 | ||
8430 | ||
8431 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8432 | PyObject *resultobj; | |
8433 | wxBitmap *arg1 = 0 ; | |
8434 | wxImage *result; | |
8435 | PyObject * obj0 = 0 ; | |
8436 | char *kwnames[] = { | |
8437 | (char *) "bitmap", NULL | |
8438 | }; | |
8439 | ||
8440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
8441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8442 | if (arg1 == NULL) { | |
8443 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8444 | } | |
8445 | { | |
8446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8447 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8448 | ||
8449 | wxPyEndAllowThreads(__tstate); | |
8450 | if (PyErr_Occurred()) SWIG_fail; | |
8451 | } | |
8452 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8453 | return resultobj; | |
8454 | fail: | |
8455 | return NULL; | |
8456 | } | |
8457 | ||
8458 | ||
8459 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8460 | PyObject *resultobj; | |
8461 | int arg1 ; | |
8462 | int arg2 ; | |
8463 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8464 | wxImage *result; | |
8edf1c75 RD |
8465 | PyObject * obj0 = 0 ; |
8466 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8467 | PyObject * obj2 = 0 ; |
8468 | char *kwnames[] = { | |
8469 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8470 | }; | |
8471 | ||
8edf1c75 RD |
8472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8473 | { | |
8474 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
8475 | if (PyErr_Occurred()) SWIG_fail; | |
8476 | } | |
8477 | { | |
8478 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8479 | if (PyErr_Occurred()) SWIG_fail; | |
8480 | } | |
d14a1e28 RD |
8481 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8482 | { | |
8483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8484 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8485 | ||
8486 | wxPyEndAllowThreads(__tstate); | |
8487 | if (PyErr_Occurred()) SWIG_fail; | |
8488 | } | |
8489 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1); | |
8490 | return resultobj; | |
8491 | fail: | |
8492 | return NULL; | |
8493 | } | |
8494 | ||
8495 | ||
8496 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8497 | PyObject *resultobj; | |
8498 | wxImage *arg1 = (wxImage *) 0 ; | |
8499 | int arg2 ; | |
8500 | int arg3 ; | |
8501 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8502 | PyObject * obj1 = 0 ; |
8503 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8504 | char *kwnames[] = { |
8505 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8506 | }; | |
8507 | ||
8edf1c75 | 8508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8510 | { |
8511 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8512 | if (PyErr_Occurred()) SWIG_fail; | |
8513 | } | |
8514 | { | |
8515 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8516 | if (PyErr_Occurred()) SWIG_fail; | |
8517 | } | |
d14a1e28 RD |
8518 | { |
8519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8520 | (arg1)->Create(arg2,arg3); | |
8521 | ||
8522 | wxPyEndAllowThreads(__tstate); | |
8523 | if (PyErr_Occurred()) SWIG_fail; | |
8524 | } | |
8525 | Py_INCREF(Py_None); resultobj = Py_None; | |
8526 | return resultobj; | |
8527 | fail: | |
8528 | return NULL; | |
8529 | } | |
8530 | ||
8531 | ||
8532 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8533 | PyObject *resultobj; | |
8534 | wxImage *arg1 = (wxImage *) 0 ; | |
8535 | PyObject * obj0 = 0 ; | |
8536 | char *kwnames[] = { | |
8537 | (char *) "self", NULL | |
8538 | }; | |
8539 | ||
8540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
8541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8542 | { | |
8543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8544 | (arg1)->Destroy(); | |
8545 | ||
8546 | wxPyEndAllowThreads(__tstate); | |
8547 | if (PyErr_Occurred()) SWIG_fail; | |
8548 | } | |
8549 | Py_INCREF(Py_None); resultobj = Py_None; | |
8550 | return resultobj; | |
8551 | fail: | |
8552 | return NULL; | |
8553 | } | |
8554 | ||
8555 | ||
8556 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8557 | PyObject *resultobj; | |
8558 | wxImage *arg1 = (wxImage *) 0 ; | |
8559 | int arg2 ; | |
8560 | int arg3 ; | |
8561 | SwigValueWrapper< wxImage > result; | |
8562 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8563 | PyObject * obj1 = 0 ; |
8564 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8565 | char *kwnames[] = { |
8566 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8567 | }; | |
8568 | ||
8edf1c75 | 8569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8571 | { |
8572 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8573 | if (PyErr_Occurred()) SWIG_fail; | |
8574 | } | |
8575 | { | |
8576 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8577 | if (PyErr_Occurred()) SWIG_fail; | |
8578 | } | |
d14a1e28 RD |
8579 | { |
8580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8581 | result = (arg1)->Scale(arg2,arg3); | |
8582 | ||
8583 | wxPyEndAllowThreads(__tstate); | |
8584 | if (PyErr_Occurred()) SWIG_fail; | |
8585 | } | |
8586 | { | |
8587 | wxImage * resultptr; | |
8588 | resultptr = new wxImage((wxImage &) result); | |
8589 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8590 | } | |
8591 | return resultobj; | |
8592 | fail: | |
8593 | return NULL; | |
8594 | } | |
8595 | ||
8596 | ||
8597 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8598 | PyObject *resultobj; | |
8599 | wxImage *arg1 = (wxImage *) 0 ; | |
8600 | int arg2 ; | |
8601 | int arg3 ; | |
8602 | SwigValueWrapper< wxImage > result; | |
8603 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8604 | PyObject * obj1 = 0 ; |
8605 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8606 | char *kwnames[] = { |
8607 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
8608 | }; | |
8609 | ||
8edf1c75 | 8610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8612 | { |
8613 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8614 | if (PyErr_Occurred()) SWIG_fail; | |
8615 | } | |
8616 | { | |
8617 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8618 | if (PyErr_Occurred()) SWIG_fail; | |
8619 | } | |
d14a1e28 RD |
8620 | { |
8621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8622 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
8623 | ||
8624 | wxPyEndAllowThreads(__tstate); | |
8625 | if (PyErr_Occurred()) SWIG_fail; | |
8626 | } | |
8627 | { | |
8628 | wxImage * resultptr; | |
8629 | resultptr = new wxImage((wxImage &) result); | |
8630 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
8631 | } | |
8632 | return resultobj; | |
8633 | fail: | |
8634 | return NULL; | |
8635 | } | |
8636 | ||
8637 | ||
8638 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8639 | PyObject *resultobj; | |
8640 | wxImage *arg1 = (wxImage *) 0 ; | |
8641 | int arg2 ; | |
8642 | int arg3 ; | |
8643 | wxImage *result; | |
8644 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8645 | PyObject * obj1 = 0 ; |
8646 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8647 | char *kwnames[] = { |
8648 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8649 | }; | |
8650 | ||
8edf1c75 | 8651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8653 | { |
8654 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8655 | if (PyErr_Occurred()) SWIG_fail; | |
8656 | } | |
8657 | { | |
8658 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8659 | if (PyErr_Occurred()) SWIG_fail; | |
8660 | } | |
d14a1e28 RD |
8661 | { |
8662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8663 | { | |
8664 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
8665 | result = (wxImage *) &_result_ref; | |
8666 | } | |
8667 | ||
8668 | wxPyEndAllowThreads(__tstate); | |
8669 | if (PyErr_Occurred()) SWIG_fail; | |
8670 | } | |
8671 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 0); | |
8672 | return resultobj; | |
8673 | fail: | |
8674 | return NULL; | |
8675 | } | |
8676 | ||
8677 | ||
8678 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8679 | PyObject *resultobj; | |
8680 | wxImage *arg1 = (wxImage *) 0 ; | |
8681 | int arg2 ; | |
8682 | int arg3 ; | |
8683 | unsigned char arg4 ; | |
8684 | unsigned char arg5 ; | |
8685 | unsigned char arg6 ; | |
8686 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8687 | PyObject * obj1 = 0 ; |
8688 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8689 | PyObject * obj3 = 0 ; |
8690 | PyObject * obj4 = 0 ; | |
8691 | PyObject * obj5 = 0 ; | |
8692 | char *kwnames[] = { | |
8693 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
8694 | }; | |
8695 | ||
8edf1c75 | 8696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 8697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 8698 | { |
8edf1c75 RD |
8699 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
8700 | if (PyErr_Occurred()) SWIG_fail; | |
8701 | } | |
8702 | { | |
8703 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8704 | if (PyErr_Occurred()) SWIG_fail; | |
8705 | } | |
8706 | { | |
8707 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); | |
83448d71 RD |
8708 | if (PyErr_Occurred()) SWIG_fail; |
8709 | } | |
8710 | { | |
8edf1c75 | 8711 | arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj4); |
83448d71 RD |
8712 | if (PyErr_Occurred()) SWIG_fail; |
8713 | } | |
8714 | { | |
8edf1c75 | 8715 | arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj5); |
83448d71 RD |
8716 | if (PyErr_Occurred()) SWIG_fail; |
8717 | } | |
d14a1e28 RD |
8718 | { |
8719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8720 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
8721 | ||
8722 | wxPyEndAllowThreads(__tstate); | |
8723 | if (PyErr_Occurred()) SWIG_fail; | |
8724 | } | |
8725 | Py_INCREF(Py_None); resultobj = Py_None; | |
8726 | return resultobj; | |
8727 | fail: | |
8728 | return NULL; | |
8729 | } | |
8730 | ||
8731 | ||
8732 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8733 | PyObject *resultobj; | |
8734 | wxImage *arg1 = (wxImage *) 0 ; | |
8735 | int arg2 ; | |
8736 | int arg3 ; | |
8737 | unsigned char result; | |
8738 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8739 | PyObject * obj1 = 0 ; |
8740 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8741 | char *kwnames[] = { |
8742 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8743 | }; | |
8744 | ||
8edf1c75 | 8745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8747 | { |
8748 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8749 | if (PyErr_Occurred()) SWIG_fail; | |
8750 | } | |
8751 | { | |
8752 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8753 | if (PyErr_Occurred()) SWIG_fail; | |
8754 | } | |
d14a1e28 RD |
8755 | { |
8756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8757 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
8758 | ||
8759 | wxPyEndAllowThreads(__tstate); | |
8760 | if (PyErr_Occurred()) SWIG_fail; | |
8761 | } | |
8edf1c75 | 8762 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
8763 | return resultobj; |
8764 | fail: | |
8765 | return NULL; | |
8766 | } | |
8767 | ||
8768 | ||
8769 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8770 | PyObject *resultobj; | |
8771 | wxImage *arg1 = (wxImage *) 0 ; | |
8772 | int arg2 ; | |
8773 | int arg3 ; | |
8774 | unsigned char result; | |
8775 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8776 | PyObject * obj1 = 0 ; |
8777 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8778 | char *kwnames[] = { |
8779 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8780 | }; | |
8781 | ||
8edf1c75 | 8782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8784 | { |
8785 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8786 | if (PyErr_Occurred()) SWIG_fail; | |
8787 | } | |
8788 | { | |
8789 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8790 | if (PyErr_Occurred()) SWIG_fail; | |
8791 | } | |
d14a1e28 RD |
8792 | { |
8793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8794 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
8795 | ||
8796 | wxPyEndAllowThreads(__tstate); | |
8797 | if (PyErr_Occurred()) SWIG_fail; | |
8798 | } | |
8edf1c75 | 8799 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
8800 | return resultobj; |
8801 | fail: | |
8802 | return NULL; | |
8803 | } | |
8804 | ||
8805 | ||
8806 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8807 | PyObject *resultobj; | |
8808 | wxImage *arg1 = (wxImage *) 0 ; | |
8809 | int arg2 ; | |
8810 | int arg3 ; | |
8811 | unsigned char result; | |
8812 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8813 | PyObject * obj1 = 0 ; |
8814 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8815 | char *kwnames[] = { |
8816 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8817 | }; | |
8818 | ||
8edf1c75 | 8819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8821 | { |
8822 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8823 | if (PyErr_Occurred()) SWIG_fail; | |
8824 | } | |
8825 | { | |
8826 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8827 | if (PyErr_Occurred()) SWIG_fail; | |
8828 | } | |
d14a1e28 RD |
8829 | { |
8830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8831 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
8832 | ||
8833 | wxPyEndAllowThreads(__tstate); | |
8834 | if (PyErr_Occurred()) SWIG_fail; | |
8835 | } | |
8edf1c75 | 8836 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
8837 | return resultobj; |
8838 | fail: | |
8839 | return NULL; | |
8840 | } | |
8841 | ||
8842 | ||
8843 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8844 | PyObject *resultobj; | |
8845 | wxImage *arg1 = (wxImage *) 0 ; | |
8846 | int arg2 ; | |
8847 | int arg3 ; | |
8848 | unsigned char arg4 ; | |
8849 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8850 | PyObject * obj1 = 0 ; |
8851 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8852 | PyObject * obj3 = 0 ; |
8853 | char *kwnames[] = { | |
8854 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
8855 | }; | |
8856 | ||
8edf1c75 | 8857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 8859 | { |
8edf1c75 RD |
8860 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
8861 | if (PyErr_Occurred()) SWIG_fail; | |
8862 | } | |
8863 | { | |
8864 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8865 | if (PyErr_Occurred()) SWIG_fail; | |
8866 | } | |
8867 | { | |
8868 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); | |
83448d71 RD |
8869 | if (PyErr_Occurred()) SWIG_fail; |
8870 | } | |
d14a1e28 RD |
8871 | { |
8872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8873 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
8874 | ||
8875 | wxPyEndAllowThreads(__tstate); | |
8876 | if (PyErr_Occurred()) SWIG_fail; | |
8877 | } | |
8878 | Py_INCREF(Py_None); resultobj = Py_None; | |
8879 | return resultobj; | |
8880 | fail: | |
8881 | return NULL; | |
8882 | } | |
8883 | ||
8884 | ||
8885 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8886 | PyObject *resultobj; | |
8887 | wxImage *arg1 = (wxImage *) 0 ; | |
8888 | int arg2 ; | |
8889 | int arg3 ; | |
8890 | unsigned char result; | |
8891 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8892 | PyObject * obj1 = 0 ; |
8893 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8894 | char *kwnames[] = { |
8895 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8896 | }; | |
8897 | ||
8edf1c75 | 8898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8900 | { |
8901 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8902 | if (PyErr_Occurred()) SWIG_fail; | |
8903 | } | |
8904 | { | |
8905 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8906 | if (PyErr_Occurred()) SWIG_fail; | |
8907 | } | |
d14a1e28 RD |
8908 | { |
8909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8910 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
8911 | ||
8912 | wxPyEndAllowThreads(__tstate); | |
8913 | if (PyErr_Occurred()) SWIG_fail; | |
8914 | } | |
8edf1c75 | 8915 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
8916 | return resultobj; |
8917 | fail: | |
8918 | return NULL; | |
8919 | } | |
8920 | ||
8921 | ||
8922 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8923 | PyObject *resultobj; | |
8924 | wxImage *arg1 = (wxImage *) 0 ; | |
8925 | bool result; | |
8926 | PyObject * obj0 = 0 ; | |
8927 | char *kwnames[] = { | |
8928 | (char *) "self", NULL | |
8929 | }; | |
8930 | ||
8931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
8932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8933 | { | |
8934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8935 | result = (bool)(arg1)->HasAlpha(); | |
8936 | ||
8937 | wxPyEndAllowThreads(__tstate); | |
8938 | if (PyErr_Occurred()) SWIG_fail; | |
8939 | } | |
8edf1c75 | 8940 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8941 | return resultobj; |
8942 | fail: | |
8943 | return NULL; | |
8944 | } | |
8945 | ||
8946 | ||
8947 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8948 | PyObject *resultobj; | |
8949 | wxImage *arg1 = (wxImage *) 0 ; | |
8950 | byte *arg2 = (byte *) 0 ; | |
8951 | byte *arg3 = (byte *) 0 ; | |
8952 | byte *arg4 = (byte *) 0 ; | |
8953 | byte arg5 = (byte) 0 ; | |
8954 | byte arg6 = (byte) 0 ; | |
8955 | byte arg7 = (byte) 0 ; | |
8956 | bool result; | |
8957 | byte temp2 ; | |
8958 | byte temp3 ; | |
8959 | byte temp4 ; | |
8960 | PyObject * obj0 = 0 ; | |
8961 | PyObject * obj1 = 0 ; | |
8962 | PyObject * obj2 = 0 ; | |
8963 | PyObject * obj3 = 0 ; | |
8964 | char *kwnames[] = { | |
8965 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8966 | }; | |
8967 | ||
8968 | arg2 = &temp2; | |
8969 | arg3 = &temp3; | |
8970 | arg4 = &temp4; | |
8971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8973 | if (obj1) { | |
83448d71 | 8974 | { |
8edf1c75 | 8975 | arg5 = (byte) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
8976 | if (PyErr_Occurred()) SWIG_fail; |
8977 | } | |
d14a1e28 RD |
8978 | } |
8979 | if (obj2) { | |
83448d71 | 8980 | { |
8edf1c75 | 8981 | arg6 = (byte) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
8982 | if (PyErr_Occurred()) SWIG_fail; |
8983 | } | |
d14a1e28 RD |
8984 | } |
8985 | if (obj3) { | |
83448d71 | 8986 | { |
8edf1c75 | 8987 | arg7 = (byte) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
8988 | if (PyErr_Occurred()) SWIG_fail; |
8989 | } | |
d14a1e28 RD |
8990 | } |
8991 | { | |
8992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8993 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8994 | ||
8995 | wxPyEndAllowThreads(__tstate); | |
8996 | if (PyErr_Occurred()) SWIG_fail; | |
8997 | } | |
8edf1c75 | 8998 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8999 | { |
9000 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9001 | resultobj = t_output_helper(resultobj,o); | |
9002 | } | |
9003 | { | |
9004 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9005 | resultobj = t_output_helper(resultobj,o); | |
9006 | } | |
9007 | { | |
9008 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9009 | resultobj = t_output_helper(resultobj,o); | |
9010 | } | |
9011 | return resultobj; | |
9012 | fail: | |
9013 | return NULL; | |
9014 | } | |
9015 | ||
9016 | ||
9017 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9018 | PyObject *resultobj; | |
9019 | wxImage *arg1 = (wxImage *) 0 ; | |
9020 | wxImage *arg2 = 0 ; | |
9021 | byte arg3 ; | |
9022 | byte arg4 ; | |
9023 | byte arg5 ; | |
9024 | bool result; | |
9025 | PyObject * obj0 = 0 ; | |
9026 | PyObject * obj1 = 0 ; | |
9027 | PyObject * obj2 = 0 ; | |
9028 | PyObject * obj3 = 0 ; | |
9029 | PyObject * obj4 = 0 ; | |
9030 | char *kwnames[] = { | |
9031 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9032 | }; | |
9033 | ||
9034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9036 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9037 | if (arg2 == NULL) { | |
9038 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9039 | } | |
83448d71 | 9040 | { |
8edf1c75 | 9041 | arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
9042 | if (PyErr_Occurred()) SWIG_fail; |
9043 | } | |
9044 | { | |
8edf1c75 | 9045 | arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
9046 | if (PyErr_Occurred()) SWIG_fail; |
9047 | } | |
9048 | { | |
8edf1c75 | 9049 | arg5 = (byte) SWIG_PyObj_AsUnsignedChar(obj4); |
83448d71 RD |
9050 | if (PyErr_Occurred()) SWIG_fail; |
9051 | } | |
d14a1e28 RD |
9052 | { |
9053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9054 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9055 | ||
9056 | wxPyEndAllowThreads(__tstate); | |
9057 | if (PyErr_Occurred()) SWIG_fail; | |
9058 | } | |
8edf1c75 | 9059 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9060 | return resultobj; |
9061 | fail: | |
9062 | return NULL; | |
9063 | } | |
9064 | ||
9065 | ||
9066 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9067 | PyObject *resultobj; | |
9068 | wxString *arg1 = 0 ; | |
9069 | bool result; | |
423f194a | 9070 | bool temp1 = False ; |
d14a1e28 RD |
9071 | PyObject * obj0 = 0 ; |
9072 | char *kwnames[] = { | |
9073 | (char *) "name", NULL | |
9074 | }; | |
9075 | ||
9076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9077 | { | |
9078 | arg1 = wxString_in_helper(obj0); | |
9079 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9080 | temp1 = True; |
d14a1e28 RD |
9081 | } |
9082 | { | |
9083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9084 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9085 | ||
9086 | wxPyEndAllowThreads(__tstate); | |
9087 | if (PyErr_Occurred()) SWIG_fail; | |
9088 | } | |
8edf1c75 | 9089 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9090 | { |
9091 | if (temp1) | |
9092 | delete arg1; | |
9093 | } | |
9094 | return resultobj; | |
9095 | fail: | |
9096 | { | |
9097 | if (temp1) | |
9098 | delete arg1; | |
9099 | } | |
9100 | return NULL; | |
9101 | } | |
9102 | ||
9103 | ||
9104 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9105 | PyObject *resultobj; | |
9106 | wxString *arg1 = 0 ; | |
9107 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9108 | int result; | |
423f194a | 9109 | bool temp1 = False ; |
d14a1e28 | 9110 | PyObject * obj0 = 0 ; |
8edf1c75 | 9111 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9112 | char *kwnames[] = { |
9113 | (char *) "name",(char *) "type", NULL | |
9114 | }; | |
9115 | ||
8edf1c75 | 9116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9117 | { |
9118 | arg1 = wxString_in_helper(obj0); | |
9119 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9120 | temp1 = True; |
d14a1e28 | 9121 | } |
8edf1c75 RD |
9122 | if (obj1) { |
9123 | { | |
9124 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
9125 | if (PyErr_Occurred()) SWIG_fail; | |
9126 | } | |
9127 | } | |
d14a1e28 RD |
9128 | { |
9129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9130 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9131 | ||
9132 | wxPyEndAllowThreads(__tstate); | |
9133 | if (PyErr_Occurred()) SWIG_fail; | |
9134 | } | |
8edf1c75 | 9135 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9136 | { |
9137 | if (temp1) | |
9138 | delete arg1; | |
9139 | } | |
9140 | return resultobj; | |
9141 | fail: | |
9142 | { | |
9143 | if (temp1) | |
9144 | delete arg1; | |
9145 | } | |
9146 | return NULL; | |
9147 | } | |
9148 | ||
9149 | ||
9150 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9151 | PyObject *resultobj; | |
9152 | wxImage *arg1 = (wxImage *) 0 ; | |
9153 | wxString *arg2 = 0 ; | |
9154 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9155 | int arg4 = (int) -1 ; | |
9156 | bool result; | |
423f194a | 9157 | bool temp2 = False ; |
d14a1e28 RD |
9158 | PyObject * obj0 = 0 ; |
9159 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9160 | PyObject * obj2 = 0 ; |
9161 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9162 | char *kwnames[] = { |
9163 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9164 | }; | |
9165 | ||
8edf1c75 | 9166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9168 | { | |
9169 | arg2 = wxString_in_helper(obj1); | |
9170 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9171 | temp2 = True; |
d14a1e28 | 9172 | } |
8edf1c75 RD |
9173 | if (obj2) { |
9174 | { | |
9175 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9176 | if (PyErr_Occurred()) SWIG_fail; | |
9177 | } | |
9178 | } | |
9179 | if (obj3) { | |
9180 | { | |
9181 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9182 | if (PyErr_Occurred()) SWIG_fail; | |
9183 | } | |
9184 | } | |
d14a1e28 RD |
9185 | { |
9186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9187 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9188 | ||
9189 | wxPyEndAllowThreads(__tstate); | |
9190 | if (PyErr_Occurred()) SWIG_fail; | |
9191 | } | |
8edf1c75 | 9192 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9193 | { |
9194 | if (temp2) | |
9195 | delete arg2; | |
9196 | } | |
9197 | return resultobj; | |
9198 | fail: | |
9199 | { | |
9200 | if (temp2) | |
9201 | delete arg2; | |
9202 | } | |
9203 | return NULL; | |
9204 | } | |
9205 | ||
9206 | ||
9207 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9208 | PyObject *resultobj; | |
9209 | wxImage *arg1 = (wxImage *) 0 ; | |
9210 | wxString *arg2 = 0 ; | |
9211 | wxString *arg3 = 0 ; | |
9212 | int arg4 = (int) -1 ; | |
9213 | bool result; | |
423f194a RD |
9214 | bool temp2 = False ; |
9215 | bool temp3 = False ; | |
d14a1e28 RD |
9216 | PyObject * obj0 = 0 ; |
9217 | PyObject * obj1 = 0 ; | |
9218 | PyObject * obj2 = 0 ; | |
8edf1c75 | 9219 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9220 | char *kwnames[] = { |
9221 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9222 | }; | |
9223 | ||
8edf1c75 | 9224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9226 | { | |
9227 | arg2 = wxString_in_helper(obj1); | |
9228 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9229 | temp2 = True; |
d14a1e28 RD |
9230 | } |
9231 | { | |
9232 | arg3 = wxString_in_helper(obj2); | |
9233 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9234 | temp3 = True; |
d14a1e28 | 9235 | } |
8edf1c75 RD |
9236 | if (obj3) { |
9237 | { | |
9238 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9239 | if (PyErr_Occurred()) SWIG_fail; | |
9240 | } | |
9241 | } | |
d14a1e28 RD |
9242 | { |
9243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9244 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9245 | ||
9246 | wxPyEndAllowThreads(__tstate); | |
9247 | if (PyErr_Occurred()) SWIG_fail; | |
9248 | } | |
8edf1c75 | 9249 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9250 | { |
9251 | if (temp2) | |
9252 | delete arg2; | |
9253 | } | |
9254 | { | |
9255 | if (temp3) | |
9256 | delete arg3; | |
9257 | } | |
9258 | return resultobj; | |
9259 | fail: | |
9260 | { | |
9261 | if (temp2) | |
9262 | delete arg2; | |
9263 | } | |
9264 | { | |
9265 | if (temp3) | |
9266 | delete arg3; | |
9267 | } | |
9268 | return NULL; | |
9269 | } | |
9270 | ||
9271 | ||
9272 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9273 | PyObject *resultobj; | |
9274 | wxImage *arg1 = (wxImage *) 0 ; | |
9275 | wxString *arg2 = 0 ; | |
9276 | int arg3 ; | |
9277 | bool result; | |
423f194a | 9278 | bool temp2 = False ; |
d14a1e28 RD |
9279 | PyObject * obj0 = 0 ; |
9280 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9281 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9282 | char *kwnames[] = { |
9283 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9284 | }; | |
9285 | ||
8edf1c75 | 9286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
9287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9288 | { | |
9289 | arg2 = wxString_in_helper(obj1); | |
9290 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9291 | temp2 = True; |
d14a1e28 | 9292 | } |
8edf1c75 RD |
9293 | { |
9294 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9295 | if (PyErr_Occurred()) SWIG_fail; | |
9296 | } | |
d14a1e28 RD |
9297 | { |
9298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9299 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9300 | ||
9301 | wxPyEndAllowThreads(__tstate); | |
9302 | if (PyErr_Occurred()) SWIG_fail; | |
9303 | } | |
8edf1c75 | 9304 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9305 | { |
9306 | if (temp2) | |
9307 | delete arg2; | |
9308 | } | |
9309 | return resultobj; | |
9310 | fail: | |
9311 | { | |
9312 | if (temp2) | |
9313 | delete arg2; | |
9314 | } | |
9315 | return NULL; | |
9316 | } | |
9317 | ||
9318 | ||
9319 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9320 | PyObject *resultobj; | |
9321 | wxImage *arg1 = (wxImage *) 0 ; | |
9322 | wxString *arg2 = 0 ; | |
9323 | wxString *arg3 = 0 ; | |
9324 | bool result; | |
423f194a RD |
9325 | bool temp2 = False ; |
9326 | bool temp3 = False ; | |
d14a1e28 RD |
9327 | PyObject * obj0 = 0 ; |
9328 | PyObject * obj1 = 0 ; | |
9329 | PyObject * obj2 = 0 ; | |
9330 | char *kwnames[] = { | |
9331 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9332 | }; | |
9333 | ||
9334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9336 | { | |
9337 | arg2 = wxString_in_helper(obj1); | |
9338 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9339 | temp2 = True; |
d14a1e28 RD |
9340 | } |
9341 | { | |
9342 | arg3 = wxString_in_helper(obj2); | |
9343 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9344 | temp3 = True; |
d14a1e28 RD |
9345 | } |
9346 | { | |
9347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9348 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9349 | ||
9350 | wxPyEndAllowThreads(__tstate); | |
9351 | if (PyErr_Occurred()) SWIG_fail; | |
9352 | } | |
8edf1c75 | 9353 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9354 | { |
9355 | if (temp2) | |
9356 | delete arg2; | |
9357 | } | |
9358 | { | |
9359 | if (temp3) | |
9360 | delete arg3; | |
9361 | } | |
9362 | return resultobj; | |
9363 | fail: | |
9364 | { | |
9365 | if (temp2) | |
9366 | delete arg2; | |
9367 | } | |
9368 | { | |
9369 | if (temp3) | |
9370 | delete arg3; | |
9371 | } | |
9372 | return NULL; | |
9373 | } | |
9374 | ||
9375 | ||
9376 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9377 | PyObject *resultobj; | |
9378 | wxInputStream *arg1 = 0 ; | |
9379 | bool result; | |
9380 | wxPyInputStream *temp1 ; | |
9381 | bool created1 ; | |
9382 | PyObject * obj0 = 0 ; | |
9383 | char *kwnames[] = { | |
9384 | (char *) "stream", NULL | |
9385 | }; | |
9386 | ||
9387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9388 | { | |
9389 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9390 | arg1 = temp1->m_wxis; | |
423f194a | 9391 | created1 = False; |
d14a1e28 RD |
9392 | } else { |
9393 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9394 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
9395 | if (arg1 == NULL) { |
9396 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9397 | SWIG_fail; | |
9398 | } | |
423f194a | 9399 | created1 = True; |
d14a1e28 RD |
9400 | } |
9401 | } | |
9402 | { | |
9403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9404 | result = (bool)wxImage::CanRead(*arg1); | |
9405 | ||
9406 | wxPyEndAllowThreads(__tstate); | |
9407 | if (PyErr_Occurred()) SWIG_fail; | |
9408 | } | |
8edf1c75 | 9409 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9410 | { |
9411 | if (created1) | |
9412 | delete arg1; | |
9413 | } | |
9414 | return resultobj; | |
9415 | fail: | |
9416 | { | |
9417 | if (created1) | |
9418 | delete arg1; | |
9419 | } | |
9420 | return NULL; | |
9421 | } | |
9422 | ||
9423 | ||
9424 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9425 | PyObject *resultobj; | |
9426 | wxImage *arg1 = (wxImage *) 0 ; | |
9427 | wxInputStream *arg2 = 0 ; | |
9428 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9429 | int arg4 = (int) -1 ; | |
9430 | bool result; | |
9431 | wxPyInputStream *temp2 ; | |
9432 | bool created2 ; | |
9433 | PyObject * obj0 = 0 ; | |
9434 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9435 | PyObject * obj2 = 0 ; |
9436 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9437 | char *kwnames[] = { |
9438 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9439 | }; | |
9440 | ||
8edf1c75 | 9441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9443 | { | |
9444 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9445 | arg2 = temp2->m_wxis; | |
423f194a | 9446 | created2 = False; |
d14a1e28 RD |
9447 | } else { |
9448 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9449 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9450 | if (arg2 == NULL) { |
9451 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9452 | SWIG_fail; | |
9453 | } | |
423f194a | 9454 | created2 = True; |
d14a1e28 RD |
9455 | } |
9456 | } | |
8edf1c75 RD |
9457 | if (obj2) { |
9458 | { | |
9459 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
9460 | if (PyErr_Occurred()) SWIG_fail; | |
9461 | } | |
9462 | } | |
9463 | if (obj3) { | |
9464 | { | |
9465 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9466 | if (PyErr_Occurred()) SWIG_fail; | |
9467 | } | |
9468 | } | |
d14a1e28 RD |
9469 | { |
9470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9471 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9472 | ||
9473 | wxPyEndAllowThreads(__tstate); | |
9474 | if (PyErr_Occurred()) SWIG_fail; | |
9475 | } | |
8edf1c75 | 9476 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9477 | { |
9478 | if (created2) | |
9479 | delete arg2; | |
9480 | } | |
9481 | return resultobj; | |
9482 | fail: | |
9483 | { | |
9484 | if (created2) | |
9485 | delete arg2; | |
9486 | } | |
9487 | return NULL; | |
9488 | } | |
9489 | ||
9490 | ||
9491 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9492 | PyObject *resultobj; | |
9493 | wxImage *arg1 = (wxImage *) 0 ; | |
9494 | wxInputStream *arg2 = 0 ; | |
9495 | wxString *arg3 = 0 ; | |
9496 | int arg4 = (int) -1 ; | |
9497 | bool result; | |
9498 | wxPyInputStream *temp2 ; | |
9499 | bool created2 ; | |
423f194a | 9500 | bool temp3 = False ; |
d14a1e28 RD |
9501 | PyObject * obj0 = 0 ; |
9502 | PyObject * obj1 = 0 ; | |
9503 | PyObject * obj2 = 0 ; | |
8edf1c75 | 9504 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9505 | char *kwnames[] = { |
9506 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9507 | }; | |
9508 | ||
8edf1c75 | 9509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9511 | { | |
9512 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9513 | arg2 = temp2->m_wxis; | |
423f194a | 9514 | created2 = False; |
d14a1e28 RD |
9515 | } else { |
9516 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9517 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9518 | if (arg2 == NULL) { |
9519 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9520 | SWIG_fail; | |
9521 | } | |
423f194a | 9522 | created2 = True; |
d14a1e28 RD |
9523 | } |
9524 | } | |
9525 | { | |
9526 | arg3 = wxString_in_helper(obj2); | |
9527 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9528 | temp3 = True; |
d14a1e28 | 9529 | } |
8edf1c75 RD |
9530 | if (obj3) { |
9531 | { | |
9532 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9533 | if (PyErr_Occurred()) SWIG_fail; | |
9534 | } | |
9535 | } | |
d14a1e28 RD |
9536 | { |
9537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9538 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9539 | ||
9540 | wxPyEndAllowThreads(__tstate); | |
9541 | if (PyErr_Occurred()) SWIG_fail; | |
9542 | } | |
8edf1c75 | 9543 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9544 | { |
9545 | if (created2) | |
9546 | delete arg2; | |
9547 | } | |
9548 | { | |
9549 | if (temp3) | |
9550 | delete arg3; | |
9551 | } | |
9552 | return resultobj; | |
9553 | fail: | |
9554 | { | |
9555 | if (created2) | |
9556 | delete arg2; | |
9557 | } | |
9558 | { | |
9559 | if (temp3) | |
9560 | delete arg3; | |
9561 | } | |
9562 | return NULL; | |
9563 | } | |
9564 | ||
9565 | ||
9566 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9567 | PyObject *resultobj; | |
9568 | wxImage *arg1 = (wxImage *) 0 ; | |
9569 | bool result; | |
9570 | PyObject * obj0 = 0 ; | |
9571 | char *kwnames[] = { | |
9572 | (char *) "self", NULL | |
9573 | }; | |
9574 | ||
9575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
9576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9577 | { | |
9578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9579 | result = (bool)(arg1)->Ok(); | |
9580 | ||
9581 | wxPyEndAllowThreads(__tstate); | |
9582 | if (PyErr_Occurred()) SWIG_fail; | |
9583 | } | |
8edf1c75 | 9584 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9585 | return resultobj; |
9586 | fail: | |
9587 | return NULL; | |
9588 | } | |
9589 | ||
9590 | ||
9591 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9592 | PyObject *resultobj; | |
9593 | wxImage *arg1 = (wxImage *) 0 ; | |
9594 | int result; | |
9595 | PyObject * obj0 = 0 ; | |
9596 | char *kwnames[] = { | |
9597 | (char *) "self", NULL | |
9598 | }; | |
9599 | ||
9600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
9601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9602 | { | |
9603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9604 | result = (int)(arg1)->GetWidth(); | |
9605 | ||
9606 | wxPyEndAllowThreads(__tstate); | |
9607 | if (PyErr_Occurred()) SWIG_fail; | |
9608 | } | |
8edf1c75 | 9609 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9610 | return resultobj; |
9611 | fail: | |
9612 | return NULL; | |
9613 | } | |
9614 | ||
9615 | ||
9616 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9617 | PyObject *resultobj; | |
9618 | wxImage *arg1 = (wxImage *) 0 ; | |
9619 | int result; | |
9620 | PyObject * obj0 = 0 ; | |
9621 | char *kwnames[] = { | |
9622 | (char *) "self", NULL | |
9623 | }; | |
9624 | ||
9625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
9626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9627 | { | |
9628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9629 | result = (int)(arg1)->GetHeight(); | |
9630 | ||
9631 | wxPyEndAllowThreads(__tstate); | |
9632 | if (PyErr_Occurred()) SWIG_fail; | |
9633 | } | |
8edf1c75 | 9634 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9635 | return resultobj; |
9636 | fail: | |
9637 | return NULL; | |
9638 | } | |
9639 | ||
9640 | ||
9641 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9642 | PyObject *resultobj; | |
9643 | wxImage *arg1 = (wxImage *) 0 ; | |
9644 | wxRect *arg2 = 0 ; | |
9645 | SwigValueWrapper< wxImage > result; | |
9646 | wxRect temp2 ; | |
9647 | PyObject * obj0 = 0 ; | |
9648 | PyObject * obj1 = 0 ; | |
9649 | char *kwnames[] = { | |
9650 | (char *) "self",(char *) "rect", NULL | |
9651 | }; | |
9652 | ||
9653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
9654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9655 | { | |
9656 | arg2 = &temp2; | |
9657 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9658 | } | |
9659 | { | |
9660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9661 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
9662 | ||
9663 | wxPyEndAllowThreads(__tstate); | |
9664 | if (PyErr_Occurred()) SWIG_fail; | |
9665 | } | |
9666 | { | |
9667 | wxImage * resultptr; | |
9668 | resultptr = new wxImage((wxImage &) result); | |
9669 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9670 | } | |
9671 | return resultobj; | |
9672 | fail: | |
9673 | return NULL; | |
9674 | } | |
9675 | ||
9676 | ||
9677 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9678 | PyObject *resultobj; | |
9679 | wxImage *arg1 = (wxImage *) 0 ; | |
9680 | SwigValueWrapper< wxImage > result; | |
9681 | PyObject * obj0 = 0 ; | |
9682 | char *kwnames[] = { | |
9683 | (char *) "self", NULL | |
9684 | }; | |
9685 | ||
9686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
9687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9688 | { | |
9689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9690 | result = (arg1)->Copy(); | |
9691 | ||
9692 | wxPyEndAllowThreads(__tstate); | |
9693 | if (PyErr_Occurred()) SWIG_fail; | |
9694 | } | |
9695 | { | |
9696 | wxImage * resultptr; | |
9697 | resultptr = new wxImage((wxImage &) result); | |
9698 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
9699 | } | |
9700 | return resultobj; | |
9701 | fail: | |
9702 | return NULL; | |
9703 | } | |
9704 | ||
9705 | ||
9706 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9707 | PyObject *resultobj; | |
9708 | wxImage *arg1 = (wxImage *) 0 ; | |
9709 | wxImage *arg2 = 0 ; | |
9710 | int arg3 ; | |
9711 | int arg4 ; | |
9712 | PyObject * obj0 = 0 ; | |
9713 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9714 | PyObject * obj2 = 0 ; |
9715 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9716 | char *kwnames[] = { |
9717 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
9718 | }; | |
9719 | ||
8edf1c75 | 9720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
9721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9722 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9723 | if (arg2 == NULL) { | |
9724 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9725 | } | |
8edf1c75 RD |
9726 | { |
9727 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9728 | if (PyErr_Occurred()) SWIG_fail; | |
9729 | } | |
9730 | { | |
9731 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
9732 | if (PyErr_Occurred()) SWIG_fail; | |
9733 | } | |
d14a1e28 RD |
9734 | { |
9735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9736 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
9737 | ||
9738 | wxPyEndAllowThreads(__tstate); | |
9739 | if (PyErr_Occurred()) SWIG_fail; | |
9740 | } | |
9741 | Py_INCREF(Py_None); resultobj = Py_None; | |
9742 | return resultobj; | |
9743 | fail: | |
9744 | return NULL; | |
9745 | } | |
9746 | ||
9747 | ||
9748 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9749 | PyObject *resultobj; | |
9750 | wxImage *arg1 = (wxImage *) 0 ; | |
9751 | PyObject *result; | |
9752 | PyObject * obj0 = 0 ; | |
9753 | char *kwnames[] = { | |
9754 | (char *) "self", NULL | |
9755 | }; | |
9756 | ||
9757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
9758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9759 | { | |
9760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9761 | result = (PyObject *)wxImage_GetData(arg1); | |
9762 | ||
9763 | wxPyEndAllowThreads(__tstate); | |
9764 | if (PyErr_Occurred()) SWIG_fail; | |
9765 | } | |
9766 | resultobj = result; | |
9767 | return resultobj; | |
9768 | fail: | |
9769 | return NULL; | |
9770 | } | |
9771 | ||
9772 | ||
9773 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9774 | PyObject *resultobj; | |
9775 | wxImage *arg1 = (wxImage *) 0 ; | |
9776 | PyObject *arg2 = (PyObject *) 0 ; | |
9777 | PyObject * obj0 = 0 ; | |
9778 | PyObject * obj1 = 0 ; | |
9779 | char *kwnames[] = { | |
9780 | (char *) "self",(char *) "data", NULL | |
9781 | }; | |
9782 | ||
9783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
9784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9785 | arg2 = obj1; | |
9786 | { | |
9787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9788 | wxImage_SetData(arg1,arg2); | |
9789 | ||
9790 | wxPyEndAllowThreads(__tstate); | |
9791 | if (PyErr_Occurred()) SWIG_fail; | |
9792 | } | |
9793 | Py_INCREF(Py_None); resultobj = Py_None; | |
9794 | return resultobj; | |
9795 | fail: | |
9796 | return NULL; | |
9797 | } | |
9798 | ||
9799 | ||
9800 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9801 | PyObject *resultobj; | |
9802 | wxImage *arg1 = (wxImage *) 0 ; | |
9803 | PyObject *result; | |
9804 | PyObject * obj0 = 0 ; | |
9805 | char *kwnames[] = { | |
9806 | (char *) "self", NULL | |
9807 | }; | |
9808 | ||
9809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
9810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9811 | { | |
9812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9813 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
9814 | ||
9815 | wxPyEndAllowThreads(__tstate); | |
9816 | if (PyErr_Occurred()) SWIG_fail; | |
9817 | } | |
9818 | resultobj = result; | |
9819 | return resultobj; | |
9820 | fail: | |
9821 | return NULL; | |
9822 | } | |
9823 | ||
9824 | ||
9825 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9826 | PyObject *resultobj; | |
9827 | wxImage *arg1 = (wxImage *) 0 ; | |
9828 | PyObject *arg2 = (PyObject *) 0 ; | |
9829 | PyObject * obj0 = 0 ; | |
9830 | PyObject * obj1 = 0 ; | |
9831 | char *kwnames[] = { | |
9832 | (char *) "self",(char *) "data", NULL | |
9833 | }; | |
9834 | ||
9835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
9836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9837 | arg2 = obj1; | |
9838 | { | |
9839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9840 | wxImage_SetDataBuffer(arg1,arg2); | |
9841 | ||
9842 | wxPyEndAllowThreads(__tstate); | |
9843 | if (PyErr_Occurred()) SWIG_fail; | |
9844 | } | |
9845 | Py_INCREF(Py_None); resultobj = Py_None; | |
9846 | return resultobj; | |
9847 | fail: | |
9848 | return NULL; | |
9849 | } | |
9850 | ||
9851 | ||
9852 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9853 | PyObject *resultobj; | |
9854 | wxImage *arg1 = (wxImage *) 0 ; | |
9855 | PyObject *result; | |
9856 | PyObject * obj0 = 0 ; | |
9857 | char *kwnames[] = { | |
9858 | (char *) "self", NULL | |
9859 | }; | |
9860 | ||
9861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
9862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9863 | { | |
9864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9865 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
9866 | ||
9867 | wxPyEndAllowThreads(__tstate); | |
9868 | if (PyErr_Occurred()) SWIG_fail; | |
9869 | } | |
9870 | resultobj = result; | |
9871 | return resultobj; | |
9872 | fail: | |
9873 | return NULL; | |
9874 | } | |
9875 | ||
9876 | ||
9877 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9878 | PyObject *resultobj; | |
9879 | wxImage *arg1 = (wxImage *) 0 ; | |
9880 | PyObject *arg2 = (PyObject *) 0 ; | |
9881 | PyObject * obj0 = 0 ; | |
9882 | PyObject * obj1 = 0 ; | |
9883 | char *kwnames[] = { | |
9884 | (char *) "self",(char *) "data", NULL | |
9885 | }; | |
9886 | ||
9887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
9888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9889 | arg2 = obj1; | |
9890 | { | |
9891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9892 | wxImage_SetAlphaData(arg1,arg2); | |
9893 | ||
9894 | wxPyEndAllowThreads(__tstate); | |
9895 | if (PyErr_Occurred()) SWIG_fail; | |
9896 | } | |
9897 | Py_INCREF(Py_None); resultobj = Py_None; | |
9898 | return resultobj; | |
9899 | fail: | |
9900 | return NULL; | |
9901 | } | |
9902 | ||
9903 | ||
9904 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9905 | PyObject *resultobj; | |
9906 | wxImage *arg1 = (wxImage *) 0 ; | |
9907 | PyObject *result; | |
9908 | PyObject * obj0 = 0 ; | |
9909 | char *kwnames[] = { | |
9910 | (char *) "self", NULL | |
9911 | }; | |
9912 | ||
9913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
9914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9915 | { | |
9916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9917 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
9918 | ||
9919 | wxPyEndAllowThreads(__tstate); | |
9920 | if (PyErr_Occurred()) SWIG_fail; | |
9921 | } | |
9922 | resultobj = result; | |
9923 | return resultobj; | |
9924 | fail: | |
9925 | return NULL; | |
9926 | } | |
9927 | ||
9928 | ||
9929 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9930 | PyObject *resultobj; | |
9931 | wxImage *arg1 = (wxImage *) 0 ; | |
9932 | PyObject *arg2 = (PyObject *) 0 ; | |
9933 | PyObject * obj0 = 0 ; | |
9934 | PyObject * obj1 = 0 ; | |
9935 | char *kwnames[] = { | |
9936 | (char *) "self",(char *) "data", NULL | |
9937 | }; | |
9938 | ||
9939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
9940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9941 | arg2 = obj1; | |
9942 | { | |
9943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9944 | wxImage_SetAlphaBuffer(arg1,arg2); | |
9945 | ||
9946 | wxPyEndAllowThreads(__tstate); | |
9947 | if (PyErr_Occurred()) SWIG_fail; | |
9948 | } | |
9949 | Py_INCREF(Py_None); resultobj = Py_None; | |
9950 | return resultobj; | |
9951 | fail: | |
9952 | return NULL; | |
9953 | } | |
9954 | ||
9955 | ||
9956 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9957 | PyObject *resultobj; | |
9958 | wxImage *arg1 = (wxImage *) 0 ; | |
9959 | unsigned char arg2 ; | |
9960 | unsigned char arg3 ; | |
9961 | unsigned char arg4 ; | |
9962 | PyObject * obj0 = 0 ; | |
9963 | PyObject * obj1 = 0 ; | |
9964 | PyObject * obj2 = 0 ; | |
9965 | PyObject * obj3 = 0 ; | |
9966 | char *kwnames[] = { | |
9967 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9968 | }; | |
9969 | ||
9970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 9972 | { |
8edf1c75 | 9973 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
9974 | if (PyErr_Occurred()) SWIG_fail; |
9975 | } | |
9976 | { | |
8edf1c75 | 9977 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
9978 | if (PyErr_Occurred()) SWIG_fail; |
9979 | } | |
9980 | { | |
8edf1c75 | 9981 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
9982 | if (PyErr_Occurred()) SWIG_fail; |
9983 | } | |
d14a1e28 RD |
9984 | { |
9985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9986 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
9987 | ||
9988 | wxPyEndAllowThreads(__tstate); | |
9989 | if (PyErr_Occurred()) SWIG_fail; | |
9990 | } | |
9991 | Py_INCREF(Py_None); resultobj = Py_None; | |
9992 | return resultobj; | |
9993 | fail: | |
9994 | return NULL; | |
9995 | } | |
9996 | ||
9997 | ||
9998 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9999 | PyObject *resultobj; | |
10000 | wxImage *arg1 = (wxImage *) 0 ; | |
10001 | unsigned char result; | |
10002 | PyObject * obj0 = 0 ; | |
10003 | char *kwnames[] = { | |
10004 | (char *) "self", NULL | |
10005 | }; | |
10006 | ||
10007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
10008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10009 | { | |
10010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10011 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10012 | ||
10013 | wxPyEndAllowThreads(__tstate); | |
10014 | if (PyErr_Occurred()) SWIG_fail; | |
10015 | } | |
8edf1c75 | 10016 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10017 | return resultobj; |
10018 | fail: | |
10019 | return NULL; | |
10020 | } | |
10021 | ||
10022 | ||
10023 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10024 | PyObject *resultobj; | |
10025 | wxImage *arg1 = (wxImage *) 0 ; | |
10026 | unsigned char result; | |
10027 | PyObject * obj0 = 0 ; | |
10028 | char *kwnames[] = { | |
10029 | (char *) "self", NULL | |
10030 | }; | |
10031 | ||
10032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
10033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10034 | { | |
10035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10036 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10037 | ||
10038 | wxPyEndAllowThreads(__tstate); | |
10039 | if (PyErr_Occurred()) SWIG_fail; | |
10040 | } | |
8edf1c75 | 10041 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10042 | return resultobj; |
10043 | fail: | |
10044 | return NULL; | |
10045 | } | |
10046 | ||
10047 | ||
10048 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10049 | PyObject *resultobj; | |
10050 | wxImage *arg1 = (wxImage *) 0 ; | |
10051 | unsigned char result; | |
10052 | PyObject * obj0 = 0 ; | |
10053 | char *kwnames[] = { | |
10054 | (char *) "self", NULL | |
10055 | }; | |
10056 | ||
10057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
10058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10059 | { | |
10060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10061 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10062 | ||
10063 | wxPyEndAllowThreads(__tstate); | |
10064 | if (PyErr_Occurred()) SWIG_fail; | |
10065 | } | |
8edf1c75 | 10066 | resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10067 | return resultobj; |
10068 | fail: | |
10069 | return NULL; | |
10070 | } | |
10071 | ||
10072 | ||
10073 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10074 | PyObject *resultobj; | |
10075 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10076 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10077 | PyObject * obj0 = 0 ; |
10078 | PyObject * obj1 = 0 ; | |
10079 | char *kwnames[] = { | |
10080 | (char *) "self",(char *) "mask", NULL | |
10081 | }; | |
10082 | ||
10083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
10084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10085 | if (obj1) { | |
83448d71 | 10086 | { |
8edf1c75 | 10087 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
10088 | if (PyErr_Occurred()) SWIG_fail; |
10089 | } | |
d14a1e28 RD |
10090 | } |
10091 | { | |
10092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10093 | (arg1)->SetMask(arg2); | |
10094 | ||
10095 | wxPyEndAllowThreads(__tstate); | |
10096 | if (PyErr_Occurred()) SWIG_fail; | |
10097 | } | |
10098 | Py_INCREF(Py_None); resultobj = Py_None; | |
10099 | return resultobj; | |
10100 | fail: | |
10101 | return NULL; | |
10102 | } | |
10103 | ||
10104 | ||
10105 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10106 | PyObject *resultobj; | |
10107 | wxImage *arg1 = (wxImage *) 0 ; | |
10108 | bool result; | |
10109 | PyObject * obj0 = 0 ; | |
10110 | char *kwnames[] = { | |
10111 | (char *) "self", NULL | |
10112 | }; | |
10113 | ||
10114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
10115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10116 | { | |
10117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10118 | result = (bool)(arg1)->HasMask(); | |
10119 | ||
10120 | wxPyEndAllowThreads(__tstate); | |
10121 | if (PyErr_Occurred()) SWIG_fail; | |
10122 | } | |
8edf1c75 | 10123 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
10124 | return resultobj; |
10125 | fail: | |
10126 | return NULL; | |
10127 | } | |
10128 | ||
10129 | ||
10130 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10131 | PyObject *resultobj; | |
10132 | wxImage *arg1 = (wxImage *) 0 ; | |
10133 | double arg2 ; | |
10134 | wxPoint *arg3 = 0 ; | |
423f194a | 10135 | bool arg4 = (bool) True ; |
d14a1e28 RD |
10136 | wxPoint *arg5 = (wxPoint *) NULL ; |
10137 | SwigValueWrapper< wxImage > result; | |
10138 | wxPoint temp3 ; | |
10139 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10140 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10141 | PyObject * obj2 = 0 ; |
10142 | PyObject * obj3 = 0 ; | |
10143 | PyObject * obj4 = 0 ; | |
10144 | char *kwnames[] = { | |
10145 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10146 | }; | |
10147 | ||
8edf1c75 | 10148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 10149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10150 | { |
10151 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
10152 | if (PyErr_Occurred()) SWIG_fail; | |
10153 | } | |
d14a1e28 RD |
10154 | { |
10155 | arg3 = &temp3; | |
10156 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10157 | } | |
10158 | if (obj3) { | |
83448d71 | 10159 | { |
8edf1c75 | 10160 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
10161 | if (PyErr_Occurred()) SWIG_fail; |
10162 | } | |
d14a1e28 RD |
10163 | } |
10164 | if (obj4) { | |
10165 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10166 | } | |
10167 | { | |
10168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10169 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10170 | ||
10171 | wxPyEndAllowThreads(__tstate); | |
10172 | if (PyErr_Occurred()) SWIG_fail; | |
10173 | } | |
10174 | { | |
10175 | wxImage * resultptr; | |
10176 | resultptr = new wxImage((wxImage &) result); | |
10177 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
10178 | } | |
10179 | return resultobj; | |
10180 | fail: | |
10181 | return NULL; | |
10182 | } | |
10183 | ||
10184 | ||
10185 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10186 | PyObject *resultobj; | |
10187 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10188 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10189 | SwigValueWrapper< wxImage > result; |
10190 | PyObject * obj0 = 0 ; | |
10191 | PyObject * obj1 = 0 ; | |
10192 | char *kwnames[] = { | |
10193 | (char *) "self",(char *) "clockwise", NULL | |
10194 | }; | |
10195 | ||
10196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
10197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10198 | if (obj1) { | |
83448d71 | 10199 | { |
8edf1c75 | 10200 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
10201 | if (PyErr_Occurred()) SWIG_fail; |
10202 | } | |
d14a1e28 RD |
10203 | } |
10204 | { | |
10205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10206 | result = (arg1)->Rotate90(arg2); | |
10207 | ||
10208 | wxPyEndAllowThreads(__tstate); | |
10209 | if (PyErr_Occurred()) SWIG_fail; | |
10210 | } | |
10211 | { | |
10212 | wxImage * resultptr; | |
10213 | resultptr = new wxImage((wxImage &) result); | |
10214 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
10215 | } | |
10216 | return resultobj; | |
10217 | fail: | |
10218 | return NULL; | |
10219 | } | |
10220 | ||
10221 | ||
10222 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10223 | PyObject *resultobj; | |
10224 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10225 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10226 | SwigValueWrapper< wxImage > result; |
10227 | PyObject * obj0 = 0 ; | |
10228 | PyObject * obj1 = 0 ; | |
10229 | char *kwnames[] = { | |
10230 | (char *) "self",(char *) "horizontally", NULL | |
10231 | }; | |
10232 | ||
10233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
10234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10235 | if (obj1) { | |
83448d71 | 10236 | { |
8edf1c75 | 10237 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
10238 | if (PyErr_Occurred()) SWIG_fail; |
10239 | } | |
d14a1e28 RD |
10240 | } |
10241 | { | |
10242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10243 | result = (arg1)->Mirror(arg2); | |
10244 | ||
10245 | wxPyEndAllowThreads(__tstate); | |
10246 | if (PyErr_Occurred()) SWIG_fail; | |
10247 | } | |
10248 | { | |
10249 | wxImage * resultptr; | |
10250 | resultptr = new wxImage((wxImage &) result); | |
10251 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
10252 | } | |
10253 | return resultobj; | |
10254 | fail: | |
10255 | return NULL; | |
10256 | } | |
10257 | ||
10258 | ||
10259 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10260 | PyObject *resultobj; | |
10261 | wxImage *arg1 = (wxImage *) 0 ; | |
10262 | unsigned char arg2 ; | |
10263 | unsigned char arg3 ; | |
10264 | unsigned char arg4 ; | |
10265 | unsigned char arg5 ; | |
10266 | unsigned char arg6 ; | |
10267 | unsigned char arg7 ; | |
10268 | PyObject * obj0 = 0 ; | |
10269 | PyObject * obj1 = 0 ; | |
10270 | PyObject * obj2 = 0 ; | |
10271 | PyObject * obj3 = 0 ; | |
10272 | PyObject * obj4 = 0 ; | |
10273 | PyObject * obj5 = 0 ; | |
10274 | PyObject * obj6 = 0 ; | |
10275 | char *kwnames[] = { | |
10276 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10277 | }; | |
10278 | ||
10279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 10281 | { |
8edf1c75 | 10282 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
10283 | if (PyErr_Occurred()) SWIG_fail; |
10284 | } | |
10285 | { | |
8edf1c75 | 10286 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
10287 | if (PyErr_Occurred()) SWIG_fail; |
10288 | } | |
10289 | { | |
8edf1c75 | 10290 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
10291 | if (PyErr_Occurred()) SWIG_fail; |
10292 | } | |
10293 | { | |
8edf1c75 | 10294 | arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj4); |
83448d71 RD |
10295 | if (PyErr_Occurred()) SWIG_fail; |
10296 | } | |
10297 | { | |
8edf1c75 | 10298 | arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj5); |
83448d71 RD |
10299 | if (PyErr_Occurred()) SWIG_fail; |
10300 | } | |
10301 | { | |
8edf1c75 | 10302 | arg7 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj6); |
83448d71 RD |
10303 | if (PyErr_Occurred()) SWIG_fail; |
10304 | } | |
d14a1e28 RD |
10305 | { |
10306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10307 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10308 | ||
10309 | wxPyEndAllowThreads(__tstate); | |
10310 | if (PyErr_Occurred()) SWIG_fail; | |
10311 | } | |
10312 | Py_INCREF(Py_None); resultobj = Py_None; | |
10313 | return resultobj; | |
10314 | fail: | |
10315 | return NULL; | |
10316 | } | |
10317 | ||
10318 | ||
10319 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10320 | PyObject *resultobj; | |
10321 | wxImage *arg1 = (wxImage *) 0 ; | |
10322 | unsigned char arg2 ; | |
10323 | unsigned char arg3 ; | |
10324 | unsigned char arg4 ; | |
10325 | SwigValueWrapper< wxImage > result; | |
10326 | PyObject * obj0 = 0 ; | |
10327 | PyObject * obj1 = 0 ; | |
10328 | PyObject * obj2 = 0 ; | |
10329 | PyObject * obj3 = 0 ; | |
10330 | char *kwnames[] = { | |
10331 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10332 | }; | |
10333 | ||
10334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 10336 | { |
8edf1c75 | 10337 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
10338 | if (PyErr_Occurred()) SWIG_fail; |
10339 | } | |
10340 | { | |
8edf1c75 | 10341 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
10342 | if (PyErr_Occurred()) SWIG_fail; |
10343 | } | |
10344 | { | |
8edf1c75 | 10345 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
10346 | if (PyErr_Occurred()) SWIG_fail; |
10347 | } | |
d14a1e28 RD |
10348 | { |
10349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10350 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10351 | ||
10352 | wxPyEndAllowThreads(__tstate); | |
10353 | if (PyErr_Occurred()) SWIG_fail; | |
10354 | } | |
10355 | { | |
10356 | wxImage * resultptr; | |
10357 | resultptr = new wxImage((wxImage &) result); | |
10358 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1); | |
10359 | } | |
10360 | return resultobj; | |
10361 | fail: | |
10362 | return NULL; | |
10363 | } | |
10364 | ||
10365 | ||
10366 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10367 | PyObject *resultobj; | |
10368 | wxImage *arg1 = (wxImage *) 0 ; | |
10369 | wxString *arg2 = 0 ; | |
10370 | wxString *arg3 = 0 ; | |
423f194a RD |
10371 | bool temp2 = False ; |
10372 | bool temp3 = False ; | |
d14a1e28 RD |
10373 | PyObject * obj0 = 0 ; |
10374 | PyObject * obj1 = 0 ; | |
10375 | PyObject * obj2 = 0 ; | |
10376 | char *kwnames[] = { | |
10377 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10378 | }; | |
10379 | ||
10380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10382 | { | |
10383 | arg2 = wxString_in_helper(obj1); | |
10384 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10385 | temp2 = True; |
d14a1e28 RD |
10386 | } |
10387 | { | |
10388 | arg3 = wxString_in_helper(obj2); | |
10389 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10390 | temp3 = True; |
d14a1e28 RD |
10391 | } |
10392 | { | |
10393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10394 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10395 | ||
10396 | wxPyEndAllowThreads(__tstate); | |
10397 | if (PyErr_Occurred()) SWIG_fail; | |
10398 | } | |
10399 | Py_INCREF(Py_None); resultobj = Py_None; | |
10400 | { | |
10401 | if (temp2) | |
10402 | delete arg2; | |
10403 | } | |
10404 | { | |
10405 | if (temp3) | |
10406 | delete arg3; | |
10407 | } | |
10408 | return resultobj; | |
10409 | fail: | |
10410 | { | |
10411 | if (temp2) | |
10412 | delete arg2; | |
10413 | } | |
10414 | { | |
10415 | if (temp3) | |
10416 | delete arg3; | |
10417 | } | |
10418 | return NULL; | |
10419 | } | |
10420 | ||
10421 | ||
10422 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10423 | PyObject *resultobj; | |
10424 | wxImage *arg1 = (wxImage *) 0 ; | |
10425 | wxString *arg2 = 0 ; | |
10426 | int arg3 ; | |
423f194a | 10427 | bool temp2 = False ; |
d14a1e28 RD |
10428 | PyObject * obj0 = 0 ; |
10429 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10430 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10431 | char *kwnames[] = { |
10432 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10433 | }; | |
10434 | ||
8edf1c75 | 10435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
10436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10437 | { | |
10438 | arg2 = wxString_in_helper(obj1); | |
10439 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10440 | temp2 = True; |
d14a1e28 | 10441 | } |
8edf1c75 RD |
10442 | { |
10443 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10444 | if (PyErr_Occurred()) SWIG_fail; | |
10445 | } | |
d14a1e28 RD |
10446 | { |
10447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10448 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10449 | ||
10450 | wxPyEndAllowThreads(__tstate); | |
10451 | if (PyErr_Occurred()) SWIG_fail; | |
10452 | } | |
10453 | Py_INCREF(Py_None); resultobj = Py_None; | |
10454 | { | |
10455 | if (temp2) | |
10456 | delete arg2; | |
10457 | } | |
10458 | return resultobj; | |
10459 | fail: | |
10460 | { | |
10461 | if (temp2) | |
10462 | delete arg2; | |
10463 | } | |
10464 | return NULL; | |
10465 | } | |
10466 | ||
10467 | ||
10468 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10469 | PyObject *resultobj; | |
10470 | wxImage *arg1 = (wxImage *) 0 ; | |
10471 | wxString *arg2 = 0 ; | |
10472 | wxString result; | |
423f194a | 10473 | bool temp2 = False ; |
d14a1e28 RD |
10474 | PyObject * obj0 = 0 ; |
10475 | PyObject * obj1 = 0 ; | |
10476 | char *kwnames[] = { | |
10477 | (char *) "self",(char *) "name", NULL | |
10478 | }; | |
10479 | ||
10480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
10481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10482 | { | |
10483 | arg2 = wxString_in_helper(obj1); | |
10484 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10485 | temp2 = True; |
d14a1e28 RD |
10486 | } |
10487 | { | |
10488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10489 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10490 | ||
10491 | wxPyEndAllowThreads(__tstate); | |
10492 | if (PyErr_Occurred()) SWIG_fail; | |
10493 | } | |
10494 | { | |
10495 | #if wxUSE_UNICODE | |
10496 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10497 | #else | |
10498 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10499 | #endif | |
10500 | } | |
10501 | { | |
10502 | if (temp2) | |
10503 | delete arg2; | |
10504 | } | |
10505 | return resultobj; | |
10506 | fail: | |
10507 | { | |
10508 | if (temp2) | |
10509 | delete arg2; | |
10510 | } | |
10511 | return NULL; | |
10512 | } | |
10513 | ||
10514 | ||
10515 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10516 | PyObject *resultobj; | |
10517 | wxImage *arg1 = (wxImage *) 0 ; | |
10518 | wxString *arg2 = 0 ; | |
10519 | int result; | |
423f194a | 10520 | bool temp2 = False ; |
d14a1e28 RD |
10521 | PyObject * obj0 = 0 ; |
10522 | PyObject * obj1 = 0 ; | |
10523 | char *kwnames[] = { | |
10524 | (char *) "self",(char *) "name", NULL | |
10525 | }; | |
10526 | ||
10527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
10528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10529 | { | |
10530 | arg2 = wxString_in_helper(obj1); | |
10531 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10532 | temp2 = True; |
d14a1e28 RD |
10533 | } |
10534 | { | |
10535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10536 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
10537 | ||
10538 | wxPyEndAllowThreads(__tstate); | |
10539 | if (PyErr_Occurred()) SWIG_fail; | |
10540 | } | |
8edf1c75 | 10541 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10542 | { |
10543 | if (temp2) | |
10544 | delete arg2; | |
10545 | } | |
10546 | return resultobj; | |
10547 | fail: | |
10548 | { | |
10549 | if (temp2) | |
10550 | delete arg2; | |
10551 | } | |
10552 | return NULL; | |
10553 | } | |
10554 | ||
10555 | ||
10556 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10557 | PyObject *resultobj; | |
10558 | wxImage *arg1 = (wxImage *) 0 ; | |
10559 | wxString *arg2 = 0 ; | |
10560 | bool result; | |
423f194a | 10561 | bool temp2 = False ; |
d14a1e28 RD |
10562 | PyObject * obj0 = 0 ; |
10563 | PyObject * obj1 = 0 ; | |
10564 | char *kwnames[] = { | |
10565 | (char *) "self",(char *) "name", NULL | |
10566 | }; | |
10567 | ||
10568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
10569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10570 | { | |
10571 | arg2 = wxString_in_helper(obj1); | |
10572 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10573 | temp2 = True; |
d14a1e28 RD |
10574 | } |
10575 | { | |
10576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10577 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
10578 | ||
10579 | wxPyEndAllowThreads(__tstate); | |
10580 | if (PyErr_Occurred()) SWIG_fail; | |
10581 | } | |
8edf1c75 | 10582 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
10583 | { |
10584 | if (temp2) | |
10585 | delete arg2; | |
10586 | } | |
10587 | return resultobj; | |
10588 | fail: | |
10589 | { | |
10590 | if (temp2) | |
10591 | delete arg2; | |
10592 | } | |
10593 | return NULL; | |
10594 | } | |
10595 | ||
10596 | ||
10597 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10598 | PyObject *resultobj; | |
10599 | wxImage *arg1 = (wxImage *) 0 ; | |
10600 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
10601 | unsigned long result; | |
10602 | PyObject * obj0 = 0 ; | |
10603 | PyObject * obj1 = 0 ; | |
10604 | char *kwnames[] = { | |
10605 | (char *) "self",(char *) "stopafter", NULL | |
10606 | }; | |
10607 | ||
10608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
10609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10610 | if (obj1) { | |
83448d71 | 10611 | { |
8edf1c75 | 10612 | arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
10613 | if (PyErr_Occurred()) SWIG_fail; |
10614 | } | |
d14a1e28 RD |
10615 | } |
10616 | { | |
10617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10618 | result = (unsigned long)(arg1)->CountColours(arg2); | |
10619 | ||
10620 | wxPyEndAllowThreads(__tstate); | |
10621 | if (PyErr_Occurred()) SWIG_fail; | |
10622 | } | |
8edf1c75 | 10623 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10624 | return resultobj; |
10625 | fail: | |
10626 | return NULL; | |
10627 | } | |
10628 | ||
10629 | ||
10630 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10631 | PyObject *resultobj; | |
10632 | wxImage *arg1 = (wxImage *) 0 ; | |
10633 | wxImageHistogram *arg2 = 0 ; | |
10634 | unsigned long result; | |
10635 | PyObject * obj0 = 0 ; | |
10636 | PyObject * obj1 = 0 ; | |
10637 | char *kwnames[] = { | |
10638 | (char *) "self",(char *) "h", NULL | |
10639 | }; | |
10640 | ||
10641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
10642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10643 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10644 | if (arg2 == NULL) { | |
10645 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10646 | } | |
10647 | { | |
10648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10649 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
10650 | ||
10651 | wxPyEndAllowThreads(__tstate); | |
10652 | if (PyErr_Occurred()) SWIG_fail; | |
10653 | } | |
8edf1c75 | 10654 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10655 | return resultobj; |
10656 | fail: | |
10657 | return NULL; | |
10658 | } | |
10659 | ||
10660 | ||
10661 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10662 | PyObject *resultobj; | |
10663 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10664 | PyObject * obj0 = 0 ; | |
10665 | char *kwnames[] = { | |
10666 | (char *) "handler", NULL | |
10667 | }; | |
10668 | ||
10669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
10670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10671 | { | |
10672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10673 | wxImage::AddHandler(arg1); | |
10674 | ||
10675 | wxPyEndAllowThreads(__tstate); | |
10676 | if (PyErr_Occurred()) SWIG_fail; | |
10677 | } | |
10678 | Py_INCREF(Py_None); resultobj = Py_None; | |
10679 | return resultobj; | |
10680 | fail: | |
10681 | return NULL; | |
10682 | } | |
10683 | ||
10684 | ||
10685 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10686 | PyObject *resultobj; | |
10687 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10688 | PyObject * obj0 = 0 ; | |
10689 | char *kwnames[] = { | |
10690 | (char *) "handler", NULL | |
10691 | }; | |
10692 | ||
10693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
10694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10695 | { | |
10696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10697 | wxImage::InsertHandler(arg1); | |
10698 | ||
10699 | wxPyEndAllowThreads(__tstate); | |
10700 | if (PyErr_Occurred()) SWIG_fail; | |
10701 | } | |
10702 | Py_INCREF(Py_None); resultobj = Py_None; | |
10703 | return resultobj; | |
10704 | fail: | |
10705 | return NULL; | |
10706 | } | |
10707 | ||
10708 | ||
10709 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10710 | PyObject *resultobj; | |
10711 | wxString *arg1 = 0 ; | |
10712 | bool result; | |
423f194a | 10713 | bool temp1 = False ; |
d14a1e28 RD |
10714 | PyObject * obj0 = 0 ; |
10715 | char *kwnames[] = { | |
10716 | (char *) "name", NULL | |
10717 | }; | |
10718 | ||
10719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
10720 | { | |
10721 | arg1 = wxString_in_helper(obj0); | |
10722 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10723 | temp1 = True; |
d14a1e28 RD |
10724 | } |
10725 | { | |
10726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10727 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
10728 | ||
10729 | wxPyEndAllowThreads(__tstate); | |
10730 | if (PyErr_Occurred()) SWIG_fail; | |
10731 | } | |
8edf1c75 | 10732 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
10733 | { |
10734 | if (temp1) | |
10735 | delete arg1; | |
10736 | } | |
10737 | return resultobj; | |
10738 | fail: | |
10739 | { | |
10740 | if (temp1) | |
10741 | delete arg1; | |
10742 | } | |
10743 | return NULL; | |
10744 | } | |
10745 | ||
10746 | ||
10747 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10748 | PyObject *resultobj; | |
10749 | wxString result; | |
10750 | char *kwnames[] = { | |
10751 | NULL | |
10752 | }; | |
10753 | ||
10754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
10755 | { | |
10756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10757 | result = wxImage::GetImageExtWildcard(); | |
10758 | ||
10759 | wxPyEndAllowThreads(__tstate); | |
10760 | if (PyErr_Occurred()) SWIG_fail; | |
10761 | } | |
10762 | { | |
10763 | #if wxUSE_UNICODE | |
10764 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10765 | #else | |
10766 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10767 | #endif | |
10768 | } | |
10769 | return resultobj; | |
10770 | fail: | |
10771 | return NULL; | |
10772 | } | |
10773 | ||
10774 | ||
10775 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10776 | PyObject *resultobj; | |
10777 | wxImage *arg1 = (wxImage *) 0 ; | |
10778 | wxBitmap result; | |
10779 | PyObject * obj0 = 0 ; | |
10780 | char *kwnames[] = { | |
10781 | (char *) "self", NULL | |
10782 | }; | |
10783 | ||
10784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
10785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10786 | { | |
10787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10788 | result = wxImage_ConvertToBitmap(arg1); | |
10789 | ||
10790 | wxPyEndAllowThreads(__tstate); | |
10791 | if (PyErr_Occurred()) SWIG_fail; | |
10792 | } | |
10793 | { | |
10794 | wxBitmap * resultptr; | |
10795 | resultptr = new wxBitmap((wxBitmap &) result); | |
10796 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
10797 | } | |
10798 | return resultobj; | |
10799 | fail: | |
10800 | return NULL; | |
10801 | } | |
10802 | ||
10803 | ||
10804 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10805 | PyObject *resultobj; | |
10806 | wxImage *arg1 = (wxImage *) 0 ; | |
10807 | unsigned char arg2 ; | |
10808 | unsigned char arg3 ; | |
10809 | unsigned char arg4 ; | |
10810 | wxBitmap result; | |
10811 | PyObject * obj0 = 0 ; | |
10812 | PyObject * obj1 = 0 ; | |
10813 | PyObject * obj2 = 0 ; | |
10814 | PyObject * obj3 = 0 ; | |
10815 | char *kwnames[] = { | |
10816 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
10817 | }; | |
10818 | ||
10819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 10821 | { |
8edf1c75 | 10822 | arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1); |
83448d71 RD |
10823 | if (PyErr_Occurred()) SWIG_fail; |
10824 | } | |
10825 | { | |
8edf1c75 | 10826 | arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2); |
83448d71 RD |
10827 | if (PyErr_Occurred()) SWIG_fail; |
10828 | } | |
10829 | { | |
8edf1c75 | 10830 | arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3); |
83448d71 RD |
10831 | if (PyErr_Occurred()) SWIG_fail; |
10832 | } | |
d14a1e28 RD |
10833 | { |
10834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10835 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
10836 | ||
10837 | wxPyEndAllowThreads(__tstate); | |
10838 | if (PyErr_Occurred()) SWIG_fail; | |
10839 | } | |
10840 | { | |
10841 | wxBitmap * resultptr; | |
10842 | resultptr = new wxBitmap((wxBitmap &) result); | |
10843 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
10844 | } | |
10845 | return resultobj; | |
10846 | fail: | |
10847 | return NULL; | |
10848 | } | |
10849 | ||
10850 | ||
10851 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
10852 | PyObject *obj; | |
10853 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10854 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
10855 | Py_INCREF(obj); | |
10856 | return Py_BuildValue((char *)""); | |
10857 | } | |
10858 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10859 | PyObject *resultobj; | |
10860 | char *kwnames[] = { | |
10861 | NULL | |
10862 | }; | |
10863 | ||
10864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
10865 | { | |
10866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10867 | wxInitAllImageHandlers(); | |
10868 | ||
10869 | wxPyEndAllowThreads(__tstate); | |
10870 | if (PyErr_Occurred()) SWIG_fail; | |
10871 | } | |
10872 | Py_INCREF(Py_None); resultobj = Py_None; | |
10873 | return resultobj; | |
10874 | fail: | |
10875 | return NULL; | |
10876 | } | |
10877 | ||
10878 | ||
8edf1c75 | 10879 | static int _wrap_NullImage_set(PyObject *) { |
d14a1e28 RD |
10880 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
10881 | return 1; | |
10882 | } | |
10883 | ||
10884 | ||
10885 | static PyObject *_wrap_NullImage_get() { | |
10886 | PyObject *pyobj; | |
10887 | ||
10888 | pyobj = SWIG_NewPointerObj((void *) &wxNullImage, SWIGTYPE_p_wxImage, 0); | |
10889 | return pyobj; | |
10890 | } | |
10891 | ||
10892 | ||
8edf1c75 | 10893 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) { |
d14a1e28 RD |
10894 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
10895 | return 1; | |
10896 | } | |
10897 | ||
10898 | ||
10899 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
10900 | PyObject *pyobj; | |
10901 | ||
10902 | { | |
10903 | #if wxUSE_UNICODE | |
10904 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
10905 | #else | |
10906 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
10907 | #endif | |
10908 | } | |
10909 | return pyobj; | |
10910 | } | |
10911 | ||
10912 | ||
8edf1c75 | 10913 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) { |
d14a1e28 RD |
10914 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
10915 | return 1; | |
10916 | } | |
10917 | ||
10918 | ||
10919 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
10920 | PyObject *pyobj; | |
10921 | ||
10922 | { | |
10923 | #if wxUSE_UNICODE | |
10924 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10925 | #else | |
10926 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
10927 | #endif | |
10928 | } | |
10929 | return pyobj; | |
10930 | } | |
10931 | ||
10932 | ||
8edf1c75 | 10933 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) { |
d14a1e28 RD |
10934 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
10935 | return 1; | |
10936 | } | |
10937 | ||
10938 | ||
10939 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
10940 | PyObject *pyobj; | |
10941 | ||
10942 | { | |
10943 | #if wxUSE_UNICODE | |
10944 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10945 | #else | |
10946 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
10947 | #endif | |
10948 | } | |
10949 | return pyobj; | |
10950 | } | |
10951 | ||
10952 | ||
8edf1c75 | 10953 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) { |
d14a1e28 RD |
10954 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
10955 | return 1; | |
10956 | } | |
10957 | ||
10958 | ||
10959 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
10960 | PyObject *pyobj; | |
10961 | ||
10962 | { | |
10963 | #if wxUSE_UNICODE | |
10964 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10965 | #else | |
10966 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
10967 | #endif | |
10968 | } | |
10969 | return pyobj; | |
10970 | } | |
10971 | ||
10972 | ||
8edf1c75 | 10973 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) { |
d14a1e28 RD |
10974 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
10975 | return 1; | |
10976 | } | |
10977 | ||
10978 | ||
10979 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
10980 | PyObject *pyobj; | |
10981 | ||
10982 | { | |
10983 | #if wxUSE_UNICODE | |
10984 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10985 | #else | |
10986 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
10987 | #endif | |
10988 | } | |
10989 | return pyobj; | |
10990 | } | |
10991 | ||
10992 | ||
10993 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10994 | PyObject *resultobj; | |
10995 | wxBMPHandler *result; | |
10996 | char *kwnames[] = { | |
10997 | NULL | |
10998 | }; | |
10999 | ||
11000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11001 | { | |
11002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11003 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11004 | ||
11005 | wxPyEndAllowThreads(__tstate); | |
11006 | if (PyErr_Occurred()) SWIG_fail; | |
11007 | } | |
11008 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBMPHandler, 1); | |
11009 | return resultobj; | |
11010 | fail: | |
11011 | return NULL; | |
11012 | } | |
11013 | ||
11014 | ||
11015 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11016 | PyObject *obj; | |
11017 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11018 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11019 | Py_INCREF(obj); | |
11020 | return Py_BuildValue((char *)""); | |
11021 | } | |
11022 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11023 | PyObject *resultobj; | |
11024 | wxICOHandler *result; | |
11025 | char *kwnames[] = { | |
11026 | NULL | |
11027 | }; | |
11028 | ||
11029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11030 | { | |
11031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11032 | result = (wxICOHandler *)new wxICOHandler(); | |
11033 | ||
11034 | wxPyEndAllowThreads(__tstate); | |
11035 | if (PyErr_Occurred()) SWIG_fail; | |
11036 | } | |
11037 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxICOHandler, 1); | |
11038 | return resultobj; | |
11039 | fail: | |
11040 | return NULL; | |
11041 | } | |
11042 | ||
11043 | ||
11044 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11045 | PyObject *obj; | |
11046 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11047 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11048 | Py_INCREF(obj); | |
11049 | return Py_BuildValue((char *)""); | |
11050 | } | |
11051 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11052 | PyObject *resultobj; | |
11053 | wxCURHandler *result; | |
11054 | char *kwnames[] = { | |
11055 | NULL | |
11056 | }; | |
11057 | ||
11058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11059 | { | |
11060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11061 | result = (wxCURHandler *)new wxCURHandler(); | |
11062 | ||
11063 | wxPyEndAllowThreads(__tstate); | |
11064 | if (PyErr_Occurred()) SWIG_fail; | |
11065 | } | |
11066 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCURHandler, 1); | |
11067 | return resultobj; | |
11068 | fail: | |
11069 | return NULL; | |
11070 | } | |
11071 | ||
11072 | ||
11073 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11074 | PyObject *obj; | |
11075 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11076 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11077 | Py_INCREF(obj); | |
11078 | return Py_BuildValue((char *)""); | |
11079 | } | |
11080 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11081 | PyObject *resultobj; | |
11082 | wxANIHandler *result; | |
11083 | char *kwnames[] = { | |
11084 | NULL | |
11085 | }; | |
11086 | ||
11087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11088 | { | |
11089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11090 | result = (wxANIHandler *)new wxANIHandler(); | |
11091 | ||
11092 | wxPyEndAllowThreads(__tstate); | |
11093 | if (PyErr_Occurred()) SWIG_fail; | |
11094 | } | |
11095 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxANIHandler, 1); | |
11096 | return resultobj; | |
11097 | fail: | |
11098 | return NULL; | |
11099 | } | |
11100 | ||
11101 | ||
11102 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11103 | PyObject *obj; | |
11104 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11105 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11106 | Py_INCREF(obj); | |
11107 | return Py_BuildValue((char *)""); | |
11108 | } | |
11109 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11110 | PyObject *resultobj; | |
11111 | wxPNGHandler *result; | |
11112 | char *kwnames[] = { | |
11113 | NULL | |
11114 | }; | |
11115 | ||
11116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11117 | { | |
11118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11119 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11120 | ||
11121 | wxPyEndAllowThreads(__tstate); | |
11122 | if (PyErr_Occurred()) SWIG_fail; | |
11123 | } | |
11124 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNGHandler, 1); | |
11125 | return resultobj; | |
11126 | fail: | |
11127 | return NULL; | |
11128 | } | |
11129 | ||
11130 | ||
11131 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11132 | PyObject *obj; | |
11133 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11134 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11135 | Py_INCREF(obj); | |
11136 | return Py_BuildValue((char *)""); | |
11137 | } | |
11138 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11139 | PyObject *resultobj; | |
11140 | wxGIFHandler *result; | |
11141 | char *kwnames[] = { | |
11142 | NULL | |
11143 | }; | |
11144 | ||
11145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11146 | { | |
11147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11148 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11149 | ||
11150 | wxPyEndAllowThreads(__tstate); | |
11151 | if (PyErr_Occurred()) SWIG_fail; | |
11152 | } | |
11153 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGIFHandler, 1); | |
11154 | return resultobj; | |
11155 | fail: | |
11156 | return NULL; | |
11157 | } | |
11158 | ||
11159 | ||
11160 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11161 | PyObject *obj; | |
11162 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11163 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11164 | Py_INCREF(obj); | |
11165 | return Py_BuildValue((char *)""); | |
11166 | } | |
11167 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11168 | PyObject *resultobj; | |
11169 | wxPCXHandler *result; | |
11170 | char *kwnames[] = { | |
11171 | NULL | |
11172 | }; | |
11173 | ||
11174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11175 | { | |
11176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11177 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11178 | ||
11179 | wxPyEndAllowThreads(__tstate); | |
11180 | if (PyErr_Occurred()) SWIG_fail; | |
11181 | } | |
11182 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPCXHandler, 1); | |
11183 | return resultobj; | |
11184 | fail: | |
11185 | return NULL; | |
11186 | } | |
11187 | ||
11188 | ||
11189 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11190 | PyObject *obj; | |
11191 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11192 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11193 | Py_INCREF(obj); | |
11194 | return Py_BuildValue((char *)""); | |
11195 | } | |
11196 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11197 | PyObject *resultobj; | |
11198 | wxJPEGHandler *result; | |
11199 | char *kwnames[] = { | |
11200 | NULL | |
11201 | }; | |
11202 | ||
11203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11204 | { | |
11205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11206 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11207 | ||
11208 | wxPyEndAllowThreads(__tstate); | |
11209 | if (PyErr_Occurred()) SWIG_fail; | |
11210 | } | |
11211 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJPEGHandler, 1); | |
11212 | return resultobj; | |
11213 | fail: | |
11214 | return NULL; | |
11215 | } | |
11216 | ||
11217 | ||
11218 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11219 | PyObject *obj; | |
11220 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11221 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11222 | Py_INCREF(obj); | |
11223 | return Py_BuildValue((char *)""); | |
11224 | } | |
11225 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11226 | PyObject *resultobj; | |
11227 | wxPNMHandler *result; | |
11228 | char *kwnames[] = { | |
11229 | NULL | |
11230 | }; | |
11231 | ||
11232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11233 | { | |
11234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11235 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11236 | ||
11237 | wxPyEndAllowThreads(__tstate); | |
11238 | if (PyErr_Occurred()) SWIG_fail; | |
11239 | } | |
11240 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNMHandler, 1); | |
11241 | return resultobj; | |
11242 | fail: | |
11243 | return NULL; | |
11244 | } | |
11245 | ||
11246 | ||
11247 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11248 | PyObject *obj; | |
11249 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11250 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11251 | Py_INCREF(obj); | |
11252 | return Py_BuildValue((char *)""); | |
11253 | } | |
11254 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11255 | PyObject *resultobj; | |
11256 | wxXPMHandler *result; | |
11257 | char *kwnames[] = { | |
11258 | NULL | |
11259 | }; | |
11260 | ||
11261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11262 | { | |
11263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11264 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11265 | ||
11266 | wxPyEndAllowThreads(__tstate); | |
11267 | if (PyErr_Occurred()) SWIG_fail; | |
11268 | } | |
11269 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxXPMHandler, 1); | |
11270 | return resultobj; | |
11271 | fail: | |
11272 | return NULL; | |
11273 | } | |
11274 | ||
11275 | ||
11276 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11277 | PyObject *obj; | |
11278 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11279 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11280 | Py_INCREF(obj); | |
11281 | return Py_BuildValue((char *)""); | |
11282 | } | |
11283 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11284 | PyObject *resultobj; | |
11285 | wxTIFFHandler *result; | |
11286 | char *kwnames[] = { | |
11287 | NULL | |
11288 | }; | |
11289 | ||
11290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11291 | { | |
11292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11293 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11294 | ||
11295 | wxPyEndAllowThreads(__tstate); | |
11296 | if (PyErr_Occurred()) SWIG_fail; | |
11297 | } | |
11298 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTIFFHandler, 1); | |
11299 | return resultobj; | |
11300 | fail: | |
11301 | return NULL; | |
11302 | } | |
11303 | ||
11304 | ||
11305 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11306 | PyObject *obj; | |
11307 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11308 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11309 | Py_INCREF(obj); | |
11310 | return Py_BuildValue((char *)""); | |
11311 | } | |
11312 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11313 | PyObject *resultobj; | |
11314 | wxEvtHandler *result; | |
11315 | char *kwnames[] = { | |
11316 | NULL | |
11317 | }; | |
11318 | ||
11319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11320 | { | |
11321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11322 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11323 | ||
11324 | wxPyEndAllowThreads(__tstate); | |
11325 | if (PyErr_Occurred()) SWIG_fail; | |
11326 | } | |
11327 | { | |
11328 | resultobj = wxPyMake_wxObject(result); | |
11329 | } | |
11330 | return resultobj; | |
11331 | fail: | |
11332 | return NULL; | |
11333 | } | |
11334 | ||
11335 | ||
11336 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11337 | PyObject *resultobj; | |
11338 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11339 | wxEvtHandler *result; | |
11340 | PyObject * obj0 = 0 ; | |
11341 | char *kwnames[] = { | |
11342 | (char *) "self", NULL | |
11343 | }; | |
11344 | ||
11345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
11346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11347 | { | |
11348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11349 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11350 | ||
11351 | wxPyEndAllowThreads(__tstate); | |
11352 | if (PyErr_Occurred()) SWIG_fail; | |
11353 | } | |
11354 | { | |
11355 | resultobj = wxPyMake_wxObject(result); | |
11356 | } | |
11357 | return resultobj; | |
11358 | fail: | |
11359 | return NULL; | |
11360 | } | |
11361 | ||
11362 | ||
11363 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11364 | PyObject *resultobj; | |
11365 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11366 | wxEvtHandler *result; | |
11367 | PyObject * obj0 = 0 ; | |
11368 | char *kwnames[] = { | |
11369 | (char *) "self", NULL | |
11370 | }; | |
11371 | ||
11372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
11373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11374 | { | |
11375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11376 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11377 | ||
11378 | wxPyEndAllowThreads(__tstate); | |
11379 | if (PyErr_Occurred()) SWIG_fail; | |
11380 | } | |
11381 | { | |
11382 | resultobj = wxPyMake_wxObject(result); | |
11383 | } | |
11384 | return resultobj; | |
11385 | fail: | |
11386 | return NULL; | |
11387 | } | |
11388 | ||
11389 | ||
11390 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11391 | PyObject *resultobj; | |
11392 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11393 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11394 | PyObject * obj0 = 0 ; | |
11395 | PyObject * obj1 = 0 ; | |
11396 | char *kwnames[] = { | |
11397 | (char *) "self",(char *) "handler", NULL | |
11398 | }; | |
11399 | ||
11400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
11401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11402 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11403 | { | |
11404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11405 | (arg1)->SetNextHandler(arg2); | |
11406 | ||
11407 | wxPyEndAllowThreads(__tstate); | |
11408 | if (PyErr_Occurred()) SWIG_fail; | |
11409 | } | |
11410 | Py_INCREF(Py_None); resultobj = Py_None; | |
11411 | return resultobj; | |
11412 | fail: | |
11413 | return NULL; | |
11414 | } | |
11415 | ||
11416 | ||
11417 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11418 | PyObject *resultobj; | |
11419 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11420 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11421 | PyObject * obj0 = 0 ; | |
11422 | PyObject * obj1 = 0 ; | |
11423 | char *kwnames[] = { | |
11424 | (char *) "self",(char *) "handler", NULL | |
11425 | }; | |
11426 | ||
11427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
11428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11429 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11430 | { | |
11431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11432 | (arg1)->SetPreviousHandler(arg2); | |
11433 | ||
11434 | wxPyEndAllowThreads(__tstate); | |
11435 | if (PyErr_Occurred()) SWIG_fail; | |
11436 | } | |
11437 | Py_INCREF(Py_None); resultobj = Py_None; | |
11438 | return resultobj; | |
11439 | fail: | |
11440 | return NULL; | |
11441 | } | |
11442 | ||
11443 | ||
11444 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11445 | PyObject *resultobj; | |
11446 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11447 | bool result; | |
11448 | PyObject * obj0 = 0 ; | |
11449 | char *kwnames[] = { | |
11450 | (char *) "self", NULL | |
11451 | }; | |
11452 | ||
11453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
11454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11455 | { | |
11456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11457 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11458 | ||
11459 | wxPyEndAllowThreads(__tstate); | |
11460 | if (PyErr_Occurred()) SWIG_fail; | |
11461 | } | |
8edf1c75 | 11462 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
11463 | return resultobj; |
11464 | fail: | |
11465 | return NULL; | |
11466 | } | |
11467 | ||
11468 | ||
11469 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11470 | PyObject *resultobj; | |
11471 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11472 | bool arg2 ; | |
11473 | PyObject * obj0 = 0 ; | |
11474 | PyObject * obj1 = 0 ; | |
11475 | char *kwnames[] = { | |
11476 | (char *) "self",(char *) "enabled", NULL | |
11477 | }; | |
11478 | ||
11479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
11480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 11481 | { |
8edf1c75 | 11482 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
11483 | if (PyErr_Occurred()) SWIG_fail; |
11484 | } | |
d14a1e28 RD |
11485 | { |
11486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11487 | (arg1)->SetEvtHandlerEnabled(arg2); | |
11488 | ||
11489 | wxPyEndAllowThreads(__tstate); | |
11490 | if (PyErr_Occurred()) SWIG_fail; | |
11491 | } | |
11492 | Py_INCREF(Py_None); resultobj = Py_None; | |
11493 | return resultobj; | |
11494 | fail: | |
11495 | return NULL; | |
11496 | } | |
11497 | ||
11498 | ||
11499 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11500 | PyObject *resultobj; | |
11501 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11502 | wxEvent *arg2 = 0 ; | |
11503 | bool result; | |
11504 | PyObject * obj0 = 0 ; | |
11505 | PyObject * obj1 = 0 ; | |
11506 | char *kwnames[] = { | |
11507 | (char *) "self",(char *) "event", NULL | |
11508 | }; | |
11509 | ||
11510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
11511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11512 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11513 | if (arg2 == NULL) { | |
11514 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11515 | } | |
11516 | { | |
11517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11518 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
11519 | ||
11520 | wxPyEndAllowThreads(__tstate); | |
11521 | if (PyErr_Occurred()) SWIG_fail; | |
11522 | } | |
8edf1c75 | 11523 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
11524 | return resultobj; |
11525 | fail: | |
11526 | return NULL; | |
11527 | } | |
11528 | ||
11529 | ||
11530 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11531 | PyObject *resultobj; | |
11532 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11533 | wxEvent *arg2 = 0 ; | |
11534 | PyObject * obj0 = 0 ; | |
11535 | PyObject * obj1 = 0 ; | |
11536 | char *kwnames[] = { | |
11537 | (char *) "self",(char *) "event", NULL | |
11538 | }; | |
11539 | ||
11540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
11541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11542 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11543 | if (arg2 == NULL) { | |
11544 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11545 | } | |
11546 | { | |
11547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11548 | (arg1)->AddPendingEvent(*arg2); | |
11549 | ||
11550 | wxPyEndAllowThreads(__tstate); | |
11551 | if (PyErr_Occurred()) SWIG_fail; | |
11552 | } | |
11553 | Py_INCREF(Py_None); resultobj = Py_None; | |
11554 | return resultobj; | |
11555 | fail: | |
11556 | return NULL; | |
11557 | } | |
11558 | ||
11559 | ||
11560 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11561 | PyObject *resultobj; | |
11562 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11563 | PyObject * obj0 = 0 ; | |
11564 | char *kwnames[] = { | |
11565 | (char *) "self", NULL | |
11566 | }; | |
11567 | ||
11568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
11569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11570 | { | |
11571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11572 | (arg1)->ProcessPendingEvents(); | |
11573 | ||
11574 | wxPyEndAllowThreads(__tstate); | |
11575 | if (PyErr_Occurred()) SWIG_fail; | |
11576 | } | |
11577 | Py_INCREF(Py_None); resultobj = Py_None; | |
11578 | return resultobj; | |
11579 | fail: | |
11580 | return NULL; | |
11581 | } | |
11582 | ||
11583 | ||
11584 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11585 | PyObject *resultobj; | |
11586 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11587 | int arg2 ; | |
11588 | int arg3 ; | |
11589 | int arg4 ; | |
11590 | PyObject *arg5 = (PyObject *) 0 ; | |
11591 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11592 | PyObject * obj1 = 0 ; |
11593 | PyObject * obj2 = 0 ; | |
11594 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11595 | PyObject * obj4 = 0 ; |
11596 | char *kwnames[] = { | |
11597 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
11598 | }; | |
11599 | ||
8edf1c75 | 11600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 11601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11602 | { |
11603 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
11605 | } | |
11606 | { | |
11607 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11608 | if (PyErr_Occurred()) SWIG_fail; | |
11609 | } | |
11610 | { | |
11611 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
11612 | if (PyErr_Occurred()) SWIG_fail; | |
11613 | } | |
d14a1e28 RD |
11614 | arg5 = obj4; |
11615 | { | |
11616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11617 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
11618 | ||
11619 | wxPyEndAllowThreads(__tstate); | |
11620 | if (PyErr_Occurred()) SWIG_fail; | |
11621 | } | |
11622 | Py_INCREF(Py_None); resultobj = Py_None; | |
11623 | return resultobj; | |
11624 | fail: | |
11625 | return NULL; | |
11626 | } | |
11627 | ||
11628 | ||
11629 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11630 | PyObject *resultobj; | |
11631 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11632 | int arg2 ; | |
11633 | int arg3 = (int) -1 ; | |
11634 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
11635 | bool result; | |
11636 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11637 | PyObject * obj1 = 0 ; |
11638 | PyObject * obj2 = 0 ; | |
11639 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11640 | char *kwnames[] = { |
11641 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
11642 | }; | |
11643 | ||
8edf1c75 | 11644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 11645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11646 | { |
11647 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11648 | if (PyErr_Occurred()) SWIG_fail; | |
11649 | } | |
11650 | if (obj2) { | |
11651 | { | |
11652 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
11653 | if (PyErr_Occurred()) SWIG_fail; | |
11654 | } | |
11655 | } | |
11656 | if (obj3) { | |
11657 | { | |
11658 | arg4 = (wxEventType) SWIG_PyObj_AsInt(obj3); | |
11659 | if (PyErr_Occurred()) SWIG_fail; | |
11660 | } | |
11661 | } | |
d14a1e28 RD |
11662 | { |
11663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11664 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
11665 | ||
11666 | wxPyEndAllowThreads(__tstate); | |
11667 | if (PyErr_Occurred()) SWIG_fail; | |
11668 | } | |
8edf1c75 | 11669 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
11670 | return resultobj; |
11671 | fail: | |
11672 | return NULL; | |
11673 | } | |
11674 | ||
11675 | ||
11676 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11677 | PyObject *resultobj; | |
11678 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11679 | PyObject *arg2 = (PyObject *) 0 ; | |
11680 | PyObject * obj0 = 0 ; | |
11681 | PyObject * obj1 = 0 ; | |
11682 | char *kwnames[] = { | |
11683 | (char *) "self",(char *) "_self", NULL | |
11684 | }; | |
11685 | ||
11686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
11687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11688 | arg2 = obj1; | |
11689 | { | |
11690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11691 | wxEvtHandler__setOORInfo(arg1,arg2); | |
11692 | ||
11693 | wxPyEndAllowThreads(__tstate); | |
11694 | if (PyErr_Occurred()) SWIG_fail; | |
11695 | } | |
11696 | Py_INCREF(Py_None); resultobj = Py_None; | |
11697 | return resultobj; | |
11698 | fail: | |
11699 | return NULL; | |
11700 | } | |
11701 | ||
11702 | ||
11703 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
11704 | PyObject *obj; | |
11705 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11706 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
11707 | Py_INCREF(obj); | |
11708 | return Py_BuildValue((char *)""); | |
11709 | } | |
11710 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11711 | PyObject *resultobj; | |
11712 | wxEventType result; | |
11713 | char *kwnames[] = { | |
11714 | NULL | |
11715 | }; | |
11716 | ||
11717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
11718 | { | |
11719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11720 | result = (wxEventType)wxNewEventType(); | |
11721 | ||
11722 | wxPyEndAllowThreads(__tstate); | |
11723 | if (PyErr_Occurred()) SWIG_fail; | |
11724 | } | |
8edf1c75 | 11725 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11726 | return resultobj; |
11727 | fail: | |
11728 | return NULL; | |
11729 | } | |
11730 | ||
11731 | ||
11732 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11733 | PyObject *resultobj; | |
11734 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11735 | PyObject * obj0 = 0 ; | |
11736 | char *kwnames[] = { | |
11737 | (char *) "self", NULL | |
11738 | }; | |
11739 | ||
11740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
11741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11742 | { | |
11743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11744 | delete arg1; | |
11745 | ||
11746 | wxPyEndAllowThreads(__tstate); | |
11747 | if (PyErr_Occurred()) SWIG_fail; | |
11748 | } | |
11749 | Py_INCREF(Py_None); resultobj = Py_None; | |
11750 | return resultobj; | |
11751 | fail: | |
11752 | return NULL; | |
11753 | } | |
11754 | ||
11755 | ||
11756 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11757 | PyObject *resultobj; | |
11758 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11759 | wxEventType arg2 ; | |
11760 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11761 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11762 | char *kwnames[] = { |
11763 | (char *) "self",(char *) "typ", NULL | |
11764 | }; | |
11765 | ||
8edf1c75 | 11766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11768 | { |
11769 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
11771 | } | |
d14a1e28 RD |
11772 | { |
11773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11774 | (arg1)->SetEventType(arg2); | |
11775 | ||
11776 | wxPyEndAllowThreads(__tstate); | |
11777 | if (PyErr_Occurred()) SWIG_fail; | |
11778 | } | |
11779 | Py_INCREF(Py_None); resultobj = Py_None; | |
11780 | return resultobj; | |
11781 | fail: | |
11782 | return NULL; | |
11783 | } | |
11784 | ||
11785 | ||
11786 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11787 | PyObject *resultobj; | |
11788 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11789 | wxEventType result; | |
11790 | PyObject * obj0 = 0 ; | |
11791 | char *kwnames[] = { | |
11792 | (char *) "self", NULL | |
11793 | }; | |
11794 | ||
11795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
11796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11797 | { | |
11798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11799 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
11800 | ||
11801 | wxPyEndAllowThreads(__tstate); | |
11802 | if (PyErr_Occurred()) SWIG_fail; | |
11803 | } | |
8edf1c75 | 11804 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11805 | return resultobj; |
11806 | fail: | |
11807 | return NULL; | |
11808 | } | |
11809 | ||
11810 | ||
11811 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11812 | PyObject *resultobj; | |
11813 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11814 | wxObject *result; | |
11815 | PyObject * obj0 = 0 ; | |
11816 | char *kwnames[] = { | |
11817 | (char *) "self", NULL | |
11818 | }; | |
11819 | ||
11820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
11821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11822 | { | |
11823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11824 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
11825 | ||
11826 | wxPyEndAllowThreads(__tstate); | |
11827 | if (PyErr_Occurred()) SWIG_fail; | |
11828 | } | |
11829 | { | |
11830 | resultobj = wxPyMake_wxObject(result); | |
11831 | } | |
11832 | return resultobj; | |
11833 | fail: | |
11834 | return NULL; | |
11835 | } | |
11836 | ||
11837 | ||
11838 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11839 | PyObject *resultobj; | |
11840 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11841 | wxObject *arg2 = (wxObject *) 0 ; | |
11842 | PyObject * obj0 = 0 ; | |
11843 | PyObject * obj1 = 0 ; | |
11844 | char *kwnames[] = { | |
11845 | (char *) "self",(char *) "obj", NULL | |
11846 | }; | |
11847 | ||
11848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
11849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11850 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11851 | { | |
11852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11853 | (arg1)->SetEventObject(arg2); | |
11854 | ||
11855 | wxPyEndAllowThreads(__tstate); | |
11856 | if (PyErr_Occurred()) SWIG_fail; | |
11857 | } | |
11858 | Py_INCREF(Py_None); resultobj = Py_None; | |
11859 | return resultobj; | |
11860 | fail: | |
11861 | return NULL; | |
11862 | } | |
11863 | ||
11864 | ||
11865 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11866 | PyObject *resultobj; | |
11867 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11868 | long result; | |
11869 | PyObject * obj0 = 0 ; | |
11870 | char *kwnames[] = { | |
11871 | (char *) "self", NULL | |
11872 | }; | |
11873 | ||
11874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
11875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11876 | { | |
11877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11878 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
11879 | ||
11880 | wxPyEndAllowThreads(__tstate); | |
11881 | if (PyErr_Occurred()) SWIG_fail; | |
11882 | } | |
8edf1c75 | 11883 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
11884 | return resultobj; |
11885 | fail: | |
11886 | return NULL; | |
11887 | } | |
11888 | ||
11889 | ||
11890 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11891 | PyObject *resultobj; | |
11892 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11893 | long arg2 = (long) 0 ; | |
11894 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11895 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11896 | char *kwnames[] = { |
11897 | (char *) "self",(char *) "ts", NULL | |
11898 | }; | |
11899 | ||
8edf1c75 | 11900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11902 | if (obj1) { |
11903 | { | |
11904 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
11905 | if (PyErr_Occurred()) SWIG_fail; | |
11906 | } | |
11907 | } | |
d14a1e28 RD |
11908 | { |
11909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11910 | (arg1)->SetTimestamp(arg2); | |
11911 | ||
11912 | wxPyEndAllowThreads(__tstate); | |
11913 | if (PyErr_Occurred()) SWIG_fail; | |
11914 | } | |
11915 | Py_INCREF(Py_None); resultobj = Py_None; | |
11916 | return resultobj; | |
11917 | fail: | |
11918 | return NULL; | |
11919 | } | |
11920 | ||
11921 | ||
11922 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11923 | PyObject *resultobj; | |
11924 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11925 | int result; | |
11926 | PyObject * obj0 = 0 ; | |
11927 | char *kwnames[] = { | |
11928 | (char *) "self", NULL | |
11929 | }; | |
11930 | ||
11931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
11932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11933 | { | |
11934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11935 | result = (int)((wxEvent const *)arg1)->GetId(); | |
11936 | ||
11937 | wxPyEndAllowThreads(__tstate); | |
11938 | if (PyErr_Occurred()) SWIG_fail; | |
11939 | } | |
8edf1c75 | 11940 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11941 | return resultobj; |
11942 | fail: | |
11943 | return NULL; | |
11944 | } | |
11945 | ||
11946 | ||
11947 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11948 | PyObject *resultobj; | |
11949 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11950 | int arg2 ; | |
11951 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11952 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11953 | char *kwnames[] = { |
11954 | (char *) "self",(char *) "Id", NULL | |
11955 | }; | |
11956 | ||
8edf1c75 | 11957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11959 | { |
11960 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11961 | if (PyErr_Occurred()) SWIG_fail; | |
11962 | } | |
d14a1e28 RD |
11963 | { |
11964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11965 | (arg1)->SetId(arg2); | |
11966 | ||
11967 | wxPyEndAllowThreads(__tstate); | |
11968 | if (PyErr_Occurred()) SWIG_fail; | |
11969 | } | |
11970 | Py_INCREF(Py_None); resultobj = Py_None; | |
11971 | return resultobj; | |
11972 | fail: | |
11973 | return NULL; | |
11974 | } | |
11975 | ||
11976 | ||
11977 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11978 | PyObject *resultobj; | |
11979 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11980 | bool result; | |
11981 | PyObject * obj0 = 0 ; | |
11982 | char *kwnames[] = { | |
11983 | (char *) "self", NULL | |
11984 | }; | |
11985 | ||
11986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
11987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11988 | { | |
11989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11990 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
11991 | ||
11992 | wxPyEndAllowThreads(__tstate); | |
11993 | if (PyErr_Occurred()) SWIG_fail; | |
11994 | } | |
8edf1c75 | 11995 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
11996 | return resultobj; |
11997 | fail: | |
11998 | return NULL; | |
11999 | } | |
12000 | ||
12001 | ||
12002 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12003 | PyObject *resultobj; | |
12004 | wxEvent *arg1 = (wxEvent *) 0 ; | |
423f194a | 12005 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12006 | PyObject * obj0 = 0 ; |
12007 | PyObject * obj1 = 0 ; | |
12008 | char *kwnames[] = { | |
12009 | (char *) "self",(char *) "skip", NULL | |
12010 | }; | |
12011 | ||
12012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
12013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12014 | if (obj1) { | |
83448d71 | 12015 | { |
8edf1c75 | 12016 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
12017 | if (PyErr_Occurred()) SWIG_fail; |
12018 | } | |
d14a1e28 RD |
12019 | } |
12020 | { | |
12021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12022 | (arg1)->Skip(arg2); | |
12023 | ||
12024 | wxPyEndAllowThreads(__tstate); | |
12025 | if (PyErr_Occurred()) SWIG_fail; | |
12026 | } | |
12027 | Py_INCREF(Py_None); resultobj = Py_None; | |
12028 | return resultobj; | |
12029 | fail: | |
12030 | return NULL; | |
12031 | } | |
12032 | ||
12033 | ||
12034 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12035 | PyObject *resultobj; | |
12036 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12037 | bool result; | |
12038 | PyObject * obj0 = 0 ; | |
12039 | char *kwnames[] = { | |
12040 | (char *) "self", NULL | |
12041 | }; | |
12042 | ||
12043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
12044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12045 | { | |
12046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12047 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12048 | ||
12049 | wxPyEndAllowThreads(__tstate); | |
12050 | if (PyErr_Occurred()) SWIG_fail; | |
12051 | } | |
8edf1c75 | 12052 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
12053 | return resultobj; |
12054 | fail: | |
12055 | return NULL; | |
12056 | } | |
12057 | ||
12058 | ||
12059 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12060 | PyObject *resultobj; | |
12061 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12062 | bool result; | |
12063 | PyObject * obj0 = 0 ; | |
12064 | char *kwnames[] = { | |
12065 | (char *) "self", NULL | |
12066 | }; | |
12067 | ||
12068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
12069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12070 | { | |
12071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12072 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12073 | ||
12074 | wxPyEndAllowThreads(__tstate); | |
12075 | if (PyErr_Occurred()) SWIG_fail; | |
12076 | } | |
8edf1c75 | 12077 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
12078 | return resultobj; |
12079 | fail: | |
12080 | return NULL; | |
12081 | } | |
12082 | ||
12083 | ||
12084 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12085 | PyObject *resultobj; | |
12086 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12087 | int result; | |
12088 | PyObject * obj0 = 0 ; | |
12089 | char *kwnames[] = { | |
12090 | (char *) "self", NULL | |
12091 | }; | |
12092 | ||
12093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
12094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12095 | { | |
12096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12097 | result = (int)(arg1)->StopPropagation(); | |
12098 | ||
12099 | wxPyEndAllowThreads(__tstate); | |
12100 | if (PyErr_Occurred()) SWIG_fail; | |
12101 | } | |
8edf1c75 | 12102 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12103 | return resultobj; |
12104 | fail: | |
12105 | return NULL; | |
12106 | } | |
12107 | ||
12108 | ||
12109 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12110 | PyObject *resultobj; | |
12111 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12112 | int arg2 ; | |
12113 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12114 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12115 | char *kwnames[] = { |
12116 | (char *) "self",(char *) "propagationLevel", NULL | |
12117 | }; | |
12118 | ||
8edf1c75 | 12119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12121 | { |
12122 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12123 | if (PyErr_Occurred()) SWIG_fail; | |
12124 | } | |
d14a1e28 RD |
12125 | { |
12126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12127 | (arg1)->ResumePropagation(arg2); | |
12128 | ||
12129 | wxPyEndAllowThreads(__tstate); | |
12130 | if (PyErr_Occurred()) SWIG_fail; | |
12131 | } | |
12132 | Py_INCREF(Py_None); resultobj = Py_None; | |
12133 | return resultobj; | |
12134 | fail: | |
12135 | return NULL; | |
12136 | } | |
12137 | ||
12138 | ||
12139 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12140 | PyObject *resultobj; | |
12141 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12142 | wxEvent *result; | |
12143 | PyObject * obj0 = 0 ; | |
12144 | char *kwnames[] = { | |
12145 | (char *) "self", NULL | |
12146 | }; | |
12147 | ||
12148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
12149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12150 | { | |
12151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12152 | result = (wxEvent *)(arg1)->Clone(); | |
12153 | ||
12154 | wxPyEndAllowThreads(__tstate); | |
12155 | if (PyErr_Occurred()) SWIG_fail; | |
12156 | } | |
12157 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
12158 | return resultobj; | |
12159 | fail: | |
12160 | return NULL; | |
12161 | } | |
12162 | ||
12163 | ||
12164 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12165 | PyObject *obj; | |
12166 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12167 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12168 | Py_INCREF(obj); | |
12169 | return Py_BuildValue((char *)""); | |
12170 | } | |
12171 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12172 | PyObject *resultobj; | |
12173 | wxEvent *arg1 = 0 ; | |
12174 | wxPropagationDisabler *result; | |
12175 | PyObject * obj0 = 0 ; | |
12176 | char *kwnames[] = { | |
12177 | (char *) "event", NULL | |
12178 | }; | |
12179 | ||
12180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12182 | if (arg1 == NULL) { | |
12183 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12184 | } | |
12185 | { | |
12186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12187 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12188 | ||
12189 | wxPyEndAllowThreads(__tstate); | |
12190 | if (PyErr_Occurred()) SWIG_fail; | |
12191 | } | |
12192 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagationDisabler, 1); | |
12193 | return resultobj; | |
12194 | fail: | |
12195 | return NULL; | |
12196 | } | |
12197 | ||
12198 | ||
12199 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12200 | PyObject *resultobj; | |
12201 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12202 | PyObject * obj0 = 0 ; | |
12203 | char *kwnames[] = { | |
12204 | (char *) "self", NULL | |
12205 | }; | |
12206 | ||
12207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagationDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12209 | { | |
12210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12211 | delete arg1; | |
12212 | ||
12213 | wxPyEndAllowThreads(__tstate); | |
12214 | if (PyErr_Occurred()) SWIG_fail; | |
12215 | } | |
12216 | Py_INCREF(Py_None); resultobj = Py_None; | |
12217 | return resultobj; | |
12218 | fail: | |
12219 | return NULL; | |
12220 | } | |
12221 | ||
12222 | ||
12223 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12224 | PyObject *obj; | |
12225 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12226 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12227 | Py_INCREF(obj); | |
12228 | return Py_BuildValue((char *)""); | |
12229 | } | |
12230 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12231 | PyObject *resultobj; | |
12232 | wxEvent *arg1 = 0 ; | |
12233 | wxPropagateOnce *result; | |
12234 | PyObject * obj0 = 0 ; | |
12235 | char *kwnames[] = { | |
12236 | (char *) "event", NULL | |
12237 | }; | |
12238 | ||
12239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
12240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12241 | if (arg1 == NULL) { | |
12242 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12243 | } | |
12244 | { | |
12245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12246 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12247 | ||
12248 | wxPyEndAllowThreads(__tstate); | |
12249 | if (PyErr_Occurred()) SWIG_fail; | |
12250 | } | |
12251 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagateOnce, 1); | |
12252 | return resultobj; | |
12253 | fail: | |
12254 | return NULL; | |
12255 | } | |
12256 | ||
12257 | ||
12258 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12259 | PyObject *resultobj; | |
12260 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12261 | PyObject * obj0 = 0 ; | |
12262 | char *kwnames[] = { | |
12263 | (char *) "self", NULL | |
12264 | }; | |
12265 | ||
12266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
12267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagateOnce,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12268 | { | |
12269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12270 | delete arg1; | |
12271 | ||
12272 | wxPyEndAllowThreads(__tstate); | |
12273 | if (PyErr_Occurred()) SWIG_fail; | |
12274 | } | |
12275 | Py_INCREF(Py_None); resultobj = Py_None; | |
12276 | return resultobj; | |
12277 | fail: | |
12278 | return NULL; | |
12279 | } | |
12280 | ||
12281 | ||
12282 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12283 | PyObject *obj; | |
12284 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12285 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12286 | Py_INCREF(obj); | |
12287 | return Py_BuildValue((char *)""); | |
12288 | } | |
12289 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12290 | PyObject *resultobj; | |
12291 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12292 | int arg2 = (int) 0 ; | |
12293 | wxCommandEvent *result; | |
8edf1c75 RD |
12294 | PyObject * obj0 = 0 ; |
12295 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12296 | char *kwnames[] = { |
12297 | (char *) "commandType",(char *) "winid", NULL | |
12298 | }; | |
12299 | ||
8edf1c75 RD |
12300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; |
12301 | if (obj0) { | |
12302 | { | |
12303 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
12304 | if (PyErr_Occurred()) SWIG_fail; | |
12305 | } | |
12306 | } | |
12307 | if (obj1) { | |
12308 | { | |
12309 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12310 | if (PyErr_Occurred()) SWIG_fail; | |
12311 | } | |
12312 | } | |
d14a1e28 RD |
12313 | { |
12314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12315 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12316 | ||
12317 | wxPyEndAllowThreads(__tstate); | |
12318 | if (PyErr_Occurred()) SWIG_fail; | |
12319 | } | |
12320 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCommandEvent, 1); | |
12321 | return resultobj; | |
12322 | fail: | |
12323 | return NULL; | |
12324 | } | |
12325 | ||
12326 | ||
12327 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12328 | PyObject *resultobj; | |
12329 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12330 | int result; | |
12331 | PyObject * obj0 = 0 ; | |
12332 | char *kwnames[] = { | |
12333 | (char *) "self", NULL | |
12334 | }; | |
12335 | ||
12336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
12337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12338 | { | |
12339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12340 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12341 | ||
12342 | wxPyEndAllowThreads(__tstate); | |
12343 | if (PyErr_Occurred()) SWIG_fail; | |
12344 | } | |
8edf1c75 | 12345 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12346 | return resultobj; |
12347 | fail: | |
12348 | return NULL; | |
12349 | } | |
12350 | ||
12351 | ||
12352 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12353 | PyObject *resultobj; | |
12354 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12355 | wxString *arg2 = 0 ; | |
423f194a | 12356 | bool temp2 = False ; |
d14a1e28 RD |
12357 | PyObject * obj0 = 0 ; |
12358 | PyObject * obj1 = 0 ; | |
12359 | char *kwnames[] = { | |
12360 | (char *) "self",(char *) "s", NULL | |
12361 | }; | |
12362 | ||
12363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
12364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12365 | { | |
12366 | arg2 = wxString_in_helper(obj1); | |
12367 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12368 | temp2 = True; |
d14a1e28 RD |
12369 | } |
12370 | { | |
12371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12372 | (arg1)->SetString((wxString const &)*arg2); | |
12373 | ||
12374 | wxPyEndAllowThreads(__tstate); | |
12375 | if (PyErr_Occurred()) SWIG_fail; | |
12376 | } | |
12377 | Py_INCREF(Py_None); resultobj = Py_None; | |
12378 | { | |
12379 | if (temp2) | |
12380 | delete arg2; | |
12381 | } | |
12382 | return resultobj; | |
12383 | fail: | |
12384 | { | |
12385 | if (temp2) | |
12386 | delete arg2; | |
12387 | } | |
12388 | return NULL; | |
12389 | } | |
12390 | ||
12391 | ||
12392 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12393 | PyObject *resultobj; | |
12394 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12395 | wxString result; | |
12396 | PyObject * obj0 = 0 ; | |
12397 | char *kwnames[] = { | |
12398 | (char *) "self", NULL | |
12399 | }; | |
12400 | ||
12401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
12402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12403 | { | |
12404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12405 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12406 | ||
12407 | wxPyEndAllowThreads(__tstate); | |
12408 | if (PyErr_Occurred()) SWIG_fail; | |
12409 | } | |
12410 | { | |
12411 | #if wxUSE_UNICODE | |
12412 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12413 | #else | |
12414 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12415 | #endif | |
12416 | } | |
12417 | return resultobj; | |
12418 | fail: | |
12419 | return NULL; | |
12420 | } | |
12421 | ||
12422 | ||
12423 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12424 | PyObject *resultobj; | |
12425 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12426 | bool result; | |
12427 | PyObject * obj0 = 0 ; | |
12428 | char *kwnames[] = { | |
12429 | (char *) "self", NULL | |
12430 | }; | |
12431 | ||
12432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
12433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12434 | { | |
12435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12436 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12437 | ||
12438 | wxPyEndAllowThreads(__tstate); | |
12439 | if (PyErr_Occurred()) SWIG_fail; | |
12440 | } | |
8edf1c75 | 12441 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
12442 | return resultobj; |
12443 | fail: | |
12444 | return NULL; | |
12445 | } | |
12446 | ||
12447 | ||
12448 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12449 | PyObject *resultobj; | |
12450 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12451 | bool result; | |
12452 | PyObject * obj0 = 0 ; | |
12453 | char *kwnames[] = { | |
12454 | (char *) "self", NULL | |
12455 | }; | |
12456 | ||
12457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
12458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12459 | { | |
12460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12461 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12462 | ||
12463 | wxPyEndAllowThreads(__tstate); | |
12464 | if (PyErr_Occurred()) SWIG_fail; | |
12465 | } | |
8edf1c75 | 12466 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
12467 | return resultobj; |
12468 | fail: | |
12469 | return NULL; | |
12470 | } | |
12471 | ||
12472 | ||
12473 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12474 | PyObject *resultobj; | |
12475 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12476 | long arg2 ; | |
12477 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12478 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12479 | char *kwnames[] = { |
12480 | (char *) "self",(char *) "extraLong", NULL | |
12481 | }; | |
12482 | ||
8edf1c75 | 12483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12485 | { |
12486 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
12487 | if (PyErr_Occurred()) SWIG_fail; | |
12488 | } | |
d14a1e28 RD |
12489 | { |
12490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12491 | (arg1)->SetExtraLong(arg2); | |
12492 | ||
12493 | wxPyEndAllowThreads(__tstate); | |
12494 | if (PyErr_Occurred()) SWIG_fail; | |
12495 | } | |
12496 | Py_INCREF(Py_None); resultobj = Py_None; | |
12497 | return resultobj; | |
12498 | fail: | |
12499 | return NULL; | |
12500 | } | |
12501 | ||
12502 | ||
12503 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12504 | PyObject *resultobj; | |
12505 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12506 | long result; | |
12507 | PyObject * obj0 = 0 ; | |
12508 | char *kwnames[] = { | |
12509 | (char *) "self", NULL | |
12510 | }; | |
12511 | ||
12512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
12513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12514 | { | |
12515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12516 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
12517 | ||
12518 | wxPyEndAllowThreads(__tstate); | |
12519 | if (PyErr_Occurred()) SWIG_fail; | |
12520 | } | |
8edf1c75 | 12521 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
12522 | return resultobj; |
12523 | fail: | |
12524 | return NULL; | |
12525 | } | |
12526 | ||
12527 | ||
12528 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12529 | PyObject *resultobj; | |
12530 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12531 | int arg2 ; | |
12532 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12533 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12534 | char *kwnames[] = { |
12535 | (char *) "self",(char *) "i", NULL | |
12536 | }; | |
12537 | ||
8edf1c75 | 12538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12540 | { |
12541 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12542 | if (PyErr_Occurred()) SWIG_fail; | |
12543 | } | |
d14a1e28 RD |
12544 | { |
12545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12546 | (arg1)->SetInt(arg2); | |
12547 | ||
12548 | wxPyEndAllowThreads(__tstate); | |
12549 | if (PyErr_Occurred()) SWIG_fail; | |
12550 | } | |
12551 | Py_INCREF(Py_None); resultobj = Py_None; | |
12552 | return resultobj; | |
12553 | fail: | |
12554 | return NULL; | |
12555 | } | |
12556 | ||
12557 | ||
12558 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12559 | PyObject *resultobj; | |
12560 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12561 | long result; | |
12562 | PyObject * obj0 = 0 ; | |
12563 | char *kwnames[] = { | |
12564 | (char *) "self", NULL | |
12565 | }; | |
12566 | ||
12567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
12568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12569 | { | |
12570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12571 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
12572 | ||
12573 | wxPyEndAllowThreads(__tstate); | |
12574 | if (PyErr_Occurred()) SWIG_fail; | |
12575 | } | |
8edf1c75 | 12576 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
12577 | return resultobj; |
12578 | fail: | |
12579 | return NULL; | |
12580 | } | |
12581 | ||
12582 | ||
12583 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12584 | PyObject *resultobj; | |
12585 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12586 | wxEvent *result; | |
12587 | PyObject * obj0 = 0 ; | |
12588 | char *kwnames[] = { | |
12589 | (char *) "self", NULL | |
12590 | }; | |
12591 | ||
12592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
12593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12594 | { | |
12595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12596 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
12597 | ||
12598 | wxPyEndAllowThreads(__tstate); | |
12599 | if (PyErr_Occurred()) SWIG_fail; | |
12600 | } | |
12601 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0); | |
12602 | return resultobj; | |
12603 | fail: | |
12604 | return NULL; | |
12605 | } | |
12606 | ||
12607 | ||
12608 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
12609 | PyObject *obj; | |
12610 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12611 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
12612 | Py_INCREF(obj); | |
12613 | return Py_BuildValue((char *)""); | |
12614 | } | |
12615 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12616 | PyObject *resultobj; | |
12617 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12618 | int arg2 = (int) 0 ; | |
12619 | wxNotifyEvent *result; | |
8edf1c75 RD |
12620 | PyObject * obj0 = 0 ; |
12621 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12622 | char *kwnames[] = { |
12623 | (char *) "commandType",(char *) "winid", NULL | |
12624 | }; | |
12625 | ||
8edf1c75 RD |
12626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; |
12627 | if (obj0) { | |
12628 | { | |
12629 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
12630 | if (PyErr_Occurred()) SWIG_fail; | |
12631 | } | |
12632 | } | |
12633 | if (obj1) { | |
12634 | { | |
12635 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12636 | if (PyErr_Occurred()) SWIG_fail; | |
12637 | } | |
12638 | } | |
d14a1e28 RD |
12639 | { |
12640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12641 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
12642 | ||
12643 | wxPyEndAllowThreads(__tstate); | |
12644 | if (PyErr_Occurred()) SWIG_fail; | |
12645 | } | |
12646 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotifyEvent, 1); | |
12647 | return resultobj; | |
12648 | fail: | |
12649 | return NULL; | |
12650 | } | |
12651 | ||
12652 | ||
12653 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12654 | PyObject *resultobj; | |
12655 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12656 | PyObject * obj0 = 0 ; | |
12657 | char *kwnames[] = { | |
12658 | (char *) "self", NULL | |
12659 | }; | |
12660 | ||
12661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
12662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12663 | { | |
12664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12665 | (arg1)->Veto(); | |
12666 | ||
12667 | wxPyEndAllowThreads(__tstate); | |
12668 | if (PyErr_Occurred()) SWIG_fail; | |
12669 | } | |
12670 | Py_INCREF(Py_None); resultobj = Py_None; | |
12671 | return resultobj; | |
12672 | fail: | |
12673 | return NULL; | |
12674 | } | |
12675 | ||
12676 | ||
12677 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12678 | PyObject *resultobj; | |
12679 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12680 | PyObject * obj0 = 0 ; | |
12681 | char *kwnames[] = { | |
12682 | (char *) "self", NULL | |
12683 | }; | |
12684 | ||
12685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
12686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12687 | { | |
12688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12689 | (arg1)->Allow(); | |
12690 | ||
12691 | wxPyEndAllowThreads(__tstate); | |
12692 | if (PyErr_Occurred()) SWIG_fail; | |
12693 | } | |
12694 | Py_INCREF(Py_None); resultobj = Py_None; | |
12695 | return resultobj; | |
12696 | fail: | |
12697 | return NULL; | |
12698 | } | |
12699 | ||
12700 | ||
12701 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12702 | PyObject *resultobj; | |
12703 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12704 | bool result; | |
12705 | PyObject * obj0 = 0 ; | |
12706 | char *kwnames[] = { | |
12707 | (char *) "self", NULL | |
12708 | }; | |
12709 | ||
12710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
12711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12712 | { | |
12713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12714 | result = (bool)(arg1)->IsAllowed(); | |
12715 | ||
12716 | wxPyEndAllowThreads(__tstate); | |
12717 | if (PyErr_Occurred()) SWIG_fail; | |
12718 | } | |
8edf1c75 | 12719 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
12720 | return resultobj; |
12721 | fail: | |
12722 | return NULL; | |
12723 | } | |
12724 | ||
12725 | ||
12726 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
12727 | PyObject *obj; | |
12728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12729 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
12730 | Py_INCREF(obj); | |
12731 | return Py_BuildValue((char *)""); | |
12732 | } | |
12733 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12734 | PyObject *resultobj; | |
12735 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12736 | int arg2 = (int) 0 ; | |
12737 | int arg3 = (int) 0 ; | |
12738 | int arg4 = (int) 0 ; | |
12739 | wxScrollEvent *result; | |
8edf1c75 RD |
12740 | PyObject * obj0 = 0 ; |
12741 | PyObject * obj1 = 0 ; | |
12742 | PyObject * obj2 = 0 ; | |
12743 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12744 | char *kwnames[] = { |
12745 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
12746 | }; | |
12747 | ||
8edf1c75 RD |
12748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12749 | if (obj0) { | |
12750 | { | |
12751 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
12752 | if (PyErr_Occurred()) SWIG_fail; | |
12753 | } | |
12754 | } | |
12755 | if (obj1) { | |
12756 | { | |
12757 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12758 | if (PyErr_Occurred()) SWIG_fail; | |
12759 | } | |
12760 | } | |
12761 | if (obj2) { | |
12762 | { | |
12763 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12764 | if (PyErr_Occurred()) SWIG_fail; | |
12765 | } | |
12766 | } | |
12767 | if (obj3) { | |
12768 | { | |
12769 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12770 | if (PyErr_Occurred()) SWIG_fail; | |
12771 | } | |
12772 | } | |
d14a1e28 RD |
12773 | { |
12774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12775 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
12776 | ||
12777 | wxPyEndAllowThreads(__tstate); | |
12778 | if (PyErr_Occurred()) SWIG_fail; | |
12779 | } | |
12780 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollEvent, 1); | |
12781 | return resultobj; | |
12782 | fail: | |
12783 | return NULL; | |
12784 | } | |
12785 | ||
12786 | ||
12787 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12788 | PyObject *resultobj; | |
12789 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12790 | int result; | |
12791 | PyObject * obj0 = 0 ; | |
12792 | char *kwnames[] = { | |
12793 | (char *) "self", NULL | |
12794 | }; | |
12795 | ||
12796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
12797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12798 | { | |
12799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12800 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
12801 | ||
12802 | wxPyEndAllowThreads(__tstate); | |
12803 | if (PyErr_Occurred()) SWIG_fail; | |
12804 | } | |
8edf1c75 | 12805 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12806 | return resultobj; |
12807 | fail: | |
12808 | return NULL; | |
12809 | } | |
12810 | ||
12811 | ||
12812 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12813 | PyObject *resultobj; | |
12814 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12815 | int result; | |
12816 | PyObject * obj0 = 0 ; | |
12817 | char *kwnames[] = { | |
12818 | (char *) "self", NULL | |
12819 | }; | |
12820 | ||
12821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
12822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12823 | { | |
12824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12825 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
12826 | ||
12827 | wxPyEndAllowThreads(__tstate); | |
12828 | if (PyErr_Occurred()) SWIG_fail; | |
12829 | } | |
8edf1c75 | 12830 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12831 | return resultobj; |
12832 | fail: | |
12833 | return NULL; | |
12834 | } | |
12835 | ||
12836 | ||
12837 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12838 | PyObject *resultobj; | |
12839 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12840 | int arg2 ; | |
12841 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12842 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12843 | char *kwnames[] = { |
12844 | (char *) "self",(char *) "orient", NULL | |
12845 | }; | |
12846 | ||
8edf1c75 | 12847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12849 | { |
12850 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12851 | if (PyErr_Occurred()) SWIG_fail; | |
12852 | } | |
d14a1e28 RD |
12853 | { |
12854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12855 | (arg1)->SetOrientation(arg2); | |
12856 | ||
12857 | wxPyEndAllowThreads(__tstate); | |
12858 | if (PyErr_Occurred()) SWIG_fail; | |
12859 | } | |
12860 | Py_INCREF(Py_None); resultobj = Py_None; | |
12861 | return resultobj; | |
12862 | fail: | |
12863 | return NULL; | |
12864 | } | |
12865 | ||
12866 | ||
12867 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12868 | PyObject *resultobj; | |
12869 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
12870 | int arg2 ; | |
12871 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12872 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12873 | char *kwnames[] = { |
12874 | (char *) "self",(char *) "pos", NULL | |
12875 | }; | |
12876 | ||
8edf1c75 | 12877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12879 | { |
12880 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12881 | if (PyErr_Occurred()) SWIG_fail; | |
12882 | } | |
d14a1e28 RD |
12883 | { |
12884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12885 | (arg1)->SetPosition(arg2); | |
12886 | ||
12887 | wxPyEndAllowThreads(__tstate); | |
12888 | if (PyErr_Occurred()) SWIG_fail; | |
12889 | } | |
12890 | Py_INCREF(Py_None); resultobj = Py_None; | |
12891 | return resultobj; | |
12892 | fail: | |
12893 | return NULL; | |
12894 | } | |
12895 | ||
12896 | ||
12897 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
12898 | PyObject *obj; | |
12899 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12900 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
12901 | Py_INCREF(obj); | |
12902 | return Py_BuildValue((char *)""); | |
12903 | } | |
12904 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12905 | PyObject *resultobj; | |
12906 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12907 | int arg2 = (int) 0 ; | |
12908 | int arg3 = (int) 0 ; | |
12909 | wxScrollWinEvent *result; | |
8edf1c75 RD |
12910 | PyObject * obj0 = 0 ; |
12911 | PyObject * obj1 = 0 ; | |
12912 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12913 | char *kwnames[] = { |
12914 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
12915 | }; | |
12916 | ||
8edf1c75 RD |
12917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
12918 | if (obj0) { | |
12919 | { | |
12920 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
12921 | if (PyErr_Occurred()) SWIG_fail; | |
12922 | } | |
12923 | } | |
12924 | if (obj1) { | |
12925 | { | |
12926 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12927 | if (PyErr_Occurred()) SWIG_fail; | |
12928 | } | |
12929 | } | |
12930 | if (obj2) { | |
12931 | { | |
12932 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12933 | if (PyErr_Occurred()) SWIG_fail; | |
12934 | } | |
12935 | } | |
d14a1e28 RD |
12936 | { |
12937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12938 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
12939 | ||
12940 | wxPyEndAllowThreads(__tstate); | |
12941 | if (PyErr_Occurred()) SWIG_fail; | |
12942 | } | |
12943 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollWinEvent, 1); | |
12944 | return resultobj; | |
12945 | fail: | |
12946 | return NULL; | |
12947 | } | |
12948 | ||
12949 | ||
12950 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12951 | PyObject *resultobj; | |
12952 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
12953 | int result; | |
12954 | PyObject * obj0 = 0 ; | |
12955 | char *kwnames[] = { | |
12956 | (char *) "self", NULL | |
12957 | }; | |
12958 | ||
12959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
12960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12961 | { | |
12962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12963 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
12964 | ||
12965 | wxPyEndAllowThreads(__tstate); | |
12966 | if (PyErr_Occurred()) SWIG_fail; | |
12967 | } | |
8edf1c75 | 12968 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12969 | return resultobj; |
12970 | fail: | |
12971 | return NULL; | |
12972 | } | |
12973 | ||
12974 | ||
12975 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12976 | PyObject *resultobj; | |
12977 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
12978 | int result; | |
12979 | PyObject * obj0 = 0 ; | |
12980 | char *kwnames[] = { | |
12981 | (char *) "self", NULL | |
12982 | }; | |
12983 | ||
12984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
12985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12986 | { | |
12987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12988 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
12989 | ||
12990 | wxPyEndAllowThreads(__tstate); | |
12991 | if (PyErr_Occurred()) SWIG_fail; | |
12992 | } | |
8edf1c75 | 12993 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12994 | return resultobj; |
12995 | fail: | |
12996 | return NULL; | |
12997 | } | |
12998 | ||
12999 | ||
13000 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13001 | PyObject *resultobj; | |
13002 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13003 | int arg2 ; | |
13004 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13005 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13006 | char *kwnames[] = { |
13007 | (char *) "self",(char *) "orient", NULL | |
13008 | }; | |
13009 | ||
8edf1c75 | 13010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13012 | { |
13013 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13014 | if (PyErr_Occurred()) SWIG_fail; | |
13015 | } | |
d14a1e28 RD |
13016 | { |
13017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13018 | (arg1)->SetOrientation(arg2); | |
13019 | ||
13020 | wxPyEndAllowThreads(__tstate); | |
13021 | if (PyErr_Occurred()) SWIG_fail; | |
13022 | } | |
13023 | Py_INCREF(Py_None); resultobj = Py_None; | |
13024 | return resultobj; | |
13025 | fail: | |
13026 | return NULL; | |
13027 | } | |
13028 | ||
13029 | ||
13030 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13031 | PyObject *resultobj; | |
13032 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13033 | int arg2 ; | |
13034 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13035 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13036 | char *kwnames[] = { |
13037 | (char *) "self",(char *) "pos", NULL | |
13038 | }; | |
13039 | ||
8edf1c75 | 13040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13042 | { |
13043 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13044 | if (PyErr_Occurred()) SWIG_fail; | |
13045 | } | |
d14a1e28 RD |
13046 | { |
13047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13048 | (arg1)->SetPosition(arg2); | |
13049 | ||
13050 | wxPyEndAllowThreads(__tstate); | |
13051 | if (PyErr_Occurred()) SWIG_fail; | |
13052 | } | |
13053 | Py_INCREF(Py_None); resultobj = Py_None; | |
13054 | return resultobj; | |
13055 | fail: | |
13056 | return NULL; | |
13057 | } | |
13058 | ||
13059 | ||
13060 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13061 | PyObject *obj; | |
13062 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13063 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13064 | Py_INCREF(obj); | |
13065 | return Py_BuildValue((char *)""); | |
13066 | } | |
13067 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13068 | PyObject *resultobj; | |
13069 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13070 | wxMouseEvent *result; | |
8edf1c75 | 13071 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
13072 | char *kwnames[] = { |
13073 | (char *) "mouseType", NULL | |
13074 | }; | |
13075 | ||
8edf1c75 RD |
13076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; |
13077 | if (obj0) { | |
13078 | { | |
13079 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13080 | if (PyErr_Occurred()) SWIG_fail; | |
13081 | } | |
13082 | } | |
d14a1e28 RD |
13083 | { |
13084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13085 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13086 | ||
13087 | wxPyEndAllowThreads(__tstate); | |
13088 | if (PyErr_Occurred()) SWIG_fail; | |
13089 | } | |
13090 | { | |
13091 | resultobj = wxPyMake_wxObject(result); | |
13092 | } | |
13093 | return resultobj; | |
13094 | fail: | |
13095 | return NULL; | |
13096 | } | |
13097 | ||
13098 | ||
13099 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13100 | PyObject *resultobj; | |
13101 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13102 | bool result; | |
13103 | PyObject * obj0 = 0 ; | |
13104 | char *kwnames[] = { | |
13105 | (char *) "self", NULL | |
13106 | }; | |
13107 | ||
13108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
13109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13110 | { | |
13111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13112 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13113 | ||
13114 | wxPyEndAllowThreads(__tstate); | |
13115 | if (PyErr_Occurred()) SWIG_fail; | |
13116 | } | |
8edf1c75 | 13117 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13118 | return resultobj; |
13119 | fail: | |
13120 | return NULL; | |
13121 | } | |
13122 | ||
13123 | ||
13124 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13125 | PyObject *resultobj; | |
13126 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13127 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13128 | bool result; | |
13129 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13130 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13131 | char *kwnames[] = { |
13132 | (char *) "self",(char *) "but", NULL | |
13133 | }; | |
13134 | ||
8edf1c75 | 13135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13137 | if (obj1) { |
13138 | { | |
13139 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13140 | if (PyErr_Occurred()) SWIG_fail; | |
13141 | } | |
13142 | } | |
d14a1e28 RD |
13143 | { |
13144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13145 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13146 | ||
13147 | wxPyEndAllowThreads(__tstate); | |
13148 | if (PyErr_Occurred()) SWIG_fail; | |
13149 | } | |
8edf1c75 | 13150 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13151 | return resultobj; |
13152 | fail: | |
13153 | return NULL; | |
13154 | } | |
13155 | ||
13156 | ||
13157 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13158 | PyObject *resultobj; | |
13159 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13160 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13161 | bool result; | |
13162 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13163 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13164 | char *kwnames[] = { |
13165 | (char *) "self",(char *) "but", NULL | |
13166 | }; | |
13167 | ||
8edf1c75 | 13168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13170 | if (obj1) { |
13171 | { | |
13172 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13173 | if (PyErr_Occurred()) SWIG_fail; | |
13174 | } | |
13175 | } | |
d14a1e28 RD |
13176 | { |
13177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13178 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13179 | ||
13180 | wxPyEndAllowThreads(__tstate); | |
13181 | if (PyErr_Occurred()) SWIG_fail; | |
13182 | } | |
8edf1c75 | 13183 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13184 | return resultobj; |
13185 | fail: | |
13186 | return NULL; | |
13187 | } | |
13188 | ||
13189 | ||
13190 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13191 | PyObject *resultobj; | |
13192 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13193 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13194 | bool result; | |
13195 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13196 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13197 | char *kwnames[] = { |
13198 | (char *) "self",(char *) "but", NULL | |
13199 | }; | |
13200 | ||
8edf1c75 | 13201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13203 | if (obj1) { |
13204 | { | |
13205 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13206 | if (PyErr_Occurred()) SWIG_fail; | |
13207 | } | |
13208 | } | |
d14a1e28 RD |
13209 | { |
13210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13211 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13212 | ||
13213 | wxPyEndAllowThreads(__tstate); | |
13214 | if (PyErr_Occurred()) SWIG_fail; | |
13215 | } | |
8edf1c75 | 13216 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13217 | return resultobj; |
13218 | fail: | |
13219 | return NULL; | |
13220 | } | |
13221 | ||
13222 | ||
13223 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13224 | PyObject *resultobj; | |
13225 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13226 | int arg2 ; | |
13227 | bool result; | |
13228 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13229 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13230 | char *kwnames[] = { |
13231 | (char *) "self",(char *) "but", NULL | |
13232 | }; | |
13233 | ||
8edf1c75 | 13234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13236 | { |
13237 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13238 | if (PyErr_Occurred()) SWIG_fail; | |
13239 | } | |
d14a1e28 RD |
13240 | { |
13241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13242 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13243 | ||
13244 | wxPyEndAllowThreads(__tstate); | |
13245 | if (PyErr_Occurred()) SWIG_fail; | |
13246 | } | |
8edf1c75 | 13247 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13248 | return resultobj; |
13249 | fail: | |
13250 | return NULL; | |
13251 | } | |
13252 | ||
13253 | ||
13254 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13255 | PyObject *resultobj; | |
13256 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13257 | int arg2 ; | |
13258 | bool result; | |
13259 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13260 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13261 | char *kwnames[] = { |
13262 | (char *) "self",(char *) "but", NULL | |
13263 | }; | |
13264 | ||
8edf1c75 | 13265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13267 | { |
13268 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13269 | if (PyErr_Occurred()) SWIG_fail; | |
13270 | } | |
d14a1e28 RD |
13271 | { |
13272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13273 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13274 | ||
13275 | wxPyEndAllowThreads(__tstate); | |
13276 | if (PyErr_Occurred()) SWIG_fail; | |
13277 | } | |
8edf1c75 | 13278 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13279 | return resultobj; |
13280 | fail: | |
13281 | return NULL; | |
13282 | } | |
13283 | ||
13284 | ||
13285 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13286 | PyObject *resultobj; | |
13287 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13288 | int result; | |
13289 | PyObject * obj0 = 0 ; | |
13290 | char *kwnames[] = { | |
13291 | (char *) "self", NULL | |
13292 | }; | |
13293 | ||
13294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
13295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13296 | { | |
13297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13298 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13299 | ||
13300 | wxPyEndAllowThreads(__tstate); | |
13301 | if (PyErr_Occurred()) SWIG_fail; | |
13302 | } | |
8edf1c75 | 13303 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13304 | return resultobj; |
13305 | fail: | |
13306 | return NULL; | |
13307 | } | |
13308 | ||
13309 | ||
13310 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13311 | PyObject *resultobj; | |
13312 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13313 | bool result; | |
13314 | PyObject * obj0 = 0 ; | |
13315 | char *kwnames[] = { | |
13316 | (char *) "self", NULL | |
13317 | }; | |
13318 | ||
13319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
13320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13321 | { | |
13322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13323 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13324 | ||
13325 | wxPyEndAllowThreads(__tstate); | |
13326 | if (PyErr_Occurred()) SWIG_fail; | |
13327 | } | |
8edf1c75 | 13328 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13329 | return resultobj; |
13330 | fail: | |
13331 | return NULL; | |
13332 | } | |
13333 | ||
13334 | ||
13335 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13336 | PyObject *resultobj; | |
13337 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13338 | bool result; | |
13339 | PyObject * obj0 = 0 ; | |
13340 | char *kwnames[] = { | |
13341 | (char *) "self", NULL | |
13342 | }; | |
13343 | ||
13344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
13345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13346 | { | |
13347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13348 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13349 | ||
13350 | wxPyEndAllowThreads(__tstate); | |
13351 | if (PyErr_Occurred()) SWIG_fail; | |
13352 | } | |
8edf1c75 | 13353 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13354 | return resultobj; |
13355 | fail: | |
13356 | return NULL; | |
13357 | } | |
13358 | ||
13359 | ||
13360 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13361 | PyObject *resultobj; | |
13362 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13363 | bool result; | |
13364 | PyObject * obj0 = 0 ; | |
13365 | char *kwnames[] = { | |
13366 | (char *) "self", NULL | |
13367 | }; | |
13368 | ||
13369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
13370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13371 | { | |
13372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13373 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13374 | ||
13375 | wxPyEndAllowThreads(__tstate); | |
13376 | if (PyErr_Occurred()) SWIG_fail; | |
13377 | } | |
8edf1c75 | 13378 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13379 | return resultobj; |
13380 | fail: | |
13381 | return NULL; | |
13382 | } | |
13383 | ||
13384 | ||
13385 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13386 | PyObject *resultobj; | |
13387 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13388 | bool result; | |
13389 | PyObject * obj0 = 0 ; | |
13390 | char *kwnames[] = { | |
13391 | (char *) "self", NULL | |
13392 | }; | |
13393 | ||
13394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
13395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13396 | { | |
13397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13398 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13399 | ||
13400 | wxPyEndAllowThreads(__tstate); | |
13401 | if (PyErr_Occurred()) SWIG_fail; | |
13402 | } | |
8edf1c75 | 13403 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13404 | return resultobj; |
13405 | fail: | |
13406 | return NULL; | |
13407 | } | |
13408 | ||
13409 | ||
13410 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13411 | PyObject *resultobj; | |
13412 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13413 | bool result; | |
13414 | PyObject * obj0 = 0 ; | |
13415 | char *kwnames[] = { | |
13416 | (char *) "self", NULL | |
13417 | }; | |
13418 | ||
13419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
13420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13421 | { | |
13422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13423 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
13424 | ||
13425 | wxPyEndAllowThreads(__tstate); | |
13426 | if (PyErr_Occurred()) SWIG_fail; | |
13427 | } | |
8edf1c75 | 13428 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13429 | return resultobj; |
13430 | fail: | |
13431 | return NULL; | |
13432 | } | |
13433 | ||
13434 | ||
13435 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13436 | PyObject *resultobj; | |
13437 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13438 | bool result; | |
13439 | PyObject * obj0 = 0 ; | |
13440 | char *kwnames[] = { | |
13441 | (char *) "self", NULL | |
13442 | }; | |
13443 | ||
13444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
13445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13446 | { | |
13447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13448 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13449 | ||
13450 | wxPyEndAllowThreads(__tstate); | |
13451 | if (PyErr_Occurred()) SWIG_fail; | |
13452 | } | |
8edf1c75 | 13453 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13454 | return resultobj; |
13455 | fail: | |
13456 | return NULL; | |
13457 | } | |
13458 | ||
13459 | ||
13460 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13461 | PyObject *resultobj; | |
13462 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13463 | bool result; | |
13464 | PyObject * obj0 = 0 ; | |
13465 | char *kwnames[] = { | |
13466 | (char *) "self", NULL | |
13467 | }; | |
13468 | ||
13469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
13470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13471 | { | |
13472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13473 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
13474 | ||
13475 | wxPyEndAllowThreads(__tstate); | |
13476 | if (PyErr_Occurred()) SWIG_fail; | |
13477 | } | |
8edf1c75 | 13478 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13479 | return resultobj; |
13480 | fail: | |
13481 | return NULL; | |
13482 | } | |
13483 | ||
13484 | ||
13485 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13486 | PyObject *resultobj; | |
13487 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13488 | bool result; | |
13489 | PyObject * obj0 = 0 ; | |
13490 | char *kwnames[] = { | |
13491 | (char *) "self", NULL | |
13492 | }; | |
13493 | ||
13494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
13495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13496 | { | |
13497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13498 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
13499 | ||
13500 | wxPyEndAllowThreads(__tstate); | |
13501 | if (PyErr_Occurred()) SWIG_fail; | |
13502 | } | |
8edf1c75 | 13503 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13504 | return resultobj; |
13505 | fail: | |
13506 | return NULL; | |
13507 | } | |
13508 | ||
13509 | ||
13510 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13511 | PyObject *resultobj; | |
13512 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13513 | bool result; | |
13514 | PyObject * obj0 = 0 ; | |
13515 | char *kwnames[] = { | |
13516 | (char *) "self", NULL | |
13517 | }; | |
13518 | ||
13519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
13520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13521 | { | |
13522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13523 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
13524 | ||
13525 | wxPyEndAllowThreads(__tstate); | |
13526 | if (PyErr_Occurred()) SWIG_fail; | |
13527 | } | |
8edf1c75 | 13528 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13529 | return resultobj; |
13530 | fail: | |
13531 | return NULL; | |
13532 | } | |
13533 | ||
13534 | ||
13535 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13536 | PyObject *resultobj; | |
13537 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13538 | bool result; | |
13539 | PyObject * obj0 = 0 ; | |
13540 | char *kwnames[] = { | |
13541 | (char *) "self", NULL | |
13542 | }; | |
13543 | ||
13544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
13545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13546 | { | |
13547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13548 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
13549 | ||
13550 | wxPyEndAllowThreads(__tstate); | |
13551 | if (PyErr_Occurred()) SWIG_fail; | |
13552 | } | |
8edf1c75 | 13553 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13554 | return resultobj; |
13555 | fail: | |
13556 | return NULL; | |
13557 | } | |
13558 | ||
13559 | ||
13560 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13561 | PyObject *resultobj; | |
13562 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13563 | bool result; | |
13564 | PyObject * obj0 = 0 ; | |
13565 | char *kwnames[] = { | |
13566 | (char *) "self", NULL | |
13567 | }; | |
13568 | ||
13569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
13570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13571 | { | |
13572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13573 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
13574 | ||
13575 | wxPyEndAllowThreads(__tstate); | |
13576 | if (PyErr_Occurred()) SWIG_fail; | |
13577 | } | |
8edf1c75 | 13578 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13579 | return resultobj; |
13580 | fail: | |
13581 | return NULL; | |
13582 | } | |
13583 | ||
13584 | ||
13585 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13586 | PyObject *resultobj; | |
13587 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13588 | bool result; | |
13589 | PyObject * obj0 = 0 ; | |
13590 | char *kwnames[] = { | |
13591 | (char *) "self", NULL | |
13592 | }; | |
13593 | ||
13594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
13595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13596 | { | |
13597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13598 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
13599 | ||
13600 | wxPyEndAllowThreads(__tstate); | |
13601 | if (PyErr_Occurred()) SWIG_fail; | |
13602 | } | |
8edf1c75 | 13603 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13604 | return resultobj; |
13605 | fail: | |
13606 | return NULL; | |
13607 | } | |
13608 | ||
13609 | ||
13610 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13611 | PyObject *resultobj; | |
13612 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13613 | bool result; | |
13614 | PyObject * obj0 = 0 ; | |
13615 | char *kwnames[] = { | |
13616 | (char *) "self", NULL | |
13617 | }; | |
13618 | ||
13619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
13620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13621 | { | |
13622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13623 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
13624 | ||
13625 | wxPyEndAllowThreads(__tstate); | |
13626 | if (PyErr_Occurred()) SWIG_fail; | |
13627 | } | |
8edf1c75 | 13628 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13629 | return resultobj; |
13630 | fail: | |
13631 | return NULL; | |
13632 | } | |
13633 | ||
13634 | ||
13635 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13636 | PyObject *resultobj; | |
13637 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13638 | bool result; | |
13639 | PyObject * obj0 = 0 ; | |
13640 | char *kwnames[] = { | |
13641 | (char *) "self", NULL | |
13642 | }; | |
13643 | ||
13644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
13645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13646 | { | |
13647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13648 | result = (bool)(arg1)->LeftIsDown(); | |
13649 | ||
13650 | wxPyEndAllowThreads(__tstate); | |
13651 | if (PyErr_Occurred()) SWIG_fail; | |
13652 | } | |
8edf1c75 | 13653 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13654 | return resultobj; |
13655 | fail: | |
13656 | return NULL; | |
13657 | } | |
13658 | ||
13659 | ||
13660 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13661 | PyObject *resultobj; | |
13662 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13663 | bool result; | |
13664 | PyObject * obj0 = 0 ; | |
13665 | char *kwnames[] = { | |
13666 | (char *) "self", NULL | |
13667 | }; | |
13668 | ||
13669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
13670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13671 | { | |
13672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13673 | result = (bool)(arg1)->MiddleIsDown(); | |
13674 | ||
13675 | wxPyEndAllowThreads(__tstate); | |
13676 | if (PyErr_Occurred()) SWIG_fail; | |
13677 | } | |
8edf1c75 | 13678 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13679 | return resultobj; |
13680 | fail: | |
13681 | return NULL; | |
13682 | } | |
13683 | ||
13684 | ||
13685 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13686 | PyObject *resultobj; | |
13687 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13688 | bool result; | |
13689 | PyObject * obj0 = 0 ; | |
13690 | char *kwnames[] = { | |
13691 | (char *) "self", NULL | |
13692 | }; | |
13693 | ||
13694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
13695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13696 | { | |
13697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13698 | result = (bool)(arg1)->RightIsDown(); | |
13699 | ||
13700 | wxPyEndAllowThreads(__tstate); | |
13701 | if (PyErr_Occurred()) SWIG_fail; | |
13702 | } | |
8edf1c75 | 13703 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13704 | return resultobj; |
13705 | fail: | |
13706 | return NULL; | |
13707 | } | |
13708 | ||
13709 | ||
13710 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13711 | PyObject *resultobj; | |
13712 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13713 | bool result; | |
13714 | PyObject * obj0 = 0 ; | |
13715 | char *kwnames[] = { | |
13716 | (char *) "self", NULL | |
13717 | }; | |
13718 | ||
13719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
13720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13721 | { | |
13722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13723 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
13724 | ||
13725 | wxPyEndAllowThreads(__tstate); | |
13726 | if (PyErr_Occurred()) SWIG_fail; | |
13727 | } | |
8edf1c75 | 13728 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13729 | return resultobj; |
13730 | fail: | |
13731 | return NULL; | |
13732 | } | |
13733 | ||
13734 | ||
13735 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13736 | PyObject *resultobj; | |
13737 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13738 | bool result; | |
13739 | PyObject * obj0 = 0 ; | |
13740 | char *kwnames[] = { | |
13741 | (char *) "self", NULL | |
13742 | }; | |
13743 | ||
13744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
13745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13746 | { | |
13747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13748 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
13749 | ||
13750 | wxPyEndAllowThreads(__tstate); | |
13751 | if (PyErr_Occurred()) SWIG_fail; | |
13752 | } | |
8edf1c75 | 13753 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13754 | return resultobj; |
13755 | fail: | |
13756 | return NULL; | |
13757 | } | |
13758 | ||
13759 | ||
13760 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13761 | PyObject *resultobj; | |
13762 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13763 | bool result; | |
13764 | PyObject * obj0 = 0 ; | |
13765 | char *kwnames[] = { | |
13766 | (char *) "self", NULL | |
13767 | }; | |
13768 | ||
13769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
13770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13771 | { | |
13772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13773 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
13774 | ||
13775 | wxPyEndAllowThreads(__tstate); | |
13776 | if (PyErr_Occurred()) SWIG_fail; | |
13777 | } | |
8edf1c75 | 13778 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13779 | return resultobj; |
13780 | fail: | |
13781 | return NULL; | |
13782 | } | |
13783 | ||
13784 | ||
13785 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13786 | PyObject *resultobj; | |
13787 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13788 | bool result; | |
13789 | PyObject * obj0 = 0 ; | |
13790 | char *kwnames[] = { | |
13791 | (char *) "self", NULL | |
13792 | }; | |
13793 | ||
13794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
13795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13796 | { | |
13797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13798 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
13799 | ||
13800 | wxPyEndAllowThreads(__tstate); | |
13801 | if (PyErr_Occurred()) SWIG_fail; | |
13802 | } | |
8edf1c75 | 13803 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13804 | return resultobj; |
13805 | fail: | |
13806 | return NULL; | |
13807 | } | |
13808 | ||
13809 | ||
13810 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13811 | PyObject *resultobj; | |
13812 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13813 | wxPoint result; | |
13814 | PyObject * obj0 = 0 ; | |
13815 | char *kwnames[] = { | |
13816 | (char *) "self", NULL | |
13817 | }; | |
13818 | ||
13819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13821 | { | |
13822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13823 | result = (arg1)->GetPosition(); | |
13824 | ||
13825 | wxPyEndAllowThreads(__tstate); | |
13826 | if (PyErr_Occurred()) SWIG_fail; | |
13827 | } | |
13828 | { | |
13829 | wxPoint * resultptr; | |
13830 | resultptr = new wxPoint((wxPoint &) result); | |
13831 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
13832 | } | |
13833 | return resultobj; | |
13834 | fail: | |
13835 | return NULL; | |
13836 | } | |
13837 | ||
13838 | ||
13839 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13840 | PyObject *resultobj; | |
13841 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13842 | long *arg2 = (long *) 0 ; | |
13843 | long *arg3 = (long *) 0 ; | |
13844 | long temp2 ; | |
13845 | long temp3 ; | |
13846 | PyObject * obj0 = 0 ; | |
13847 | char *kwnames[] = { | |
13848 | (char *) "self", NULL | |
13849 | }; | |
13850 | ||
13851 | arg2 = &temp2; | |
13852 | arg3 = &temp3; | |
13853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
13854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13855 | { | |
13856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13857 | (arg1)->GetPosition(arg2,arg3); | |
13858 | ||
13859 | wxPyEndAllowThreads(__tstate); | |
13860 | if (PyErr_Occurred()) SWIG_fail; | |
13861 | } | |
13862 | Py_INCREF(Py_None); resultobj = Py_None; | |
13863 | { | |
13864 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13865 | resultobj = t_output_helper(resultobj,o); | |
13866 | } | |
13867 | { | |
13868 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13869 | resultobj = t_output_helper(resultobj,o); | |
13870 | } | |
13871 | return resultobj; | |
13872 | fail: | |
13873 | return NULL; | |
13874 | } | |
13875 | ||
13876 | ||
13877 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13878 | PyObject *resultobj; | |
13879 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13880 | wxDC *arg2 = 0 ; | |
13881 | wxPoint result; | |
13882 | PyObject * obj0 = 0 ; | |
13883 | PyObject * obj1 = 0 ; | |
13884 | char *kwnames[] = { | |
13885 | (char *) "self",(char *) "dc", NULL | |
13886 | }; | |
13887 | ||
13888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
13889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13890 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13891 | if (arg2 == NULL) { | |
13892 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13893 | } | |
13894 | { | |
13895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13896 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
13897 | ||
13898 | wxPyEndAllowThreads(__tstate); | |
13899 | if (PyErr_Occurred()) SWIG_fail; | |
13900 | } | |
13901 | { | |
13902 | wxPoint * resultptr; | |
13903 | resultptr = new wxPoint((wxPoint &) result); | |
13904 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
13905 | } | |
13906 | return resultobj; | |
13907 | fail: | |
13908 | return NULL; | |
13909 | } | |
13910 | ||
13911 | ||
13912 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13913 | PyObject *resultobj; | |
13914 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 13915 | int result; |
d14a1e28 RD |
13916 | PyObject * obj0 = 0 ; |
13917 | char *kwnames[] = { | |
13918 | (char *) "self", NULL | |
13919 | }; | |
13920 | ||
13921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
13922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13923 | { | |
13924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13925 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
13926 | |
13927 | wxPyEndAllowThreads(__tstate); | |
13928 | if (PyErr_Occurred()) SWIG_fail; | |
13929 | } | |
8edf1c75 | 13930 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13931 | return resultobj; |
13932 | fail: | |
13933 | return NULL; | |
13934 | } | |
13935 | ||
13936 | ||
13937 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13938 | PyObject *resultobj; | |
13939 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 13940 | int result; |
d14a1e28 RD |
13941 | PyObject * obj0 = 0 ; |
13942 | char *kwnames[] = { | |
13943 | (char *) "self", NULL | |
13944 | }; | |
13945 | ||
13946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
13947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13948 | { | |
13949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13950 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
13951 | |
13952 | wxPyEndAllowThreads(__tstate); | |
13953 | if (PyErr_Occurred()) SWIG_fail; | |
13954 | } | |
8edf1c75 | 13955 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13956 | return resultobj; |
13957 | fail: | |
13958 | return NULL; | |
13959 | } | |
13960 | ||
13961 | ||
13962 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13963 | PyObject *resultobj; | |
13964 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13965 | int result; | |
13966 | PyObject * obj0 = 0 ; | |
13967 | char *kwnames[] = { | |
13968 | (char *) "self", NULL | |
13969 | }; | |
13970 | ||
13971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
13972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13973 | { | |
13974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13975 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
13976 | ||
13977 | wxPyEndAllowThreads(__tstate); | |
13978 | if (PyErr_Occurred()) SWIG_fail; | |
13979 | } | |
8edf1c75 | 13980 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13981 | return resultobj; |
13982 | fail: | |
13983 | return NULL; | |
13984 | } | |
13985 | ||
13986 | ||
13987 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13988 | PyObject *resultobj; | |
13989 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13990 | int result; | |
13991 | PyObject * obj0 = 0 ; | |
13992 | char *kwnames[] = { | |
13993 | (char *) "self", NULL | |
13994 | }; | |
13995 | ||
13996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
13997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13998 | { | |
13999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14000 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14001 | ||
14002 | wxPyEndAllowThreads(__tstate); | |
14003 | if (PyErr_Occurred()) SWIG_fail; | |
14004 | } | |
8edf1c75 | 14005 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14006 | return resultobj; |
14007 | fail: | |
14008 | return NULL; | |
14009 | } | |
14010 | ||
14011 | ||
14012 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14013 | PyObject *resultobj; | |
14014 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14015 | int result; | |
14016 | PyObject * obj0 = 0 ; | |
14017 | char *kwnames[] = { | |
14018 | (char *) "self", NULL | |
14019 | }; | |
14020 | ||
14021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
14022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14023 | { | |
14024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14025 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14026 | ||
14027 | wxPyEndAllowThreads(__tstate); | |
14028 | if (PyErr_Occurred()) SWIG_fail; | |
14029 | } | |
8edf1c75 | 14030 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14031 | return resultobj; |
14032 | fail: | |
14033 | return NULL; | |
14034 | } | |
14035 | ||
14036 | ||
14037 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14038 | PyObject *resultobj; | |
14039 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14040 | bool result; | |
14041 | PyObject * obj0 = 0 ; | |
14042 | char *kwnames[] = { | |
14043 | (char *) "self", NULL | |
14044 | }; | |
14045 | ||
14046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
14047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14048 | { | |
14049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14050 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14051 | ||
14052 | wxPyEndAllowThreads(__tstate); | |
14053 | if (PyErr_Occurred()) SWIG_fail; | |
14054 | } | |
8edf1c75 | 14055 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14056 | return resultobj; |
14057 | fail: | |
14058 | return NULL; | |
14059 | } | |
14060 | ||
14061 | ||
14062 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14063 | PyObject *resultobj; | |
14064 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14065 | int arg2 ; |
d14a1e28 | 14066 | PyObject * obj0 = 0 ; |
8edf1c75 | 14067 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14068 | char *kwnames[] = { |
14069 | (char *) "self",(char *) "m_x", NULL | |
14070 | }; | |
14071 | ||
8edf1c75 | 14072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14074 | { |
14075 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14076 | if (PyErr_Occurred()) SWIG_fail; | |
14077 | } | |
d14a1e28 RD |
14078 | if (arg1) (arg1)->m_x = arg2; |
14079 | ||
14080 | Py_INCREF(Py_None); resultobj = Py_None; | |
14081 | return resultobj; | |
14082 | fail: | |
14083 | return NULL; | |
14084 | } | |
14085 | ||
14086 | ||
14087 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14088 | PyObject *resultobj; | |
14089 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14090 | int result; |
d14a1e28 RD |
14091 | PyObject * obj0 = 0 ; |
14092 | char *kwnames[] = { | |
14093 | (char *) "self", NULL | |
14094 | }; | |
14095 | ||
14096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
14097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14098 | result = (int) ((arg1)->m_x); |
d14a1e28 | 14099 | |
8edf1c75 | 14100 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14101 | return resultobj; |
14102 | fail: | |
14103 | return NULL; | |
14104 | } | |
14105 | ||
14106 | ||
14107 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14108 | PyObject *resultobj; | |
14109 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14110 | int arg2 ; |
d14a1e28 | 14111 | PyObject * obj0 = 0 ; |
8edf1c75 | 14112 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14113 | char *kwnames[] = { |
14114 | (char *) "self",(char *) "m_y", NULL | |
14115 | }; | |
14116 | ||
8edf1c75 | 14117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14119 | { |
14120 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14121 | if (PyErr_Occurred()) SWIG_fail; | |
14122 | } | |
d14a1e28 RD |
14123 | if (arg1) (arg1)->m_y = arg2; |
14124 | ||
14125 | Py_INCREF(Py_None); resultobj = Py_None; | |
14126 | return resultobj; | |
14127 | fail: | |
14128 | return NULL; | |
14129 | } | |
14130 | ||
14131 | ||
14132 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14133 | PyObject *resultobj; | |
14134 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14135 | int result; |
d14a1e28 RD |
14136 | PyObject * obj0 = 0 ; |
14137 | char *kwnames[] = { | |
14138 | (char *) "self", NULL | |
14139 | }; | |
14140 | ||
14141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
14142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 14143 | result = (int) ((arg1)->m_y); |
d14a1e28 | 14144 | |
8edf1c75 | 14145 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14146 | return resultobj; |
14147 | fail: | |
14148 | return NULL; | |
14149 | } | |
14150 | ||
14151 | ||
14152 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14153 | PyObject *resultobj; | |
14154 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14155 | bool arg2 ; | |
14156 | PyObject * obj0 = 0 ; | |
14157 | PyObject * obj1 = 0 ; | |
14158 | char *kwnames[] = { | |
14159 | (char *) "self",(char *) "m_leftDown", NULL | |
14160 | }; | |
14161 | ||
14162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14164 | { |
8edf1c75 | 14165 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14166 | if (PyErr_Occurred()) SWIG_fail; |
14167 | } | |
d14a1e28 RD |
14168 | if (arg1) (arg1)->m_leftDown = arg2; |
14169 | ||
14170 | Py_INCREF(Py_None); resultobj = Py_None; | |
14171 | return resultobj; | |
14172 | fail: | |
14173 | return NULL; | |
14174 | } | |
14175 | ||
14176 | ||
14177 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14178 | PyObject *resultobj; | |
14179 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14180 | bool result; | |
14181 | PyObject * obj0 = 0 ; | |
14182 | char *kwnames[] = { | |
14183 | (char *) "self", NULL | |
14184 | }; | |
14185 | ||
14186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
14187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14188 | result = (bool) ((arg1)->m_leftDown); | |
14189 | ||
8edf1c75 | 14190 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14191 | return resultobj; |
14192 | fail: | |
14193 | return NULL; | |
14194 | } | |
14195 | ||
14196 | ||
14197 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14198 | PyObject *resultobj; | |
14199 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14200 | bool arg2 ; | |
14201 | PyObject * obj0 = 0 ; | |
14202 | PyObject * obj1 = 0 ; | |
14203 | char *kwnames[] = { | |
14204 | (char *) "self",(char *) "m_middleDown", NULL | |
14205 | }; | |
14206 | ||
14207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14209 | { |
8edf1c75 | 14210 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14211 | if (PyErr_Occurred()) SWIG_fail; |
14212 | } | |
d14a1e28 RD |
14213 | if (arg1) (arg1)->m_middleDown = arg2; |
14214 | ||
14215 | Py_INCREF(Py_None); resultobj = Py_None; | |
14216 | return resultobj; | |
14217 | fail: | |
14218 | return NULL; | |
14219 | } | |
14220 | ||
14221 | ||
14222 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14223 | PyObject *resultobj; | |
14224 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14225 | bool result; | |
14226 | PyObject * obj0 = 0 ; | |
14227 | char *kwnames[] = { | |
14228 | (char *) "self", NULL | |
14229 | }; | |
14230 | ||
14231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
14232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14233 | result = (bool) ((arg1)->m_middleDown); | |
14234 | ||
8edf1c75 | 14235 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14236 | return resultobj; |
14237 | fail: | |
14238 | return NULL; | |
14239 | } | |
14240 | ||
14241 | ||
14242 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14243 | PyObject *resultobj; | |
14244 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14245 | bool arg2 ; | |
14246 | PyObject * obj0 = 0 ; | |
14247 | PyObject * obj1 = 0 ; | |
14248 | char *kwnames[] = { | |
14249 | (char *) "self",(char *) "m_rightDown", NULL | |
14250 | }; | |
14251 | ||
14252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14254 | { |
8edf1c75 | 14255 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14256 | if (PyErr_Occurred()) SWIG_fail; |
14257 | } | |
d14a1e28 RD |
14258 | if (arg1) (arg1)->m_rightDown = arg2; |
14259 | ||
14260 | Py_INCREF(Py_None); resultobj = Py_None; | |
14261 | return resultobj; | |
14262 | fail: | |
14263 | return NULL; | |
14264 | } | |
14265 | ||
14266 | ||
14267 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14268 | PyObject *resultobj; | |
14269 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14270 | bool result; | |
14271 | PyObject * obj0 = 0 ; | |
14272 | char *kwnames[] = { | |
14273 | (char *) "self", NULL | |
14274 | }; | |
14275 | ||
14276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
14277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14278 | result = (bool) ((arg1)->m_rightDown); | |
14279 | ||
8edf1c75 | 14280 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14281 | return resultobj; |
14282 | fail: | |
14283 | return NULL; | |
14284 | } | |
14285 | ||
14286 | ||
14287 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14288 | PyObject *resultobj; | |
14289 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14290 | bool arg2 ; | |
14291 | PyObject * obj0 = 0 ; | |
14292 | PyObject * obj1 = 0 ; | |
14293 | char *kwnames[] = { | |
14294 | (char *) "self",(char *) "m_controlDown", NULL | |
14295 | }; | |
14296 | ||
14297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14299 | { |
8edf1c75 | 14300 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14301 | if (PyErr_Occurred()) SWIG_fail; |
14302 | } | |
d14a1e28 RD |
14303 | if (arg1) (arg1)->m_controlDown = arg2; |
14304 | ||
14305 | Py_INCREF(Py_None); resultobj = Py_None; | |
14306 | return resultobj; | |
14307 | fail: | |
14308 | return NULL; | |
14309 | } | |
14310 | ||
14311 | ||
14312 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14313 | PyObject *resultobj; | |
14314 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14315 | bool result; | |
14316 | PyObject * obj0 = 0 ; | |
14317 | char *kwnames[] = { | |
14318 | (char *) "self", NULL | |
14319 | }; | |
14320 | ||
14321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
14322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14323 | result = (bool) ((arg1)->m_controlDown); | |
14324 | ||
8edf1c75 | 14325 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14326 | return resultobj; |
14327 | fail: | |
14328 | return NULL; | |
14329 | } | |
14330 | ||
14331 | ||
14332 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14333 | PyObject *resultobj; | |
14334 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14335 | bool arg2 ; | |
14336 | PyObject * obj0 = 0 ; | |
14337 | PyObject * obj1 = 0 ; | |
14338 | char *kwnames[] = { | |
14339 | (char *) "self",(char *) "m_shiftDown", NULL | |
14340 | }; | |
14341 | ||
14342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14344 | { |
8edf1c75 | 14345 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14346 | if (PyErr_Occurred()) SWIG_fail; |
14347 | } | |
d14a1e28 RD |
14348 | if (arg1) (arg1)->m_shiftDown = arg2; |
14349 | ||
14350 | Py_INCREF(Py_None); resultobj = Py_None; | |
14351 | return resultobj; | |
14352 | fail: | |
14353 | return NULL; | |
14354 | } | |
14355 | ||
14356 | ||
14357 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14358 | PyObject *resultobj; | |
14359 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14360 | bool result; | |
14361 | PyObject * obj0 = 0 ; | |
14362 | char *kwnames[] = { | |
14363 | (char *) "self", NULL | |
14364 | }; | |
14365 | ||
14366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
14367 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14368 | result = (bool) ((arg1)->m_shiftDown); | |
14369 | ||
8edf1c75 | 14370 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14371 | return resultobj; |
14372 | fail: | |
14373 | return NULL; | |
14374 | } | |
14375 | ||
14376 | ||
14377 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14378 | PyObject *resultobj; | |
14379 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14380 | bool arg2 ; | |
14381 | PyObject * obj0 = 0 ; | |
14382 | PyObject * obj1 = 0 ; | |
14383 | char *kwnames[] = { | |
14384 | (char *) "self",(char *) "m_altDown", NULL | |
14385 | }; | |
14386 | ||
14387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14389 | { |
8edf1c75 | 14390 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14391 | if (PyErr_Occurred()) SWIG_fail; |
14392 | } | |
d14a1e28 RD |
14393 | if (arg1) (arg1)->m_altDown = arg2; |
14394 | ||
14395 | Py_INCREF(Py_None); resultobj = Py_None; | |
14396 | return resultobj; | |
14397 | fail: | |
14398 | return NULL; | |
14399 | } | |
14400 | ||
14401 | ||
14402 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14403 | PyObject *resultobj; | |
14404 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14405 | bool result; | |
14406 | PyObject * obj0 = 0 ; | |
14407 | char *kwnames[] = { | |
14408 | (char *) "self", NULL | |
14409 | }; | |
14410 | ||
14411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
14412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14413 | result = (bool) ((arg1)->m_altDown); | |
14414 | ||
8edf1c75 | 14415 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14416 | return resultobj; |
14417 | fail: | |
14418 | return NULL; | |
14419 | } | |
14420 | ||
14421 | ||
14422 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14423 | PyObject *resultobj; | |
14424 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14425 | bool arg2 ; | |
14426 | PyObject * obj0 = 0 ; | |
14427 | PyObject * obj1 = 0 ; | |
14428 | char *kwnames[] = { | |
14429 | (char *) "self",(char *) "m_metaDown", NULL | |
14430 | }; | |
14431 | ||
14432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14434 | { |
8edf1c75 | 14435 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14436 | if (PyErr_Occurred()) SWIG_fail; |
14437 | } | |
d14a1e28 RD |
14438 | if (arg1) (arg1)->m_metaDown = arg2; |
14439 | ||
14440 | Py_INCREF(Py_None); resultobj = Py_None; | |
14441 | return resultobj; | |
14442 | fail: | |
14443 | return NULL; | |
14444 | } | |
14445 | ||
14446 | ||
14447 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14448 | PyObject *resultobj; | |
14449 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14450 | bool result; | |
14451 | PyObject * obj0 = 0 ; | |
14452 | char *kwnames[] = { | |
14453 | (char *) "self", NULL | |
14454 | }; | |
14455 | ||
14456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
14457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14458 | result = (bool) ((arg1)->m_metaDown); | |
14459 | ||
8edf1c75 | 14460 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14461 | return resultobj; |
14462 | fail: | |
14463 | return NULL; | |
14464 | } | |
14465 | ||
14466 | ||
14467 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14468 | PyObject *resultobj; | |
14469 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14470 | int arg2 ; | |
14471 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14472 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14473 | char *kwnames[] = { |
14474 | (char *) "self",(char *) "m_wheelRotation", NULL | |
14475 | }; | |
14476 | ||
8edf1c75 | 14477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14479 | { |
14480 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14481 | if (PyErr_Occurred()) SWIG_fail; | |
14482 | } | |
d14a1e28 RD |
14483 | if (arg1) (arg1)->m_wheelRotation = arg2; |
14484 | ||
14485 | Py_INCREF(Py_None); resultobj = Py_None; | |
14486 | return resultobj; | |
14487 | fail: | |
14488 | return NULL; | |
14489 | } | |
14490 | ||
14491 | ||
14492 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14493 | PyObject *resultobj; | |
14494 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14495 | int result; | |
14496 | PyObject * obj0 = 0 ; | |
14497 | char *kwnames[] = { | |
14498 | (char *) "self", NULL | |
14499 | }; | |
14500 | ||
14501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
14502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14503 | result = (int) ((arg1)->m_wheelRotation); | |
14504 | ||
8edf1c75 | 14505 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14506 | return resultobj; |
14507 | fail: | |
14508 | return NULL; | |
14509 | } | |
14510 | ||
14511 | ||
14512 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14513 | PyObject *resultobj; | |
14514 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14515 | int arg2 ; | |
14516 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14517 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14518 | char *kwnames[] = { |
14519 | (char *) "self",(char *) "m_wheelDelta", NULL | |
14520 | }; | |
14521 | ||
8edf1c75 | 14522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14524 | { |
14525 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14526 | if (PyErr_Occurred()) SWIG_fail; | |
14527 | } | |
d14a1e28 RD |
14528 | if (arg1) (arg1)->m_wheelDelta = arg2; |
14529 | ||
14530 | Py_INCREF(Py_None); resultobj = Py_None; | |
14531 | return resultobj; | |
14532 | fail: | |
14533 | return NULL; | |
14534 | } | |
14535 | ||
14536 | ||
14537 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14538 | PyObject *resultobj; | |
14539 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14540 | int result; | |
14541 | PyObject * obj0 = 0 ; | |
14542 | char *kwnames[] = { | |
14543 | (char *) "self", NULL | |
14544 | }; | |
14545 | ||
14546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
14547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14548 | result = (int) ((arg1)->m_wheelDelta); | |
14549 | ||
8edf1c75 | 14550 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14551 | return resultobj; |
14552 | fail: | |
14553 | return NULL; | |
14554 | } | |
14555 | ||
14556 | ||
14557 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14558 | PyObject *resultobj; | |
14559 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14560 | int arg2 ; | |
14561 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14562 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14563 | char *kwnames[] = { |
14564 | (char *) "self",(char *) "m_linesPerAction", NULL | |
14565 | }; | |
14566 | ||
8edf1c75 | 14567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14569 | { |
14570 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14571 | if (PyErr_Occurred()) SWIG_fail; | |
14572 | } | |
d14a1e28 RD |
14573 | if (arg1) (arg1)->m_linesPerAction = arg2; |
14574 | ||
14575 | Py_INCREF(Py_None); resultobj = Py_None; | |
14576 | return resultobj; | |
14577 | fail: | |
14578 | return NULL; | |
14579 | } | |
14580 | ||
14581 | ||
14582 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14583 | PyObject *resultobj; | |
14584 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14585 | int result; | |
14586 | PyObject * obj0 = 0 ; | |
14587 | char *kwnames[] = { | |
14588 | (char *) "self", NULL | |
14589 | }; | |
14590 | ||
14591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
14592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14593 | result = (int) ((arg1)->m_linesPerAction); | |
14594 | ||
8edf1c75 | 14595 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14596 | return resultobj; |
14597 | fail: | |
14598 | return NULL; | |
14599 | } | |
14600 | ||
14601 | ||
14602 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
14603 | PyObject *obj; | |
14604 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14605 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
14606 | Py_INCREF(obj); | |
14607 | return Py_BuildValue((char *)""); | |
14608 | } | |
14609 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14610 | PyObject *resultobj; | |
423f194a RD |
14611 | int arg1 = (int) 0 ; |
14612 | int arg2 = (int) 0 ; | |
d14a1e28 | 14613 | wxSetCursorEvent *result; |
8edf1c75 RD |
14614 | PyObject * obj0 = 0 ; |
14615 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
14616 | char *kwnames[] = { |
14617 | (char *) "x",(char *) "y", NULL | |
14618 | }; | |
14619 | ||
8edf1c75 RD |
14620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; |
14621 | if (obj0) { | |
14622 | { | |
14623 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
14624 | if (PyErr_Occurred()) SWIG_fail; | |
14625 | } | |
14626 | } | |
14627 | if (obj1) { | |
14628 | { | |
14629 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
14630 | if (PyErr_Occurred()) SWIG_fail; | |
14631 | } | |
14632 | } | |
d14a1e28 RD |
14633 | { |
14634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14635 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
14636 | ||
14637 | wxPyEndAllowThreads(__tstate); | |
14638 | if (PyErr_Occurred()) SWIG_fail; | |
14639 | } | |
14640 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSetCursorEvent, 1); | |
14641 | return resultobj; | |
14642 | fail: | |
14643 | return NULL; | |
14644 | } | |
14645 | ||
14646 | ||
14647 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14648 | PyObject *resultobj; | |
14649 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 14650 | int result; |
d14a1e28 RD |
14651 | PyObject * obj0 = 0 ; |
14652 | char *kwnames[] = { | |
14653 | (char *) "self", NULL | |
14654 | }; | |
14655 | ||
14656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
14657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14658 | { | |
14659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14660 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14661 | |
14662 | wxPyEndAllowThreads(__tstate); | |
14663 | if (PyErr_Occurred()) SWIG_fail; | |
14664 | } | |
8edf1c75 | 14665 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14666 | return resultobj; |
14667 | fail: | |
14668 | return NULL; | |
14669 | } | |
14670 | ||
14671 | ||
14672 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14673 | PyObject *resultobj; | |
14674 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 14675 | int result; |
d14a1e28 RD |
14676 | PyObject * obj0 = 0 ; |
14677 | char *kwnames[] = { | |
14678 | (char *) "self", NULL | |
14679 | }; | |
14680 | ||
14681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
14682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14683 | { | |
14684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14685 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14686 | |
14687 | wxPyEndAllowThreads(__tstate); | |
14688 | if (PyErr_Occurred()) SWIG_fail; | |
14689 | } | |
8edf1c75 | 14690 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14691 | return resultobj; |
14692 | fail: | |
14693 | return NULL; | |
14694 | } | |
14695 | ||
14696 | ||
14697 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14698 | PyObject *resultobj; | |
14699 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
14700 | wxCursor *arg2 = 0 ; | |
14701 | PyObject * obj0 = 0 ; | |
14702 | PyObject * obj1 = 0 ; | |
14703 | char *kwnames[] = { | |
14704 | (char *) "self",(char *) "cursor", NULL | |
14705 | }; | |
14706 | ||
14707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
14708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14709 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14710 | if (arg2 == NULL) { | |
14711 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14712 | } | |
14713 | { | |
14714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14715 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
14716 | ||
14717 | wxPyEndAllowThreads(__tstate); | |
14718 | if (PyErr_Occurred()) SWIG_fail; | |
14719 | } | |
14720 | Py_INCREF(Py_None); resultobj = Py_None; | |
14721 | return resultobj; | |
14722 | fail: | |
14723 | return NULL; | |
14724 | } | |
14725 | ||
14726 | ||
14727 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14728 | PyObject *resultobj; | |
14729 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
14730 | wxCursor *result; | |
14731 | PyObject * obj0 = 0 ; | |
14732 | char *kwnames[] = { | |
14733 | (char *) "self", NULL | |
14734 | }; | |
14735 | ||
14736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
14737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14738 | { | |
14739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14740 | { | |
14741 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
14742 | result = (wxCursor *) &_result_ref; | |
14743 | } | |
14744 | ||
14745 | wxPyEndAllowThreads(__tstate); | |
14746 | if (PyErr_Occurred()) SWIG_fail; | |
14747 | } | |
14748 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
14749 | return resultobj; | |
14750 | fail: | |
14751 | return NULL; | |
14752 | } | |
14753 | ||
14754 | ||
14755 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14756 | PyObject *resultobj; | |
14757 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
14758 | bool result; | |
14759 | PyObject * obj0 = 0 ; | |
14760 | char *kwnames[] = { | |
14761 | (char *) "self", NULL | |
14762 | }; | |
14763 | ||
14764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
14765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14766 | { | |
14767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14768 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
14769 | ||
14770 | wxPyEndAllowThreads(__tstate); | |
14771 | if (PyErr_Occurred()) SWIG_fail; | |
14772 | } | |
8edf1c75 | 14773 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14774 | return resultobj; |
14775 | fail: | |
14776 | return NULL; | |
14777 | } | |
14778 | ||
14779 | ||
14780 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
14781 | PyObject *obj; | |
14782 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14783 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
14784 | Py_INCREF(obj); | |
14785 | return Py_BuildValue((char *)""); | |
14786 | } | |
14787 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14788 | PyObject *resultobj; | |
14789 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14790 | wxKeyEvent *result; | |
8edf1c75 | 14791 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
14792 | char *kwnames[] = { |
14793 | (char *) "keyType", NULL | |
14794 | }; | |
14795 | ||
8edf1c75 RD |
14796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; |
14797 | if (obj0) { | |
14798 | { | |
14799 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
14800 | if (PyErr_Occurred()) SWIG_fail; | |
14801 | } | |
14802 | } | |
d14a1e28 RD |
14803 | { |
14804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14805 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
14806 | ||
14807 | wxPyEndAllowThreads(__tstate); | |
14808 | if (PyErr_Occurred()) SWIG_fail; | |
14809 | } | |
14810 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 1); | |
14811 | return resultobj; | |
14812 | fail: | |
14813 | return NULL; | |
14814 | } | |
14815 | ||
14816 | ||
14817 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14818 | PyObject *resultobj; | |
14819 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14820 | bool result; | |
14821 | PyObject * obj0 = 0 ; | |
14822 | char *kwnames[] = { | |
14823 | (char *) "self", NULL | |
14824 | }; | |
14825 | ||
14826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14828 | { | |
14829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14830 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
14831 | ||
14832 | wxPyEndAllowThreads(__tstate); | |
14833 | if (PyErr_Occurred()) SWIG_fail; | |
14834 | } | |
8edf1c75 | 14835 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14836 | return resultobj; |
14837 | fail: | |
14838 | return NULL; | |
14839 | } | |
14840 | ||
14841 | ||
14842 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14843 | PyObject *resultobj; | |
14844 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14845 | bool result; | |
14846 | PyObject * obj0 = 0 ; | |
14847 | char *kwnames[] = { | |
14848 | (char *) "self", NULL | |
14849 | }; | |
14850 | ||
14851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14853 | { | |
14854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14855 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
14856 | ||
14857 | wxPyEndAllowThreads(__tstate); | |
14858 | if (PyErr_Occurred()) SWIG_fail; | |
14859 | } | |
8edf1c75 | 14860 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14861 | return resultobj; |
14862 | fail: | |
14863 | return NULL; | |
14864 | } | |
14865 | ||
14866 | ||
14867 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14868 | PyObject *resultobj; | |
14869 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14870 | bool result; | |
14871 | PyObject * obj0 = 0 ; | |
14872 | char *kwnames[] = { | |
14873 | (char *) "self", NULL | |
14874 | }; | |
14875 | ||
14876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
14877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14878 | { | |
14879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14880 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
14881 | ||
14882 | wxPyEndAllowThreads(__tstate); | |
14883 | if (PyErr_Occurred()) SWIG_fail; | |
14884 | } | |
8edf1c75 | 14885 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14886 | return resultobj; |
14887 | fail: | |
14888 | return NULL; | |
14889 | } | |
14890 | ||
14891 | ||
14892 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14893 | PyObject *resultobj; | |
14894 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14895 | bool result; | |
14896 | PyObject * obj0 = 0 ; | |
14897 | char *kwnames[] = { | |
14898 | (char *) "self", NULL | |
14899 | }; | |
14900 | ||
14901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14903 | { | |
14904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14905 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
14906 | ||
14907 | wxPyEndAllowThreads(__tstate); | |
14908 | if (PyErr_Occurred()) SWIG_fail; | |
14909 | } | |
8edf1c75 | 14910 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14911 | return resultobj; |
14912 | fail: | |
14913 | return NULL; | |
14914 | } | |
14915 | ||
14916 | ||
14917 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14918 | PyObject *resultobj; | |
14919 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14920 | bool result; | |
14921 | PyObject * obj0 = 0 ; | |
14922 | char *kwnames[] = { | |
14923 | (char *) "self", NULL | |
14924 | }; | |
14925 | ||
14926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
14927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14928 | { | |
14929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14930 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
14931 | ||
14932 | wxPyEndAllowThreads(__tstate); | |
14933 | if (PyErr_Occurred()) SWIG_fail; | |
14934 | } | |
8edf1c75 | 14935 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14936 | return resultobj; |
14937 | fail: | |
14938 | return NULL; | |
14939 | } | |
14940 | ||
14941 | ||
14942 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14943 | PyObject *resultobj; | |
14944 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14945 | int result; | |
14946 | PyObject * obj0 = 0 ; | |
14947 | char *kwnames[] = { | |
14948 | (char *) "self", NULL | |
14949 | }; | |
14950 | ||
14951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
14952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14953 | { | |
14954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14955 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
14956 | ||
14957 | wxPyEndAllowThreads(__tstate); | |
14958 | if (PyErr_Occurred()) SWIG_fail; | |
14959 | } | |
8edf1c75 | 14960 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14961 | return resultobj; |
14962 | fail: | |
14963 | return NULL; | |
14964 | } | |
14965 | ||
14966 | ||
14967 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14968 | PyObject *resultobj; | |
14969 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
14970 | int result; | |
14971 | PyObject * obj0 = 0 ; | |
14972 | char *kwnames[] = { | |
14973 | (char *) "self", NULL | |
14974 | }; | |
14975 | ||
14976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
14977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14978 | { | |
14979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14980 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
14981 | ||
14982 | wxPyEndAllowThreads(__tstate); | |
14983 | if (PyErr_Occurred()) SWIG_fail; | |
14984 | } | |
8edf1c75 | 14985 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
14986 | return resultobj; |
14987 | fail: | |
14988 | return NULL; | |
14989 | } | |
14990 | ||
14991 | ||
14992 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14993 | PyObject *resultobj; | |
14994 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 14995 | unsigned int result; |
d14a1e28 RD |
14996 | PyObject * obj0 = 0 ; |
14997 | char *kwnames[] = { | |
14998 | (char *) "self", NULL | |
14999 | }; | |
15000 | ||
15001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
15002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15003 | { | |
15004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15005 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
15006 | |
15007 | wxPyEndAllowThreads(__tstate); | |
15008 | if (PyErr_Occurred()) SWIG_fail; | |
15009 | } | |
8edf1c75 | 15010 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15011 | return resultobj; |
15012 | fail: | |
15013 | return NULL; | |
15014 | } | |
15015 | ||
15016 | ||
15017 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15018 | PyObject *resultobj; | |
15019 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15020 | unsigned int result; |
d14a1e28 RD |
15021 | PyObject * obj0 = 0 ; |
15022 | char *kwnames[] = { | |
15023 | (char *) "self", NULL | |
15024 | }; | |
15025 | ||
15026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
15027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15028 | { | |
15029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15030 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
15031 | |
15032 | wxPyEndAllowThreads(__tstate); | |
15033 | if (PyErr_Occurred()) SWIG_fail; | |
15034 | } | |
8edf1c75 | 15035 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15036 | return resultobj; |
15037 | fail: | |
15038 | return NULL; | |
15039 | } | |
15040 | ||
15041 | ||
15042 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15043 | PyObject *resultobj; | |
15044 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15045 | wxPoint result; | |
15046 | PyObject * obj0 = 0 ; | |
15047 | char *kwnames[] = { | |
15048 | (char *) "self", NULL | |
15049 | }; | |
15050 | ||
15051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15053 | { | |
15054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15055 | result = (arg1)->GetPosition(); | |
15056 | ||
15057 | wxPyEndAllowThreads(__tstate); | |
15058 | if (PyErr_Occurred()) SWIG_fail; | |
15059 | } | |
15060 | { | |
15061 | wxPoint * resultptr; | |
15062 | resultptr = new wxPoint((wxPoint &) result); | |
15063 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
15064 | } | |
15065 | return resultobj; | |
15066 | fail: | |
15067 | return NULL; | |
15068 | } | |
15069 | ||
15070 | ||
15071 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15072 | PyObject *resultobj; | |
15073 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15074 | long *arg2 = (long *) 0 ; | |
15075 | long *arg3 = (long *) 0 ; | |
15076 | long temp2 ; | |
15077 | long temp3 ; | |
15078 | PyObject * obj0 = 0 ; | |
15079 | char *kwnames[] = { | |
15080 | (char *) "self", NULL | |
15081 | }; | |
15082 | ||
15083 | arg2 = &temp2; | |
15084 | arg3 = &temp3; | |
15085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15087 | { | |
15088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15089 | (arg1)->GetPosition(arg2,arg3); | |
15090 | ||
15091 | wxPyEndAllowThreads(__tstate); | |
15092 | if (PyErr_Occurred()) SWIG_fail; | |
15093 | } | |
15094 | Py_INCREF(Py_None); resultobj = Py_None; | |
15095 | { | |
15096 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15097 | resultobj = t_output_helper(resultobj,o); | |
15098 | } | |
15099 | { | |
15100 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15101 | resultobj = t_output_helper(resultobj,o); | |
15102 | } | |
15103 | return resultobj; | |
15104 | fail: | |
15105 | return NULL; | |
15106 | } | |
15107 | ||
15108 | ||
15109 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15110 | PyObject *resultobj; | |
15111 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15112 | int result; |
d14a1e28 RD |
15113 | PyObject * obj0 = 0 ; |
15114 | char *kwnames[] = { | |
15115 | (char *) "self", NULL | |
15116 | }; | |
15117 | ||
15118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
15119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15120 | { | |
15121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15122 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15123 | |
15124 | wxPyEndAllowThreads(__tstate); | |
15125 | if (PyErr_Occurred()) SWIG_fail; | |
15126 | } | |
8edf1c75 | 15127 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15128 | return resultobj; |
15129 | fail: | |
15130 | return NULL; | |
15131 | } | |
15132 | ||
15133 | ||
15134 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15135 | PyObject *resultobj; | |
15136 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15137 | int result; |
d14a1e28 RD |
15138 | PyObject * obj0 = 0 ; |
15139 | char *kwnames[] = { | |
15140 | (char *) "self", NULL | |
15141 | }; | |
15142 | ||
15143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
15144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15145 | { | |
15146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15147 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15148 | |
15149 | wxPyEndAllowThreads(__tstate); | |
15150 | if (PyErr_Occurred()) SWIG_fail; | |
15151 | } | |
8edf1c75 | 15152 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15153 | return resultobj; |
15154 | fail: | |
15155 | return NULL; | |
15156 | } | |
15157 | ||
15158 | ||
15159 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15160 | PyObject *resultobj; | |
15161 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15162 | int arg2 ; |
d14a1e28 | 15163 | PyObject * obj0 = 0 ; |
8edf1c75 | 15164 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15165 | char *kwnames[] = { |
15166 | (char *) "self",(char *) "m_x", NULL | |
15167 | }; | |
15168 | ||
8edf1c75 | 15169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15171 | { |
15172 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15173 | if (PyErr_Occurred()) SWIG_fail; | |
15174 | } | |
d14a1e28 RD |
15175 | if (arg1) (arg1)->m_x = arg2; |
15176 | ||
15177 | Py_INCREF(Py_None); resultobj = Py_None; | |
15178 | return resultobj; | |
15179 | fail: | |
15180 | return NULL; | |
15181 | } | |
15182 | ||
15183 | ||
15184 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15185 | PyObject *resultobj; | |
15186 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15187 | int result; |
d14a1e28 RD |
15188 | PyObject * obj0 = 0 ; |
15189 | char *kwnames[] = { | |
15190 | (char *) "self", NULL | |
15191 | }; | |
15192 | ||
15193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 15195 | result = (int) ((arg1)->m_x); |
d14a1e28 | 15196 | |
8edf1c75 | 15197 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15198 | return resultobj; |
15199 | fail: | |
15200 | return NULL; | |
15201 | } | |
15202 | ||
15203 | ||
15204 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15205 | PyObject *resultobj; | |
15206 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15207 | int arg2 ; |
d14a1e28 | 15208 | PyObject * obj0 = 0 ; |
8edf1c75 | 15209 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15210 | char *kwnames[] = { |
15211 | (char *) "self",(char *) "m_y", NULL | |
15212 | }; | |
15213 | ||
8edf1c75 | 15214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15216 | { |
15217 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15218 | if (PyErr_Occurred()) SWIG_fail; | |
15219 | } | |
d14a1e28 RD |
15220 | if (arg1) (arg1)->m_y = arg2; |
15221 | ||
15222 | Py_INCREF(Py_None); resultobj = Py_None; | |
15223 | return resultobj; | |
15224 | fail: | |
15225 | return NULL; | |
15226 | } | |
15227 | ||
15228 | ||
15229 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15230 | PyObject *resultobj; | |
15231 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15232 | int result; |
d14a1e28 RD |
15233 | PyObject * obj0 = 0 ; |
15234 | char *kwnames[] = { | |
15235 | (char *) "self", NULL | |
15236 | }; | |
15237 | ||
15238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 15240 | result = (int) ((arg1)->m_y); |
d14a1e28 | 15241 | |
8edf1c75 | 15242 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
15243 | return resultobj; |
15244 | fail: | |
15245 | return NULL; | |
15246 | } | |
15247 | ||
15248 | ||
15249 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15250 | PyObject *resultobj; | |
15251 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15252 | long arg2 ; | |
15253 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15254 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15255 | char *kwnames[] = { |
15256 | (char *) "self",(char *) "m_keyCode", NULL | |
15257 | }; | |
15258 | ||
8edf1c75 | 15259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 15260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15261 | { |
15262 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
15263 | if (PyErr_Occurred()) SWIG_fail; | |
15264 | } | |
d14a1e28 RD |
15265 | if (arg1) (arg1)->m_keyCode = arg2; |
15266 | ||
15267 | Py_INCREF(Py_None); resultobj = Py_None; | |
15268 | return resultobj; | |
15269 | fail: | |
15270 | return NULL; | |
15271 | } | |
15272 | ||
15273 | ||
15274 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15275 | PyObject *resultobj; | |
15276 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15277 | long result; | |
15278 | PyObject * obj0 = 0 ; | |
15279 | char *kwnames[] = { | |
15280 | (char *) "self", NULL | |
15281 | }; | |
15282 | ||
15283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
15284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15285 | result = (long) ((arg1)->m_keyCode); | |
15286 | ||
8edf1c75 | 15287 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
15288 | return resultobj; |
15289 | fail: | |
15290 | return NULL; | |
15291 | } | |
15292 | ||
15293 | ||
15294 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15295 | PyObject *resultobj; | |
15296 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15297 | bool arg2 ; | |
15298 | PyObject * obj0 = 0 ; | |
15299 | PyObject * obj1 = 0 ; | |
15300 | char *kwnames[] = { | |
15301 | (char *) "self",(char *) "m_controlDown", NULL | |
15302 | }; | |
15303 | ||
15304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15306 | { |
8edf1c75 | 15307 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15308 | if (PyErr_Occurred()) SWIG_fail; |
15309 | } | |
d14a1e28 RD |
15310 | if (arg1) (arg1)->m_controlDown = arg2; |
15311 | ||
15312 | Py_INCREF(Py_None); resultobj = Py_None; | |
15313 | return resultobj; | |
15314 | fail: | |
15315 | return NULL; | |
15316 | } | |
15317 | ||
15318 | ||
15319 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15320 | PyObject *resultobj; | |
15321 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15322 | bool result; | |
15323 | PyObject * obj0 = 0 ; | |
15324 | char *kwnames[] = { | |
15325 | (char *) "self", NULL | |
15326 | }; | |
15327 | ||
15328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15330 | result = (bool) ((arg1)->m_controlDown); | |
15331 | ||
8edf1c75 | 15332 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15333 | return resultobj; |
15334 | fail: | |
15335 | return NULL; | |
15336 | } | |
15337 | ||
15338 | ||
15339 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15340 | PyObject *resultobj; | |
15341 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15342 | bool arg2 ; | |
15343 | PyObject * obj0 = 0 ; | |
15344 | PyObject * obj1 = 0 ; | |
15345 | char *kwnames[] = { | |
15346 | (char *) "self",(char *) "m_shiftDown", NULL | |
15347 | }; | |
15348 | ||
15349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15351 | { |
8edf1c75 | 15352 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15353 | if (PyErr_Occurred()) SWIG_fail; |
15354 | } | |
d14a1e28 RD |
15355 | if (arg1) (arg1)->m_shiftDown = arg2; |
15356 | ||
15357 | Py_INCREF(Py_None); resultobj = Py_None; | |
15358 | return resultobj; | |
15359 | fail: | |
15360 | return NULL; | |
15361 | } | |
15362 | ||
15363 | ||
15364 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15365 | PyObject *resultobj; | |
15366 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15367 | bool result; | |
15368 | PyObject * obj0 = 0 ; | |
15369 | char *kwnames[] = { | |
15370 | (char *) "self", NULL | |
15371 | }; | |
15372 | ||
15373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15375 | result = (bool) ((arg1)->m_shiftDown); | |
15376 | ||
8edf1c75 | 15377 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15378 | return resultobj; |
15379 | fail: | |
15380 | return NULL; | |
15381 | } | |
15382 | ||
15383 | ||
15384 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15385 | PyObject *resultobj; | |
15386 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15387 | bool arg2 ; | |
15388 | PyObject * obj0 = 0 ; | |
15389 | PyObject * obj1 = 0 ; | |
15390 | char *kwnames[] = { | |
15391 | (char *) "self",(char *) "m_altDown", NULL | |
15392 | }; | |
15393 | ||
15394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15396 | { |
8edf1c75 | 15397 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15398 | if (PyErr_Occurred()) SWIG_fail; |
15399 | } | |
d14a1e28 RD |
15400 | if (arg1) (arg1)->m_altDown = arg2; |
15401 | ||
15402 | Py_INCREF(Py_None); resultobj = Py_None; | |
15403 | return resultobj; | |
15404 | fail: | |
15405 | return NULL; | |
15406 | } | |
15407 | ||
15408 | ||
15409 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15410 | PyObject *resultobj; | |
15411 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15412 | bool result; | |
15413 | PyObject * obj0 = 0 ; | |
15414 | char *kwnames[] = { | |
15415 | (char *) "self", NULL | |
15416 | }; | |
15417 | ||
15418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15420 | result = (bool) ((arg1)->m_altDown); | |
15421 | ||
8edf1c75 | 15422 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15423 | return resultobj; |
15424 | fail: | |
15425 | return NULL; | |
15426 | } | |
15427 | ||
15428 | ||
15429 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15430 | PyObject *resultobj; | |
15431 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15432 | bool arg2 ; | |
15433 | PyObject * obj0 = 0 ; | |
15434 | PyObject * obj1 = 0 ; | |
15435 | char *kwnames[] = { | |
15436 | (char *) "self",(char *) "m_metaDown", NULL | |
15437 | }; | |
15438 | ||
15439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15441 | { |
8edf1c75 | 15442 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15443 | if (PyErr_Occurred()) SWIG_fail; |
15444 | } | |
d14a1e28 RD |
15445 | if (arg1) (arg1)->m_metaDown = arg2; |
15446 | ||
15447 | Py_INCREF(Py_None); resultobj = Py_None; | |
15448 | return resultobj; | |
15449 | fail: | |
15450 | return NULL; | |
15451 | } | |
15452 | ||
15453 | ||
15454 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15455 | PyObject *resultobj; | |
15456 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15457 | bool result; | |
15458 | PyObject * obj0 = 0 ; | |
15459 | char *kwnames[] = { | |
15460 | (char *) "self", NULL | |
15461 | }; | |
15462 | ||
15463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15465 | result = (bool) ((arg1)->m_metaDown); | |
15466 | ||
8edf1c75 | 15467 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15468 | return resultobj; |
15469 | fail: | |
15470 | return NULL; | |
15471 | } | |
15472 | ||
15473 | ||
15474 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15475 | PyObject *resultobj; | |
15476 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15477 | bool arg2 ; | |
15478 | PyObject * obj0 = 0 ; | |
15479 | PyObject * obj1 = 0 ; | |
15480 | char *kwnames[] = { | |
15481 | (char *) "self",(char *) "m_scanCode", NULL | |
15482 | }; | |
15483 | ||
15484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15486 | { |
8edf1c75 | 15487 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
15488 | if (PyErr_Occurred()) SWIG_fail; |
15489 | } | |
d14a1e28 RD |
15490 | if (arg1) (arg1)->m_scanCode = arg2; |
15491 | ||
15492 | Py_INCREF(Py_None); resultobj = Py_None; | |
15493 | return resultobj; | |
15494 | fail: | |
15495 | return NULL; | |
15496 | } | |
15497 | ||
15498 | ||
15499 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15500 | PyObject *resultobj; | |
15501 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15502 | bool result; | |
15503 | PyObject * obj0 = 0 ; | |
15504 | char *kwnames[] = { | |
15505 | (char *) "self", NULL | |
15506 | }; | |
15507 | ||
15508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
15509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15510 | result = (bool) ((arg1)->m_scanCode); | |
15511 | ||
8edf1c75 | 15512 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15513 | return resultobj; |
15514 | fail: | |
15515 | return NULL; | |
15516 | } | |
15517 | ||
15518 | ||
15519 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15520 | PyObject *resultobj; | |
15521 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15522 | unsigned int arg2 ; |
d14a1e28 RD |
15523 | PyObject * obj0 = 0 ; |
15524 | PyObject * obj1 = 0 ; | |
15525 | char *kwnames[] = { | |
15526 | (char *) "self",(char *) "m_rawCode", NULL | |
15527 | }; | |
15528 | ||
15529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15531 | { |
8edf1c75 | 15532 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
83448d71 RD |
15533 | if (PyErr_Occurred()) SWIG_fail; |
15534 | } | |
d14a1e28 RD |
15535 | if (arg1) (arg1)->m_rawCode = arg2; |
15536 | ||
15537 | Py_INCREF(Py_None); resultobj = Py_None; | |
15538 | return resultobj; | |
15539 | fail: | |
15540 | return NULL; | |
15541 | } | |
15542 | ||
15543 | ||
15544 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15545 | PyObject *resultobj; | |
15546 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15547 | unsigned int result; |
d14a1e28 RD |
15548 | PyObject * obj0 = 0 ; |
15549 | char *kwnames[] = { | |
15550 | (char *) "self", NULL | |
15551 | }; | |
15552 | ||
15553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
15554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 15555 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 15556 | |
8edf1c75 | 15557 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15558 | return resultobj; |
15559 | fail: | |
15560 | return NULL; | |
15561 | } | |
15562 | ||
15563 | ||
15564 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15565 | PyObject *resultobj; | |
15566 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15567 | unsigned int arg2 ; |
d14a1e28 RD |
15568 | PyObject * obj0 = 0 ; |
15569 | PyObject * obj1 = 0 ; | |
15570 | char *kwnames[] = { | |
15571 | (char *) "self",(char *) "m_rawFlags", NULL | |
15572 | }; | |
15573 | ||
15574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
15575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 15576 | { |
8edf1c75 | 15577 | arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1); |
83448d71 RD |
15578 | if (PyErr_Occurred()) SWIG_fail; |
15579 | } | |
d14a1e28 RD |
15580 | if (arg1) (arg1)->m_rawFlags = arg2; |
15581 | ||
15582 | Py_INCREF(Py_None); resultobj = Py_None; | |
15583 | return resultobj; | |
15584 | fail: | |
15585 | return NULL; | |
15586 | } | |
15587 | ||
15588 | ||
15589 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15590 | PyObject *resultobj; | |
15591 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15592 | unsigned int result; |
d14a1e28 RD |
15593 | PyObject * obj0 = 0 ; |
15594 | char *kwnames[] = { | |
15595 | (char *) "self", NULL | |
15596 | }; | |
15597 | ||
15598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
15599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
423f194a | 15600 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 15601 | |
8edf1c75 | 15602 | resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15603 | return resultobj; |
15604 | fail: | |
15605 | return NULL; | |
15606 | } | |
15607 | ||
15608 | ||
15609 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
15610 | PyObject *obj; | |
15611 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15612 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
15613 | Py_INCREF(obj); | |
15614 | return Py_BuildValue((char *)""); | |
15615 | } | |
15616 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15617 | PyObject *resultobj; | |
15618 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
15619 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
15620 | int arg2 = (int) 0 ; | |
15621 | wxSizeEvent *result; | |
15622 | wxSize temp1 ; | |
15623 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15624 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15625 | char *kwnames[] = { |
15626 | (char *) "sz",(char *) "winid", NULL | |
15627 | }; | |
15628 | ||
8edf1c75 | 15629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
15630 | if (obj0) { |
15631 | { | |
15632 | arg1 = &temp1; | |
15633 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
15634 | } | |
15635 | } | |
8edf1c75 RD |
15636 | if (obj1) { |
15637 | { | |
15638 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15639 | if (PyErr_Occurred()) SWIG_fail; | |
15640 | } | |
15641 | } | |
d14a1e28 RD |
15642 | { |
15643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15644 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
15645 | ||
15646 | wxPyEndAllowThreads(__tstate); | |
15647 | if (PyErr_Occurred()) SWIG_fail; | |
15648 | } | |
15649 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizeEvent, 1); | |
15650 | return resultobj; | |
15651 | fail: | |
15652 | return NULL; | |
15653 | } | |
15654 | ||
15655 | ||
15656 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15657 | PyObject *resultobj; | |
15658 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15659 | wxSize result; | |
15660 | PyObject * obj0 = 0 ; | |
15661 | char *kwnames[] = { | |
15662 | (char *) "self", NULL | |
15663 | }; | |
15664 | ||
15665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
15666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15667 | { | |
15668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15669 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
15670 | ||
15671 | wxPyEndAllowThreads(__tstate); | |
15672 | if (PyErr_Occurred()) SWIG_fail; | |
15673 | } | |
15674 | { | |
15675 | wxSize * resultptr; | |
15676 | resultptr = new wxSize((wxSize &) result); | |
15677 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15678 | } | |
15679 | return resultobj; | |
15680 | fail: | |
15681 | return NULL; | |
15682 | } | |
15683 | ||
15684 | ||
15685 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15686 | PyObject *resultobj; | |
15687 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15688 | wxRect result; | |
15689 | PyObject * obj0 = 0 ; | |
15690 | char *kwnames[] = { | |
15691 | (char *) "self", NULL | |
15692 | }; | |
15693 | ||
15694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
15695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15696 | { | |
15697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15698 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
15699 | ||
15700 | wxPyEndAllowThreads(__tstate); | |
15701 | if (PyErr_Occurred()) SWIG_fail; | |
15702 | } | |
15703 | { | |
15704 | wxRect * resultptr; | |
15705 | resultptr = new wxRect((wxRect &) result); | |
15706 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
15707 | } | |
15708 | return resultobj; | |
15709 | fail: | |
15710 | return NULL; | |
15711 | } | |
15712 | ||
15713 | ||
15714 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15715 | PyObject *resultobj; | |
15716 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15717 | wxRect arg2 ; | |
15718 | wxRect *argp2 ; | |
15719 | PyObject * obj0 = 0 ; | |
15720 | PyObject * obj1 = 0 ; | |
15721 | char *kwnames[] = { | |
15722 | (char *) "self",(char *) "rect", NULL | |
15723 | }; | |
15724 | ||
15725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15727 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15728 | arg2 = *argp2; | |
15729 | { | |
15730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15731 | (arg1)->SetRect(arg2); | |
15732 | ||
15733 | wxPyEndAllowThreads(__tstate); | |
15734 | if (PyErr_Occurred()) SWIG_fail; | |
15735 | } | |
15736 | Py_INCREF(Py_None); resultobj = Py_None; | |
15737 | return resultobj; | |
15738 | fail: | |
15739 | return NULL; | |
15740 | } | |
15741 | ||
15742 | ||
15743 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15744 | PyObject *resultobj; | |
15745 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15746 | wxSize arg2 ; | |
15747 | wxSize *argp2 ; | |
15748 | PyObject * obj0 = 0 ; | |
15749 | PyObject * obj1 = 0 ; | |
15750 | char *kwnames[] = { | |
15751 | (char *) "self",(char *) "size", NULL | |
15752 | }; | |
15753 | ||
15754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15756 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15757 | arg2 = *argp2; | |
15758 | { | |
15759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15760 | wxSizeEvent_SetSize(arg1,arg2); | |
15761 | ||
15762 | wxPyEndAllowThreads(__tstate); | |
15763 | if (PyErr_Occurred()) SWIG_fail; | |
15764 | } | |
15765 | Py_INCREF(Py_None); resultobj = Py_None; | |
15766 | return resultobj; | |
15767 | fail: | |
15768 | return NULL; | |
15769 | } | |
15770 | ||
15771 | ||
15772 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15773 | PyObject *resultobj; | |
15774 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15775 | wxSize *arg2 = (wxSize *) 0 ; | |
15776 | PyObject * obj0 = 0 ; | |
15777 | PyObject * obj1 = 0 ; | |
15778 | char *kwnames[] = { | |
15779 | (char *) "self",(char *) "m_size", NULL | |
15780 | }; | |
15781 | ||
15782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
15783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15784 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15785 | if (arg1) (arg1)->m_size = *arg2; | |
15786 | ||
15787 | Py_INCREF(Py_None); resultobj = Py_None; | |
15788 | return resultobj; | |
15789 | fail: | |
15790 | return NULL; | |
15791 | } | |
15792 | ||
15793 | ||
15794 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15795 | PyObject *resultobj; | |
15796 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15797 | wxSize *result; | |
15798 | PyObject * obj0 = 0 ; | |
15799 | char *kwnames[] = { | |
15800 | (char *) "self", NULL | |
15801 | }; | |
15802 | ||
15803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
15804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15805 | result = (wxSize *)& ((arg1)->m_size); | |
15806 | ||
15807 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
15808 | return resultobj; | |
15809 | fail: | |
15810 | return NULL; | |
15811 | } | |
15812 | ||
15813 | ||
15814 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15815 | PyObject *resultobj; | |
15816 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15817 | wxRect *arg2 = (wxRect *) 0 ; | |
15818 | PyObject * obj0 = 0 ; | |
15819 | PyObject * obj1 = 0 ; | |
15820 | char *kwnames[] = { | |
15821 | (char *) "self",(char *) "m_rect", NULL | |
15822 | }; | |
15823 | ||
15824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15826 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15827 | if (arg1) (arg1)->m_rect = *arg2; | |
15828 | ||
15829 | Py_INCREF(Py_None); resultobj = Py_None; | |
15830 | return resultobj; | |
15831 | fail: | |
15832 | return NULL; | |
15833 | } | |
15834 | ||
15835 | ||
15836 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15837 | PyObject *resultobj; | |
15838 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15839 | wxRect *result; | |
15840 | PyObject * obj0 = 0 ; | |
15841 | char *kwnames[] = { | |
15842 | (char *) "self", NULL | |
15843 | }; | |
15844 | ||
15845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15847 | result = (wxRect *)& ((arg1)->m_rect); | |
15848 | ||
15849 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
15850 | return resultobj; | |
15851 | fail: | |
15852 | return NULL; | |
15853 | } | |
15854 | ||
15855 | ||
15856 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
15857 | PyObject *obj; | |
15858 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15859 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
15860 | Py_INCREF(obj); | |
15861 | return Py_BuildValue((char *)""); | |
15862 | } | |
15863 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15864 | PyObject *resultobj; | |
15865 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
15866 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
15867 | int arg2 = (int) 0 ; | |
15868 | wxMoveEvent *result; | |
15869 | wxPoint temp1 ; | |
15870 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15871 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15872 | char *kwnames[] = { |
15873 | (char *) "pos",(char *) "winid", NULL | |
15874 | }; | |
15875 | ||
8edf1c75 | 15876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
15877 | if (obj0) { |
15878 | { | |
15879 | arg1 = &temp1; | |
15880 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
15881 | } | |
15882 | } | |
8edf1c75 RD |
15883 | if (obj1) { |
15884 | { | |
15885 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15886 | if (PyErr_Occurred()) SWIG_fail; | |
15887 | } | |
15888 | } | |
d14a1e28 RD |
15889 | { |
15890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15891 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
15892 | ||
15893 | wxPyEndAllowThreads(__tstate); | |
15894 | if (PyErr_Occurred()) SWIG_fail; | |
15895 | } | |
15896 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMoveEvent, 1); | |
15897 | return resultobj; | |
15898 | fail: | |
15899 | return NULL; | |
15900 | } | |
15901 | ||
15902 | ||
15903 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15904 | PyObject *resultobj; | |
15905 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15906 | wxPoint result; | |
15907 | PyObject * obj0 = 0 ; | |
15908 | char *kwnames[] = { | |
15909 | (char *) "self", NULL | |
15910 | }; | |
15911 | ||
15912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15914 | { | |
15915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15916 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
15917 | ||
15918 | wxPyEndAllowThreads(__tstate); | |
15919 | if (PyErr_Occurred()) SWIG_fail; | |
15920 | } | |
15921 | { | |
15922 | wxPoint * resultptr; | |
15923 | resultptr = new wxPoint((wxPoint &) result); | |
15924 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
15925 | } | |
15926 | return resultobj; | |
15927 | fail: | |
15928 | return NULL; | |
15929 | } | |
15930 | ||
15931 | ||
15932 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15933 | PyObject *resultobj; | |
15934 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15935 | wxRect result; | |
15936 | PyObject * obj0 = 0 ; | |
15937 | char *kwnames[] = { | |
15938 | (char *) "self", NULL | |
15939 | }; | |
15940 | ||
15941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
15942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15943 | { | |
15944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15945 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
15946 | ||
15947 | wxPyEndAllowThreads(__tstate); | |
15948 | if (PyErr_Occurred()) SWIG_fail; | |
15949 | } | |
15950 | { | |
15951 | wxRect * resultptr; | |
15952 | resultptr = new wxRect((wxRect &) result); | |
15953 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
15954 | } | |
15955 | return resultobj; | |
15956 | fail: | |
15957 | return NULL; | |
15958 | } | |
15959 | ||
15960 | ||
15961 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15962 | PyObject *resultobj; | |
15963 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15964 | wxRect arg2 ; | |
15965 | wxRect *argp2 ; | |
15966 | PyObject * obj0 = 0 ; | |
15967 | PyObject * obj1 = 0 ; | |
15968 | char *kwnames[] = { | |
15969 | (char *) "self",(char *) "rect", NULL | |
15970 | }; | |
15971 | ||
15972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15974 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15975 | arg2 = *argp2; | |
15976 | { | |
15977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15978 | (arg1)->SetRect(arg2); | |
15979 | ||
15980 | wxPyEndAllowThreads(__tstate); | |
15981 | if (PyErr_Occurred()) SWIG_fail; | |
15982 | } | |
15983 | Py_INCREF(Py_None); resultobj = Py_None; | |
15984 | return resultobj; | |
15985 | fail: | |
15986 | return NULL; | |
15987 | } | |
15988 | ||
15989 | ||
15990 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15991 | PyObject *resultobj; | |
15992 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
15993 | wxPoint arg2 ; | |
15994 | wxPoint *argp2 ; | |
15995 | PyObject * obj0 = 0 ; | |
15996 | PyObject * obj1 = 0 ; | |
15997 | char *kwnames[] = { | |
15998 | (char *) "self",(char *) "pos", NULL | |
15999 | }; | |
16000 | ||
16001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
16002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16003 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16004 | arg2 = *argp2; | |
16005 | { | |
16006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16007 | wxMoveEvent_SetPosition(arg1,arg2); | |
16008 | ||
16009 | wxPyEndAllowThreads(__tstate); | |
16010 | if (PyErr_Occurred()) SWIG_fail; | |
16011 | } | |
16012 | Py_INCREF(Py_None); resultobj = Py_None; | |
16013 | return resultobj; | |
16014 | fail: | |
16015 | return NULL; | |
16016 | } | |
16017 | ||
16018 | ||
16019 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16020 | PyObject *resultobj; | |
16021 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16022 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16023 | PyObject * obj0 = 0 ; | |
16024 | PyObject * obj1 = 0 ; | |
16025 | char *kwnames[] = { | |
16026 | (char *) "self",(char *) "m_pos", NULL | |
16027 | }; | |
16028 | ||
16029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
16030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16031 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16032 | if (arg1) (arg1)->m_pos = *arg2; | |
16033 | ||
16034 | Py_INCREF(Py_None); resultobj = Py_None; | |
16035 | return resultobj; | |
16036 | fail: | |
16037 | return NULL; | |
16038 | } | |
16039 | ||
16040 | ||
16041 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16042 | PyObject *resultobj; | |
16043 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16044 | wxPoint *result; | |
16045 | PyObject * obj0 = 0 ; | |
16046 | char *kwnames[] = { | |
16047 | (char *) "self", NULL | |
16048 | }; | |
16049 | ||
16050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
16051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16052 | result = (wxPoint *)& ((arg1)->m_pos); | |
16053 | ||
16054 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
16055 | return resultobj; | |
16056 | fail: | |
16057 | return NULL; | |
16058 | } | |
16059 | ||
16060 | ||
16061 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16062 | PyObject *resultobj; | |
16063 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16064 | wxRect *arg2 = (wxRect *) 0 ; | |
16065 | PyObject * obj0 = 0 ; | |
16066 | PyObject * obj1 = 0 ; | |
16067 | char *kwnames[] = { | |
16068 | (char *) "self",(char *) "m_rect", NULL | |
16069 | }; | |
16070 | ||
16071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16073 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16074 | if (arg1) (arg1)->m_rect = *arg2; | |
16075 | ||
16076 | Py_INCREF(Py_None); resultobj = Py_None; | |
16077 | return resultobj; | |
16078 | fail: | |
16079 | return NULL; | |
16080 | } | |
16081 | ||
16082 | ||
16083 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16084 | PyObject *resultobj; | |
16085 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16086 | wxRect *result; | |
16087 | PyObject * obj0 = 0 ; | |
16088 | char *kwnames[] = { | |
16089 | (char *) "self", NULL | |
16090 | }; | |
16091 | ||
16092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16094 | result = (wxRect *)& ((arg1)->m_rect); | |
16095 | ||
16096 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0); | |
16097 | return resultobj; | |
16098 | fail: | |
16099 | return NULL; | |
16100 | } | |
16101 | ||
16102 | ||
16103 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16104 | PyObject *obj; | |
16105 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16106 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16107 | Py_INCREF(obj); | |
16108 | return Py_BuildValue((char *)""); | |
16109 | } | |
16110 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16111 | PyObject *resultobj; | |
16112 | int arg1 = (int) 0 ; | |
16113 | wxPaintEvent *result; | |
8edf1c75 | 16114 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16115 | char *kwnames[] = { |
16116 | (char *) "Id", NULL | |
16117 | }; | |
16118 | ||
8edf1c75 RD |
16119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; |
16120 | if (obj0) { | |
16121 | { | |
16122 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16123 | if (PyErr_Occurred()) SWIG_fail; | |
16124 | } | |
16125 | } | |
d14a1e28 RD |
16126 | { |
16127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16128 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16129 | ||
16130 | wxPyEndAllowThreads(__tstate); | |
16131 | if (PyErr_Occurred()) SWIG_fail; | |
16132 | } | |
16133 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintEvent, 1); | |
16134 | return resultobj; | |
16135 | fail: | |
16136 | return NULL; | |
16137 | } | |
16138 | ||
16139 | ||
16140 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16141 | PyObject *obj; | |
16142 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16143 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16144 | Py_INCREF(obj); | |
16145 | return Py_BuildValue((char *)""); | |
16146 | } | |
16147 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16148 | PyObject *resultobj; | |
16149 | int arg1 = (int) 0 ; | |
16150 | wxNcPaintEvent *result; | |
8edf1c75 | 16151 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16152 | char *kwnames[] = { |
16153 | (char *) "winid", NULL | |
16154 | }; | |
16155 | ||
8edf1c75 RD |
16156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; |
16157 | if (obj0) { | |
16158 | { | |
16159 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16160 | if (PyErr_Occurred()) SWIG_fail; | |
16161 | } | |
16162 | } | |
d14a1e28 RD |
16163 | { |
16164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16165 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16166 | ||
16167 | wxPyEndAllowThreads(__tstate); | |
16168 | if (PyErr_Occurred()) SWIG_fail; | |
16169 | } | |
16170 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNcPaintEvent, 1); | |
16171 | return resultobj; | |
16172 | fail: | |
16173 | return NULL; | |
16174 | } | |
16175 | ||
16176 | ||
16177 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16178 | PyObject *obj; | |
16179 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16180 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16181 | Py_INCREF(obj); | |
16182 | return Py_BuildValue((char *)""); | |
16183 | } | |
16184 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16185 | PyObject *resultobj; | |
16186 | int arg1 = (int) 0 ; | |
16187 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16188 | wxEraseEvent *result; | |
8edf1c75 | 16189 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16190 | PyObject * obj1 = 0 ; |
16191 | char *kwnames[] = { | |
16192 | (char *) "Id",(char *) "dc", NULL | |
16193 | }; | |
16194 | ||
8edf1c75 RD |
16195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; |
16196 | if (obj0) { | |
16197 | { | |
16198 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16199 | if (PyErr_Occurred()) SWIG_fail; | |
16200 | } | |
16201 | } | |
d14a1e28 RD |
16202 | if (obj1) { |
16203 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16204 | } | |
16205 | { | |
16206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16207 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16208 | ||
16209 | wxPyEndAllowThreads(__tstate); | |
16210 | if (PyErr_Occurred()) SWIG_fail; | |
16211 | } | |
16212 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEraseEvent, 1); | |
16213 | return resultobj; | |
16214 | fail: | |
16215 | return NULL; | |
16216 | } | |
16217 | ||
16218 | ||
16219 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16220 | PyObject *resultobj; | |
16221 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16222 | wxDC *result; | |
16223 | PyObject * obj0 = 0 ; | |
16224 | char *kwnames[] = { | |
16225 | (char *) "self", NULL | |
16226 | }; | |
16227 | ||
16228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
16229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEraseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16230 | { | |
16231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16232 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16233 | ||
16234 | wxPyEndAllowThreads(__tstate); | |
16235 | if (PyErr_Occurred()) SWIG_fail; | |
16236 | } | |
16237 | { | |
16238 | resultobj = wxPyMake_wxObject(result); | |
16239 | } | |
16240 | return resultobj; | |
16241 | fail: | |
16242 | return NULL; | |
16243 | } | |
16244 | ||
16245 | ||
16246 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
16247 | PyObject *obj; | |
16248 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16249 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16250 | Py_INCREF(obj); | |
16251 | return Py_BuildValue((char *)""); | |
16252 | } | |
16253 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16254 | PyObject *resultobj; | |
16255 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16256 | int arg2 = (int) 0 ; | |
16257 | wxFocusEvent *result; | |
8edf1c75 RD |
16258 | PyObject * obj0 = 0 ; |
16259 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16260 | char *kwnames[] = { |
16261 | (char *) "type",(char *) "winid", NULL | |
16262 | }; | |
16263 | ||
8edf1c75 RD |
16264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; |
16265 | if (obj0) { | |
16266 | { | |
16267 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
16268 | if (PyErr_Occurred()) SWIG_fail; | |
16269 | } | |
16270 | } | |
16271 | if (obj1) { | |
16272 | { | |
16273 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16274 | if (PyErr_Occurred()) SWIG_fail; | |
16275 | } | |
16276 | } | |
d14a1e28 RD |
16277 | { |
16278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16279 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16280 | ||
16281 | wxPyEndAllowThreads(__tstate); | |
16282 | if (PyErr_Occurred()) SWIG_fail; | |
16283 | } | |
16284 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFocusEvent, 1); | |
16285 | return resultobj; | |
16286 | fail: | |
16287 | return NULL; | |
16288 | } | |
16289 | ||
16290 | ||
16291 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16292 | PyObject *resultobj; | |
16293 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16294 | wxWindow *result; | |
16295 | PyObject * obj0 = 0 ; | |
16296 | char *kwnames[] = { | |
16297 | (char *) "self", NULL | |
16298 | }; | |
16299 | ||
16300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16302 | { | |
16303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16304 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
16305 | ||
16306 | wxPyEndAllowThreads(__tstate); | |
16307 | if (PyErr_Occurred()) SWIG_fail; | |
16308 | } | |
16309 | { | |
16310 | resultobj = wxPyMake_wxObject(result); | |
16311 | } | |
16312 | return resultobj; | |
16313 | fail: | |
16314 | return NULL; | |
16315 | } | |
16316 | ||
16317 | ||
16318 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16319 | PyObject *resultobj; | |
16320 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16321 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16322 | PyObject * obj0 = 0 ; | |
16323 | PyObject * obj1 = 0 ; | |
16324 | char *kwnames[] = { | |
16325 | (char *) "self",(char *) "win", NULL | |
16326 | }; | |
16327 | ||
16328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
16329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16330 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16331 | { | |
16332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16333 | (arg1)->SetWindow(arg2); | |
16334 | ||
16335 | wxPyEndAllowThreads(__tstate); | |
16336 | if (PyErr_Occurred()) SWIG_fail; | |
16337 | } | |
16338 | Py_INCREF(Py_None); resultobj = Py_None; | |
16339 | return resultobj; | |
16340 | fail: | |
16341 | return NULL; | |
16342 | } | |
16343 | ||
16344 | ||
16345 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16346 | PyObject *obj; | |
16347 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16348 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
16349 | Py_INCREF(obj); | |
16350 | return Py_BuildValue((char *)""); | |
16351 | } | |
16352 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16353 | PyObject *resultobj; | |
16354 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16355 | wxChildFocusEvent *result; | |
16356 | PyObject * obj0 = 0 ; | |
16357 | char *kwnames[] = { | |
16358 | (char *) "win", NULL | |
16359 | }; | |
16360 | ||
16361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
16362 | if (obj0) { | |
16363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16364 | } | |
16365 | { | |
16366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16367 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
16368 | ||
16369 | wxPyEndAllowThreads(__tstate); | |
16370 | if (PyErr_Occurred()) SWIG_fail; | |
16371 | } | |
16372 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChildFocusEvent, 1); | |
16373 | return resultobj; | |
16374 | fail: | |
16375 | return NULL; | |
16376 | } | |
16377 | ||
16378 | ||
16379 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16380 | PyObject *resultobj; | |
16381 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
16382 | wxWindow *result; | |
16383 | PyObject * obj0 = 0 ; | |
16384 | char *kwnames[] = { | |
16385 | (char *) "self", NULL | |
16386 | }; | |
16387 | ||
16388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChildFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16390 | { | |
16391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16392 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
16393 | ||
16394 | wxPyEndAllowThreads(__tstate); | |
16395 | if (PyErr_Occurred()) SWIG_fail; | |
16396 | } | |
16397 | { | |
16398 | resultobj = wxPyMake_wxObject(result); | |
16399 | } | |
16400 | return resultobj; | |
16401 | fail: | |
16402 | return NULL; | |
16403 | } | |
16404 | ||
16405 | ||
16406 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16407 | PyObject *obj; | |
16408 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16409 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
16410 | Py_INCREF(obj); | |
16411 | return Py_BuildValue((char *)""); | |
16412 | } | |
16413 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16414 | PyObject *resultobj; | |
16415 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 16416 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16417 | int arg3 = (int) 0 ; |
16418 | wxActivateEvent *result; | |
8edf1c75 | 16419 | PyObject * obj0 = 0 ; |
d14a1e28 | 16420 | PyObject * obj1 = 0 ; |
8edf1c75 | 16421 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16422 | char *kwnames[] = { |
16423 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
16424 | }; | |
16425 | ||
8edf1c75 RD |
16426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16427 | if (obj0) { | |
16428 | { | |
16429 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
16430 | if (PyErr_Occurred()) SWIG_fail; | |
16431 | } | |
16432 | } | |
d14a1e28 | 16433 | if (obj1) { |
83448d71 | 16434 | { |
8edf1c75 RD |
16435 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
16436 | if (PyErr_Occurred()) SWIG_fail; | |
16437 | } | |
16438 | } | |
16439 | if (obj2) { | |
16440 | { | |
16441 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
16442 | if (PyErr_Occurred()) SWIG_fail; |
16443 | } | |
d14a1e28 RD |
16444 | } |
16445 | { | |
16446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16447 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
16448 | ||
16449 | wxPyEndAllowThreads(__tstate); | |
16450 | if (PyErr_Occurred()) SWIG_fail; | |
16451 | } | |
16452 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxActivateEvent, 1); | |
16453 | return resultobj; | |
16454 | fail: | |
16455 | return NULL; | |
16456 | } | |
16457 | ||
16458 | ||
16459 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16460 | PyObject *resultobj; | |
16461 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
16462 | bool result; | |
16463 | PyObject * obj0 = 0 ; | |
16464 | char *kwnames[] = { | |
16465 | (char *) "self", NULL | |
16466 | }; | |
16467 | ||
16468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
16469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxActivateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16470 | { | |
16471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16472 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
16473 | ||
16474 | wxPyEndAllowThreads(__tstate); | |
16475 | if (PyErr_Occurred()) SWIG_fail; | |
16476 | } | |
8edf1c75 | 16477 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16478 | return resultobj; |
16479 | fail: | |
16480 | return NULL; | |
16481 | } | |
16482 | ||
16483 | ||
16484 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
16485 | PyObject *obj; | |
16486 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16487 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
16488 | Py_INCREF(obj); | |
16489 | return Py_BuildValue((char *)""); | |
16490 | } | |
16491 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16492 | PyObject *resultobj; | |
16493 | int arg1 = (int) 0 ; | |
16494 | wxInitDialogEvent *result; | |
8edf1c75 | 16495 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16496 | char *kwnames[] = { |
16497 | (char *) "Id", NULL | |
16498 | }; | |
16499 | ||
8edf1c75 RD |
16500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; |
16501 | if (obj0) { | |
16502 | { | |
16503 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16504 | if (PyErr_Occurred()) SWIG_fail; | |
16505 | } | |
16506 | } | |
d14a1e28 RD |
16507 | { |
16508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16509 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
16510 | ||
16511 | wxPyEndAllowThreads(__tstate); | |
16512 | if (PyErr_Occurred()) SWIG_fail; | |
16513 | } | |
16514 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInitDialogEvent, 1); | |
16515 | return resultobj; | |
16516 | fail: | |
16517 | return NULL; | |
16518 | } | |
16519 | ||
16520 | ||
16521 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
16522 | PyObject *obj; | |
16523 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16524 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
16525 | Py_INCREF(obj); | |
16526 | return Py_BuildValue((char *)""); | |
16527 | } | |
16528 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16529 | PyObject *resultobj; | |
16530 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16531 | int arg2 = (int) 0 ; | |
16532 | wxMenu *arg3 = (wxMenu *) NULL ; | |
16533 | wxMenuEvent *result; | |
8edf1c75 RD |
16534 | PyObject * obj0 = 0 ; |
16535 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16536 | PyObject * obj2 = 0 ; |
16537 | char *kwnames[] = { | |
16538 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
16539 | }; | |
16540 | ||
8edf1c75 RD |
16541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16542 | if (obj0) { | |
16543 | { | |
16544 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
16545 | if (PyErr_Occurred()) SWIG_fail; | |
16546 | } | |
16547 | } | |
16548 | if (obj1) { | |
16549 | { | |
16550 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16551 | if (PyErr_Occurred()) SWIG_fail; | |
16552 | } | |
16553 | } | |
d14a1e28 RD |
16554 | if (obj2) { |
16555 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16556 | } | |
16557 | { | |
16558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16559 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
16560 | ||
16561 | wxPyEndAllowThreads(__tstate); | |
16562 | if (PyErr_Occurred()) SWIG_fail; | |
16563 | } | |
16564 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMenuEvent, 1); | |
16565 | return resultobj; | |
16566 | fail: | |
16567 | return NULL; | |
16568 | } | |
16569 | ||
16570 | ||
16571 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16572 | PyObject *resultobj; | |
16573 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16574 | int result; | |
16575 | PyObject * obj0 = 0 ; | |
16576 | char *kwnames[] = { | |
16577 | (char *) "self", NULL | |
16578 | }; | |
16579 | ||
16580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
16581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16582 | { | |
16583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16584 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
16585 | ||
16586 | wxPyEndAllowThreads(__tstate); | |
16587 | if (PyErr_Occurred()) SWIG_fail; | |
16588 | } | |
8edf1c75 | 16589 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16590 | return resultobj; |
16591 | fail: | |
16592 | return NULL; | |
16593 | } | |
16594 | ||
16595 | ||
16596 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16597 | PyObject *resultobj; | |
16598 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16599 | bool result; | |
16600 | PyObject * obj0 = 0 ; | |
16601 | char *kwnames[] = { | |
16602 | (char *) "self", NULL | |
16603 | }; | |
16604 | ||
16605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
16606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16607 | { | |
16608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16609 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
16610 | ||
16611 | wxPyEndAllowThreads(__tstate); | |
16612 | if (PyErr_Occurred()) SWIG_fail; | |
16613 | } | |
8edf1c75 | 16614 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16615 | return resultobj; |
16616 | fail: | |
16617 | return NULL; | |
16618 | } | |
16619 | ||
16620 | ||
16621 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16622 | PyObject *resultobj; | |
16623 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16624 | wxMenu *result; | |
16625 | PyObject * obj0 = 0 ; | |
16626 | char *kwnames[] = { | |
16627 | (char *) "self", NULL | |
16628 | }; | |
16629 | ||
16630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
16631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16632 | { | |
16633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16634 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
16635 | ||
16636 | wxPyEndAllowThreads(__tstate); | |
16637 | if (PyErr_Occurred()) SWIG_fail; | |
16638 | } | |
16639 | { | |
16640 | resultobj = wxPyMake_wxObject(result); | |
16641 | } | |
16642 | return resultobj; | |
16643 | fail: | |
16644 | return NULL; | |
16645 | } | |
16646 | ||
16647 | ||
16648 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
16649 | PyObject *obj; | |
16650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16651 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
16652 | Py_INCREF(obj); | |
16653 | return Py_BuildValue((char *)""); | |
16654 | } | |
16655 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16656 | PyObject *resultobj; | |
16657 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16658 | int arg2 = (int) 0 ; | |
16659 | wxCloseEvent *result; | |
8edf1c75 RD |
16660 | PyObject * obj0 = 0 ; |
16661 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16662 | char *kwnames[] = { |
16663 | (char *) "type",(char *) "winid", NULL | |
16664 | }; | |
16665 | ||
8edf1c75 RD |
16666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; |
16667 | if (obj0) { | |
16668 | { | |
16669 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
16670 | if (PyErr_Occurred()) SWIG_fail; | |
16671 | } | |
16672 | } | |
16673 | if (obj1) { | |
16674 | { | |
16675 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16676 | if (PyErr_Occurred()) SWIG_fail; | |
16677 | } | |
16678 | } | |
d14a1e28 RD |
16679 | { |
16680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16681 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
16682 | ||
16683 | wxPyEndAllowThreads(__tstate); | |
16684 | if (PyErr_Occurred()) SWIG_fail; | |
16685 | } | |
16686 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCloseEvent, 1); | |
16687 | return resultobj; | |
16688 | fail: | |
16689 | return NULL; | |
16690 | } | |
16691 | ||
16692 | ||
16693 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16694 | PyObject *resultobj; | |
16695 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16696 | bool arg2 ; | |
16697 | PyObject * obj0 = 0 ; | |
16698 | PyObject * obj1 = 0 ; | |
16699 | char *kwnames[] = { | |
16700 | (char *) "self",(char *) "logOff", NULL | |
16701 | }; | |
16702 | ||
16703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
16704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16705 | { |
8edf1c75 | 16706 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16707 | if (PyErr_Occurred()) SWIG_fail; |
16708 | } | |
d14a1e28 RD |
16709 | { |
16710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16711 | (arg1)->SetLoggingOff(arg2); | |
16712 | ||
16713 | wxPyEndAllowThreads(__tstate); | |
16714 | if (PyErr_Occurred()) SWIG_fail; | |
16715 | } | |
16716 | Py_INCREF(Py_None); resultobj = Py_None; | |
16717 | return resultobj; | |
16718 | fail: | |
16719 | return NULL; | |
16720 | } | |
16721 | ||
16722 | ||
16723 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16724 | PyObject *resultobj; | |
16725 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16726 | bool result; | |
16727 | PyObject * obj0 = 0 ; | |
16728 | char *kwnames[] = { | |
16729 | (char *) "self", NULL | |
16730 | }; | |
16731 | ||
16732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
16733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16734 | { | |
16735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16736 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
16737 | ||
16738 | wxPyEndAllowThreads(__tstate); | |
16739 | if (PyErr_Occurred()) SWIG_fail; | |
16740 | } | |
8edf1c75 | 16741 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16742 | return resultobj; |
16743 | fail: | |
16744 | return NULL; | |
16745 | } | |
16746 | ||
16747 | ||
16748 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16749 | PyObject *resultobj; | |
16750 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
423f194a | 16751 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16752 | PyObject * obj0 = 0 ; |
16753 | PyObject * obj1 = 0 ; | |
16754 | char *kwnames[] = { | |
16755 | (char *) "self",(char *) "veto", NULL | |
16756 | }; | |
16757 | ||
16758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
16759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16760 | if (obj1) { | |
83448d71 | 16761 | { |
8edf1c75 | 16762 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16763 | if (PyErr_Occurred()) SWIG_fail; |
16764 | } | |
d14a1e28 RD |
16765 | } |
16766 | { | |
16767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16768 | (arg1)->Veto(arg2); | |
16769 | ||
16770 | wxPyEndAllowThreads(__tstate); | |
16771 | if (PyErr_Occurred()) SWIG_fail; | |
16772 | } | |
16773 | Py_INCREF(Py_None); resultobj = Py_None; | |
16774 | return resultobj; | |
16775 | fail: | |
16776 | return NULL; | |
16777 | } | |
16778 | ||
16779 | ||
16780 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16781 | PyObject *resultobj; | |
16782 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16783 | bool arg2 ; | |
16784 | PyObject * obj0 = 0 ; | |
16785 | PyObject * obj1 = 0 ; | |
16786 | char *kwnames[] = { | |
16787 | (char *) "self",(char *) "canVeto", NULL | |
16788 | }; | |
16789 | ||
16790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
16791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16792 | { |
8edf1c75 | 16793 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16794 | if (PyErr_Occurred()) SWIG_fail; |
16795 | } | |
d14a1e28 RD |
16796 | { |
16797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16798 | (arg1)->SetCanVeto(arg2); | |
16799 | ||
16800 | wxPyEndAllowThreads(__tstate); | |
16801 | if (PyErr_Occurred()) SWIG_fail; | |
16802 | } | |
16803 | Py_INCREF(Py_None); resultobj = Py_None; | |
16804 | return resultobj; | |
16805 | fail: | |
16806 | return NULL; | |
16807 | } | |
16808 | ||
16809 | ||
16810 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16811 | PyObject *resultobj; | |
16812 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16813 | bool result; | |
16814 | PyObject * obj0 = 0 ; | |
16815 | char *kwnames[] = { | |
16816 | (char *) "self", NULL | |
16817 | }; | |
16818 | ||
16819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
16820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16821 | { | |
16822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16823 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
16824 | ||
16825 | wxPyEndAllowThreads(__tstate); | |
16826 | if (PyErr_Occurred()) SWIG_fail; | |
16827 | } | |
8edf1c75 | 16828 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16829 | return resultobj; |
16830 | fail: | |
16831 | return NULL; | |
16832 | } | |
16833 | ||
16834 | ||
16835 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16836 | PyObject *resultobj; | |
16837 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16838 | bool result; | |
16839 | PyObject * obj0 = 0 ; | |
16840 | char *kwnames[] = { | |
16841 | (char *) "self", NULL | |
16842 | }; | |
16843 | ||
16844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
16845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16846 | { | |
16847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16848 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
16849 | ||
16850 | wxPyEndAllowThreads(__tstate); | |
16851 | if (PyErr_Occurred()) SWIG_fail; | |
16852 | } | |
8edf1c75 | 16853 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16854 | return resultobj; |
16855 | fail: | |
16856 | return NULL; | |
16857 | } | |
16858 | ||
16859 | ||
16860 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
16861 | PyObject *obj; | |
16862 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16863 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
16864 | Py_INCREF(obj); | |
16865 | return Py_BuildValue((char *)""); | |
16866 | } | |
16867 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16868 | PyObject *resultobj; | |
16869 | int arg1 = (int) 0 ; | |
423f194a | 16870 | bool arg2 = (bool) False ; |
d14a1e28 | 16871 | wxShowEvent *result; |
8edf1c75 | 16872 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16873 | PyObject * obj1 = 0 ; |
16874 | char *kwnames[] = { | |
16875 | (char *) "winid",(char *) "show", NULL | |
16876 | }; | |
16877 | ||
8edf1c75 RD |
16878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; |
16879 | if (obj0) { | |
16880 | { | |
16881 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16882 | if (PyErr_Occurred()) SWIG_fail; | |
16883 | } | |
16884 | } | |
d14a1e28 | 16885 | if (obj1) { |
83448d71 | 16886 | { |
8edf1c75 | 16887 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16888 | if (PyErr_Occurred()) SWIG_fail; |
16889 | } | |
d14a1e28 RD |
16890 | } |
16891 | { | |
16892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16893 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
16894 | ||
16895 | wxPyEndAllowThreads(__tstate); | |
16896 | if (PyErr_Occurred()) SWIG_fail; | |
16897 | } | |
16898 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxShowEvent, 1); | |
16899 | return resultobj; | |
16900 | fail: | |
16901 | return NULL; | |
16902 | } | |
16903 | ||
16904 | ||
16905 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16906 | PyObject *resultobj; | |
16907 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
16908 | bool arg2 ; | |
16909 | PyObject * obj0 = 0 ; | |
16910 | PyObject * obj1 = 0 ; | |
16911 | char *kwnames[] = { | |
16912 | (char *) "self",(char *) "show", NULL | |
16913 | }; | |
16914 | ||
16915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
16916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16917 | { |
8edf1c75 | 16918 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16919 | if (PyErr_Occurred()) SWIG_fail; |
16920 | } | |
d14a1e28 RD |
16921 | { |
16922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16923 | (arg1)->SetShow(arg2); | |
16924 | ||
16925 | wxPyEndAllowThreads(__tstate); | |
16926 | if (PyErr_Occurred()) SWIG_fail; | |
16927 | } | |
16928 | Py_INCREF(Py_None); resultobj = Py_None; | |
16929 | return resultobj; | |
16930 | fail: | |
16931 | return NULL; | |
16932 | } | |
16933 | ||
16934 | ||
16935 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16936 | PyObject *resultobj; | |
16937 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
16938 | bool result; | |
16939 | PyObject * obj0 = 0 ; | |
16940 | char *kwnames[] = { | |
16941 | (char *) "self", NULL | |
16942 | }; | |
16943 | ||
16944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
16945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16946 | { | |
16947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16948 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
16949 | ||
16950 | wxPyEndAllowThreads(__tstate); | |
16951 | if (PyErr_Occurred()) SWIG_fail; | |
16952 | } | |
8edf1c75 | 16953 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16954 | return resultobj; |
16955 | fail: | |
16956 | return NULL; | |
16957 | } | |
16958 | ||
16959 | ||
16960 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
16961 | PyObject *obj; | |
16962 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16963 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
16964 | Py_INCREF(obj); | |
16965 | return Py_BuildValue((char *)""); | |
16966 | } | |
16967 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16968 | PyObject *resultobj; | |
16969 | int arg1 = (int) 0 ; | |
423f194a | 16970 | bool arg2 = (bool) True ; |
d14a1e28 | 16971 | wxIconizeEvent *result; |
8edf1c75 | 16972 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16973 | PyObject * obj1 = 0 ; |
16974 | char *kwnames[] = { | |
16975 | (char *) "id",(char *) "iconized", NULL | |
16976 | }; | |
16977 | ||
8edf1c75 RD |
16978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; |
16979 | if (obj0) { | |
16980 | { | |
16981 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
16982 | if (PyErr_Occurred()) SWIG_fail; | |
16983 | } | |
16984 | } | |
d14a1e28 | 16985 | if (obj1) { |
83448d71 | 16986 | { |
8edf1c75 | 16987 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16988 | if (PyErr_Occurred()) SWIG_fail; |
16989 | } | |
d14a1e28 RD |
16990 | } |
16991 | { | |
16992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16993 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
16994 | ||
16995 | wxPyEndAllowThreads(__tstate); | |
16996 | if (PyErr_Occurred()) SWIG_fail; | |
16997 | } | |
16998 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconizeEvent, 1); | |
16999 | return resultobj; | |
17000 | fail: | |
17001 | return NULL; | |
17002 | } | |
17003 | ||
17004 | ||
17005 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17006 | PyObject *resultobj; | |
17007 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17008 | bool result; | |
17009 | PyObject * obj0 = 0 ; | |
17010 | char *kwnames[] = { | |
17011 | (char *) "self", NULL | |
17012 | }; | |
17013 | ||
17014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
17015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17016 | { | |
17017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17018 | result = (bool)(arg1)->Iconized(); | |
17019 | ||
17020 | wxPyEndAllowThreads(__tstate); | |
17021 | if (PyErr_Occurred()) SWIG_fail; | |
17022 | } | |
8edf1c75 | 17023 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
17024 | return resultobj; |
17025 | fail: | |
17026 | return NULL; | |
17027 | } | |
17028 | ||
17029 | ||
17030 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17031 | PyObject *obj; | |
17032 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17033 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17034 | Py_INCREF(obj); | |
17035 | return Py_BuildValue((char *)""); | |
17036 | } | |
17037 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17038 | PyObject *resultobj; | |
17039 | int arg1 = (int) 0 ; | |
17040 | wxMaximizeEvent *result; | |
8edf1c75 | 17041 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17042 | char *kwnames[] = { |
17043 | (char *) "id", NULL | |
17044 | }; | |
17045 | ||
8edf1c75 RD |
17046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; |
17047 | if (obj0) { | |
17048 | { | |
17049 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17050 | if (PyErr_Occurred()) SWIG_fail; | |
17051 | } | |
17052 | } | |
d14a1e28 RD |
17053 | { |
17054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17055 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17056 | ||
17057 | wxPyEndAllowThreads(__tstate); | |
17058 | if (PyErr_Occurred()) SWIG_fail; | |
17059 | } | |
17060 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMaximizeEvent, 1); | |
17061 | return resultobj; | |
17062 | fail: | |
17063 | return NULL; | |
17064 | } | |
17065 | ||
17066 | ||
17067 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17068 | PyObject *obj; | |
17069 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17070 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17071 | Py_INCREF(obj); | |
17072 | return Py_BuildValue((char *)""); | |
17073 | } | |
17074 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17075 | PyObject *resultobj; | |
17076 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17077 | wxPoint result; | |
17078 | PyObject * obj0 = 0 ; | |
17079 | char *kwnames[] = { | |
17080 | (char *) "self", NULL | |
17081 | }; | |
17082 | ||
17083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
17084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17085 | { | |
17086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17087 | result = (arg1)->GetPosition(); | |
17088 | ||
17089 | wxPyEndAllowThreads(__tstate); | |
17090 | if (PyErr_Occurred()) SWIG_fail; | |
17091 | } | |
17092 | { | |
17093 | wxPoint * resultptr; | |
17094 | resultptr = new wxPoint((wxPoint &) result); | |
17095 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
17096 | } | |
17097 | return resultobj; | |
17098 | fail: | |
17099 | return NULL; | |
17100 | } | |
17101 | ||
17102 | ||
17103 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17104 | PyObject *resultobj; | |
17105 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17106 | int result; | |
17107 | PyObject * obj0 = 0 ; | |
17108 | char *kwnames[] = { | |
17109 | (char *) "self", NULL | |
17110 | }; | |
17111 | ||
17112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
17113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17114 | { | |
17115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17116 | result = (int)(arg1)->GetNumberOfFiles(); | |
17117 | ||
17118 | wxPyEndAllowThreads(__tstate); | |
17119 | if (PyErr_Occurred()) SWIG_fail; | |
17120 | } | |
8edf1c75 | 17121 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17122 | return resultobj; |
17123 | fail: | |
17124 | return NULL; | |
17125 | } | |
17126 | ||
17127 | ||
17128 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17129 | PyObject *resultobj; | |
17130 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17131 | PyObject *result; | |
17132 | PyObject * obj0 = 0 ; | |
17133 | char *kwnames[] = { | |
17134 | (char *) "self", NULL | |
17135 | }; | |
17136 | ||
17137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
17138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17139 | { | |
17140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17141 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17142 | ||
17143 | wxPyEndAllowThreads(__tstate); | |
17144 | if (PyErr_Occurred()) SWIG_fail; | |
17145 | } | |
17146 | resultobj = result; | |
17147 | return resultobj; | |
17148 | fail: | |
17149 | return NULL; | |
17150 | } | |
17151 | ||
17152 | ||
17153 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17154 | PyObject *obj; | |
17155 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17156 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17157 | Py_INCREF(obj); | |
17158 | return Py_BuildValue((char *)""); | |
17159 | } | |
17160 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17161 | PyObject *resultobj; | |
423f194a | 17162 | int arg1 = (int) 0 ; |
d14a1e28 | 17163 | wxUpdateUIEvent *result; |
8edf1c75 | 17164 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17165 | char *kwnames[] = { |
17166 | (char *) "commandId", NULL | |
17167 | }; | |
17168 | ||
8edf1c75 RD |
17169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; |
17170 | if (obj0) { | |
17171 | { | |
17172 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17173 | if (PyErr_Occurred()) SWIG_fail; | |
17174 | } | |
17175 | } | |
d14a1e28 RD |
17176 | { |
17177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17178 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17179 | ||
17180 | wxPyEndAllowThreads(__tstate); | |
17181 | if (PyErr_Occurred()) SWIG_fail; | |
17182 | } | |
17183 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxUpdateUIEvent, 1); | |
17184 | return resultobj; | |
17185 | fail: | |
17186 | return NULL; | |
17187 | } | |
17188 | ||
17189 | ||
17190 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17191 | PyObject *resultobj; | |
17192 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17193 | bool result; | |
17194 | PyObject * obj0 = 0 ; | |
17195 | char *kwnames[] = { | |
17196 | (char *) "self", NULL | |
17197 | }; | |
17198 | ||
17199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
17200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17201 | { | |
17202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17203 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17204 | ||
17205 | wxPyEndAllowThreads(__tstate); | |
17206 | if (PyErr_Occurred()) SWIG_fail; | |
17207 | } | |
8edf1c75 | 17208 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
17209 | return resultobj; |
17210 | fail: | |
17211 | return NULL; | |
17212 | } | |
17213 | ||
17214 | ||
17215 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17216 | PyObject *resultobj; | |
17217 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17218 | bool result; | |
17219 | PyObject * obj0 = 0 ; | |
17220 | char *kwnames[] = { | |
17221 | (char *) "self", NULL | |
17222 | }; | |
17223 | ||
17224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
17225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17226 | { | |
17227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17228 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17229 | ||
17230 | wxPyEndAllowThreads(__tstate); | |
17231 | if (PyErr_Occurred()) SWIG_fail; | |
17232 | } | |
8edf1c75 | 17233 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
17234 | return resultobj; |
17235 | fail: | |
17236 | return NULL; | |
17237 | } | |
17238 | ||
17239 | ||
17240 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17241 | PyObject *resultobj; | |
17242 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17243 | wxString result; | |
17244 | PyObject * obj0 = 0 ; | |
17245 | char *kwnames[] = { | |
17246 | (char *) "self", NULL | |
17247 | }; | |
17248 | ||
17249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
17250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17251 | { | |
17252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17253 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17254 | ||
17255 | wxPyEndAllowThreads(__tstate); | |
17256 | if (PyErr_Occurred()) SWIG_fail; | |
17257 | } | |
17258 | { | |
17259 | #if wxUSE_UNICODE | |
17260 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17261 | #else | |
17262 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17263 | #endif | |
17264 | } | |
17265 | return resultobj; | |
17266 | fail: | |
17267 | return NULL; | |
17268 | } | |
17269 | ||
17270 | ||
17271 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17272 | PyObject *resultobj; | |
17273 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17274 | bool result; | |
17275 | PyObject * obj0 = 0 ; | |
17276 | char *kwnames[] = { | |
17277 | (char *) "self", NULL | |
17278 | }; | |
17279 | ||
17280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
17281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17282 | { | |
17283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17284 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17285 | ||
17286 | wxPyEndAllowThreads(__tstate); | |
17287 | if (PyErr_Occurred()) SWIG_fail; | |
17288 | } | |
8edf1c75 | 17289 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
17290 | return resultobj; |
17291 | fail: | |
17292 | return NULL; | |
17293 | } | |
17294 | ||
17295 | ||
17296 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17297 | PyObject *resultobj; | |
17298 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17299 | bool result; | |
17300 | PyObject * obj0 = 0 ; | |
17301 | char *kwnames[] = { | |
17302 | (char *) "self", NULL | |
17303 | }; | |
17304 | ||
17305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
17306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17307 | { | |
17308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17309 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
17310 | ||
17311 | wxPyEndAllowThreads(__tstate); | |
17312 | if (PyErr_Occurred()) SWIG_fail; | |
17313 | } | |
8edf1c75 | 17314 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
17315 | return resultobj; |
17316 | fail: | |
17317 | return NULL; | |
17318 | } | |
17319 | ||
17320 | ||
17321 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17322 | PyObject *resultobj; | |
17323 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17324 | bool result; | |
17325 | PyObject * obj0 = 0 ; | |
17326 | char *kwnames[] = { | |
17327 | (char *) "self", NULL | |
17328 | }; | |
17329 | ||
17330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
17331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17332 | { | |
17333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17334 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
17335 | ||
17336 | wxPyEndAllowThreads(__tstate); | |
17337 | if (PyErr_Occurred()) SWIG_fail; | |
17338 | } | |
8edf1c75 | 17339 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
17340 | return resultobj; |
17341 | fail: | |
17342 | return NULL; | |
17343 | } | |
17344 | ||
17345 | ||
17346 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17347 | PyObject *resultobj; | |
17348 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17349 | bool arg2 ; | |
17350 | PyObject * obj0 = 0 ; | |
17351 | PyObject * obj1 = 0 ; | |
17352 | char *kwnames[] = { | |
17353 | (char *) "self",(char *) "check", NULL | |
17354 | }; | |
17355 | ||
17356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
17357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 17358 | { |
8edf1c75 | 17359 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
17360 | if (PyErr_Occurred()) SWIG_fail; |
17361 | } | |
d14a1e28 RD |
17362 | { |
17363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17364 | (arg1)->Check(arg2); | |
17365 | ||
17366 | wxPyEndAllowThreads(__tstate); | |
17367 | if (PyErr_Occurred()) SWIG_fail; | |
17368 | } | |
17369 | Py_INCREF(Py_None); resultobj = Py_None; | |
17370 | return resultobj; | |
17371 | fail: | |
17372 | return NULL; | |
17373 | } | |
17374 | ||
17375 | ||
17376 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17377 | PyObject *resultobj; | |
17378 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17379 | bool arg2 ; | |
17380 | PyObject * obj0 = 0 ; | |
17381 | PyObject * obj1 = 0 ; | |
17382 | char *kwnames[] = { | |
17383 | (char *) "self",(char *) "enable", NULL | |
17384 | }; | |
17385 | ||
17386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
17387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 17388 | { |
8edf1c75 | 17389 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
17390 | if (PyErr_Occurred()) SWIG_fail; |
17391 | } | |
d14a1e28 RD |
17392 | { |
17393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17394 | (arg1)->Enable(arg2); | |
17395 | ||
17396 | wxPyEndAllowThreads(__tstate); | |
17397 | if (PyErr_Occurred()) SWIG_fail; | |
17398 | } | |
17399 | Py_INCREF(Py_None); resultobj = Py_None; | |
17400 | return resultobj; | |
17401 | fail: | |
17402 | return NULL; | |
17403 | } | |
17404 | ||
17405 | ||
17406 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17407 | PyObject *resultobj; | |
17408 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17409 | wxString *arg2 = 0 ; | |
423f194a | 17410 | bool temp2 = False ; |
d14a1e28 RD |
17411 | PyObject * obj0 = 0 ; |
17412 | PyObject * obj1 = 0 ; | |
17413 | char *kwnames[] = { | |
17414 | (char *) "self",(char *) "text", NULL | |
17415 | }; | |
17416 | ||
17417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
17418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17419 | { | |
17420 | arg2 = wxString_in_helper(obj1); | |
17421 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17422 | temp2 = True; |
d14a1e28 RD |
17423 | } |
17424 | { | |
17425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17426 | (arg1)->SetText((wxString const &)*arg2); | |
17427 | ||
17428 | wxPyEndAllowThreads(__tstate); | |
17429 | if (PyErr_Occurred()) SWIG_fail; | |
17430 | } | |
17431 | Py_INCREF(Py_None); resultobj = Py_None; | |
17432 | { | |
17433 | if (temp2) | |
17434 | delete arg2; | |
17435 | } | |
17436 | return resultobj; | |
17437 | fail: | |
17438 | { | |
17439 | if (temp2) | |
17440 | delete arg2; | |
17441 | } | |
17442 | return NULL; | |
17443 | } | |
17444 | ||
17445 | ||
17446 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17447 | PyObject *resultobj; | |
17448 | long arg1 ; | |
8edf1c75 | 17449 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17450 | char *kwnames[] = { |
17451 | (char *) "updateInterval", NULL | |
17452 | }; | |
17453 | ||
8edf1c75 RD |
17454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; |
17455 | { | |
17456 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
17457 | if (PyErr_Occurred()) SWIG_fail; | |
17458 | } | |
d14a1e28 RD |
17459 | { |
17460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17461 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
17462 | ||
17463 | wxPyEndAllowThreads(__tstate); | |
17464 | if (PyErr_Occurred()) SWIG_fail; | |
17465 | } | |
17466 | Py_INCREF(Py_None); resultobj = Py_None; | |
17467 | return resultobj; | |
17468 | fail: | |
17469 | return NULL; | |
17470 | } | |
17471 | ||
17472 | ||
17473 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17474 | PyObject *resultobj; | |
17475 | long result; | |
17476 | char *kwnames[] = { | |
17477 | NULL | |
17478 | }; | |
17479 | ||
17480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
17481 | { | |
17482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17483 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
17484 | ||
17485 | wxPyEndAllowThreads(__tstate); | |
17486 | if (PyErr_Occurred()) SWIG_fail; | |
17487 | } | |
8edf1c75 | 17488 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
17489 | return resultobj; |
17490 | fail: | |
17491 | return NULL; | |
17492 | } | |
17493 | ||
17494 | ||
17495 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17496 | PyObject *resultobj; | |
17497 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17498 | bool result; | |
17499 | PyObject * obj0 = 0 ; | |
17500 | char *kwnames[] = { | |
17501 | (char *) "win", NULL | |
17502 | }; | |
17503 | ||
17504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
17505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17506 | { | |
17507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17508 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
17509 | ||
17510 | wxPyEndAllowThreads(__tstate); | |
17511 | if (PyErr_Occurred()) SWIG_fail; | |
17512 | } | |
8edf1c75 | 17513 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
17514 | return resultobj; |
17515 | fail: | |
17516 | return NULL; | |
17517 | } | |
17518 | ||
17519 | ||
17520 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17521 | PyObject *resultobj; | |
17522 | char *kwnames[] = { | |
17523 | NULL | |
17524 | }; | |
17525 | ||
17526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
17527 | { | |
17528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17529 | wxUpdateUIEvent::ResetUpdateTime(); | |
17530 | ||
17531 | wxPyEndAllowThreads(__tstate); | |
17532 | if (PyErr_Occurred()) SWIG_fail; | |
17533 | } | |
17534 | Py_INCREF(Py_None); resultobj = Py_None; | |
17535 | return resultobj; | |
17536 | fail: | |
17537 | return NULL; | |
17538 | } | |
17539 | ||
17540 | ||
17541 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17542 | PyObject *resultobj; | |
17543 | int arg1 ; | |
8edf1c75 | 17544 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17545 | char *kwnames[] = { |
17546 | (char *) "mode", NULL | |
17547 | }; | |
17548 | ||
8edf1c75 RD |
17549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; |
17550 | { | |
17551 | arg1 = (wxUpdateUIMode) SWIG_PyObj_AsInt(obj0); | |
17552 | if (PyErr_Occurred()) SWIG_fail; | |
17553 | } | |
d14a1e28 RD |
17554 | { |
17555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17556 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
17557 | ||
17558 | wxPyEndAllowThreads(__tstate); | |
17559 | if (PyErr_Occurred()) SWIG_fail; | |
17560 | } | |
17561 | Py_INCREF(Py_None); resultobj = Py_None; | |
17562 | return resultobj; | |
17563 | fail: | |
17564 | return NULL; | |
17565 | } | |
17566 | ||
17567 | ||
17568 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17569 | PyObject *resultobj; | |
17570 | int result; | |
17571 | char *kwnames[] = { | |
17572 | NULL | |
17573 | }; | |
17574 | ||
17575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
17576 | { | |
17577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17578 | result = (int)wxUpdateUIEvent::GetMode(); | |
17579 | ||
17580 | wxPyEndAllowThreads(__tstate); | |
17581 | if (PyErr_Occurred()) SWIG_fail; | |
17582 | } | |
8edf1c75 | 17583 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17584 | return resultobj; |
17585 | fail: | |
17586 | return NULL; | |
17587 | } | |
17588 | ||
17589 | ||
17590 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
17591 | PyObject *obj; | |
17592 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17593 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
17594 | Py_INCREF(obj); | |
17595 | return Py_BuildValue((char *)""); | |
17596 | } | |
17597 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17598 | PyObject *resultobj; | |
17599 | wxSysColourChangedEvent *result; | |
17600 | char *kwnames[] = { | |
17601 | NULL | |
17602 | }; | |
17603 | ||
17604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
17605 | { | |
17606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17607 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
17608 | ||
17609 | wxPyEndAllowThreads(__tstate); | |
17610 | if (PyErr_Occurred()) SWIG_fail; | |
17611 | } | |
17612 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
17613 | return resultobj; | |
17614 | fail: | |
17615 | return NULL; | |
17616 | } | |
17617 | ||
17618 | ||
17619 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17620 | PyObject *obj; | |
17621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17622 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
17623 | Py_INCREF(obj); | |
17624 | return Py_BuildValue((char *)""); | |
17625 | } | |
17626 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17627 | PyObject *resultobj; | |
423f194a | 17628 | int arg1 = (int) 0 ; |
d14a1e28 RD |
17629 | wxWindow *arg2 = (wxWindow *) NULL ; |
17630 | wxMouseCaptureChangedEvent *result; | |
8edf1c75 | 17631 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17632 | PyObject * obj1 = 0 ; |
17633 | char *kwnames[] = { | |
17634 | (char *) "winid",(char *) "gainedCapture", NULL | |
17635 | }; | |
17636 | ||
8edf1c75 RD |
17637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; |
17638 | if (obj0) { | |
17639 | { | |
17640 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17641 | if (PyErr_Occurred()) SWIG_fail; | |
17642 | } | |
17643 | } | |
d14a1e28 RD |
17644 | if (obj1) { |
17645 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17646 | } | |
17647 | { | |
17648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17649 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
17650 | ||
17651 | wxPyEndAllowThreads(__tstate); | |
17652 | if (PyErr_Occurred()) SWIG_fail; | |
17653 | } | |
17654 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
17655 | return resultobj; | |
17656 | fail: | |
17657 | return NULL; | |
17658 | } | |
17659 | ||
17660 | ||
17661 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17662 | PyObject *resultobj; | |
17663 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
17664 | wxWindow *result; | |
17665 | PyObject * obj0 = 0 ; | |
17666 | char *kwnames[] = { | |
17667 | (char *) "self", NULL | |
17668 | }; | |
17669 | ||
17670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
17671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseCaptureChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17672 | { | |
17673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17674 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
17675 | ||
17676 | wxPyEndAllowThreads(__tstate); | |
17677 | if (PyErr_Occurred()) SWIG_fail; | |
17678 | } | |
17679 | { | |
17680 | resultobj = wxPyMake_wxObject(result); | |
17681 | } | |
17682 | return resultobj; | |
17683 | fail: | |
17684 | return NULL; | |
17685 | } | |
17686 | ||
17687 | ||
17688 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17689 | PyObject *obj; | |
17690 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17691 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
17692 | Py_INCREF(obj); | |
17693 | return Py_BuildValue((char *)""); | |
17694 | } | |
17695 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17696 | PyObject *resultobj; | |
17697 | wxDisplayChangedEvent *result; | |
17698 | char *kwnames[] = { | |
17699 | NULL | |
17700 | }; | |
17701 | ||
17702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
17703 | { | |
17704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17705 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
17706 | ||
17707 | wxPyEndAllowThreads(__tstate); | |
17708 | if (PyErr_Occurred()) SWIG_fail; | |
17709 | } | |
17710 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
17711 | return resultobj; | |
17712 | fail: | |
17713 | return NULL; | |
17714 | } | |
17715 | ||
17716 | ||
17717 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17718 | PyObject *obj; | |
17719 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17720 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
17721 | Py_INCREF(obj); | |
17722 | return Py_BuildValue((char *)""); | |
17723 | } | |
17724 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17725 | PyObject *resultobj; | |
423f194a | 17726 | int arg1 = (int) 0 ; |
d14a1e28 | 17727 | wxPaletteChangedEvent *result; |
8edf1c75 | 17728 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17729 | char *kwnames[] = { |
17730 | (char *) "id", NULL | |
17731 | }; | |
17732 | ||
8edf1c75 RD |
17733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; |
17734 | if (obj0) { | |
17735 | { | |
17736 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17737 | if (PyErr_Occurred()) SWIG_fail; | |
17738 | } | |
17739 | } | |
d14a1e28 RD |
17740 | { |
17741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17742 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
17743 | ||
17744 | wxPyEndAllowThreads(__tstate); | |
17745 | if (PyErr_Occurred()) SWIG_fail; | |
17746 | } | |
17747 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
17748 | return resultobj; | |
17749 | fail: | |
17750 | return NULL; | |
17751 | } | |
17752 | ||
17753 | ||
17754 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17755 | PyObject *resultobj; | |
17756 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
17757 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17758 | PyObject * obj0 = 0 ; | |
17759 | PyObject * obj1 = 0 ; | |
17760 | char *kwnames[] = { | |
17761 | (char *) "self",(char *) "win", NULL | |
17762 | }; | |
17763 | ||
17764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
17765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17766 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17767 | { | |
17768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17769 | (arg1)->SetChangedWindow(arg2); | |
17770 | ||
17771 | wxPyEndAllowThreads(__tstate); | |
17772 | if (PyErr_Occurred()) SWIG_fail; | |
17773 | } | |
17774 | Py_INCREF(Py_None); resultobj = Py_None; | |
17775 | return resultobj; | |
17776 | fail: | |
17777 | return NULL; | |
17778 | } | |
17779 | ||
17780 | ||
17781 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17782 | PyObject *resultobj; | |
17783 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
17784 | wxWindow *result; | |
17785 | PyObject * obj0 = 0 ; | |
17786 | char *kwnames[] = { | |
17787 | (char *) "self", NULL | |
17788 | }; | |
17789 | ||
17790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
17791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17792 | { | |
17793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17794 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
17795 | ||
17796 | wxPyEndAllowThreads(__tstate); | |
17797 | if (PyErr_Occurred()) SWIG_fail; | |
17798 | } | |
17799 | { | |
17800 | resultobj = wxPyMake_wxObject(result); | |
17801 | } | |
17802 | return resultobj; | |
17803 | fail: | |
17804 | return NULL; | |
17805 | } | |
17806 | ||
17807 | ||
17808 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17809 | PyObject *obj; | |
17810 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17811 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
17812 | Py_INCREF(obj); | |
17813 | return Py_BuildValue((char *)""); | |
17814 | } | |
17815 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17816 | PyObject *resultobj; | |
423f194a | 17817 | int arg1 = (int) 0 ; |
d14a1e28 | 17818 | wxQueryNewPaletteEvent *result; |
8edf1c75 | 17819 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17820 | char *kwnames[] = { |
17821 | (char *) "winid", NULL | |
17822 | }; | |
17823 | ||
8edf1c75 RD |
17824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; |
17825 | if (obj0) { | |
17826 | { | |
17827 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
17828 | if (PyErr_Occurred()) SWIG_fail; | |
17829 | } | |
17830 | } | |
d14a1e28 RD |
17831 | { |
17832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17833 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
17834 | ||
17835 | wxPyEndAllowThreads(__tstate); | |
17836 | if (PyErr_Occurred()) SWIG_fail; | |
17837 | } | |
17838 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
17839 | return resultobj; | |
17840 | fail: | |
17841 | return NULL; | |
17842 | } | |
17843 | ||
17844 | ||
17845 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17846 | PyObject *resultobj; | |
17847 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
17848 | bool arg2 ; | |
17849 | PyObject * obj0 = 0 ; | |
17850 | PyObject * obj1 = 0 ; | |
17851 | char *kwnames[] = { | |
17852 | (char *) "self",(char *) "realized", NULL | |
17853 | }; | |
17854 | ||
17855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
17856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 17857 | { |
8edf1c75 | 17858 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
17859 | if (PyErr_Occurred()) SWIG_fail; |
17860 | } | |
d14a1e28 RD |
17861 | { |
17862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17863 | (arg1)->SetPaletteRealized(arg2); | |
17864 | ||
17865 | wxPyEndAllowThreads(__tstate); | |
17866 | if (PyErr_Occurred()) SWIG_fail; | |
17867 | } | |
17868 | Py_INCREF(Py_None); resultobj = Py_None; | |
17869 | return resultobj; | |
17870 | fail: | |
17871 | return NULL; | |
17872 | } | |
17873 | ||
17874 | ||
17875 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17876 | PyObject *resultobj; | |
17877 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
17878 | bool result; | |
17879 | PyObject * obj0 = 0 ; | |
17880 | char *kwnames[] = { | |
17881 | (char *) "self", NULL | |
17882 | }; | |
17883 | ||
17884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
17885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17886 | { | |
17887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17888 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
17889 | ||
17890 | wxPyEndAllowThreads(__tstate); | |
17891 | if (PyErr_Occurred()) SWIG_fail; | |
17892 | } | |
8edf1c75 | 17893 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
17894 | return resultobj; |
17895 | fail: | |
17896 | return NULL; | |
17897 | } | |
17898 | ||
17899 | ||
17900 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
17901 | PyObject *obj; | |
17902 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17903 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
17904 | Py_INCREF(obj); | |
17905 | return Py_BuildValue((char *)""); | |
17906 | } | |
17907 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17908 | PyObject *resultobj; | |
17909 | wxNavigationKeyEvent *result; | |
17910 | char *kwnames[] = { | |
17911 | NULL | |
17912 | }; | |
17913 | ||
17914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
17915 | { | |
17916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17917 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
17918 | ||
17919 | wxPyEndAllowThreads(__tstate); | |
17920 | if (PyErr_Occurred()) SWIG_fail; | |
17921 | } | |
17922 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
17923 | return resultobj; | |
17924 | fail: | |
17925 | return NULL; | |
17926 | } | |
17927 | ||
17928 | ||
17929 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17930 | PyObject *resultobj; | |
17931 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
17932 | bool result; | |
17933 | PyObject * obj0 = 0 ; | |
17934 | char *kwnames[] = { | |
17935 | (char *) "self", NULL | |
17936 | }; | |
17937 | ||
17938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
17939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17940 | { | |
17941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17942 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
17943 | ||
17944 | wxPyEndAllowThreads(__tstate); | |
17945 | if (PyErr_Occurred()) SWIG_fail; | |
17946 | } | |
8edf1c75 | 17947 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
17948 | return resultobj; |
17949 | fail: | |
17950 | return NULL; | |
17951 | } | |
17952 | ||
17953 | ||
17954 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17955 | PyObject *resultobj; | |
17956 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
17957 | bool arg2 ; | |
17958 | PyObject * obj0 = 0 ; | |
17959 | PyObject * obj1 = 0 ; | |
17960 | char *kwnames[] = { | |
17961 | (char *) "self",(char *) "bForward", NULL | |
17962 | }; | |
17963 | ||
17964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
17965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 17966 | { |
8edf1c75 | 17967 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
17968 | if (PyErr_Occurred()) SWIG_fail; |
17969 | } | |
d14a1e28 RD |
17970 | { |
17971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17972 | (arg1)->SetDirection(arg2); | |
17973 | ||
17974 | wxPyEndAllowThreads(__tstate); | |
17975 | if (PyErr_Occurred()) SWIG_fail; | |
17976 | } | |
17977 | Py_INCREF(Py_None); resultobj = Py_None; | |
17978 | return resultobj; | |
17979 | fail: | |
17980 | return NULL; | |
17981 | } | |
17982 | ||
17983 | ||
17984 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17985 | PyObject *resultobj; | |
17986 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
17987 | bool result; | |
17988 | PyObject * obj0 = 0 ; | |
17989 | char *kwnames[] = { | |
17990 | (char *) "self", NULL | |
17991 | }; | |
17992 | ||
17993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
17994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17995 | { | |
17996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17997 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
17998 | ||
17999 | wxPyEndAllowThreads(__tstate); | |
18000 | if (PyErr_Occurred()) SWIG_fail; | |
18001 | } | |
8edf1c75 | 18002 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
18003 | return resultobj; |
18004 | fail: | |
18005 | return NULL; | |
18006 | } | |
18007 | ||
18008 | ||
18009 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18010 | PyObject *resultobj; | |
18011 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18012 | bool arg2 ; | |
18013 | PyObject * obj0 = 0 ; | |
18014 | PyObject * obj1 = 0 ; | |
18015 | char *kwnames[] = { | |
18016 | (char *) "self",(char *) "bIs", NULL | |
18017 | }; | |
18018 | ||
18019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
18020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 18021 | { |
8edf1c75 | 18022 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
18023 | if (PyErr_Occurred()) SWIG_fail; |
18024 | } | |
d14a1e28 RD |
18025 | { |
18026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18027 | (arg1)->SetWindowChange(arg2); | |
18028 | ||
18029 | wxPyEndAllowThreads(__tstate); | |
18030 | if (PyErr_Occurred()) SWIG_fail; | |
18031 | } | |
18032 | Py_INCREF(Py_None); resultobj = Py_None; | |
18033 | return resultobj; | |
18034 | fail: | |
18035 | return NULL; | |
18036 | } | |
18037 | ||
18038 | ||
18039 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18040 | PyObject *resultobj; | |
18041 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18042 | wxWindow *result; | |
18043 | PyObject * obj0 = 0 ; | |
18044 | char *kwnames[] = { | |
18045 | (char *) "self", NULL | |
18046 | }; | |
18047 | ||
18048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
18049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18050 | { | |
18051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18052 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18053 | ||
18054 | wxPyEndAllowThreads(__tstate); | |
18055 | if (PyErr_Occurred()) SWIG_fail; | |
18056 | } | |
18057 | { | |
18058 | resultobj = wxPyMake_wxObject(result); | |
18059 | } | |
18060 | return resultobj; | |
18061 | fail: | |
18062 | return NULL; | |
18063 | } | |
18064 | ||
18065 | ||
18066 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18067 | PyObject *resultobj; | |
18068 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18069 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18070 | PyObject * obj0 = 0 ; | |
18071 | PyObject * obj1 = 0 ; | |
18072 | char *kwnames[] = { | |
18073 | (char *) "self",(char *) "win", NULL | |
18074 | }; | |
18075 | ||
18076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
18077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18078 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18079 | { | |
18080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18081 | (arg1)->SetCurrentFocus(arg2); | |
18082 | ||
18083 | wxPyEndAllowThreads(__tstate); | |
18084 | if (PyErr_Occurred()) SWIG_fail; | |
18085 | } | |
18086 | Py_INCREF(Py_None); resultobj = Py_None; | |
18087 | return resultobj; | |
18088 | fail: | |
18089 | return NULL; | |
18090 | } | |
18091 | ||
18092 | ||
18093 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18094 | PyObject *obj; | |
18095 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18096 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18097 | Py_INCREF(obj); | |
18098 | return Py_BuildValue((char *)""); | |
18099 | } | |
18100 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18101 | PyObject *resultobj; | |
18102 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18103 | wxWindowCreateEvent *result; | |
18104 | PyObject * obj0 = 0 ; | |
18105 | char *kwnames[] = { | |
18106 | (char *) "win", NULL | |
18107 | }; | |
18108 | ||
18109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18110 | if (obj0) { | |
18111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18112 | } | |
18113 | { | |
18114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18115 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18116 | ||
18117 | wxPyEndAllowThreads(__tstate); | |
18118 | if (PyErr_Occurred()) SWIG_fail; | |
18119 | } | |
18120 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowCreateEvent, 1); | |
18121 | return resultobj; | |
18122 | fail: | |
18123 | return NULL; | |
18124 | } | |
18125 | ||
18126 | ||
18127 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18128 | PyObject *resultobj; | |
18129 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18130 | wxWindow *result; | |
18131 | PyObject * obj0 = 0 ; | |
18132 | char *kwnames[] = { | |
18133 | (char *) "self", NULL | |
18134 | }; | |
18135 | ||
18136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
18137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowCreateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18138 | { | |
18139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18140 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18141 | ||
18142 | wxPyEndAllowThreads(__tstate); | |
18143 | if (PyErr_Occurred()) SWIG_fail; | |
18144 | } | |
18145 | { | |
18146 | resultobj = wxPyMake_wxObject(result); | |
18147 | } | |
18148 | return resultobj; | |
18149 | fail: | |
18150 | return NULL; | |
18151 | } | |
18152 | ||
18153 | ||
18154 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18155 | PyObject *obj; | |
18156 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18157 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18158 | Py_INCREF(obj); | |
18159 | return Py_BuildValue((char *)""); | |
18160 | } | |
18161 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18162 | PyObject *resultobj; | |
18163 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18164 | wxWindowDestroyEvent *result; | |
18165 | PyObject * obj0 = 0 ; | |
18166 | char *kwnames[] = { | |
18167 | (char *) "win", NULL | |
18168 | }; | |
18169 | ||
18170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18171 | if (obj0) { | |
18172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18173 | } | |
18174 | { | |
18175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18176 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18177 | ||
18178 | wxPyEndAllowThreads(__tstate); | |
18179 | if (PyErr_Occurred()) SWIG_fail; | |
18180 | } | |
18181 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
18182 | return resultobj; | |
18183 | fail: | |
18184 | return NULL; | |
18185 | } | |
18186 | ||
18187 | ||
18188 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18189 | PyObject *resultobj; | |
18190 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18191 | wxWindow *result; | |
18192 | PyObject * obj0 = 0 ; | |
18193 | char *kwnames[] = { | |
18194 | (char *) "self", NULL | |
18195 | }; | |
18196 | ||
18197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
18198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDestroyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18199 | { | |
18200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18201 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18202 | ||
18203 | wxPyEndAllowThreads(__tstate); | |
18204 | if (PyErr_Occurred()) SWIG_fail; | |
18205 | } | |
18206 | { | |
18207 | resultobj = wxPyMake_wxObject(result); | |
18208 | } | |
18209 | return resultobj; | |
18210 | fail: | |
18211 | return NULL; | |
18212 | } | |
18213 | ||
18214 | ||
18215 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
18216 | PyObject *obj; | |
18217 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18218 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18219 | Py_INCREF(obj); | |
18220 | return Py_BuildValue((char *)""); | |
18221 | } | |
18222 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18223 | PyObject *resultobj; | |
18224 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 18225 | int arg2 = (int) 0 ; |
d14a1e28 RD |
18226 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18227 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18228 | wxContextMenuEvent *result; | |
18229 | wxPoint temp3 ; | |
8edf1c75 RD |
18230 | PyObject * obj0 = 0 ; |
18231 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18232 | PyObject * obj2 = 0 ; |
18233 | char *kwnames[] = { | |
18234 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18235 | }; | |
18236 | ||
8edf1c75 RD |
18237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18238 | if (obj0) { | |
18239 | { | |
18240 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
18241 | if (PyErr_Occurred()) SWIG_fail; | |
18242 | } | |
18243 | } | |
18244 | if (obj1) { | |
18245 | { | |
18246 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18247 | if (PyErr_Occurred()) SWIG_fail; | |
18248 | } | |
18249 | } | |
d14a1e28 RD |
18250 | if (obj2) { |
18251 | { | |
18252 | arg3 = &temp3; | |
18253 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18254 | } | |
18255 | } | |
18256 | { | |
18257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18258 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18259 | ||
18260 | wxPyEndAllowThreads(__tstate); | |
18261 | if (PyErr_Occurred()) SWIG_fail; | |
18262 | } | |
18263 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextMenuEvent, 1); | |
18264 | return resultobj; | |
18265 | fail: | |
18266 | return NULL; | |
18267 | } | |
18268 | ||
18269 | ||
18270 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18271 | PyObject *resultobj; | |
18272 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18273 | wxPoint *result; | |
18274 | PyObject * obj0 = 0 ; | |
18275 | char *kwnames[] = { | |
18276 | (char *) "self", NULL | |
18277 | }; | |
18278 | ||
18279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
18280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18281 | { | |
18282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18283 | { | |
18284 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
18285 | result = (wxPoint *) &_result_ref; | |
18286 | } | |
18287 | ||
18288 | wxPyEndAllowThreads(__tstate); | |
18289 | if (PyErr_Occurred()) SWIG_fail; | |
18290 | } | |
18291 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
18292 | return resultobj; | |
18293 | fail: | |
18294 | return NULL; | |
18295 | } | |
18296 | ||
18297 | ||
18298 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18299 | PyObject *resultobj; | |
18300 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18301 | wxPoint *arg2 = 0 ; | |
18302 | wxPoint temp2 ; | |
18303 | PyObject * obj0 = 0 ; | |
18304 | PyObject * obj1 = 0 ; | |
18305 | char *kwnames[] = { | |
18306 | (char *) "self",(char *) "pos", NULL | |
18307 | }; | |
18308 | ||
18309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
18310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18311 | { | |
18312 | arg2 = &temp2; | |
18313 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18314 | } | |
18315 | { | |
18316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18317 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
18318 | ||
18319 | wxPyEndAllowThreads(__tstate); | |
18320 | if (PyErr_Occurred()) SWIG_fail; | |
18321 | } | |
18322 | Py_INCREF(Py_None); resultobj = Py_None; | |
18323 | return resultobj; | |
18324 | fail: | |
18325 | return NULL; | |
18326 | } | |
18327 | ||
18328 | ||
18329 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
18330 | PyObject *obj; | |
18331 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18332 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
18333 | Py_INCREF(obj); | |
18334 | return Py_BuildValue((char *)""); | |
18335 | } | |
18336 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18337 | PyObject *resultobj; | |
18338 | wxIdleEvent *result; | |
18339 | char *kwnames[] = { | |
18340 | NULL | |
18341 | }; | |
18342 | ||
18343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
18344 | { | |
18345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18346 | result = (wxIdleEvent *)new wxIdleEvent(); | |
18347 | ||
18348 | wxPyEndAllowThreads(__tstate); | |
18349 | if (PyErr_Occurred()) SWIG_fail; | |
18350 | } | |
18351 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIdleEvent, 1); | |
18352 | return resultobj; | |
18353 | fail: | |
18354 | return NULL; | |
18355 | } | |
18356 | ||
18357 | ||
18358 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18359 | PyObject *resultobj; | |
18360 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
423f194a | 18361 | bool arg2 = (bool) True ; |
d14a1e28 RD |
18362 | PyObject * obj0 = 0 ; |
18363 | PyObject * obj1 = 0 ; | |
18364 | char *kwnames[] = { | |
18365 | (char *) "self",(char *) "needMore", NULL | |
18366 | }; | |
18367 | ||
18368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
18369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18370 | if (obj1) { | |
83448d71 | 18371 | { |
8edf1c75 | 18372 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
18373 | if (PyErr_Occurred()) SWIG_fail; |
18374 | } | |
d14a1e28 RD |
18375 | } |
18376 | { | |
18377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18378 | (arg1)->RequestMore(arg2); | |
18379 | ||
18380 | wxPyEndAllowThreads(__tstate); | |
18381 | if (PyErr_Occurred()) SWIG_fail; | |
18382 | } | |
18383 | Py_INCREF(Py_None); resultobj = Py_None; | |
18384 | return resultobj; | |
18385 | fail: | |
18386 | return NULL; | |
18387 | } | |
18388 | ||
18389 | ||
18390 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18391 | PyObject *resultobj; | |
18392 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
18393 | bool result; | |
18394 | PyObject * obj0 = 0 ; | |
18395 | char *kwnames[] = { | |
18396 | (char *) "self", NULL | |
18397 | }; | |
18398 | ||
18399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
18400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18401 | { | |
18402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18403 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
18404 | ||
18405 | wxPyEndAllowThreads(__tstate); | |
18406 | if (PyErr_Occurred()) SWIG_fail; | |
18407 | } | |
8edf1c75 | 18408 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
18409 | return resultobj; |
18410 | fail: | |
18411 | return NULL; | |
18412 | } | |
18413 | ||
18414 | ||
18415 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18416 | PyObject *resultobj; | |
18417 | int arg1 ; | |
8edf1c75 | 18418 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18419 | char *kwnames[] = { |
18420 | (char *) "mode", NULL | |
18421 | }; | |
18422 | ||
8edf1c75 RD |
18423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; |
18424 | { | |
18425 | arg1 = (wxIdleMode) SWIG_PyObj_AsInt(obj0); | |
18426 | if (PyErr_Occurred()) SWIG_fail; | |
18427 | } | |
d14a1e28 RD |
18428 | { |
18429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18430 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
18431 | ||
18432 | wxPyEndAllowThreads(__tstate); | |
18433 | if (PyErr_Occurred()) SWIG_fail; | |
18434 | } | |
18435 | Py_INCREF(Py_None); resultobj = Py_None; | |
18436 | return resultobj; | |
18437 | fail: | |
18438 | return NULL; | |
18439 | } | |
18440 | ||
18441 | ||
18442 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18443 | PyObject *resultobj; | |
18444 | int result; | |
18445 | char *kwnames[] = { | |
18446 | NULL | |
18447 | }; | |
18448 | ||
18449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
18450 | { | |
18451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18452 | result = (int)wxIdleEvent::GetMode(); | |
18453 | ||
18454 | wxPyEndAllowThreads(__tstate); | |
18455 | if (PyErr_Occurred()) SWIG_fail; | |
18456 | } | |
8edf1c75 | 18457 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18458 | return resultobj; |
18459 | fail: | |
18460 | return NULL; | |
18461 | } | |
18462 | ||
18463 | ||
18464 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18465 | PyObject *resultobj; | |
18466 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18467 | bool result; | |
18468 | PyObject * obj0 = 0 ; | |
18469 | char *kwnames[] = { | |
18470 | (char *) "win", NULL | |
18471 | }; | |
18472 | ||
18473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
18474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18475 | { | |
18476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18477 | result = (bool)wxIdleEvent::CanSend(arg1); | |
18478 | ||
18479 | wxPyEndAllowThreads(__tstate); | |
18480 | if (PyErr_Occurred()) SWIG_fail; | |
18481 | } | |
8edf1c75 | 18482 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
18483 | return resultobj; |
18484 | fail: | |
18485 | return NULL; | |
18486 | } | |
18487 | ||
18488 | ||
18489 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
18490 | PyObject *obj; | |
18491 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18492 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
18493 | Py_INCREF(obj); | |
18494 | return Py_BuildValue((char *)""); | |
18495 | } | |
18496 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18497 | PyObject *resultobj; | |
18498 | int arg1 = (int) 0 ; | |
18499 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
18500 | wxPyEvent *result; | |
8edf1c75 RD |
18501 | PyObject * obj0 = 0 ; |
18502 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18503 | char *kwnames[] = { |
18504 | (char *) "winid",(char *) "commandType", NULL | |
18505 | }; | |
18506 | ||
8edf1c75 RD |
18507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; |
18508 | if (obj0) { | |
18509 | { | |
18510 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
18511 | if (PyErr_Occurred()) SWIG_fail; | |
18512 | } | |
18513 | } | |
18514 | if (obj1) { | |
18515 | { | |
18516 | arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1); | |
18517 | if (PyErr_Occurred()) SWIG_fail; | |
18518 | } | |
18519 | } | |
d14a1e28 RD |
18520 | { |
18521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18522 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
18523 | ||
18524 | wxPyEndAllowThreads(__tstate); | |
18525 | if (PyErr_Occurred()) SWIG_fail; | |
18526 | } | |
18527 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyEvent, 1); | |
18528 | return resultobj; | |
18529 | fail: | |
18530 | return NULL; | |
18531 | } | |
18532 | ||
18533 | ||
18534 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18535 | PyObject *resultobj; | |
18536 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18537 | PyObject * obj0 = 0 ; | |
18538 | char *kwnames[] = { | |
18539 | (char *) "self", NULL | |
18540 | }; | |
18541 | ||
18542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
18543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18544 | { | |
18545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18546 | delete arg1; | |
18547 | ||
18548 | wxPyEndAllowThreads(__tstate); | |
18549 | if (PyErr_Occurred()) SWIG_fail; | |
18550 | } | |
18551 | Py_INCREF(Py_None); resultobj = Py_None; | |
18552 | return resultobj; | |
18553 | fail: | |
18554 | return NULL; | |
18555 | } | |
18556 | ||
18557 | ||
18558 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18559 | PyObject *resultobj; | |
18560 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18561 | PyObject *arg2 = (PyObject *) 0 ; | |
18562 | PyObject * obj0 = 0 ; | |
18563 | PyObject * obj1 = 0 ; | |
18564 | char *kwnames[] = { | |
18565 | (char *) "self",(char *) "self", NULL | |
18566 | }; | |
18567 | ||
18568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
18569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18570 | arg2 = obj1; | |
18571 | { | |
18572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18573 | (arg1)->SetSelf(arg2); | |
18574 | ||
18575 | wxPyEndAllowThreads(__tstate); | |
18576 | if (PyErr_Occurred()) SWIG_fail; | |
18577 | } | |
18578 | Py_INCREF(Py_None); resultobj = Py_None; | |
18579 | return resultobj; | |
18580 | fail: | |
18581 | return NULL; | |
18582 | } | |
18583 | ||
18584 | ||
18585 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18586 | PyObject *resultobj; | |
18587 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18588 | PyObject *result; | |
18589 | PyObject * obj0 = 0 ; | |
18590 | char *kwnames[] = { | |
18591 | (char *) "self", NULL | |
18592 | }; | |
18593 | ||
18594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
18595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18596 | { | |
18597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18598 | result = (PyObject *)(arg1)->GetSelf(); | |
18599 | ||
18600 | wxPyEndAllowThreads(__tstate); | |
18601 | if (PyErr_Occurred()) SWIG_fail; | |
18602 | } | |
18603 | resultobj = result; | |
18604 | return resultobj; | |
18605 | fail: | |
18606 | return NULL; | |
18607 | } | |
18608 | ||
18609 | ||
18610 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
18611 | PyObject *obj; | |
18612 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18613 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
18614 | Py_INCREF(obj); | |
18615 | return Py_BuildValue((char *)""); | |
18616 | } | |
18617 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18618 | PyObject *resultobj; | |
18619 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18620 | int arg2 = (int) 0 ; | |
18621 | wxPyCommandEvent *result; | |
8edf1c75 RD |
18622 | PyObject * obj0 = 0 ; |
18623 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18624 | char *kwnames[] = { |
18625 | (char *) "commandType",(char *) "id", NULL | |
18626 | }; | |
18627 | ||
8edf1c75 RD |
18628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; |
18629 | if (obj0) { | |
18630 | { | |
18631 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
18632 | if (PyErr_Occurred()) SWIG_fail; | |
18633 | } | |
18634 | } | |
18635 | if (obj1) { | |
18636 | { | |
18637 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18638 | if (PyErr_Occurred()) SWIG_fail; | |
18639 | } | |
18640 | } | |
d14a1e28 RD |
18641 | { |
18642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18643 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
18644 | ||
18645 | wxPyEndAllowThreads(__tstate); | |
18646 | if (PyErr_Occurred()) SWIG_fail; | |
18647 | } | |
18648 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyCommandEvent, 1); | |
18649 | return resultobj; | |
18650 | fail: | |
18651 | return NULL; | |
18652 | } | |
18653 | ||
18654 | ||
18655 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18656 | PyObject *resultobj; | |
18657 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18658 | PyObject * obj0 = 0 ; | |
18659 | char *kwnames[] = { | |
18660 | (char *) "self", NULL | |
18661 | }; | |
18662 | ||
18663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
18664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18665 | { | |
18666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18667 | delete arg1; | |
18668 | ||
18669 | wxPyEndAllowThreads(__tstate); | |
18670 | if (PyErr_Occurred()) SWIG_fail; | |
18671 | } | |
18672 | Py_INCREF(Py_None); resultobj = Py_None; | |
18673 | return resultobj; | |
18674 | fail: | |
18675 | return NULL; | |
18676 | } | |
18677 | ||
18678 | ||
18679 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18680 | PyObject *resultobj; | |
18681 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18682 | PyObject *arg2 = (PyObject *) 0 ; | |
18683 | PyObject * obj0 = 0 ; | |
18684 | PyObject * obj1 = 0 ; | |
18685 | char *kwnames[] = { | |
18686 | (char *) "self",(char *) "self", NULL | |
18687 | }; | |
18688 | ||
18689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
18690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18691 | arg2 = obj1; | |
18692 | { | |
18693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18694 | (arg1)->SetSelf(arg2); | |
18695 | ||
18696 | wxPyEndAllowThreads(__tstate); | |
18697 | if (PyErr_Occurred()) SWIG_fail; | |
18698 | } | |
18699 | Py_INCREF(Py_None); resultobj = Py_None; | |
18700 | return resultobj; | |
18701 | fail: | |
18702 | return NULL; | |
18703 | } | |
18704 | ||
18705 | ||
18706 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18707 | PyObject *resultobj; | |
18708 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18709 | PyObject *result; | |
18710 | PyObject * obj0 = 0 ; | |
18711 | char *kwnames[] = { | |
18712 | (char *) "self", NULL | |
18713 | }; | |
18714 | ||
18715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
18716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18717 | { | |
18718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18719 | result = (PyObject *)(arg1)->GetSelf(); | |
18720 | ||
18721 | wxPyEndAllowThreads(__tstate); | |
18722 | if (PyErr_Occurred()) SWIG_fail; | |
18723 | } | |
18724 | resultobj = result; | |
18725 | return resultobj; | |
18726 | fail: | |
18727 | return NULL; | |
18728 | } | |
18729 | ||
18730 | ||
18731 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
18732 | PyObject *obj; | |
18733 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18734 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
18735 | Py_INCREF(obj); | |
18736 | return Py_BuildValue((char *)""); | |
18737 | } | |
18738 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18739 | PyObject *resultobj; | |
18740 | wxPyApp *result; | |
18741 | char *kwnames[] = { | |
18742 | NULL | |
18743 | }; | |
18744 | ||
18745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
18746 | { | |
18747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18748 | result = (wxPyApp *)new_wxPyApp(); | |
18749 | ||
18750 | wxPyEndAllowThreads(__tstate); | |
18751 | if (PyErr_Occurred()) SWIG_fail; | |
18752 | } | |
18753 | { | |
18754 | resultobj = wxPyMake_wxObject(result); | |
18755 | } | |
18756 | return resultobj; | |
18757 | fail: | |
18758 | return NULL; | |
18759 | } | |
18760 | ||
18761 | ||
18762 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18763 | PyObject *resultobj; | |
18764 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18765 | PyObject * obj0 = 0 ; | |
18766 | char *kwnames[] = { | |
18767 | (char *) "self", NULL | |
18768 | }; | |
18769 | ||
18770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
18771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18772 | { | |
18773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18774 | delete arg1; | |
18775 | ||
18776 | wxPyEndAllowThreads(__tstate); | |
18777 | if (PyErr_Occurred()) SWIG_fail; | |
18778 | } | |
18779 | Py_INCREF(Py_None); resultobj = Py_None; | |
18780 | return resultobj; | |
18781 | fail: | |
18782 | return NULL; | |
18783 | } | |
18784 | ||
18785 | ||
18786 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18787 | PyObject *resultobj; | |
18788 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18789 | PyObject *arg2 = (PyObject *) 0 ; | |
18790 | PyObject *arg3 = (PyObject *) 0 ; | |
18791 | PyObject * obj0 = 0 ; | |
18792 | PyObject * obj1 = 0 ; | |
18793 | PyObject * obj2 = 0 ; | |
18794 | char *kwnames[] = { | |
18795 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
18796 | }; | |
18797 | ||
18798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18800 | arg2 = obj1; | |
18801 | arg3 = obj2; | |
18802 | { | |
18803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18804 | (arg1)->_setCallbackInfo(arg2,arg3); | |
18805 | ||
18806 | wxPyEndAllowThreads(__tstate); | |
18807 | if (PyErr_Occurred()) SWIG_fail; | |
18808 | } | |
18809 | Py_INCREF(Py_None); resultobj = Py_None; | |
18810 | return resultobj; | |
18811 | fail: | |
18812 | return NULL; | |
18813 | } | |
18814 | ||
18815 | ||
18816 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18817 | PyObject *resultobj; | |
18818 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18819 | wxString result; | |
18820 | PyObject * obj0 = 0 ; | |
18821 | char *kwnames[] = { | |
18822 | (char *) "self", NULL | |
18823 | }; | |
18824 | ||
18825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
18826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18827 | { | |
18828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18829 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
18830 | ||
18831 | wxPyEndAllowThreads(__tstate); | |
18832 | if (PyErr_Occurred()) SWIG_fail; | |
18833 | } | |
18834 | { | |
18835 | #if wxUSE_UNICODE | |
18836 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18837 | #else | |
18838 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18839 | #endif | |
18840 | } | |
18841 | return resultobj; | |
18842 | fail: | |
18843 | return NULL; | |
18844 | } | |
18845 | ||
18846 | ||
18847 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18848 | PyObject *resultobj; | |
18849 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18850 | wxString *arg2 = 0 ; | |
423f194a | 18851 | bool temp2 = False ; |
d14a1e28 RD |
18852 | PyObject * obj0 = 0 ; |
18853 | PyObject * obj1 = 0 ; | |
18854 | char *kwnames[] = { | |
18855 | (char *) "self",(char *) "name", NULL | |
18856 | }; | |
18857 | ||
18858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
18859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18860 | { | |
18861 | arg2 = wxString_in_helper(obj1); | |
18862 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18863 | temp2 = True; |
d14a1e28 RD |
18864 | } |
18865 | { | |
18866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18867 | (arg1)->SetAppName((wxString const &)*arg2); | |
18868 | ||
18869 | wxPyEndAllowThreads(__tstate); | |
18870 | if (PyErr_Occurred()) SWIG_fail; | |
18871 | } | |
18872 | Py_INCREF(Py_None); resultobj = Py_None; | |
18873 | { | |
18874 | if (temp2) | |
18875 | delete arg2; | |
18876 | } | |
18877 | return resultobj; | |
18878 | fail: | |
18879 | { | |
18880 | if (temp2) | |
18881 | delete arg2; | |
18882 | } | |
18883 | return NULL; | |
18884 | } | |
18885 | ||
18886 | ||
18887 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18888 | PyObject *resultobj; | |
18889 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18890 | wxString result; | |
18891 | PyObject * obj0 = 0 ; | |
18892 | char *kwnames[] = { | |
18893 | (char *) "self", NULL | |
18894 | }; | |
18895 | ||
18896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
18897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18898 | { | |
18899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18900 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
18901 | ||
18902 | wxPyEndAllowThreads(__tstate); | |
18903 | if (PyErr_Occurred()) SWIG_fail; | |
18904 | } | |
18905 | { | |
18906 | #if wxUSE_UNICODE | |
18907 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18908 | #else | |
18909 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18910 | #endif | |
18911 | } | |
18912 | return resultobj; | |
18913 | fail: | |
18914 | return NULL; | |
18915 | } | |
18916 | ||
18917 | ||
18918 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18919 | PyObject *resultobj; | |
18920 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18921 | wxString *arg2 = 0 ; | |
423f194a | 18922 | bool temp2 = False ; |
d14a1e28 RD |
18923 | PyObject * obj0 = 0 ; |
18924 | PyObject * obj1 = 0 ; | |
18925 | char *kwnames[] = { | |
18926 | (char *) "self",(char *) "name", NULL | |
18927 | }; | |
18928 | ||
18929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
18930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18931 | { | |
18932 | arg2 = wxString_in_helper(obj1); | |
18933 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18934 | temp2 = True; |
d14a1e28 RD |
18935 | } |
18936 | { | |
18937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18938 | (arg1)->SetClassName((wxString const &)*arg2); | |
18939 | ||
18940 | wxPyEndAllowThreads(__tstate); | |
18941 | if (PyErr_Occurred()) SWIG_fail; | |
18942 | } | |
18943 | Py_INCREF(Py_None); resultobj = Py_None; | |
18944 | { | |
18945 | if (temp2) | |
18946 | delete arg2; | |
18947 | } | |
18948 | return resultobj; | |
18949 | fail: | |
18950 | { | |
18951 | if (temp2) | |
18952 | delete arg2; | |
18953 | } | |
18954 | return NULL; | |
18955 | } | |
18956 | ||
18957 | ||
18958 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18959 | PyObject *resultobj; | |
18960 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18961 | wxString *result; | |
18962 | PyObject * obj0 = 0 ; | |
18963 | char *kwnames[] = { | |
18964 | (char *) "self", NULL | |
18965 | }; | |
18966 | ||
18967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
18968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18969 | { | |
18970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18971 | { | |
18972 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
18973 | result = (wxString *) &_result_ref; | |
18974 | } | |
18975 | ||
18976 | wxPyEndAllowThreads(__tstate); | |
18977 | if (PyErr_Occurred()) SWIG_fail; | |
18978 | } | |
f0983263 RD |
18979 | { |
18980 | #if wxUSE_UNICODE | |
18981 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18982 | #else | |
18983 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18984 | #endif | |
18985 | } | |
d14a1e28 RD |
18986 | return resultobj; |
18987 | fail: | |
18988 | return NULL; | |
18989 | } | |
18990 | ||
18991 | ||
18992 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18993 | PyObject *resultobj; | |
18994 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
18995 | wxString *arg2 = 0 ; | |
423f194a | 18996 | bool temp2 = False ; |
d14a1e28 RD |
18997 | PyObject * obj0 = 0 ; |
18998 | PyObject * obj1 = 0 ; | |
18999 | char *kwnames[] = { | |
19000 | (char *) "self",(char *) "name", NULL | |
19001 | }; | |
19002 | ||
19003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
19004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19005 | { | |
19006 | arg2 = wxString_in_helper(obj1); | |
19007 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19008 | temp2 = True; |
d14a1e28 RD |
19009 | } |
19010 | { | |
19011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19012 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19013 | ||
19014 | wxPyEndAllowThreads(__tstate); | |
19015 | if (PyErr_Occurred()) SWIG_fail; | |
19016 | } | |
19017 | Py_INCREF(Py_None); resultobj = Py_None; | |
19018 | { | |
19019 | if (temp2) | |
19020 | delete arg2; | |
19021 | } | |
19022 | return resultobj; | |
19023 | fail: | |
19024 | { | |
19025 | if (temp2) | |
19026 | delete arg2; | |
19027 | } | |
19028 | return NULL; | |
19029 | } | |
19030 | ||
19031 | ||
19032 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19033 | PyObject *resultobj; | |
19034 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19035 | wxAppTraits *result; | |
19036 | PyObject * obj0 = 0 ; | |
19037 | char *kwnames[] = { | |
19038 | (char *) "self", NULL | |
19039 | }; | |
19040 | ||
19041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
19042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19043 | { | |
19044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19045 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19046 | ||
19047 | wxPyEndAllowThreads(__tstate); | |
19048 | if (PyErr_Occurred()) SWIG_fail; | |
19049 | } | |
19050 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAppTraits, 0); | |
19051 | return resultobj; | |
19052 | fail: | |
19053 | return NULL; | |
19054 | } | |
19055 | ||
19056 | ||
19057 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19058 | PyObject *resultobj; | |
19059 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19060 | PyObject * obj0 = 0 ; | |
19061 | char *kwnames[] = { | |
19062 | (char *) "self", NULL | |
19063 | }; | |
19064 | ||
19065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
19066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19067 | { | |
19068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19069 | (arg1)->ProcessPendingEvents(); | |
19070 | ||
19071 | wxPyEndAllowThreads(__tstate); | |
19072 | if (PyErr_Occurred()) SWIG_fail; | |
19073 | } | |
19074 | Py_INCREF(Py_None); resultobj = Py_None; | |
19075 | return resultobj; | |
19076 | fail: | |
19077 | return NULL; | |
19078 | } | |
19079 | ||
19080 | ||
19081 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19082 | PyObject *resultobj; | |
19083 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
423f194a | 19084 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19085 | bool result; |
19086 | PyObject * obj0 = 0 ; | |
19087 | PyObject * obj1 = 0 ; | |
19088 | char *kwnames[] = { | |
19089 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19090 | }; | |
19091 | ||
19092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
19093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19094 | if (obj1) { | |
83448d71 | 19095 | { |
8edf1c75 | 19096 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19097 | if (PyErr_Occurred()) SWIG_fail; |
19098 | } | |
d14a1e28 RD |
19099 | } |
19100 | { | |
19101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19102 | result = (bool)(arg1)->Yield(arg2); | |
19103 | ||
19104 | wxPyEndAllowThreads(__tstate); | |
19105 | if (PyErr_Occurred()) SWIG_fail; | |
19106 | } | |
8edf1c75 | 19107 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19108 | return resultobj; |
19109 | fail: | |
19110 | return NULL; | |
19111 | } | |
19112 | ||
19113 | ||
19114 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19115 | PyObject *resultobj; | |
19116 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19117 | PyObject * obj0 = 0 ; | |
19118 | char *kwnames[] = { | |
19119 | (char *) "self", NULL | |
19120 | }; | |
19121 | ||
19122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
19123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19124 | { | |
19125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19126 | (arg1)->WakeUpIdle(); | |
19127 | ||
19128 | wxPyEndAllowThreads(__tstate); | |
19129 | if (PyErr_Occurred()) SWIG_fail; | |
19130 | } | |
19131 | Py_INCREF(Py_None); resultobj = Py_None; | |
19132 | return resultobj; | |
19133 | fail: | |
19134 | return NULL; | |
19135 | } | |
19136 | ||
19137 | ||
19138 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19139 | PyObject *resultobj; | |
19140 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19141 | int result; | |
19142 | PyObject * obj0 = 0 ; | |
19143 | char *kwnames[] = { | |
19144 | (char *) "self", NULL | |
19145 | }; | |
19146 | ||
19147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
19148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19149 | { | |
19150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19151 | result = (int)(arg1)->MainLoop(); | |
19152 | ||
19153 | wxPyEndAllowThreads(__tstate); | |
19154 | if (PyErr_Occurred()) SWIG_fail; | |
19155 | } | |
8edf1c75 | 19156 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19157 | return resultobj; |
19158 | fail: | |
19159 | return NULL; | |
19160 | } | |
19161 | ||
19162 | ||
19163 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19164 | PyObject *resultobj; | |
19165 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19166 | PyObject * obj0 = 0 ; | |
19167 | char *kwnames[] = { | |
19168 | (char *) "self", NULL | |
19169 | }; | |
19170 | ||
19171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
19172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19173 | { | |
19174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19175 | (arg1)->Exit(); | |
19176 | ||
19177 | wxPyEndAllowThreads(__tstate); | |
19178 | if (PyErr_Occurred()) SWIG_fail; | |
19179 | } | |
19180 | Py_INCREF(Py_None); resultobj = Py_None; | |
19181 | return resultobj; | |
19182 | fail: | |
19183 | return NULL; | |
19184 | } | |
19185 | ||
19186 | ||
19187 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19188 | PyObject *resultobj; | |
19189 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19190 | PyObject * obj0 = 0 ; | |
19191 | char *kwnames[] = { | |
19192 | (char *) "self", NULL | |
19193 | }; | |
19194 | ||
19195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
19196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19197 | { | |
19198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19199 | (arg1)->ExitMainLoop(); | |
19200 | ||
19201 | wxPyEndAllowThreads(__tstate); | |
19202 | if (PyErr_Occurred()) SWIG_fail; | |
19203 | } | |
19204 | Py_INCREF(Py_None); resultobj = Py_None; | |
19205 | return resultobj; | |
19206 | fail: | |
19207 | return NULL; | |
19208 | } | |
19209 | ||
19210 | ||
19211 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19212 | PyObject *resultobj; | |
19213 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19214 | bool result; | |
19215 | PyObject * obj0 = 0 ; | |
19216 | char *kwnames[] = { | |
19217 | (char *) "self", NULL | |
19218 | }; | |
19219 | ||
19220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
19221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19222 | { | |
19223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19224 | result = (bool)(arg1)->Pending(); | |
19225 | ||
19226 | wxPyEndAllowThreads(__tstate); | |
19227 | if (PyErr_Occurred()) SWIG_fail; | |
19228 | } | |
8edf1c75 | 19229 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19230 | return resultobj; |
19231 | fail: | |
19232 | return NULL; | |
19233 | } | |
19234 | ||
19235 | ||
19236 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19237 | PyObject *resultobj; | |
19238 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19239 | bool result; | |
19240 | PyObject * obj0 = 0 ; | |
19241 | char *kwnames[] = { | |
19242 | (char *) "self", NULL | |
19243 | }; | |
19244 | ||
19245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
19246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19247 | { | |
19248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19249 | result = (bool)(arg1)->Dispatch(); | |
19250 | ||
19251 | wxPyEndAllowThreads(__tstate); | |
19252 | if (PyErr_Occurred()) SWIG_fail; | |
19253 | } | |
8edf1c75 | 19254 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19255 | return resultobj; |
19256 | fail: | |
19257 | return NULL; | |
19258 | } | |
19259 | ||
19260 | ||
19261 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19262 | PyObject *resultobj; | |
19263 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19264 | bool result; | |
19265 | PyObject * obj0 = 0 ; | |
19266 | char *kwnames[] = { | |
19267 | (char *) "self", NULL | |
19268 | }; | |
19269 | ||
19270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
19271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19272 | { | |
19273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19274 | result = (bool)(arg1)->ProcessIdle(); | |
19275 | ||
19276 | wxPyEndAllowThreads(__tstate); | |
19277 | if (PyErr_Occurred()) SWIG_fail; | |
19278 | } | |
8edf1c75 | 19279 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19280 | return resultobj; |
19281 | fail: | |
19282 | return NULL; | |
19283 | } | |
19284 | ||
19285 | ||
19286 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19287 | PyObject *resultobj; | |
19288 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19289 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19290 | wxIdleEvent *arg3 = 0 ; | |
19291 | bool result; | |
19292 | PyObject * obj0 = 0 ; | |
19293 | PyObject * obj1 = 0 ; | |
19294 | PyObject * obj2 = 0 ; | |
19295 | char *kwnames[] = { | |
19296 | (char *) "self",(char *) "win",(char *) "event", NULL | |
19297 | }; | |
19298 | ||
19299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19301 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19302 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19303 | if (arg3 == NULL) { | |
19304 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19305 | } | |
19306 | { | |
19307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19308 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
19309 | ||
19310 | wxPyEndAllowThreads(__tstate); | |
19311 | if (PyErr_Occurred()) SWIG_fail; | |
19312 | } | |
8edf1c75 | 19313 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19314 | return resultobj; |
19315 | fail: | |
19316 | return NULL; | |
19317 | } | |
19318 | ||
19319 | ||
d14a1e28 RD |
19320 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
19321 | PyObject *resultobj; | |
19322 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19323 | bool result; | |
19324 | PyObject * obj0 = 0 ; | |
19325 | char *kwnames[] = { | |
19326 | (char *) "self", NULL | |
19327 | }; | |
19328 | ||
19329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
19330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19331 | { | |
19332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19333 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
19334 | ||
19335 | wxPyEndAllowThreads(__tstate); | |
19336 | if (PyErr_Occurred()) SWIG_fail; | |
19337 | } | |
8edf1c75 | 19338 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19339 | return resultobj; |
19340 | fail: | |
19341 | return NULL; | |
19342 | } | |
19343 | ||
19344 | ||
19345 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19346 | PyObject *resultobj; | |
19347 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19348 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19349 | PyObject * obj0 = 0 ; | |
19350 | PyObject * obj1 = 0 ; | |
19351 | char *kwnames[] = { | |
19352 | (char *) "self",(char *) "win", NULL | |
19353 | }; | |
19354 | ||
19355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
19356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19357 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19358 | { | |
19359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19360 | (arg1)->SetTopWindow(arg2); | |
19361 | ||
19362 | wxPyEndAllowThreads(__tstate); | |
19363 | if (PyErr_Occurred()) SWIG_fail; | |
19364 | } | |
19365 | Py_INCREF(Py_None); resultobj = Py_None; | |
19366 | return resultobj; | |
19367 | fail: | |
19368 | return NULL; | |
19369 | } | |
19370 | ||
19371 | ||
19372 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19373 | PyObject *resultobj; | |
19374 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19375 | wxWindow *result; | |
19376 | PyObject * obj0 = 0 ; | |
19377 | char *kwnames[] = { | |
19378 | (char *) "self", NULL | |
19379 | }; | |
19380 | ||
19381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
19382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19383 | { | |
19384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19385 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
19386 | ||
19387 | wxPyEndAllowThreads(__tstate); | |
19388 | if (PyErr_Occurred()) SWIG_fail; | |
19389 | } | |
19390 | { | |
19391 | resultobj = wxPyMake_wxObject(result); | |
19392 | } | |
19393 | return resultobj; | |
19394 | fail: | |
19395 | return NULL; | |
19396 | } | |
19397 | ||
19398 | ||
19399 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19400 | PyObject *resultobj; | |
19401 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19402 | bool arg2 ; | |
19403 | PyObject * obj0 = 0 ; | |
19404 | PyObject * obj1 = 0 ; | |
19405 | char *kwnames[] = { | |
19406 | (char *) "self",(char *) "flag", NULL | |
19407 | }; | |
19408 | ||
19409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
19410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19411 | { |
8edf1c75 | 19412 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19413 | if (PyErr_Occurred()) SWIG_fail; |
19414 | } | |
d14a1e28 RD |
19415 | { |
19416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19417 | (arg1)->SetExitOnFrameDelete(arg2); | |
19418 | ||
19419 | wxPyEndAllowThreads(__tstate); | |
19420 | if (PyErr_Occurred()) SWIG_fail; | |
19421 | } | |
19422 | Py_INCREF(Py_None); resultobj = Py_None; | |
19423 | return resultobj; | |
19424 | fail: | |
19425 | return NULL; | |
19426 | } | |
19427 | ||
19428 | ||
19429 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19430 | PyObject *resultobj; | |
19431 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19432 | bool result; | |
19433 | PyObject * obj0 = 0 ; | |
19434 | char *kwnames[] = { | |
19435 | (char *) "self", NULL | |
19436 | }; | |
19437 | ||
19438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
19439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19440 | { | |
19441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19442 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
19443 | ||
19444 | wxPyEndAllowThreads(__tstate); | |
19445 | if (PyErr_Occurred()) SWIG_fail; | |
19446 | } | |
8edf1c75 | 19447 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19448 | return resultobj; |
19449 | fail: | |
19450 | return NULL; | |
19451 | } | |
19452 | ||
19453 | ||
19454 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19455 | PyObject *resultobj; | |
19456 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19457 | bool arg2 ; | |
19458 | PyObject * obj0 = 0 ; | |
19459 | PyObject * obj1 = 0 ; | |
19460 | char *kwnames[] = { | |
19461 | (char *) "self",(char *) "flag", NULL | |
19462 | }; | |
19463 | ||
19464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
19465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19466 | { |
8edf1c75 | 19467 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19468 | if (PyErr_Occurred()) SWIG_fail; |
19469 | } | |
d14a1e28 RD |
19470 | { |
19471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19472 | (arg1)->SetUseBestVisual(arg2); | |
19473 | ||
19474 | wxPyEndAllowThreads(__tstate); | |
19475 | if (PyErr_Occurred()) SWIG_fail; | |
19476 | } | |
19477 | Py_INCREF(Py_None); resultobj = Py_None; | |
19478 | return resultobj; | |
19479 | fail: | |
19480 | return NULL; | |
19481 | } | |
19482 | ||
19483 | ||
19484 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19485 | PyObject *resultobj; | |
19486 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19487 | bool result; | |
19488 | PyObject * obj0 = 0 ; | |
19489 | char *kwnames[] = { | |
19490 | (char *) "self", NULL | |
19491 | }; | |
19492 | ||
19493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
19494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19495 | { | |
19496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19497 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
19498 | ||
19499 | wxPyEndAllowThreads(__tstate); | |
19500 | if (PyErr_Occurred()) SWIG_fail; | |
19501 | } | |
8edf1c75 | 19502 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19503 | return resultobj; |
19504 | fail: | |
19505 | return NULL; | |
19506 | } | |
19507 | ||
19508 | ||
19509 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19510 | PyObject *resultobj; | |
19511 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19512 | int arg2 ; | |
19513 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19514 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19515 | char *kwnames[] = { |
19516 | (char *) "self",(char *) "mode", NULL | |
19517 | }; | |
19518 | ||
8edf1c75 | 19519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19521 | { |
19522 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19523 | if (PyErr_Occurred()) SWIG_fail; | |
19524 | } | |
d14a1e28 RD |
19525 | { |
19526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19527 | (arg1)->SetPrintMode(arg2); | |
19528 | ||
19529 | wxPyEndAllowThreads(__tstate); | |
19530 | if (PyErr_Occurred()) SWIG_fail; | |
19531 | } | |
19532 | Py_INCREF(Py_None); resultobj = Py_None; | |
19533 | return resultobj; | |
19534 | fail: | |
19535 | return NULL; | |
19536 | } | |
19537 | ||
19538 | ||
19539 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19540 | PyObject *resultobj; | |
19541 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19542 | int result; | |
19543 | PyObject * obj0 = 0 ; | |
19544 | char *kwnames[] = { | |
19545 | (char *) "self", NULL | |
19546 | }; | |
19547 | ||
19548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
19549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19550 | { | |
19551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19552 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
19553 | ||
19554 | wxPyEndAllowThreads(__tstate); | |
19555 | if (PyErr_Occurred()) SWIG_fail; | |
19556 | } | |
8edf1c75 | 19557 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19558 | return resultobj; |
19559 | fail: | |
19560 | return NULL; | |
19561 | } | |
19562 | ||
19563 | ||
44127b65 | 19564 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19565 | PyObject *resultobj; |
19566 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 19567 | int arg2 ; |
d14a1e28 | 19568 | PyObject * obj0 = 0 ; |
8edf1c75 | 19569 | PyObject * obj1 = 0 ; |
d14a1e28 | 19570 | char *kwnames[] = { |
44127b65 | 19571 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
19572 | }; |
19573 | ||
8edf1c75 | 19574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19576 | { |
19577 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19578 | if (PyErr_Occurred()) SWIG_fail; | |
19579 | } | |
d14a1e28 RD |
19580 | { |
19581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19582 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
19583 | |
19584 | wxPyEndAllowThreads(__tstate); | |
19585 | if (PyErr_Occurred()) SWIG_fail; | |
19586 | } | |
44127b65 | 19587 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
19588 | return resultobj; |
19589 | fail: | |
19590 | return NULL; | |
19591 | } | |
19592 | ||
19593 | ||
44127b65 | 19594 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19595 | PyObject *resultobj; |
19596 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 19597 | int result; |
d14a1e28 RD |
19598 | PyObject * obj0 = 0 ; |
19599 | char *kwnames[] = { | |
44127b65 | 19600 | (char *) "self", NULL |
d14a1e28 RD |
19601 | }; |
19602 | ||
44127b65 | 19603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
19604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
19605 | { | |
19606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19607 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
19608 | |
19609 | wxPyEndAllowThreads(__tstate); | |
19610 | if (PyErr_Occurred()) SWIG_fail; | |
19611 | } | |
8edf1c75 | 19612 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19613 | return resultobj; |
19614 | fail: | |
19615 | return NULL; | |
19616 | } | |
19617 | ||
19618 | ||
19619 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19620 | PyObject *resultobj; | |
19621 | bool result; | |
19622 | char *kwnames[] = { | |
19623 | NULL | |
19624 | }; | |
19625 | ||
19626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
19627 | { | |
19628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19629 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
19630 | ||
19631 | wxPyEndAllowThreads(__tstate); | |
19632 | if (PyErr_Occurred()) SWIG_fail; | |
19633 | } | |
8edf1c75 | 19634 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19635 | return resultobj; |
19636 | fail: | |
19637 | return NULL; | |
19638 | } | |
19639 | ||
19640 | ||
19641 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19642 | PyObject *resultobj; | |
19643 | long result; | |
19644 | char *kwnames[] = { | |
19645 | NULL | |
19646 | }; | |
19647 | ||
19648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
19649 | { | |
19650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19651 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
19652 | ||
19653 | wxPyEndAllowThreads(__tstate); | |
19654 | if (PyErr_Occurred()) SWIG_fail; | |
19655 | } | |
8edf1c75 | 19656 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19657 | return resultobj; |
19658 | fail: | |
19659 | return NULL; | |
19660 | } | |
19661 | ||
19662 | ||
19663 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19664 | PyObject *resultobj; | |
19665 | long result; | |
19666 | char *kwnames[] = { | |
19667 | NULL | |
19668 | }; | |
19669 | ||
19670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
19671 | { | |
19672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19673 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
19674 | ||
19675 | wxPyEndAllowThreads(__tstate); | |
19676 | if (PyErr_Occurred()) SWIG_fail; | |
19677 | } | |
8edf1c75 | 19678 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19679 | return resultobj; |
19680 | fail: | |
19681 | return NULL; | |
19682 | } | |
19683 | ||
19684 | ||
19685 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19686 | PyObject *resultobj; | |
19687 | long result; | |
19688 | char *kwnames[] = { | |
19689 | NULL | |
19690 | }; | |
19691 | ||
19692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
19693 | { | |
19694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19695 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
19696 | ||
19697 | wxPyEndAllowThreads(__tstate); | |
19698 | if (PyErr_Occurred()) SWIG_fail; | |
19699 | } | |
8edf1c75 | 19700 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
19701 | return resultobj; |
19702 | fail: | |
19703 | return NULL; | |
19704 | } | |
19705 | ||
19706 | ||
19707 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19708 | PyObject *resultobj; | |
19709 | wxString result; | |
19710 | char *kwnames[] = { | |
19711 | NULL | |
19712 | }; | |
19713 | ||
19714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
19715 | { | |
19716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19717 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
19718 | ||
19719 | wxPyEndAllowThreads(__tstate); | |
19720 | if (PyErr_Occurred()) SWIG_fail; | |
19721 | } | |
19722 | { | |
19723 | #if wxUSE_UNICODE | |
19724 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19725 | #else | |
19726 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19727 | #endif | |
19728 | } | |
19729 | return resultobj; | |
19730 | fail: | |
19731 | return NULL; | |
19732 | } | |
19733 | ||
19734 | ||
19735 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19736 | PyObject *resultobj; | |
19737 | bool arg1 ; | |
19738 | PyObject * obj0 = 0 ; | |
19739 | char *kwnames[] = { | |
19740 | (char *) "val", NULL | |
19741 | }; | |
19742 | ||
19743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
83448d71 | 19744 | { |
8edf1c75 | 19745 | arg1 = (bool) SWIG_PyObj_AsBool(obj0); |
83448d71 RD |
19746 | if (PyErr_Occurred()) SWIG_fail; |
19747 | } | |
d14a1e28 RD |
19748 | { |
19749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19750 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
19751 | ||
19752 | wxPyEndAllowThreads(__tstate); | |
19753 | if (PyErr_Occurred()) SWIG_fail; | |
19754 | } | |
19755 | Py_INCREF(Py_None); resultobj = Py_None; | |
19756 | return resultobj; | |
19757 | fail: | |
19758 | return NULL; | |
19759 | } | |
19760 | ||
19761 | ||
19762 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19763 | PyObject *resultobj; | |
19764 | long arg1 ; | |
8edf1c75 | 19765 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19766 | char *kwnames[] = { |
19767 | (char *) "val", NULL | |
19768 | }; | |
19769 | ||
8edf1c75 RD |
19770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; |
19771 | { | |
19772 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
19773 | if (PyErr_Occurred()) SWIG_fail; | |
19774 | } | |
d14a1e28 RD |
19775 | { |
19776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19777 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
19778 | ||
19779 | wxPyEndAllowThreads(__tstate); | |
19780 | if (PyErr_Occurred()) SWIG_fail; | |
19781 | } | |
19782 | Py_INCREF(Py_None); resultobj = Py_None; | |
19783 | return resultobj; | |
19784 | fail: | |
19785 | return NULL; | |
19786 | } | |
19787 | ||
19788 | ||
19789 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19790 | PyObject *resultobj; | |
19791 | long arg1 ; | |
8edf1c75 | 19792 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19793 | char *kwnames[] = { |
19794 | (char *) "val", NULL | |
19795 | }; | |
19796 | ||
8edf1c75 RD |
19797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; |
19798 | { | |
19799 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
19800 | if (PyErr_Occurred()) SWIG_fail; | |
19801 | } | |
d14a1e28 RD |
19802 | { |
19803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19804 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
19805 | ||
19806 | wxPyEndAllowThreads(__tstate); | |
19807 | if (PyErr_Occurred()) SWIG_fail; | |
19808 | } | |
19809 | Py_INCREF(Py_None); resultobj = Py_None; | |
19810 | return resultobj; | |
19811 | fail: | |
19812 | return NULL; | |
19813 | } | |
19814 | ||
19815 | ||
19816 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19817 | PyObject *resultobj; | |
19818 | long arg1 ; | |
8edf1c75 | 19819 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19820 | char *kwnames[] = { |
19821 | (char *) "val", NULL | |
19822 | }; | |
19823 | ||
8edf1c75 RD |
19824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; |
19825 | { | |
19826 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
19827 | if (PyErr_Occurred()) SWIG_fail; | |
19828 | } | |
d14a1e28 RD |
19829 | { |
19830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19831 | wxPyApp::SetMacExitMenuItemId(arg1); | |
19832 | ||
19833 | wxPyEndAllowThreads(__tstate); | |
19834 | if (PyErr_Occurred()) SWIG_fail; | |
19835 | } | |
19836 | Py_INCREF(Py_None); resultobj = Py_None; | |
19837 | return resultobj; | |
19838 | fail: | |
19839 | return NULL; | |
19840 | } | |
19841 | ||
19842 | ||
19843 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19844 | PyObject *resultobj; | |
19845 | wxString *arg1 = 0 ; | |
423f194a | 19846 | bool temp1 = False ; |
d14a1e28 RD |
19847 | PyObject * obj0 = 0 ; |
19848 | char *kwnames[] = { | |
19849 | (char *) "val", NULL | |
19850 | }; | |
19851 | ||
19852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
19853 | { | |
19854 | arg1 = wxString_in_helper(obj0); | |
19855 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 19856 | temp1 = True; |
d14a1e28 RD |
19857 | } |
19858 | { | |
19859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19860 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
19861 | ||
19862 | wxPyEndAllowThreads(__tstate); | |
19863 | if (PyErr_Occurred()) SWIG_fail; | |
19864 | } | |
19865 | Py_INCREF(Py_None); resultobj = Py_None; | |
19866 | { | |
19867 | if (temp1) | |
19868 | delete arg1; | |
19869 | } | |
19870 | return resultobj; | |
19871 | fail: | |
19872 | { | |
19873 | if (temp1) | |
19874 | delete arg1; | |
19875 | } | |
19876 | return NULL; | |
19877 | } | |
19878 | ||
19879 | ||
19880 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19881 | PyObject *resultobj; | |
19882 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19883 | PyObject * obj0 = 0 ; | |
19884 | char *kwnames[] = { | |
19885 | (char *) "self", NULL | |
19886 | }; | |
19887 | ||
19888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
19889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19890 | { | |
19891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19892 | (arg1)->_BootstrapApp(); | |
19893 | ||
19894 | wxPyEndAllowThreads(__tstate); | |
19895 | if (PyErr_Occurred()) SWIG_fail; | |
19896 | } | |
19897 | Py_INCREF(Py_None); resultobj = Py_None; | |
19898 | return resultobj; | |
19899 | fail: | |
19900 | return NULL; | |
19901 | } | |
19902 | ||
19903 | ||
19904 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19905 | PyObject *resultobj; | |
19906 | int result; | |
19907 | char *kwnames[] = { | |
19908 | NULL | |
19909 | }; | |
19910 | ||
19911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
19912 | { | |
19913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19914 | result = (int)wxPyApp::GetComCtl32Version(); | |
19915 | ||
19916 | wxPyEndAllowThreads(__tstate); | |
19917 | if (PyErr_Occurred()) SWIG_fail; | |
19918 | } | |
8edf1c75 | 19919 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19920 | return resultobj; |
19921 | fail: | |
19922 | return NULL; | |
19923 | } | |
19924 | ||
19925 | ||
19926 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
19927 | PyObject *obj; | |
19928 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19929 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
19930 | Py_INCREF(obj); | |
19931 | return Py_BuildValue((char *)""); | |
19932 | } | |
19933 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19934 | PyObject *resultobj; | |
19935 | char *kwnames[] = { | |
19936 | NULL | |
19937 | }; | |
19938 | ||
19939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
19940 | { | |
19941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19942 | wxExit(); | |
19943 | ||
19944 | wxPyEndAllowThreads(__tstate); | |
19945 | if (PyErr_Occurred()) SWIG_fail; | |
19946 | } | |
19947 | Py_INCREF(Py_None); resultobj = Py_None; | |
19948 | return resultobj; | |
19949 | fail: | |
19950 | return NULL; | |
19951 | } | |
19952 | ||
19953 | ||
19954 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19955 | PyObject *resultobj; | |
19956 | bool result; | |
19957 | char *kwnames[] = { | |
19958 | NULL | |
19959 | }; | |
19960 | ||
19961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
19962 | { | |
19963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19964 | result = (bool)wxYield(); | |
19965 | ||
19966 | wxPyEndAllowThreads(__tstate); | |
19967 | if (PyErr_Occurred()) SWIG_fail; | |
19968 | } | |
8edf1c75 | 19969 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19970 | return resultobj; |
19971 | fail: | |
19972 | return NULL; | |
19973 | } | |
19974 | ||
19975 | ||
19976 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19977 | PyObject *resultobj; | |
19978 | bool result; | |
19979 | char *kwnames[] = { | |
19980 | NULL | |
19981 | }; | |
19982 | ||
19983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
19984 | { | |
19985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19986 | result = (bool)wxYieldIfNeeded(); | |
19987 | ||
19988 | wxPyEndAllowThreads(__tstate); | |
19989 | if (PyErr_Occurred()) SWIG_fail; | |
19990 | } | |
8edf1c75 | 19991 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19992 | return resultobj; |
19993 | fail: | |
19994 | return NULL; | |
19995 | } | |
19996 | ||
19997 | ||
19998 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19999 | PyObject *resultobj; | |
20000 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 20001 | bool arg2 = (bool) False ; |
d14a1e28 RD |
20002 | bool result; |
20003 | PyObject * obj0 = 0 ; | |
20004 | PyObject * obj1 = 0 ; | |
20005 | char *kwnames[] = { | |
20006 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20007 | }; | |
20008 | ||
20009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20010 | if (obj0) { | |
20011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20012 | } | |
20013 | if (obj1) { | |
83448d71 | 20014 | { |
8edf1c75 | 20015 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
20016 | if (PyErr_Occurred()) SWIG_fail; |
20017 | } | |
d14a1e28 RD |
20018 | } |
20019 | { | |
20020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20021 | result = (bool)wxSafeYield(arg1,arg2); | |
20022 | ||
20023 | wxPyEndAllowThreads(__tstate); | |
20024 | if (PyErr_Occurred()) SWIG_fail; | |
20025 | } | |
8edf1c75 | 20026 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
20027 | return resultobj; |
20028 | fail: | |
20029 | return NULL; | |
20030 | } | |
20031 | ||
20032 | ||
20033 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20034 | PyObject *resultobj; | |
20035 | char *kwnames[] = { | |
20036 | NULL | |
20037 | }; | |
20038 | ||
20039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20040 | { | |
20041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20042 | wxWakeUpIdle(); | |
20043 | ||
20044 | wxPyEndAllowThreads(__tstate); | |
20045 | if (PyErr_Occurred()) SWIG_fail; | |
20046 | } | |
20047 | Py_INCREF(Py_None); resultobj = Py_None; | |
20048 | return resultobj; | |
20049 | fail: | |
20050 | return NULL; | |
20051 | } | |
20052 | ||
20053 | ||
20054 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20055 | PyObject *resultobj; | |
20056 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20057 | wxEvent *arg2 = 0 ; | |
20058 | PyObject * obj0 = 0 ; | |
20059 | PyObject * obj1 = 0 ; | |
20060 | char *kwnames[] = { | |
20061 | (char *) "dest",(char *) "event", NULL | |
20062 | }; | |
20063 | ||
20064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
20065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20066 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20067 | if (arg2 == NULL) { | |
20068 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20069 | } | |
20070 | { | |
20071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20072 | wxPostEvent(arg1,*arg2); | |
20073 | ||
20074 | wxPyEndAllowThreads(__tstate); | |
20075 | if (PyErr_Occurred()) SWIG_fail; | |
20076 | } | |
20077 | Py_INCREF(Py_None); resultobj = Py_None; | |
20078 | return resultobj; | |
20079 | fail: | |
20080 | return NULL; | |
20081 | } | |
20082 | ||
20083 | ||
20084 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20085 | PyObject *resultobj; | |
20086 | char *kwnames[] = { | |
20087 | NULL | |
20088 | }; | |
20089 | ||
20090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20091 | { | |
20092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20093 | wxApp_CleanUp(); | |
20094 | ||
20095 | wxPyEndAllowThreads(__tstate); | |
20096 | if (PyErr_Occurred()) SWIG_fail; | |
20097 | } | |
20098 | Py_INCREF(Py_None); resultobj = Py_None; | |
20099 | return resultobj; | |
20100 | fail: | |
20101 | return NULL; | |
20102 | } | |
20103 | ||
20104 | ||
20105 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20106 | PyObject *resultobj; | |
20107 | wxPyApp *result; | |
20108 | char *kwnames[] = { | |
20109 | NULL | |
20110 | }; | |
20111 | ||
20112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20113 | { | |
20114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20115 | result = (wxPyApp *)wxGetApp(); | |
20116 | ||
20117 | wxPyEndAllowThreads(__tstate); | |
20118 | if (PyErr_Occurred()) SWIG_fail; | |
20119 | } | |
20120 | { | |
20121 | resultobj = wxPyMake_wxObject(result); | |
20122 | } | |
20123 | return resultobj; | |
20124 | fail: | |
20125 | return NULL; | |
20126 | } | |
20127 | ||
20128 | ||
41f1cec7 RD |
20129 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { |
20130 | PyObject *resultobj; | |
20131 | int arg1 = (int) 0 ; | |
20132 | int arg2 = (int) 0 ; | |
20133 | int arg3 = (int) 0 ; | |
20134 | wxMenuItem *arg4 = (wxMenuItem *) NULL ; | |
20135 | wxAcceleratorEntry *result; | |
8edf1c75 RD |
20136 | PyObject * obj0 = 0 ; |
20137 | PyObject * obj1 = 0 ; | |
20138 | PyObject * obj2 = 0 ; | |
41f1cec7 RD |
20139 | PyObject * obj3 = 0 ; |
20140 | char *kwnames[] = { | |
20141 | (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20142 | }; | |
20143 | ||
8edf1c75 RD |
20144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
20145 | if (obj0) { | |
20146 | { | |
20147 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
20148 | if (PyErr_Occurred()) SWIG_fail; | |
20149 | } | |
20150 | } | |
20151 | if (obj1) { | |
20152 | { | |
20153 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20154 | if (PyErr_Occurred()) SWIG_fail; | |
20155 | } | |
20156 | } | |
20157 | if (obj2) { | |
20158 | { | |
20159 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20160 | if (PyErr_Occurred()) SWIG_fail; | |
20161 | } | |
20162 | } | |
41f1cec7 RD |
20163 | if (obj3) { |
20164 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20165 | } | |
20166 | { | |
20167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20168 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); | |
20169 | ||
20170 | wxPyEndAllowThreads(__tstate); | |
20171 | if (PyErr_Occurred()) SWIG_fail; | |
20172 | } | |
20173 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 1); | |
20174 | return resultobj; | |
20175 | fail: | |
20176 | return NULL; | |
20177 | } | |
20178 | ||
20179 | ||
20180 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20181 | PyObject *resultobj; | |
20182 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20183 | PyObject * obj0 = 0 ; | |
20184 | char *kwnames[] = { | |
20185 | (char *) "self", NULL | |
20186 | }; | |
20187 | ||
20188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
20189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20190 | { | |
20191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20192 | delete arg1; | |
20193 | ||
20194 | wxPyEndAllowThreads(__tstate); | |
20195 | if (PyErr_Occurred()) SWIG_fail; | |
20196 | } | |
20197 | Py_INCREF(Py_None); resultobj = Py_None; | |
20198 | return resultobj; | |
20199 | fail: | |
20200 | return NULL; | |
20201 | } | |
20202 | ||
20203 | ||
20204 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20205 | PyObject *resultobj; | |
20206 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20207 | int arg2 ; | |
20208 | int arg3 ; | |
20209 | int arg4 ; | |
20210 | wxMenuItem *arg5 = (wxMenuItem *) NULL ; | |
20211 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20212 | PyObject * obj1 = 0 ; |
20213 | PyObject * obj2 = 0 ; | |
20214 | PyObject * obj3 = 0 ; | |
41f1cec7 RD |
20215 | PyObject * obj4 = 0 ; |
20216 | char *kwnames[] = { | |
20217 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20218 | }; | |
20219 | ||
8edf1c75 | 20220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
41f1cec7 | 20221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20222 | { |
20223 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20224 | if (PyErr_Occurred()) SWIG_fail; | |
20225 | } | |
20226 | { | |
20227 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20228 | if (PyErr_Occurred()) SWIG_fail; | |
20229 | } | |
20230 | { | |
20231 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
20232 | if (PyErr_Occurred()) SWIG_fail; | |
20233 | } | |
41f1cec7 RD |
20234 | if (obj4) { |
20235 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20236 | } | |
20237 | { | |
20238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20239 | (arg1)->Set(arg2,arg3,arg4,arg5); | |
20240 | ||
20241 | wxPyEndAllowThreads(__tstate); | |
20242 | if (PyErr_Occurred()) SWIG_fail; | |
20243 | } | |
20244 | Py_INCREF(Py_None); resultobj = Py_None; | |
20245 | return resultobj; | |
20246 | fail: | |
20247 | return NULL; | |
20248 | } | |
20249 | ||
20250 | ||
20251 | static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20252 | PyObject *resultobj; | |
20253 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20254 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
20255 | PyObject * obj0 = 0 ; | |
20256 | PyObject * obj1 = 0 ; | |
20257 | char *kwnames[] = { | |
20258 | (char *) "self",(char *) "item", NULL | |
20259 | }; | |
20260 | ||
20261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; | |
20262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20263 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20264 | { | |
20265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20266 | (arg1)->SetMenuItem(arg2); | |
20267 | ||
20268 | wxPyEndAllowThreads(__tstate); | |
20269 | if (PyErr_Occurred()) SWIG_fail; | |
20270 | } | |
20271 | Py_INCREF(Py_None); resultobj = Py_None; | |
20272 | return resultobj; | |
20273 | fail: | |
20274 | return NULL; | |
20275 | } | |
20276 | ||
20277 | ||
20278 | static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20279 | PyObject *resultobj; | |
20280 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20281 | wxMenuItem *result; | |
20282 | PyObject * obj0 = 0 ; | |
20283 | char *kwnames[] = { | |
20284 | (char *) "self", NULL | |
20285 | }; | |
20286 | ||
20287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; | |
20288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20289 | { | |
20290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20291 | result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); | |
20292 | ||
20293 | wxPyEndAllowThreads(__tstate); | |
20294 | if (PyErr_Occurred()) SWIG_fail; | |
20295 | } | |
20296 | { | |
20297 | resultobj = wxPyMake_wxObject(result); | |
20298 | } | |
20299 | return resultobj; | |
20300 | fail: | |
20301 | return NULL; | |
20302 | } | |
20303 | ||
20304 | ||
20305 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20306 | PyObject *resultobj; | |
20307 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20308 | int result; | |
20309 | PyObject * obj0 = 0 ; | |
20310 | char *kwnames[] = { | |
20311 | (char *) "self", NULL | |
20312 | }; | |
20313 | ||
20314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
20315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20316 | { | |
20317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20318 | result = (int)(arg1)->GetFlags(); | |
20319 | ||
20320 | wxPyEndAllowThreads(__tstate); | |
20321 | if (PyErr_Occurred()) SWIG_fail; | |
20322 | } | |
8edf1c75 | 20323 | resultobj = SWIG_PyObj_FromInt((int)result); |
41f1cec7 RD |
20324 | return resultobj; |
20325 | fail: | |
20326 | return NULL; | |
20327 | } | |
20328 | ||
20329 | ||
20330 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20331 | PyObject *resultobj; | |
20332 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20333 | int result; | |
20334 | PyObject * obj0 = 0 ; | |
20335 | char *kwnames[] = { | |
20336 | (char *) "self", NULL | |
20337 | }; | |
20338 | ||
20339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
20340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20341 | { | |
20342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20343 | result = (int)(arg1)->GetKeyCode(); | |
20344 | ||
20345 | wxPyEndAllowThreads(__tstate); | |
20346 | if (PyErr_Occurred()) SWIG_fail; | |
20347 | } | |
8edf1c75 | 20348 | resultobj = SWIG_PyObj_FromInt((int)result); |
41f1cec7 RD |
20349 | return resultobj; |
20350 | fail: | |
20351 | return NULL; | |
20352 | } | |
20353 | ||
20354 | ||
20355 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20356 | PyObject *resultobj; | |
20357 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20358 | int result; | |
20359 | PyObject * obj0 = 0 ; | |
20360 | char *kwnames[] = { | |
20361 | (char *) "self", NULL | |
20362 | }; | |
20363 | ||
20364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
20365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20366 | { | |
20367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20368 | result = (int)(arg1)->GetCommand(); | |
20369 | ||
20370 | wxPyEndAllowThreads(__tstate); | |
20371 | if (PyErr_Occurred()) SWIG_fail; | |
20372 | } | |
8edf1c75 | 20373 | resultobj = SWIG_PyObj_FromInt((int)result); |
41f1cec7 RD |
20374 | return resultobj; |
20375 | fail: | |
20376 | return NULL; | |
20377 | } | |
20378 | ||
20379 | ||
20380 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
20381 | PyObject *obj; | |
20382 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20383 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
20384 | Py_INCREF(obj); | |
20385 | return Py_BuildValue((char *)""); | |
20386 | } | |
20387 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20388 | PyObject *resultobj; | |
20389 | int arg1 ; | |
20390 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
20391 | wxAcceleratorTable *result; | |
20392 | PyObject * obj0 = 0 ; | |
20393 | char *kwnames[] = { | |
20394 | (char *) "n", NULL | |
20395 | }; | |
20396 | ||
20397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
20398 | { | |
20399 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
20400 | if (arg2) arg1 = PyList_Size(obj0); | |
20401 | else arg1 = 0; | |
20402 | } | |
20403 | { | |
20404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20405 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
20406 | ||
20407 | wxPyEndAllowThreads(__tstate); | |
20408 | if (PyErr_Occurred()) SWIG_fail; | |
20409 | } | |
20410 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 1); | |
20411 | { | |
20412 | delete [] arg2; | |
20413 | } | |
20414 | return resultobj; | |
20415 | fail: | |
20416 | { | |
20417 | delete [] arg2; | |
20418 | } | |
20419 | return NULL; | |
20420 | } | |
20421 | ||
20422 | ||
20423 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20424 | PyObject *resultobj; | |
20425 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
20426 | PyObject * obj0 = 0 ; | |
20427 | char *kwnames[] = { | |
20428 | (char *) "self", NULL | |
20429 | }; | |
20430 | ||
20431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
20432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20433 | { | |
20434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20435 | delete arg1; | |
20436 | ||
20437 | wxPyEndAllowThreads(__tstate); | |
20438 | if (PyErr_Occurred()) SWIG_fail; | |
20439 | } | |
20440 | Py_INCREF(Py_None); resultobj = Py_None; | |
20441 | return resultobj; | |
20442 | fail: | |
20443 | return NULL; | |
20444 | } | |
20445 | ||
20446 | ||
20447 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20448 | PyObject *resultobj; | |
20449 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
20450 | bool result; | |
20451 | PyObject * obj0 = 0 ; | |
20452 | char *kwnames[] = { | |
20453 | (char *) "self", NULL | |
20454 | }; | |
20455 | ||
20456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
20457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20458 | { | |
20459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20460 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
20461 | ||
20462 | wxPyEndAllowThreads(__tstate); | |
20463 | if (PyErr_Occurred()) SWIG_fail; | |
20464 | } | |
8edf1c75 | 20465 | resultobj = SWIG_PyObj_FromBool((bool)result); |
41f1cec7 RD |
20466 | return resultobj; |
20467 | fail: | |
20468 | return NULL; | |
20469 | } | |
20470 | ||
20471 | ||
20472 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
20473 | PyObject *obj; | |
20474 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20475 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
20476 | Py_INCREF(obj); | |
20477 | return Py_BuildValue((char *)""); | |
20478 | } | |
8edf1c75 | 20479 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
41f1cec7 RD |
20480 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
20481 | return 1; | |
20482 | } | |
20483 | ||
20484 | ||
20485 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
20486 | PyObject *pyobj; | |
20487 | ||
20488 | pyobj = SWIG_NewPointerObj((void *) &wxNullAcceleratorTable, SWIGTYPE_p_wxAcceleratorTable, 0); | |
20489 | return pyobj; | |
20490 | } | |
20491 | ||
20492 | ||
20493 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20494 | PyObject *resultobj; | |
20495 | wxString *arg1 = 0 ; | |
20496 | wxAcceleratorEntry *result; | |
20497 | bool temp1 = False ; | |
20498 | PyObject * obj0 = 0 ; | |
20499 | char *kwnames[] = { | |
20500 | (char *) "label", NULL | |
20501 | }; | |
20502 | ||
20503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
20504 | { | |
20505 | arg1 = wxString_in_helper(obj0); | |
20506 | if (arg1 == NULL) SWIG_fail; | |
20507 | temp1 = True; | |
20508 | } | |
20509 | { | |
20510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20511 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
20512 | ||
20513 | wxPyEndAllowThreads(__tstate); | |
20514 | if (PyErr_Occurred()) SWIG_fail; | |
20515 | } | |
20516 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0); | |
20517 | { | |
20518 | if (temp1) | |
20519 | delete arg1; | |
20520 | } | |
20521 | return resultobj; | |
20522 | fail: | |
20523 | { | |
20524 | if (temp1) | |
20525 | delete arg1; | |
20526 | } | |
20527 | return NULL; | |
20528 | } | |
20529 | ||
20530 | ||
8edf1c75 | 20531 | static int _wrap_PanelNameStr_set(PyObject *) { |
423f194a RD |
20532 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
20533 | return 1; | |
20534 | } | |
20535 | ||
20536 | ||
20537 | static PyObject *_wrap_PanelNameStr_get() { | |
20538 | PyObject *pyobj; | |
20539 | ||
20540 | { | |
20541 | #if wxUSE_UNICODE | |
20542 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
20543 | #else | |
20544 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
20545 | #endif | |
20546 | } | |
20547 | return pyobj; | |
20548 | } | |
20549 | ||
20550 | ||
d14a1e28 RD |
20551 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { |
20552 | PyObject *resultobj; | |
20553 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20554 | int arg2 ; |
d14a1e28 RD |
20555 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20556 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20557 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20558 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20559 | long arg5 = (long) 0 ; | |
20560 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
20561 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20562 | wxWindow *result; | |
20563 | wxPoint temp3 ; | |
20564 | wxSize temp4 ; | |
423f194a | 20565 | bool temp6 = False ; |
d14a1e28 | 20566 | PyObject * obj0 = 0 ; |
8edf1c75 | 20567 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20568 | PyObject * obj2 = 0 ; |
20569 | PyObject * obj3 = 0 ; | |
8edf1c75 | 20570 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20571 | PyObject * obj5 = 0 ; |
20572 | char *kwnames[] = { | |
20573 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20574 | }; | |
20575 | ||
8edf1c75 | 20576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 20577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20578 | { |
20579 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
20580 | if (PyErr_Occurred()) SWIG_fail; | |
20581 | } | |
d14a1e28 RD |
20582 | if (obj2) { |
20583 | { | |
20584 | arg3 = &temp3; | |
20585 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20586 | } | |
20587 | } | |
20588 | if (obj3) { | |
20589 | { | |
20590 | arg4 = &temp4; | |
20591 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20592 | } | |
20593 | } | |
8edf1c75 RD |
20594 | if (obj4) { |
20595 | { | |
20596 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
20597 | if (PyErr_Occurred()) SWIG_fail; | |
20598 | } | |
20599 | } | |
d14a1e28 RD |
20600 | if (obj5) { |
20601 | { | |
20602 | arg6 = wxString_in_helper(obj5); | |
20603 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 20604 | temp6 = True; |
d14a1e28 RD |
20605 | } |
20606 | } | |
20607 | { | |
20608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20609 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20610 | ||
20611 | wxPyEndAllowThreads(__tstate); | |
20612 | if (PyErr_Occurred()) SWIG_fail; | |
20613 | } | |
20614 | { | |
20615 | resultobj = wxPyMake_wxObject(result); | |
20616 | } | |
20617 | { | |
20618 | if (temp6) | |
20619 | delete arg6; | |
20620 | } | |
20621 | return resultobj; | |
20622 | fail: | |
20623 | { | |
20624 | if (temp6) | |
20625 | delete arg6; | |
20626 | } | |
20627 | return NULL; | |
20628 | } | |
20629 | ||
20630 | ||
20631 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20632 | PyObject *resultobj; | |
20633 | wxWindow *result; | |
20634 | char *kwnames[] = { | |
20635 | NULL | |
20636 | }; | |
20637 | ||
20638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
20639 | { | |
20640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20641 | result = (wxWindow *)new wxWindow(); | |
20642 | ||
20643 | wxPyEndAllowThreads(__tstate); | |
20644 | if (PyErr_Occurred()) SWIG_fail; | |
20645 | } | |
20646 | { | |
20647 | resultobj = wxPyMake_wxObject(result); | |
20648 | } | |
20649 | return resultobj; | |
20650 | fail: | |
20651 | return NULL; | |
20652 | } | |
20653 | ||
20654 | ||
20655 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20656 | PyObject *resultobj; | |
20657 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20658 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 20659 | int arg3 ; |
d14a1e28 RD |
20660 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20661 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20662 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20663 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20664 | long arg6 = (long) 0 ; | |
20665 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
20666 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20667 | bool result; | |
20668 | wxPoint temp4 ; | |
20669 | wxSize temp5 ; | |
423f194a | 20670 | bool temp7 = False ; |
d14a1e28 RD |
20671 | PyObject * obj0 = 0 ; |
20672 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20673 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20674 | PyObject * obj3 = 0 ; |
20675 | PyObject * obj4 = 0 ; | |
8edf1c75 | 20676 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20677 | PyObject * obj6 = 0 ; |
20678 | char *kwnames[] = { | |
20679 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20680 | }; | |
20681 | ||
8edf1c75 | 20682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
20683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20684 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
20685 | { |
20686 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
20687 | if (PyErr_Occurred()) SWIG_fail; | |
20688 | } | |
d14a1e28 RD |
20689 | if (obj3) { |
20690 | { | |
20691 | arg4 = &temp4; | |
20692 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20693 | } | |
20694 | } | |
20695 | if (obj4) { | |
20696 | { | |
20697 | arg5 = &temp5; | |
20698 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20699 | } | |
20700 | } | |
8edf1c75 RD |
20701 | if (obj5) { |
20702 | { | |
20703 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
20704 | if (PyErr_Occurred()) SWIG_fail; | |
20705 | } | |
20706 | } | |
d14a1e28 RD |
20707 | if (obj6) { |
20708 | { | |
20709 | arg7 = wxString_in_helper(obj6); | |
20710 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 20711 | temp7 = True; |
d14a1e28 RD |
20712 | } |
20713 | } | |
20714 | { | |
20715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20716 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20717 | ||
20718 | wxPyEndAllowThreads(__tstate); | |
20719 | if (PyErr_Occurred()) SWIG_fail; | |
20720 | } | |
8edf1c75 | 20721 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
20722 | { |
20723 | if (temp7) | |
20724 | delete arg7; | |
20725 | } | |
20726 | return resultobj; | |
20727 | fail: | |
20728 | { | |
20729 | if (temp7) | |
20730 | delete arg7; | |
20731 | } | |
20732 | return NULL; | |
20733 | } | |
20734 | ||
20735 | ||
20736 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20737 | PyObject *resultobj; | |
20738 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20739 | bool arg2 = (bool) False ; |
d14a1e28 RD |
20740 | bool result; |
20741 | PyObject * obj0 = 0 ; | |
20742 | PyObject * obj1 = 0 ; | |
20743 | char *kwnames[] = { | |
20744 | (char *) "self",(char *) "force", NULL | |
20745 | }; | |
20746 | ||
20747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
20748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20749 | if (obj1) { | |
83448d71 | 20750 | { |
8edf1c75 | 20751 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
20752 | if (PyErr_Occurred()) SWIG_fail; |
20753 | } | |
d14a1e28 RD |
20754 | } |
20755 | { | |
20756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20757 | result = (bool)(arg1)->Close(arg2); | |
20758 | ||
20759 | wxPyEndAllowThreads(__tstate); | |
20760 | if (PyErr_Occurred()) SWIG_fail; | |
20761 | } | |
8edf1c75 | 20762 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
20763 | return resultobj; |
20764 | fail: | |
20765 | return NULL; | |
20766 | } | |
20767 | ||
20768 | ||
20769 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20770 | PyObject *resultobj; | |
20771 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20772 | bool result; | |
20773 | PyObject * obj0 = 0 ; | |
20774 | char *kwnames[] = { | |
20775 | (char *) "self", NULL | |
20776 | }; | |
20777 | ||
20778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
20779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20780 | { | |
20781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20782 | result = (bool)(arg1)->Destroy(); | |
20783 | ||
20784 | wxPyEndAllowThreads(__tstate); | |
20785 | if (PyErr_Occurred()) SWIG_fail; | |
20786 | } | |
8edf1c75 | 20787 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
20788 | return resultobj; |
20789 | fail: | |
20790 | return NULL; | |
20791 | } | |
20792 | ||
20793 | ||
20794 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20795 | PyObject *resultobj; | |
20796 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20797 | bool result; | |
20798 | PyObject * obj0 = 0 ; | |
20799 | char *kwnames[] = { | |
20800 | (char *) "self", NULL | |
20801 | }; | |
20802 | ||
20803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
20804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20805 | { | |
20806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20807 | result = (bool)(arg1)->DestroyChildren(); | |
20808 | ||
20809 | wxPyEndAllowThreads(__tstate); | |
20810 | if (PyErr_Occurred()) SWIG_fail; | |
20811 | } | |
8edf1c75 | 20812 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
20813 | return resultobj; |
20814 | fail: | |
20815 | return NULL; | |
20816 | } | |
20817 | ||
20818 | ||
20819 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20820 | PyObject *resultobj; | |
20821 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20822 | bool result; | |
20823 | PyObject * obj0 = 0 ; | |
20824 | char *kwnames[] = { | |
20825 | (char *) "self", NULL | |
20826 | }; | |
20827 | ||
20828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
20829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20830 | { | |
20831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20832 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
20833 | ||
20834 | wxPyEndAllowThreads(__tstate); | |
20835 | if (PyErr_Occurred()) SWIG_fail; | |
20836 | } | |
8edf1c75 | 20837 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
20838 | return resultobj; |
20839 | fail: | |
20840 | return NULL; | |
20841 | } | |
20842 | ||
20843 | ||
20844 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20845 | PyObject *resultobj; | |
20846 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20847 | wxString *arg2 = 0 ; | |
423f194a | 20848 | bool temp2 = False ; |
d14a1e28 RD |
20849 | PyObject * obj0 = 0 ; |
20850 | PyObject * obj1 = 0 ; | |
20851 | char *kwnames[] = { | |
20852 | (char *) "self",(char *) "title", NULL | |
20853 | }; | |
20854 | ||
20855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
20856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20857 | { | |
20858 | arg2 = wxString_in_helper(obj1); | |
20859 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20860 | temp2 = True; |
d14a1e28 RD |
20861 | } |
20862 | { | |
20863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20864 | (arg1)->SetTitle((wxString const &)*arg2); | |
20865 | ||
20866 | wxPyEndAllowThreads(__tstate); | |
20867 | if (PyErr_Occurred()) SWIG_fail; | |
20868 | } | |
20869 | Py_INCREF(Py_None); resultobj = Py_None; | |
20870 | { | |
20871 | if (temp2) | |
20872 | delete arg2; | |
20873 | } | |
20874 | return resultobj; | |
20875 | fail: | |
20876 | { | |
20877 | if (temp2) | |
20878 | delete arg2; | |
20879 | } | |
20880 | return NULL; | |
20881 | } | |
20882 | ||
20883 | ||
20884 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20885 | PyObject *resultobj; | |
20886 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20887 | wxString result; | |
20888 | PyObject * obj0 = 0 ; | |
20889 | char *kwnames[] = { | |
20890 | (char *) "self", NULL | |
20891 | }; | |
20892 | ||
20893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
20894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20895 | { | |
20896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20897 | result = ((wxWindow const *)arg1)->GetTitle(); | |
20898 | ||
20899 | wxPyEndAllowThreads(__tstate); | |
20900 | if (PyErr_Occurred()) SWIG_fail; | |
20901 | } | |
20902 | { | |
20903 | #if wxUSE_UNICODE | |
20904 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20905 | #else | |
20906 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20907 | #endif | |
20908 | } | |
20909 | return resultobj; | |
20910 | fail: | |
20911 | return NULL; | |
20912 | } | |
20913 | ||
20914 | ||
20915 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20916 | PyObject *resultobj; | |
20917 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20918 | wxString *arg2 = 0 ; | |
423f194a | 20919 | bool temp2 = False ; |
d14a1e28 RD |
20920 | PyObject * obj0 = 0 ; |
20921 | PyObject * obj1 = 0 ; | |
20922 | char *kwnames[] = { | |
20923 | (char *) "self",(char *) "label", NULL | |
20924 | }; | |
20925 | ||
20926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
20927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20928 | { | |
20929 | arg2 = wxString_in_helper(obj1); | |
20930 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20931 | temp2 = True; |
d14a1e28 RD |
20932 | } |
20933 | { | |
20934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20935 | (arg1)->SetLabel((wxString const &)*arg2); | |
20936 | ||
20937 | wxPyEndAllowThreads(__tstate); | |
20938 | if (PyErr_Occurred()) SWIG_fail; | |
20939 | } | |
20940 | Py_INCREF(Py_None); resultobj = Py_None; | |
20941 | { | |
20942 | if (temp2) | |
20943 | delete arg2; | |
20944 | } | |
20945 | return resultobj; | |
20946 | fail: | |
20947 | { | |
20948 | if (temp2) | |
20949 | delete arg2; | |
20950 | } | |
20951 | return NULL; | |
20952 | } | |
20953 | ||
20954 | ||
20955 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20956 | PyObject *resultobj; | |
20957 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20958 | wxString result; | |
20959 | PyObject * obj0 = 0 ; | |
20960 | char *kwnames[] = { | |
20961 | (char *) "self", NULL | |
20962 | }; | |
20963 | ||
20964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
20965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20966 | { | |
20967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20968 | result = ((wxWindow const *)arg1)->GetLabel(); | |
20969 | ||
20970 | wxPyEndAllowThreads(__tstate); | |
20971 | if (PyErr_Occurred()) SWIG_fail; | |
20972 | } | |
20973 | { | |
20974 | #if wxUSE_UNICODE | |
20975 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20976 | #else | |
20977 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20978 | #endif | |
20979 | } | |
20980 | return resultobj; | |
20981 | fail: | |
20982 | return NULL; | |
20983 | } | |
20984 | ||
20985 | ||
20986 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20987 | PyObject *resultobj; | |
20988 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20989 | wxString *arg2 = 0 ; | |
423f194a | 20990 | bool temp2 = False ; |
d14a1e28 RD |
20991 | PyObject * obj0 = 0 ; |
20992 | PyObject * obj1 = 0 ; | |
20993 | char *kwnames[] = { | |
20994 | (char *) "self",(char *) "name", NULL | |
20995 | }; | |
20996 | ||
20997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
20998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20999 | { | |
21000 | arg2 = wxString_in_helper(obj1); | |
21001 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21002 | temp2 = True; |
d14a1e28 RD |
21003 | } |
21004 | { | |
21005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21006 | (arg1)->SetName((wxString const &)*arg2); | |
21007 | ||
21008 | wxPyEndAllowThreads(__tstate); | |
21009 | if (PyErr_Occurred()) SWIG_fail; | |
21010 | } | |
21011 | Py_INCREF(Py_None); resultobj = Py_None; | |
21012 | { | |
21013 | if (temp2) | |
21014 | delete arg2; | |
21015 | } | |
21016 | return resultobj; | |
21017 | fail: | |
21018 | { | |
21019 | if (temp2) | |
21020 | delete arg2; | |
21021 | } | |
21022 | return NULL; | |
21023 | } | |
21024 | ||
21025 | ||
21026 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21027 | PyObject *resultobj; | |
21028 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21029 | wxString result; | |
21030 | PyObject * obj0 = 0 ; | |
21031 | char *kwnames[] = { | |
21032 | (char *) "self", NULL | |
21033 | }; | |
21034 | ||
21035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
21036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21037 | { | |
21038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21039 | result = ((wxWindow const *)arg1)->GetName(); | |
21040 | ||
21041 | wxPyEndAllowThreads(__tstate); | |
21042 | if (PyErr_Occurred()) SWIG_fail; | |
21043 | } | |
21044 | { | |
21045 | #if wxUSE_UNICODE | |
21046 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21047 | #else | |
21048 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21049 | #endif | |
21050 | } | |
21051 | return resultobj; | |
21052 | fail: | |
21053 | return NULL; | |
21054 | } | |
21055 | ||
21056 | ||
21057 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21058 | PyObject *resultobj; | |
21059 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21060 | int arg2 ; |
d14a1e28 | 21061 | PyObject * obj0 = 0 ; |
8edf1c75 | 21062 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21063 | char *kwnames[] = { |
21064 | (char *) "self",(char *) "winid", NULL | |
21065 | }; | |
21066 | ||
8edf1c75 | 21067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21069 | { |
21070 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21071 | if (PyErr_Occurred()) SWIG_fail; | |
21072 | } | |
d14a1e28 RD |
21073 | { |
21074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21075 | (arg1)->SetId(arg2); | |
21076 | ||
21077 | wxPyEndAllowThreads(__tstate); | |
21078 | if (PyErr_Occurred()) SWIG_fail; | |
21079 | } | |
21080 | Py_INCREF(Py_None); resultobj = Py_None; | |
21081 | return resultobj; | |
21082 | fail: | |
21083 | return NULL; | |
21084 | } | |
21085 | ||
21086 | ||
21087 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21088 | PyObject *resultobj; | |
21089 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21090 | int result; |
d14a1e28 RD |
21091 | PyObject * obj0 = 0 ; |
21092 | char *kwnames[] = { | |
21093 | (char *) "self", NULL | |
21094 | }; | |
21095 | ||
21096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
21097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21098 | { | |
21099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21100 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
21101 | |
21102 | wxPyEndAllowThreads(__tstate); | |
21103 | if (PyErr_Occurred()) SWIG_fail; | |
21104 | } | |
8edf1c75 | 21105 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21106 | return resultobj; |
21107 | fail: | |
21108 | return NULL; | |
21109 | } | |
21110 | ||
21111 | ||
21112 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21113 | PyObject *resultobj; | |
21114 | int result; | |
21115 | char *kwnames[] = { | |
21116 | NULL | |
21117 | }; | |
21118 | ||
21119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
21120 | { | |
21121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21122 | result = (int)wxWindow::NewControlId(); | |
21123 | ||
21124 | wxPyEndAllowThreads(__tstate); | |
21125 | if (PyErr_Occurred()) SWIG_fail; | |
21126 | } | |
8edf1c75 | 21127 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21128 | return resultobj; |
21129 | fail: | |
21130 | return NULL; | |
21131 | } | |
21132 | ||
21133 | ||
21134 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21135 | PyObject *resultobj; | |
21136 | int arg1 ; | |
21137 | int result; | |
8edf1c75 | 21138 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21139 | char *kwnames[] = { |
21140 | (char *) "winid", NULL | |
21141 | }; | |
21142 | ||
8edf1c75 RD |
21143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; |
21144 | { | |
21145 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
21146 | if (PyErr_Occurred()) SWIG_fail; | |
21147 | } | |
d14a1e28 RD |
21148 | { |
21149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21150 | result = (int)wxWindow::NextControlId(arg1); | |
21151 | ||
21152 | wxPyEndAllowThreads(__tstate); | |
21153 | if (PyErr_Occurred()) SWIG_fail; | |
21154 | } | |
8edf1c75 | 21155 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21156 | return resultobj; |
21157 | fail: | |
21158 | return NULL; | |
21159 | } | |
21160 | ||
21161 | ||
21162 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21163 | PyObject *resultobj; | |
21164 | int arg1 ; | |
21165 | int result; | |
8edf1c75 | 21166 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21167 | char *kwnames[] = { |
21168 | (char *) "winid", NULL | |
21169 | }; | |
21170 | ||
8edf1c75 RD |
21171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; |
21172 | { | |
21173 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
21174 | if (PyErr_Occurred()) SWIG_fail; | |
21175 | } | |
d14a1e28 RD |
21176 | { |
21177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21178 | result = (int)wxWindow::PrevControlId(arg1); | |
21179 | ||
21180 | wxPyEndAllowThreads(__tstate); | |
21181 | if (PyErr_Occurred()) SWIG_fail; | |
21182 | } | |
8edf1c75 | 21183 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21184 | return resultobj; |
21185 | fail: | |
21186 | return NULL; | |
21187 | } | |
21188 | ||
21189 | ||
21190 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21191 | PyObject *resultobj; | |
21192 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21193 | wxSize *arg2 = 0 ; | |
21194 | wxSize temp2 ; | |
21195 | PyObject * obj0 = 0 ; | |
21196 | PyObject * obj1 = 0 ; | |
21197 | char *kwnames[] = { | |
21198 | (char *) "self",(char *) "size", NULL | |
21199 | }; | |
21200 | ||
21201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
21202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21203 | { | |
21204 | arg2 = &temp2; | |
21205 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21206 | } | |
21207 | { | |
21208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21209 | (arg1)->SetSize((wxSize const &)*arg2); | |
21210 | ||
21211 | wxPyEndAllowThreads(__tstate); | |
21212 | if (PyErr_Occurred()) SWIG_fail; | |
21213 | } | |
21214 | Py_INCREF(Py_None); resultobj = Py_None; | |
21215 | return resultobj; | |
21216 | fail: | |
21217 | return NULL; | |
21218 | } | |
21219 | ||
21220 | ||
21221 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21222 | PyObject *resultobj; | |
21223 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21224 | int arg2 ; | |
21225 | int arg3 ; | |
21226 | int arg4 ; | |
21227 | int arg5 ; | |
21228 | int arg6 = (int) wxSIZE_AUTO ; | |
21229 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21230 | PyObject * obj1 = 0 ; |
21231 | PyObject * obj2 = 0 ; | |
21232 | PyObject * obj3 = 0 ; | |
21233 | PyObject * obj4 = 0 ; | |
21234 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
21235 | char *kwnames[] = { |
21236 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21237 | }; | |
21238 | ||
8edf1c75 | 21239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 21240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21241 | { |
21242 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21243 | if (PyErr_Occurred()) SWIG_fail; | |
21244 | } | |
21245 | { | |
21246 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21247 | if (PyErr_Occurred()) SWIG_fail; | |
21248 | } | |
21249 | { | |
21250 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21251 | if (PyErr_Occurred()) SWIG_fail; | |
21252 | } | |
21253 | { | |
21254 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
21255 | if (PyErr_Occurred()) SWIG_fail; | |
21256 | } | |
21257 | if (obj5) { | |
21258 | { | |
21259 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
21260 | if (PyErr_Occurred()) SWIG_fail; | |
21261 | } | |
21262 | } | |
d14a1e28 RD |
21263 | { |
21264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21265 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
21266 | ||
21267 | wxPyEndAllowThreads(__tstate); | |
21268 | if (PyErr_Occurred()) SWIG_fail; | |
21269 | } | |
21270 | Py_INCREF(Py_None); resultobj = Py_None; | |
21271 | return resultobj; | |
21272 | fail: | |
21273 | return NULL; | |
21274 | } | |
21275 | ||
21276 | ||
21277 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21278 | PyObject *resultobj; | |
21279 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21280 | wxRect *arg2 = 0 ; | |
21281 | int arg3 = (int) wxSIZE_AUTO ; | |
21282 | wxRect temp2 ; | |
21283 | PyObject * obj0 = 0 ; | |
21284 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21285 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21286 | char *kwnames[] = { |
21287 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
21288 | }; | |
21289 | ||
8edf1c75 | 21290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
21291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21292 | { | |
21293 | arg2 = &temp2; | |
21294 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
21295 | } | |
8edf1c75 RD |
21296 | if (obj2) { |
21297 | { | |
21298 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21299 | if (PyErr_Occurred()) SWIG_fail; | |
21300 | } | |
21301 | } | |
d14a1e28 RD |
21302 | { |
21303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21304 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
21305 | ||
21306 | wxPyEndAllowThreads(__tstate); | |
21307 | if (PyErr_Occurred()) SWIG_fail; | |
21308 | } | |
21309 | Py_INCREF(Py_None); resultobj = Py_None; | |
21310 | return resultobj; | |
21311 | fail: | |
21312 | return NULL; | |
21313 | } | |
21314 | ||
21315 | ||
21316 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21317 | PyObject *resultobj; | |
21318 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21319 | int arg2 ; | |
21320 | int arg3 ; | |
21321 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21322 | PyObject * obj1 = 0 ; |
21323 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21324 | char *kwnames[] = { |
21325 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21326 | }; | |
21327 | ||
8edf1c75 | 21328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21330 | { |
21331 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21332 | if (PyErr_Occurred()) SWIG_fail; | |
21333 | } | |
21334 | { | |
21335 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21336 | if (PyErr_Occurred()) SWIG_fail; | |
21337 | } | |
d14a1e28 RD |
21338 | { |
21339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21340 | (arg1)->SetSize(arg2,arg3); | |
21341 | ||
21342 | wxPyEndAllowThreads(__tstate); | |
21343 | if (PyErr_Occurred()) SWIG_fail; | |
21344 | } | |
21345 | Py_INCREF(Py_None); resultobj = Py_None; | |
21346 | return resultobj; | |
21347 | fail: | |
21348 | return NULL; | |
21349 | } | |
21350 | ||
21351 | ||
21352 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21353 | PyObject *resultobj; | |
21354 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21355 | wxPoint *arg2 = 0 ; | |
21356 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
21357 | wxPoint temp2 ; | |
21358 | PyObject * obj0 = 0 ; | |
21359 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21360 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21361 | char *kwnames[] = { |
21362 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
21363 | }; | |
21364 | ||
8edf1c75 | 21365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
21366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21367 | { | |
21368 | arg2 = &temp2; | |
21369 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21370 | } | |
8edf1c75 RD |
21371 | if (obj2) { |
21372 | { | |
21373 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21374 | if (PyErr_Occurred()) SWIG_fail; | |
21375 | } | |
21376 | } | |
d14a1e28 RD |
21377 | { |
21378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21379 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
21380 | ||
21381 | wxPyEndAllowThreads(__tstate); | |
21382 | if (PyErr_Occurred()) SWIG_fail; | |
21383 | } | |
21384 | Py_INCREF(Py_None); resultobj = Py_None; | |
21385 | return resultobj; | |
21386 | fail: | |
21387 | return NULL; | |
21388 | } | |
21389 | ||
21390 | ||
21391 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21392 | PyObject *resultobj; | |
21393 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21394 | int arg2 ; | |
21395 | int arg3 ; | |
21396 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
21397 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21398 | PyObject * obj1 = 0 ; |
21399 | PyObject * obj2 = 0 ; | |
21400 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21401 | char *kwnames[] = { |
21402 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
21403 | }; | |
21404 | ||
8edf1c75 | 21405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 21406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21407 | { |
21408 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21409 | if (PyErr_Occurred()) SWIG_fail; | |
21410 | } | |
21411 | { | |
21412 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21413 | if (PyErr_Occurred()) SWIG_fail; | |
21414 | } | |
21415 | if (obj3) { | |
21416 | { | |
21417 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
21418 | if (PyErr_Occurred()) SWIG_fail; | |
21419 | } | |
21420 | } | |
d14a1e28 RD |
21421 | { |
21422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21423 | (arg1)->Move(arg2,arg3,arg4); | |
21424 | ||
21425 | wxPyEndAllowThreads(__tstate); | |
21426 | if (PyErr_Occurred()) SWIG_fail; | |
21427 | } | |
21428 | Py_INCREF(Py_None); resultobj = Py_None; | |
21429 | return resultobj; | |
21430 | fail: | |
21431 | return NULL; | |
21432 | } | |
21433 | ||
21434 | ||
21435 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21436 | PyObject *resultobj; | |
21437 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21438 | PyObject * obj0 = 0 ; | |
21439 | char *kwnames[] = { | |
21440 | (char *) "self", NULL | |
21441 | }; | |
21442 | ||
21443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
21444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21445 | { | |
21446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21447 | (arg1)->Raise(); | |
21448 | ||
21449 | wxPyEndAllowThreads(__tstate); | |
21450 | if (PyErr_Occurred()) SWIG_fail; | |
21451 | } | |
21452 | Py_INCREF(Py_None); resultobj = Py_None; | |
21453 | return resultobj; | |
21454 | fail: | |
21455 | return NULL; | |
21456 | } | |
21457 | ||
21458 | ||
21459 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21460 | PyObject *resultobj; | |
21461 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21462 | PyObject * obj0 = 0 ; | |
21463 | char *kwnames[] = { | |
21464 | (char *) "self", NULL | |
21465 | }; | |
21466 | ||
21467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
21468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21469 | { | |
21470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21471 | (arg1)->Lower(); | |
21472 | ||
21473 | wxPyEndAllowThreads(__tstate); | |
21474 | if (PyErr_Occurred()) SWIG_fail; | |
21475 | } | |
21476 | Py_INCREF(Py_None); resultobj = Py_None; | |
21477 | return resultobj; | |
21478 | fail: | |
21479 | return NULL; | |
21480 | } | |
21481 | ||
21482 | ||
21483 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21484 | PyObject *resultobj; | |
21485 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21486 | wxSize *arg2 = 0 ; | |
21487 | wxSize temp2 ; | |
21488 | PyObject * obj0 = 0 ; | |
21489 | PyObject * obj1 = 0 ; | |
21490 | char *kwnames[] = { | |
21491 | (char *) "self",(char *) "size", NULL | |
21492 | }; | |
21493 | ||
21494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
21495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21496 | { | |
21497 | arg2 = &temp2; | |
21498 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21499 | } | |
21500 | { | |
21501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21502 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
21503 | ||
21504 | wxPyEndAllowThreads(__tstate); | |
21505 | if (PyErr_Occurred()) SWIG_fail; | |
21506 | } | |
21507 | Py_INCREF(Py_None); resultobj = Py_None; | |
21508 | return resultobj; | |
21509 | fail: | |
21510 | return NULL; | |
21511 | } | |
21512 | ||
21513 | ||
21514 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21515 | PyObject *resultobj; | |
21516 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21517 | int arg2 ; | |
21518 | int arg3 ; | |
21519 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21520 | PyObject * obj1 = 0 ; |
21521 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21522 | char *kwnames[] = { |
21523 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21524 | }; | |
21525 | ||
8edf1c75 | 21526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 21527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21528 | { |
21529 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21530 | if (PyErr_Occurred()) SWIG_fail; | |
21531 | } | |
21532 | { | |
21533 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
21534 | if (PyErr_Occurred()) SWIG_fail; | |
21535 | } | |
d14a1e28 RD |
21536 | { |
21537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21538 | (arg1)->SetClientSize(arg2,arg3); | |
21539 | ||
21540 | wxPyEndAllowThreads(__tstate); | |
21541 | if (PyErr_Occurred()) SWIG_fail; | |
21542 | } | |
21543 | Py_INCREF(Py_None); resultobj = Py_None; | |
21544 | return resultobj; | |
21545 | fail: | |
21546 | return NULL; | |
21547 | } | |
21548 | ||
21549 | ||
21550 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21551 | PyObject *resultobj; | |
21552 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21553 | wxRect *arg2 = 0 ; | |
21554 | wxRect temp2 ; | |
21555 | PyObject * obj0 = 0 ; | |
21556 | PyObject * obj1 = 0 ; | |
21557 | char *kwnames[] = { | |
21558 | (char *) "self",(char *) "rect", NULL | |
21559 | }; | |
21560 | ||
21561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
21562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21563 | { | |
21564 | arg2 = &temp2; | |
21565 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
21566 | } | |
21567 | { | |
21568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21569 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
21570 | ||
21571 | wxPyEndAllowThreads(__tstate); | |
21572 | if (PyErr_Occurred()) SWIG_fail; | |
21573 | } | |
21574 | Py_INCREF(Py_None); resultobj = Py_None; | |
21575 | return resultobj; | |
21576 | fail: | |
21577 | return NULL; | |
21578 | } | |
21579 | ||
21580 | ||
21581 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21582 | PyObject *resultobj; | |
21583 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21584 | wxPoint result; | |
21585 | PyObject * obj0 = 0 ; | |
21586 | char *kwnames[] = { | |
21587 | (char *) "self", NULL | |
21588 | }; | |
21589 | ||
21590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
21591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21592 | { | |
21593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21594 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
21595 | |
21596 | wxPyEndAllowThreads(__tstate); | |
21597 | if (PyErr_Occurred()) SWIG_fail; | |
21598 | } | |
21599 | { | |
21600 | wxPoint * resultptr; | |
21601 | resultptr = new wxPoint((wxPoint &) result); | |
21602 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
21603 | } | |
21604 | return resultobj; | |
21605 | fail: | |
21606 | return NULL; | |
21607 | } | |
21608 | ||
21609 | ||
21610 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21611 | PyObject *resultobj; | |
21612 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21613 | int *arg2 = (int *) 0 ; | |
21614 | int *arg3 = (int *) 0 ; | |
21615 | int temp2 ; | |
21616 | int temp3 ; | |
21617 | PyObject * obj0 = 0 ; | |
21618 | char *kwnames[] = { | |
21619 | (char *) "self", NULL | |
21620 | }; | |
21621 | ||
21622 | arg2 = &temp2; | |
21623 | arg3 = &temp3; | |
21624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
21625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21626 | { | |
21627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21628 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
21629 | |
21630 | wxPyEndAllowThreads(__tstate); | |
21631 | if (PyErr_Occurred()) SWIG_fail; | |
21632 | } | |
21633 | Py_INCREF(Py_None); resultobj = Py_None; | |
21634 | { | |
21635 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21636 | resultobj = t_output_helper(resultobj,o); | |
21637 | } | |
21638 | { | |
21639 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21640 | resultobj = t_output_helper(resultobj,o); | |
21641 | } | |
21642 | return resultobj; | |
21643 | fail: | |
21644 | return NULL; | |
21645 | } | |
21646 | ||
21647 | ||
21648 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21649 | PyObject *resultobj; | |
21650 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21651 | wxSize result; | |
21652 | PyObject * obj0 = 0 ; | |
21653 | char *kwnames[] = { | |
21654 | (char *) "self", NULL | |
21655 | }; | |
21656 | ||
21657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
21658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21659 | { | |
21660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21661 | result = ((wxWindow const *)arg1)->GetSize(); | |
21662 | ||
21663 | wxPyEndAllowThreads(__tstate); | |
21664 | if (PyErr_Occurred()) SWIG_fail; | |
21665 | } | |
21666 | { | |
21667 | wxSize * resultptr; | |
21668 | resultptr = new wxSize((wxSize &) result); | |
21669 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21670 | } | |
21671 | return resultobj; | |
21672 | fail: | |
21673 | return NULL; | |
21674 | } | |
21675 | ||
21676 | ||
21677 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21678 | PyObject *resultobj; | |
21679 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21680 | int *arg2 = (int *) 0 ; | |
21681 | int *arg3 = (int *) 0 ; | |
21682 | int temp2 ; | |
21683 | int temp3 ; | |
21684 | PyObject * obj0 = 0 ; | |
21685 | char *kwnames[] = { | |
21686 | (char *) "self", NULL | |
21687 | }; | |
21688 | ||
21689 | arg2 = &temp2; | |
21690 | arg3 = &temp3; | |
21691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
21692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21693 | { | |
21694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21695 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
21696 | ||
21697 | wxPyEndAllowThreads(__tstate); | |
21698 | if (PyErr_Occurred()) SWIG_fail; | |
21699 | } | |
21700 | Py_INCREF(Py_None); resultobj = Py_None; | |
21701 | { | |
21702 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21703 | resultobj = t_output_helper(resultobj,o); | |
21704 | } | |
21705 | { | |
21706 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21707 | resultobj = t_output_helper(resultobj,o); | |
21708 | } | |
21709 | return resultobj; | |
21710 | fail: | |
21711 | return NULL; | |
21712 | } | |
21713 | ||
21714 | ||
21715 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21716 | PyObject *resultobj; | |
21717 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21718 | wxRect result; | |
21719 | PyObject * obj0 = 0 ; | |
21720 | char *kwnames[] = { | |
21721 | (char *) "self", NULL | |
21722 | }; | |
21723 | ||
21724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
21725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21726 | { | |
21727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21728 | result = ((wxWindow const *)arg1)->GetRect(); | |
21729 | ||
21730 | wxPyEndAllowThreads(__tstate); | |
21731 | if (PyErr_Occurred()) SWIG_fail; | |
21732 | } | |
21733 | { | |
21734 | wxRect * resultptr; | |
21735 | resultptr = new wxRect((wxRect &) result); | |
21736 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
21737 | } | |
21738 | return resultobj; | |
21739 | fail: | |
21740 | return NULL; | |
21741 | } | |
21742 | ||
21743 | ||
21744 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21745 | PyObject *resultobj; | |
21746 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21747 | wxSize result; | |
21748 | PyObject * obj0 = 0 ; | |
21749 | char *kwnames[] = { | |
21750 | (char *) "self", NULL | |
21751 | }; | |
21752 | ||
21753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
21754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21755 | { | |
21756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21757 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
21758 | ||
21759 | wxPyEndAllowThreads(__tstate); | |
21760 | if (PyErr_Occurred()) SWIG_fail; | |
21761 | } | |
21762 | { | |
21763 | wxSize * resultptr; | |
21764 | resultptr = new wxSize((wxSize &) result); | |
21765 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21766 | } | |
21767 | return resultobj; | |
21768 | fail: | |
21769 | return NULL; | |
21770 | } | |
21771 | ||
21772 | ||
21773 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21774 | PyObject *resultobj; | |
21775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21776 | int *arg2 = (int *) 0 ; | |
21777 | int *arg3 = (int *) 0 ; | |
21778 | int temp2 ; | |
21779 | int temp3 ; | |
21780 | PyObject * obj0 = 0 ; | |
21781 | char *kwnames[] = { | |
21782 | (char *) "self", NULL | |
21783 | }; | |
21784 | ||
21785 | arg2 = &temp2; | |
21786 | arg3 = &temp3; | |
21787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
21788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21789 | { | |
21790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21791 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
21792 | ||
21793 | wxPyEndAllowThreads(__tstate); | |
21794 | if (PyErr_Occurred()) SWIG_fail; | |
21795 | } | |
21796 | Py_INCREF(Py_None); resultobj = Py_None; | |
21797 | { | |
21798 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21799 | resultobj = t_output_helper(resultobj,o); | |
21800 | } | |
21801 | { | |
21802 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21803 | resultobj = t_output_helper(resultobj,o); | |
21804 | } | |
21805 | return resultobj; | |
21806 | fail: | |
21807 | return NULL; | |
21808 | } | |
21809 | ||
21810 | ||
21811 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21812 | PyObject *resultobj; | |
21813 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21814 | wxPoint result; | |
21815 | PyObject * obj0 = 0 ; | |
21816 | char *kwnames[] = { | |
21817 | (char *) "self", NULL | |
21818 | }; | |
21819 | ||
21820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
21821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21822 | { | |
21823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21824 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
21825 | ||
21826 | wxPyEndAllowThreads(__tstate); | |
21827 | if (PyErr_Occurred()) SWIG_fail; | |
21828 | } | |
21829 | { | |
21830 | wxPoint * resultptr; | |
21831 | resultptr = new wxPoint((wxPoint &) result); | |
21832 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
21833 | } | |
21834 | return resultobj; | |
21835 | fail: | |
21836 | return NULL; | |
21837 | } | |
21838 | ||
21839 | ||
21840 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21841 | PyObject *resultobj; | |
21842 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21843 | wxRect result; | |
21844 | PyObject * obj0 = 0 ; | |
21845 | char *kwnames[] = { | |
21846 | (char *) "self", NULL | |
21847 | }; | |
21848 | ||
21849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
21850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21851 | { | |
21852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21853 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
21854 | ||
21855 | wxPyEndAllowThreads(__tstate); | |
21856 | if (PyErr_Occurred()) SWIG_fail; | |
21857 | } | |
21858 | { | |
21859 | wxRect * resultptr; | |
21860 | resultptr = new wxRect((wxRect &) result); | |
21861 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
21862 | } | |
21863 | return resultobj; | |
21864 | fail: | |
21865 | return NULL; | |
21866 | } | |
21867 | ||
21868 | ||
21869 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21870 | PyObject *resultobj; | |
21871 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21872 | wxSize result; | |
21873 | PyObject * obj0 = 0 ; | |
21874 | char *kwnames[] = { | |
21875 | (char *) "self", NULL | |
21876 | }; | |
21877 | ||
21878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
21879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21880 | { | |
21881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21882 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
21883 | ||
21884 | wxPyEndAllowThreads(__tstate); | |
21885 | if (PyErr_Occurred()) SWIG_fail; | |
21886 | } | |
21887 | { | |
21888 | wxSize * resultptr; | |
21889 | resultptr = new wxSize((wxSize &) result); | |
21890 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21891 | } | |
21892 | return resultobj; | |
21893 | fail: | |
21894 | return NULL; | |
21895 | } | |
21896 | ||
21897 | ||
21898 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21899 | PyObject *resultobj; | |
21900 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21901 | int *arg2 = (int *) 0 ; | |
21902 | int *arg3 = (int *) 0 ; | |
21903 | int temp2 ; | |
21904 | int temp3 ; | |
21905 | PyObject * obj0 = 0 ; | |
21906 | char *kwnames[] = { | |
21907 | (char *) "self", NULL | |
21908 | }; | |
21909 | ||
21910 | arg2 = &temp2; | |
21911 | arg3 = &temp3; | |
21912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
21913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21914 | { | |
21915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21916 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
21917 | ||
21918 | wxPyEndAllowThreads(__tstate); | |
21919 | if (PyErr_Occurred()) SWIG_fail; | |
21920 | } | |
21921 | Py_INCREF(Py_None); resultobj = Py_None; | |
21922 | { | |
21923 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21924 | resultobj = t_output_helper(resultobj,o); | |
21925 | } | |
21926 | { | |
21927 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21928 | resultobj = t_output_helper(resultobj,o); | |
21929 | } | |
21930 | return resultobj; | |
21931 | fail: | |
21932 | return NULL; | |
21933 | } | |
21934 | ||
21935 | ||
21936 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21937 | PyObject *resultobj; | |
21938 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21939 | wxSize result; | |
21940 | PyObject * obj0 = 0 ; | |
21941 | char *kwnames[] = { | |
21942 | (char *) "self", NULL | |
21943 | }; | |
21944 | ||
21945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
21946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21947 | { | |
21948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21949 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
21950 | ||
21951 | wxPyEndAllowThreads(__tstate); | |
21952 | if (PyErr_Occurred()) SWIG_fail; | |
21953 | } | |
21954 | { | |
21955 | wxSize * resultptr; | |
21956 | resultptr = new wxSize((wxSize &) result); | |
21957 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
21958 | } | |
21959 | return resultobj; | |
21960 | fail: | |
21961 | return NULL; | |
21962 | } | |
21963 | ||
21964 | ||
21965 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21966 | PyObject *resultobj; | |
21967 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21968 | int arg2 = (int) wxBOTH ; | |
21969 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21970 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21971 | char *kwnames[] = { |
21972 | (char *) "self",(char *) "direction", NULL | |
21973 | }; | |
21974 | ||
8edf1c75 | 21975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21977 | if (obj1) { |
21978 | { | |
21979 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21980 | if (PyErr_Occurred()) SWIG_fail; | |
21981 | } | |
21982 | } | |
d14a1e28 RD |
21983 | { |
21984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21985 | (arg1)->Center(arg2); | |
21986 | ||
21987 | wxPyEndAllowThreads(__tstate); | |
21988 | if (PyErr_Occurred()) SWIG_fail; | |
21989 | } | |
21990 | Py_INCREF(Py_None); resultobj = Py_None; | |
21991 | return resultobj; | |
21992 | fail: | |
21993 | return NULL; | |
21994 | } | |
21995 | ||
21996 | ||
21997 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21998 | PyObject *resultobj; | |
21999 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22000 | int arg2 = (int) wxBOTH ; | |
22001 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22002 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22003 | char *kwnames[] = { |
22004 | (char *) "self",(char *) "dir", NULL | |
22005 | }; | |
22006 | ||
8edf1c75 | 22007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22009 | if (obj1) { |
22010 | { | |
22011 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22012 | if (PyErr_Occurred()) SWIG_fail; | |
22013 | } | |
22014 | } | |
d14a1e28 RD |
22015 | { |
22016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22017 | (arg1)->CenterOnScreen(arg2); | |
22018 | ||
22019 | wxPyEndAllowThreads(__tstate); | |
22020 | if (PyErr_Occurred()) SWIG_fail; | |
22021 | } | |
22022 | Py_INCREF(Py_None); resultobj = Py_None; | |
22023 | return resultobj; | |
22024 | fail: | |
22025 | return NULL; | |
22026 | } | |
22027 | ||
22028 | ||
22029 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22030 | PyObject *resultobj; | |
22031 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22032 | int arg2 = (int) wxBOTH ; | |
22033 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22034 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22035 | char *kwnames[] = { |
22036 | (char *) "self",(char *) "dir", NULL | |
22037 | }; | |
22038 | ||
8edf1c75 | 22039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22041 | if (obj1) { |
22042 | { | |
22043 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22044 | if (PyErr_Occurred()) SWIG_fail; | |
22045 | } | |
22046 | } | |
d14a1e28 RD |
22047 | { |
22048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22049 | (arg1)->CenterOnParent(arg2); | |
22050 | ||
22051 | wxPyEndAllowThreads(__tstate); | |
22052 | if (PyErr_Occurred()) SWIG_fail; | |
22053 | } | |
22054 | Py_INCREF(Py_None); resultobj = Py_None; | |
22055 | return resultobj; | |
22056 | fail: | |
22057 | return NULL; | |
22058 | } | |
22059 | ||
22060 | ||
22061 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22062 | PyObject *resultobj; | |
22063 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22064 | PyObject * obj0 = 0 ; | |
22065 | char *kwnames[] = { | |
22066 | (char *) "self", NULL | |
22067 | }; | |
22068 | ||
22069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
22070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22071 | { | |
22072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22073 | (arg1)->Fit(); | |
22074 | ||
22075 | wxPyEndAllowThreads(__tstate); | |
22076 | if (PyErr_Occurred()) SWIG_fail; | |
22077 | } | |
22078 | Py_INCREF(Py_None); resultobj = Py_None; | |
22079 | return resultobj; | |
22080 | fail: | |
22081 | return NULL; | |
22082 | } | |
22083 | ||
22084 | ||
22085 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22086 | PyObject *resultobj; | |
22087 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22088 | PyObject * obj0 = 0 ; | |
22089 | char *kwnames[] = { | |
22090 | (char *) "self", NULL | |
22091 | }; | |
22092 | ||
22093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
22094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22095 | { | |
22096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22097 | (arg1)->FitInside(); | |
22098 | ||
22099 | wxPyEndAllowThreads(__tstate); | |
22100 | if (PyErr_Occurred()) SWIG_fail; | |
22101 | } | |
22102 | Py_INCREF(Py_None); resultobj = Py_None; | |
22103 | return resultobj; | |
22104 | fail: | |
22105 | return NULL; | |
22106 | } | |
22107 | ||
22108 | ||
22109 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22110 | PyObject *resultobj; | |
22111 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22112 | int arg2 ; | |
22113 | int arg3 ; | |
22114 | int arg4 = (int) -1 ; | |
22115 | int arg5 = (int) -1 ; | |
22116 | int arg6 = (int) -1 ; | |
22117 | int arg7 = (int) -1 ; | |
22118 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22119 | PyObject * obj1 = 0 ; |
22120 | PyObject * obj2 = 0 ; | |
22121 | PyObject * obj3 = 0 ; | |
22122 | PyObject * obj4 = 0 ; | |
22123 | PyObject * obj5 = 0 ; | |
22124 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
22125 | char *kwnames[] = { |
22126 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
22127 | }; | |
22128 | ||
8edf1c75 | 22129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 22130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22131 | { |
22132 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22133 | if (PyErr_Occurred()) SWIG_fail; | |
22134 | } | |
22135 | { | |
22136 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22137 | if (PyErr_Occurred()) SWIG_fail; | |
22138 | } | |
22139 | if (obj3) { | |
22140 | { | |
22141 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
22142 | if (PyErr_Occurred()) SWIG_fail; | |
22143 | } | |
22144 | } | |
22145 | if (obj4) { | |
22146 | { | |
22147 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
22148 | if (PyErr_Occurred()) SWIG_fail; | |
22149 | } | |
22150 | } | |
22151 | if (obj5) { | |
22152 | { | |
22153 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
22154 | if (PyErr_Occurred()) SWIG_fail; | |
22155 | } | |
22156 | } | |
22157 | if (obj6) { | |
22158 | { | |
22159 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
22160 | if (PyErr_Occurred()) SWIG_fail; | |
22161 | } | |
22162 | } | |
d14a1e28 RD |
22163 | { |
22164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22165 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
22166 | ||
22167 | wxPyEndAllowThreads(__tstate); | |
22168 | if (PyErr_Occurred()) SWIG_fail; | |
22169 | } | |
22170 | Py_INCREF(Py_None); resultobj = Py_None; | |
22171 | return resultobj; | |
22172 | fail: | |
22173 | return NULL; | |
22174 | } | |
22175 | ||
22176 | ||
22177 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22178 | PyObject *resultobj; | |
22179 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22180 | int arg2 ; | |
22181 | int arg3 ; | |
22182 | int arg4 = (int) -1 ; | |
22183 | int arg5 = (int) -1 ; | |
22184 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22185 | PyObject * obj1 = 0 ; |
22186 | PyObject * obj2 = 0 ; | |
22187 | PyObject * obj3 = 0 ; | |
22188 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
22189 | char *kwnames[] = { |
22190 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
22191 | }; | |
22192 | ||
8edf1c75 | 22193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 22194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22195 | { |
22196 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22197 | if (PyErr_Occurred()) SWIG_fail; | |
22198 | } | |
22199 | { | |
22200 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22201 | if (PyErr_Occurred()) SWIG_fail; | |
22202 | } | |
22203 | if (obj3) { | |
22204 | { | |
22205 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
22206 | if (PyErr_Occurred()) SWIG_fail; | |
22207 | } | |
22208 | } | |
22209 | if (obj4) { | |
22210 | { | |
22211 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
22212 | if (PyErr_Occurred()) SWIG_fail; | |
22213 | } | |
22214 | } | |
d14a1e28 RD |
22215 | { |
22216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22217 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
22218 | ||
22219 | wxPyEndAllowThreads(__tstate); | |
22220 | if (PyErr_Occurred()) SWIG_fail; | |
22221 | } | |
22222 | Py_INCREF(Py_None); resultobj = Py_None; | |
22223 | return resultobj; | |
22224 | fail: | |
22225 | return NULL; | |
22226 | } | |
22227 | ||
22228 | ||
22229 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22230 | PyObject *resultobj; | |
22231 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22232 | int result; | |
22233 | PyObject * obj0 = 0 ; | |
22234 | char *kwnames[] = { | |
22235 | (char *) "self", NULL | |
22236 | }; | |
22237 | ||
22238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
22239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22240 | { | |
22241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22242 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
22243 | ||
22244 | wxPyEndAllowThreads(__tstate); | |
22245 | if (PyErr_Occurred()) SWIG_fail; | |
22246 | } | |
8edf1c75 | 22247 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22248 | return resultobj; |
22249 | fail: | |
22250 | return NULL; | |
22251 | } | |
22252 | ||
22253 | ||
22254 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22255 | PyObject *resultobj; | |
22256 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22257 | int result; | |
22258 | PyObject * obj0 = 0 ; | |
22259 | char *kwnames[] = { | |
22260 | (char *) "self", NULL | |
22261 | }; | |
22262 | ||
22263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
22264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22265 | { | |
22266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22267 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
22268 | ||
22269 | wxPyEndAllowThreads(__tstate); | |
22270 | if (PyErr_Occurred()) SWIG_fail; | |
22271 | } | |
8edf1c75 | 22272 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22273 | return resultobj; |
22274 | fail: | |
22275 | return NULL; | |
22276 | } | |
22277 | ||
22278 | ||
22279 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22280 | PyObject *resultobj; | |
22281 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22282 | int result; | |
22283 | PyObject * obj0 = 0 ; | |
22284 | char *kwnames[] = { | |
22285 | (char *) "self", NULL | |
22286 | }; | |
22287 | ||
22288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
22289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22290 | { | |
22291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22292 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
22293 | ||
22294 | wxPyEndAllowThreads(__tstate); | |
22295 | if (PyErr_Occurred()) SWIG_fail; | |
22296 | } | |
8edf1c75 | 22297 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22298 | return resultobj; |
22299 | fail: | |
22300 | return NULL; | |
22301 | } | |
22302 | ||
22303 | ||
22304 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22305 | PyObject *resultobj; | |
22306 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22307 | int result; | |
22308 | PyObject * obj0 = 0 ; | |
22309 | char *kwnames[] = { | |
22310 | (char *) "self", NULL | |
22311 | }; | |
22312 | ||
22313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
22314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22315 | { | |
22316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22317 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
22318 | ||
22319 | wxPyEndAllowThreads(__tstate); | |
22320 | if (PyErr_Occurred()) SWIG_fail; | |
22321 | } | |
8edf1c75 | 22322 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
22323 | return resultobj; |
22324 | fail: | |
22325 | return NULL; | |
22326 | } | |
22327 | ||
22328 | ||
22329 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22330 | PyObject *resultobj; | |
22331 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22332 | wxSize result; | |
22333 | PyObject * obj0 = 0 ; | |
22334 | char *kwnames[] = { | |
22335 | (char *) "self", NULL | |
22336 | }; | |
22337 | ||
22338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
22339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22340 | { | |
22341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22342 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
22343 | ||
22344 | wxPyEndAllowThreads(__tstate); | |
22345 | if (PyErr_Occurred()) SWIG_fail; | |
22346 | } | |
22347 | { | |
22348 | wxSize * resultptr; | |
22349 | resultptr = new wxSize((wxSize &) result); | |
22350 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22351 | } | |
22352 | return resultobj; | |
22353 | fail: | |
22354 | return NULL; | |
22355 | } | |
22356 | ||
22357 | ||
22358 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22359 | PyObject *resultobj; | |
22360 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22361 | wxSize *arg2 = 0 ; | |
22362 | wxSize temp2 ; | |
22363 | PyObject * obj0 = 0 ; | |
22364 | PyObject * obj1 = 0 ; | |
22365 | char *kwnames[] = { | |
22366 | (char *) "self",(char *) "size", NULL | |
22367 | }; | |
22368 | ||
22369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
22370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22371 | { | |
22372 | arg2 = &temp2; | |
22373 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22374 | } | |
22375 | { | |
22376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22377 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
22378 | ||
22379 | wxPyEndAllowThreads(__tstate); | |
22380 | if (PyErr_Occurred()) SWIG_fail; | |
22381 | } | |
22382 | Py_INCREF(Py_None); resultobj = Py_None; | |
22383 | return resultobj; | |
22384 | fail: | |
22385 | return NULL; | |
22386 | } | |
22387 | ||
22388 | ||
22389 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22390 | PyObject *resultobj; | |
22391 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22392 | int arg2 ; | |
22393 | int arg3 ; | |
22394 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22395 | PyObject * obj1 = 0 ; |
22396 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22397 | char *kwnames[] = { |
22398 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22399 | }; | |
22400 | ||
8edf1c75 | 22401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 22402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22403 | { |
22404 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22405 | if (PyErr_Occurred()) SWIG_fail; | |
22406 | } | |
22407 | { | |
22408 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
22409 | if (PyErr_Occurred()) SWIG_fail; | |
22410 | } | |
d14a1e28 RD |
22411 | { |
22412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22413 | (arg1)->SetVirtualSize(arg2,arg3); | |
22414 | ||
22415 | wxPyEndAllowThreads(__tstate); | |
22416 | if (PyErr_Occurred()) SWIG_fail; | |
22417 | } | |
22418 | Py_INCREF(Py_None); resultobj = Py_None; | |
22419 | return resultobj; | |
22420 | fail: | |
22421 | return NULL; | |
22422 | } | |
22423 | ||
22424 | ||
22425 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22426 | PyObject *resultobj; | |
22427 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22428 | wxSize result; | |
22429 | PyObject * obj0 = 0 ; | |
22430 | char *kwnames[] = { | |
22431 | (char *) "self", NULL | |
22432 | }; | |
22433 | ||
22434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
22435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22436 | { | |
22437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22438 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
22439 | ||
22440 | wxPyEndAllowThreads(__tstate); | |
22441 | if (PyErr_Occurred()) SWIG_fail; | |
22442 | } | |
22443 | { | |
22444 | wxSize * resultptr; | |
22445 | resultptr = new wxSize((wxSize &) result); | |
22446 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22447 | } | |
22448 | return resultobj; | |
22449 | fail: | |
22450 | return NULL; | |
22451 | } | |
22452 | ||
22453 | ||
22454 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22455 | PyObject *resultobj; | |
22456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22457 | int *arg2 = (int *) 0 ; | |
22458 | int *arg3 = (int *) 0 ; | |
22459 | int temp2 ; | |
22460 | int temp3 ; | |
22461 | PyObject * obj0 = 0 ; | |
22462 | char *kwnames[] = { | |
22463 | (char *) "self", NULL | |
22464 | }; | |
22465 | ||
22466 | arg2 = &temp2; | |
22467 | arg3 = &temp3; | |
22468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
22469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22470 | { | |
22471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22472 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
22473 | ||
22474 | wxPyEndAllowThreads(__tstate); | |
22475 | if (PyErr_Occurred()) SWIG_fail; | |
22476 | } | |
22477 | Py_INCREF(Py_None); resultobj = Py_None; | |
22478 | { | |
22479 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22480 | resultobj = t_output_helper(resultobj,o); | |
22481 | } | |
22482 | { | |
22483 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22484 | resultobj = t_output_helper(resultobj,o); | |
22485 | } | |
22486 | return resultobj; | |
22487 | fail: | |
22488 | return NULL; | |
22489 | } | |
22490 | ||
22491 | ||
22492 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22493 | PyObject *resultobj; | |
22494 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22495 | wxSize result; | |
22496 | PyObject * obj0 = 0 ; | |
22497 | char *kwnames[] = { | |
22498 | (char *) "self", NULL | |
22499 | }; | |
22500 | ||
22501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
22502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22503 | { | |
22504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22505 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
22506 | ||
22507 | wxPyEndAllowThreads(__tstate); | |
22508 | if (PyErr_Occurred()) SWIG_fail; | |
22509 | } | |
22510 | { | |
22511 | wxSize * resultptr; | |
22512 | resultptr = new wxSize((wxSize &) result); | |
22513 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
22514 | } | |
22515 | return resultobj; | |
22516 | fail: | |
22517 | return NULL; | |
22518 | } | |
22519 | ||
22520 | ||
22521 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22522 | PyObject *resultobj; | |
22523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22524 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22525 | bool result; |
22526 | PyObject * obj0 = 0 ; | |
22527 | PyObject * obj1 = 0 ; | |
22528 | char *kwnames[] = { | |
22529 | (char *) "self",(char *) "show", NULL | |
22530 | }; | |
22531 | ||
22532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
22533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22534 | if (obj1) { | |
83448d71 | 22535 | { |
8edf1c75 | 22536 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
22537 | if (PyErr_Occurred()) SWIG_fail; |
22538 | } | |
d14a1e28 RD |
22539 | } |
22540 | { | |
22541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22542 | result = (bool)(arg1)->Show(arg2); | |
22543 | ||
22544 | wxPyEndAllowThreads(__tstate); | |
22545 | if (PyErr_Occurred()) SWIG_fail; | |
22546 | } | |
8edf1c75 | 22547 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22548 | return resultobj; |
22549 | fail: | |
22550 | return NULL; | |
22551 | } | |
22552 | ||
22553 | ||
22554 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22555 | PyObject *resultobj; | |
22556 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22557 | bool result; | |
22558 | PyObject * obj0 = 0 ; | |
22559 | char *kwnames[] = { | |
22560 | (char *) "self", NULL | |
22561 | }; | |
22562 | ||
22563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
22564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22565 | { | |
22566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22567 | result = (bool)(arg1)->Hide(); | |
22568 | ||
22569 | wxPyEndAllowThreads(__tstate); | |
22570 | if (PyErr_Occurred()) SWIG_fail; | |
22571 | } | |
8edf1c75 | 22572 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22573 | return resultobj; |
22574 | fail: | |
22575 | return NULL; | |
22576 | } | |
22577 | ||
22578 | ||
22579 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22580 | PyObject *resultobj; | |
22581 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22582 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22583 | bool result; |
22584 | PyObject * obj0 = 0 ; | |
22585 | PyObject * obj1 = 0 ; | |
22586 | char *kwnames[] = { | |
22587 | (char *) "self",(char *) "enable", NULL | |
22588 | }; | |
22589 | ||
22590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
22591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22592 | if (obj1) { | |
83448d71 | 22593 | { |
8edf1c75 | 22594 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
22595 | if (PyErr_Occurred()) SWIG_fail; |
22596 | } | |
d14a1e28 RD |
22597 | } |
22598 | { | |
22599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22600 | result = (bool)(arg1)->Enable(arg2); | |
22601 | ||
22602 | wxPyEndAllowThreads(__tstate); | |
22603 | if (PyErr_Occurred()) SWIG_fail; | |
22604 | } | |
8edf1c75 | 22605 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22606 | return resultobj; |
22607 | fail: | |
22608 | return NULL; | |
22609 | } | |
22610 | ||
22611 | ||
22612 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22613 | PyObject *resultobj; | |
22614 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22615 | bool result; | |
22616 | PyObject * obj0 = 0 ; | |
22617 | char *kwnames[] = { | |
22618 | (char *) "self", NULL | |
22619 | }; | |
22620 | ||
22621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
22622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22623 | { | |
22624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22625 | result = (bool)(arg1)->Disable(); | |
22626 | ||
22627 | wxPyEndAllowThreads(__tstate); | |
22628 | if (PyErr_Occurred()) SWIG_fail; | |
22629 | } | |
8edf1c75 | 22630 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22631 | return resultobj; |
22632 | fail: | |
22633 | return NULL; | |
22634 | } | |
22635 | ||
22636 | ||
22637 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22638 | PyObject *resultobj; | |
22639 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22640 | bool result; | |
22641 | PyObject * obj0 = 0 ; | |
22642 | char *kwnames[] = { | |
22643 | (char *) "self", NULL | |
22644 | }; | |
22645 | ||
22646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
22647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22648 | { | |
22649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22650 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
22651 | ||
22652 | wxPyEndAllowThreads(__tstate); | |
22653 | if (PyErr_Occurred()) SWIG_fail; | |
22654 | } | |
8edf1c75 | 22655 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22656 | return resultobj; |
22657 | fail: | |
22658 | return NULL; | |
22659 | } | |
22660 | ||
22661 | ||
22662 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22663 | PyObject *resultobj; | |
22664 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22665 | bool result; | |
22666 | PyObject * obj0 = 0 ; | |
22667 | char *kwnames[] = { | |
22668 | (char *) "self", NULL | |
22669 | }; | |
22670 | ||
22671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
22672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22673 | { | |
22674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22675 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
22676 | ||
22677 | wxPyEndAllowThreads(__tstate); | |
22678 | if (PyErr_Occurred()) SWIG_fail; | |
22679 | } | |
8edf1c75 | 22680 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22681 | return resultobj; |
22682 | fail: | |
22683 | return NULL; | |
22684 | } | |
22685 | ||
22686 | ||
22687 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22688 | PyObject *resultobj; | |
22689 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22690 | long arg2 ; | |
22691 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22692 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22693 | char *kwnames[] = { |
22694 | (char *) "self",(char *) "style", NULL | |
22695 | }; | |
22696 | ||
8edf1c75 | 22697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22699 | { |
22700 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22701 | if (PyErr_Occurred()) SWIG_fail; | |
22702 | } | |
d14a1e28 RD |
22703 | { |
22704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22705 | (arg1)->SetWindowStyleFlag(arg2); | |
22706 | ||
22707 | wxPyEndAllowThreads(__tstate); | |
22708 | if (PyErr_Occurred()) SWIG_fail; | |
22709 | } | |
22710 | Py_INCREF(Py_None); resultobj = Py_None; | |
22711 | return resultobj; | |
22712 | fail: | |
22713 | return NULL; | |
22714 | } | |
22715 | ||
22716 | ||
22717 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22718 | PyObject *resultobj; | |
22719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22720 | long result; | |
22721 | PyObject * obj0 = 0 ; | |
22722 | char *kwnames[] = { | |
22723 | (char *) "self", NULL | |
22724 | }; | |
22725 | ||
22726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
22727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22728 | { | |
22729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22730 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
22731 | ||
22732 | wxPyEndAllowThreads(__tstate); | |
22733 | if (PyErr_Occurred()) SWIG_fail; | |
22734 | } | |
8edf1c75 | 22735 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22736 | return resultobj; |
22737 | fail: | |
22738 | return NULL; | |
22739 | } | |
22740 | ||
22741 | ||
22742 | static PyObject *_wrap_Window_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22743 | PyObject *resultobj; | |
22744 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22745 | long arg2 ; | |
22746 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22747 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22748 | char *kwnames[] = { |
22749 | (char *) "self",(char *) "style", NULL | |
22750 | }; | |
22751 | ||
8edf1c75 | 22752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22754 | { |
22755 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22756 | if (PyErr_Occurred()) SWIG_fail; | |
22757 | } | |
d14a1e28 RD |
22758 | { |
22759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22760 | (arg1)->SetWindowStyle(arg2); | |
22761 | ||
22762 | wxPyEndAllowThreads(__tstate); | |
22763 | if (PyErr_Occurred()) SWIG_fail; | |
22764 | } | |
22765 | Py_INCREF(Py_None); resultobj = Py_None; | |
22766 | return resultobj; | |
22767 | fail: | |
22768 | return NULL; | |
22769 | } | |
22770 | ||
22771 | ||
22772 | static PyObject *_wrap_Window_GetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22773 | PyObject *resultobj; | |
22774 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22775 | long result; | |
22776 | PyObject * obj0 = 0 ; | |
22777 | char *kwnames[] = { | |
22778 | (char *) "self", NULL | |
22779 | }; | |
22780 | ||
22781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyle",kwnames,&obj0)) goto fail; | |
22782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22783 | { | |
22784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22785 | result = (long)((wxWindow const *)arg1)->GetWindowStyle(); | |
22786 | ||
22787 | wxPyEndAllowThreads(__tstate); | |
22788 | if (PyErr_Occurred()) SWIG_fail; | |
22789 | } | |
8edf1c75 | 22790 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22791 | return resultobj; |
22792 | fail: | |
22793 | return NULL; | |
22794 | } | |
22795 | ||
22796 | ||
22797 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22798 | PyObject *resultobj; | |
22799 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22800 | int arg2 ; | |
22801 | bool result; | |
22802 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22803 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22804 | char *kwnames[] = { |
22805 | (char *) "self",(char *) "flag", NULL | |
22806 | }; | |
22807 | ||
8edf1c75 | 22808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22810 | { |
22811 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22812 | if (PyErr_Occurred()) SWIG_fail; | |
22813 | } | |
d14a1e28 RD |
22814 | { |
22815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22816 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
22817 | ||
22818 | wxPyEndAllowThreads(__tstate); | |
22819 | if (PyErr_Occurred()) SWIG_fail; | |
22820 | } | |
8edf1c75 | 22821 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22822 | return resultobj; |
22823 | fail: | |
22824 | return NULL; | |
22825 | } | |
22826 | ||
22827 | ||
22828 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22829 | PyObject *resultobj; | |
22830 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22831 | bool result; | |
22832 | PyObject * obj0 = 0 ; | |
22833 | char *kwnames[] = { | |
22834 | (char *) "self", NULL | |
22835 | }; | |
22836 | ||
22837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
22838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22839 | { | |
22840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22841 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
22842 | ||
22843 | wxPyEndAllowThreads(__tstate); | |
22844 | if (PyErr_Occurred()) SWIG_fail; | |
22845 | } | |
8edf1c75 | 22846 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22847 | return resultobj; |
22848 | fail: | |
22849 | return NULL; | |
22850 | } | |
22851 | ||
22852 | ||
22853 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22854 | PyObject *resultobj; | |
22855 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22856 | long arg2 ; | |
22857 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22858 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22859 | char *kwnames[] = { |
22860 | (char *) "self",(char *) "exStyle", NULL | |
22861 | }; | |
22862 | ||
8edf1c75 | 22863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22865 | { |
22866 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22867 | if (PyErr_Occurred()) SWIG_fail; | |
22868 | } | |
d14a1e28 RD |
22869 | { |
22870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22871 | (arg1)->SetExtraStyle(arg2); | |
22872 | ||
22873 | wxPyEndAllowThreads(__tstate); | |
22874 | if (PyErr_Occurred()) SWIG_fail; | |
22875 | } | |
22876 | Py_INCREF(Py_None); resultobj = Py_None; | |
22877 | return resultobj; | |
22878 | fail: | |
22879 | return NULL; | |
22880 | } | |
22881 | ||
22882 | ||
22883 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22884 | PyObject *resultobj; | |
22885 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22886 | long result; | |
22887 | PyObject * obj0 = 0 ; | |
22888 | char *kwnames[] = { | |
22889 | (char *) "self", NULL | |
22890 | }; | |
22891 | ||
22892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
22893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22894 | { | |
22895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22896 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
22897 | ||
22898 | wxPyEndAllowThreads(__tstate); | |
22899 | if (PyErr_Occurred()) SWIG_fail; | |
22900 | } | |
8edf1c75 | 22901 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
22902 | return resultobj; |
22903 | fail: | |
22904 | return NULL; | |
22905 | } | |
22906 | ||
22907 | ||
22908 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22909 | PyObject *resultobj; | |
22910 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22911 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22912 | PyObject * obj0 = 0 ; |
22913 | PyObject * obj1 = 0 ; | |
22914 | char *kwnames[] = { | |
22915 | (char *) "self",(char *) "modal", NULL | |
22916 | }; | |
22917 | ||
22918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
22919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22920 | if (obj1) { | |
83448d71 | 22921 | { |
8edf1c75 | 22922 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
22923 | if (PyErr_Occurred()) SWIG_fail; |
22924 | } | |
d14a1e28 RD |
22925 | } |
22926 | { | |
22927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22928 | (arg1)->MakeModal(arg2); | |
22929 | ||
22930 | wxPyEndAllowThreads(__tstate); | |
22931 | if (PyErr_Occurred()) SWIG_fail; | |
22932 | } | |
22933 | Py_INCREF(Py_None); resultobj = Py_None; | |
22934 | return resultobj; | |
22935 | fail: | |
22936 | return NULL; | |
22937 | } | |
22938 | ||
22939 | ||
22940 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22941 | PyObject *resultobj; | |
22942 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22943 | bool arg2 ; | |
22944 | PyObject * obj0 = 0 ; | |
22945 | PyObject * obj1 = 0 ; | |
22946 | char *kwnames[] = { | |
22947 | (char *) "self",(char *) "enableTheme", NULL | |
22948 | }; | |
22949 | ||
22950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
22951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 22952 | { |
8edf1c75 | 22953 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
22954 | if (PyErr_Occurred()) SWIG_fail; |
22955 | } | |
d14a1e28 RD |
22956 | { |
22957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22958 | (arg1)->SetThemeEnabled(arg2); | |
22959 | ||
22960 | wxPyEndAllowThreads(__tstate); | |
22961 | if (PyErr_Occurred()) SWIG_fail; | |
22962 | } | |
22963 | Py_INCREF(Py_None); resultobj = Py_None; | |
22964 | return resultobj; | |
22965 | fail: | |
22966 | return NULL; | |
22967 | } | |
22968 | ||
22969 | ||
22970 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22971 | PyObject *resultobj; | |
22972 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22973 | bool result; | |
22974 | PyObject * obj0 = 0 ; | |
22975 | char *kwnames[] = { | |
22976 | (char *) "self", NULL | |
22977 | }; | |
22978 | ||
22979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
22980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22981 | { | |
22982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22983 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
22984 | ||
22985 | wxPyEndAllowThreads(__tstate); | |
22986 | if (PyErr_Occurred()) SWIG_fail; | |
22987 | } | |
8edf1c75 | 22988 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22989 | return resultobj; |
22990 | fail: | |
22991 | return NULL; | |
22992 | } | |
22993 | ||
22994 | ||
22995 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22996 | PyObject *resultobj; | |
22997 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22998 | bool result; | |
22999 | PyObject * obj0 = 0 ; | |
23000 | char *kwnames[] = { | |
23001 | (char *) "self", NULL | |
23002 | }; | |
23003 | ||
23004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
23005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23006 | { | |
23007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23008 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
23009 | ||
23010 | wxPyEndAllowThreads(__tstate); | |
23011 | if (PyErr_Occurred()) SWIG_fail; | |
23012 | } | |
8edf1c75 | 23013 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
23014 | return resultobj; |
23015 | fail: | |
23016 | return NULL; | |
23017 | } | |
23018 | ||
23019 | ||
23020 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23021 | PyObject *resultobj; | |
23022 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23023 | PyObject * obj0 = 0 ; | |
23024 | char *kwnames[] = { | |
23025 | (char *) "self", NULL | |
23026 | }; | |
23027 | ||
23028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
23029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23030 | { | |
23031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23032 | (arg1)->SetFocus(); | |
23033 | ||
23034 | wxPyEndAllowThreads(__tstate); | |
23035 | if (PyErr_Occurred()) SWIG_fail; | |
23036 | } | |
23037 | Py_INCREF(Py_None); resultobj = Py_None; | |
23038 | return resultobj; | |
23039 | fail: | |
23040 | return NULL; | |
23041 | } | |
23042 | ||
23043 | ||
23044 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23045 | PyObject *resultobj; | |
23046 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23047 | PyObject * obj0 = 0 ; | |
23048 | char *kwnames[] = { | |
23049 | (char *) "self", NULL | |
23050 | }; | |
23051 | ||
23052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
23053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23054 | { | |
23055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23056 | (arg1)->SetFocusFromKbd(); | |
23057 | ||
23058 | wxPyEndAllowThreads(__tstate); | |
23059 | if (PyErr_Occurred()) SWIG_fail; | |
23060 | } | |
23061 | Py_INCREF(Py_None); resultobj = Py_None; | |
23062 | return resultobj; | |
23063 | fail: | |
23064 | return NULL; | |
23065 | } | |
23066 | ||
23067 | ||
23068 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23069 | PyObject *resultobj; | |
23070 | wxWindow *result; | |
23071 | char *kwnames[] = { | |
23072 | NULL | |
23073 | }; | |
23074 | ||
23075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
23076 | { | |
23077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23078 | result = (wxWindow *)wxWindow::FindFocus(); | |
23079 | ||
23080 | wxPyEndAllowThreads(__tstate); | |
23081 | if (PyErr_Occurred()) SWIG_fail; | |
23082 | } | |
23083 | { | |
23084 | resultobj = wxPyMake_wxObject(result); | |
23085 | } | |
23086 | return resultobj; | |
23087 | fail: | |
23088 | return NULL; | |
23089 | } | |
23090 | ||
23091 | ||
23092 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23093 | PyObject *resultobj; | |
23094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23095 | bool result; | |
23096 | PyObject * obj0 = 0 ; | |
23097 | char *kwnames[] = { | |
23098 | (char *) "self", NULL | |
23099 | }; | |
23100 | ||
23101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
23102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23103 | { | |
23104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23105 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
23106 | ||
23107 | wxPyEndAllowThreads(__tstate); | |
23108 | if (PyErr_Occurred()) SWIG_fail; | |
23109 | } | |
8edf1c75 | 23110 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
23111 | return resultobj; |
23112 | fail: | |
23113 | return NULL; | |
23114 | } | |
23115 | ||
23116 | ||
23117 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23118 | PyObject *resultobj; | |
23119 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23120 | bool result; | |
23121 | PyObject * obj0 = 0 ; | |
23122 | char *kwnames[] = { | |
23123 | (char *) "self", NULL | |
23124 | }; | |
23125 | ||
23126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
23127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23128 | { | |
23129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23130 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
23131 | ||
23132 | wxPyEndAllowThreads(__tstate); | |
23133 | if (PyErr_Occurred()) SWIG_fail; | |
23134 | } | |
8edf1c75 | 23135 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
23136 | return resultobj; |
23137 | fail: | |
23138 | return NULL; | |
23139 | } | |
23140 | ||
23141 | ||
23142 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23143 | PyObject *resultobj; | |
23144 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23145 | wxWindow *result; | |
23146 | PyObject * obj0 = 0 ; | |
23147 | char *kwnames[] = { | |
23148 | (char *) "self", NULL | |
23149 | }; | |
23150 | ||
23151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
23152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23153 | { | |
23154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23155 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
23156 | ||
23157 | wxPyEndAllowThreads(__tstate); | |
23158 | if (PyErr_Occurred()) SWIG_fail; | |
23159 | } | |
23160 | { | |
23161 | resultobj = wxPyMake_wxObject(result); | |
23162 | } | |
23163 | return resultobj; | |
23164 | fail: | |
23165 | return NULL; | |
23166 | } | |
23167 | ||
23168 | ||
23169 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23170 | PyObject *resultobj; | |
23171 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23172 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23173 | wxWindow *result; | |
23174 | PyObject * obj0 = 0 ; | |
23175 | PyObject * obj1 = 0 ; | |
23176 | char *kwnames[] = { | |
23177 | (char *) "self",(char *) "child", NULL | |
23178 | }; | |
23179 | ||
23180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
23181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23182 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23183 | { | |
23184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23185 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
23186 | ||
23187 | wxPyEndAllowThreads(__tstate); | |
23188 | if (PyErr_Occurred()) SWIG_fail; | |
23189 | } | |
23190 | { | |
23191 | resultobj = wxPyMake_wxObject(result); | |
23192 | } | |
23193 | return resultobj; | |
23194 | fail: | |
23195 | return NULL; | |
23196 | } | |
23197 | ||
23198 | ||
23199 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23200 | PyObject *resultobj; | |
23201 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23202 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23203 | PyObject * obj0 = 0 ; | |
23204 | PyObject * obj1 = 0 ; | |
23205 | char *kwnames[] = { | |
23206 | (char *) "self",(char *) "win", NULL | |
23207 | }; | |
23208 | ||
23209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
23210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23211 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23212 | { | |
23213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23214 | (arg1)->SetTmpDefaultItem(arg2); | |
23215 | ||
23216 | wxPyEndAllowThreads(__tstate); | |
23217 | if (PyErr_Occurred()) SWIG_fail; | |
23218 | } | |
23219 | Py_INCREF(Py_None); resultobj = Py_None; | |
23220 | return resultobj; | |
23221 | fail: | |
23222 | return NULL; | |
23223 | } | |
23224 | ||
23225 | ||
23226 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23227 | PyObject *resultobj; | |
23228 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23229 | PyObject *result; | |
23230 | PyObject * obj0 = 0 ; | |
23231 | char *kwnames[] = { | |
23232 | (char *) "self", NULL | |
23233 | }; | |
23234 | ||
23235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
23236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23237 | { | |
23238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23239 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
23240 | ||
23241 | wxPyEndAllowThreads(__tstate); | |
23242 | if (PyErr_Occurred()) SWIG_fail; | |
23243 | } | |
23244 | resultobj = result; | |
23245 | return resultobj; | |
23246 | fail: | |
23247 | return NULL; | |
23248 | } | |
23249 | ||
23250 | ||
23251 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23252 | PyObject *resultobj; | |
23253 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23254 | wxWindow *result; | |
23255 | PyObject * obj0 = 0 ; | |
23256 | char *kwnames[] = { | |
23257 | (char *) "self", NULL | |
23258 | }; | |
23259 | ||
23260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
23261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23262 | { | |
23263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23264 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
23265 | ||
23266 | wxPyEndAllowThreads(__tstate); | |
23267 | if (PyErr_Occurred()) SWIG_fail; | |
23268 | } | |
23269 | { | |
23270 | resultobj = wxPyMake_wxObject(result); | |
23271 | } | |
23272 | return resultobj; | |
23273 | fail: | |
23274 | return NULL; | |
23275 | } | |
23276 | ||
23277 | ||
23278 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23279 | PyObject *resultobj; | |
23280 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23281 | wxWindow *result; | |
23282 | PyObject * obj0 = 0 ; | |
23283 | char *kwnames[] = { | |
23284 | (char *) "self", NULL | |
23285 | }; | |
23286 | ||
23287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
23288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23289 | { | |
23290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23291 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
23292 | ||
23293 | wxPyEndAllowThreads(__tstate); | |
23294 | if (PyErr_Occurred()) SWIG_fail; | |
23295 | } | |
23296 | { | |
23297 | resultobj = wxPyMake_wxObject(result); | |
23298 | } | |
23299 | return resultobj; | |
23300 | fail: | |
23301 | return NULL; | |
23302 | } | |
23303 | ||
23304 | ||
23305 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23306 | PyObject *resultobj; | |
23307 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23308 | bool result; | |
23309 | PyObject * obj0 = 0 ; | |
23310 | char *kwnames[] = { | |
23311 | (char *) "self", NULL | |
23312 | }; | |
23313 | ||
23314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
23315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23316 | { | |
23317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23318 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
23319 | ||
23320 | wxPyEndAllowThreads(__tstate); | |
23321 | if (PyErr_Occurred()) SWIG_fail; | |
23322 | } | |
8edf1c75 | 23323 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
23324 | return resultobj; |
23325 | fail: | |
23326 | return NULL; | |
23327 | } | |
23328 | ||
23329 | ||
23330 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23331 | PyObject *resultobj; | |
23332 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23333 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23334 | bool result; | |
23335 | PyObject * obj0 = 0 ; | |
23336 | PyObject * obj1 = 0 ; | |
23337 | char *kwnames[] = { | |
23338 | (char *) "self",(char *) "newParent", NULL | |
23339 | }; | |
23340 | ||
23341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
23342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23343 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23344 | { | |
23345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23346 | result = (bool)(arg1)->Reparent(arg2); | |
23347 | ||
23348 | wxPyEndAllowThreads(__tstate); | |
23349 | if (PyErr_Occurred()) SWIG_fail; | |
23350 | } | |
8edf1c75 | 23351 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
23352 | return resultobj; |
23353 | fail: | |
23354 | return NULL; | |
23355 | } | |
23356 | ||
23357 | ||
23358 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23359 | PyObject *resultobj; | |
23360 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23361 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23362 | PyObject * obj0 = 0 ; | |
23363 | PyObject * obj1 = 0 ; | |
23364 | char *kwnames[] = { | |
23365 | (char *) "self",(char *) "child", NULL | |
23366 | }; | |
23367 | ||
23368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
23369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23370 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23371 | { | |
23372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23373 | (arg1)->AddChild(arg2); | |
23374 | ||
23375 | wxPyEndAllowThreads(__tstate); | |
23376 | if (PyErr_Occurred()) SWIG_fail; | |
23377 | } | |
23378 | Py_INCREF(Py_None); resultobj = Py_None; | |
23379 | return resultobj; | |
23380 | fail: | |
23381 | return NULL; | |
23382 | } | |
23383 | ||
23384 | ||
23385 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23386 | PyObject *resultobj; | |
23387 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23388 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23389 | PyObject * obj0 = 0 ; | |
23390 | PyObject * obj1 = 0 ; | |
23391 | char *kwnames[] = { | |
23392 | (char *) "self",(char *) "child", NULL | |
23393 | }; | |
23394 | ||
23395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
23396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23397 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23398 | { | |
23399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23400 | (arg1)->RemoveChild(arg2); | |
23401 | ||
23402 | wxPyEndAllowThreads(__tstate); | |
23403 | if (PyErr_Occurred()) SWIG_fail; | |
23404 | } | |
23405 | Py_INCREF(Py_None); resultobj = Py_None; | |
23406 | return resultobj; | |
23407 | fail: | |
23408 | return NULL; | |
23409 | } | |
23410 | ||
23411 | ||
23412 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23413 | PyObject *resultobj; | |
23414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23415 | long arg2 ; | |
23416 | wxWindow *result; | |
23417 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23418 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23419 | char *kwnames[] = { |
23420 | (char *) "self",(char *) "winid", NULL | |
23421 | }; | |
23422 | ||
8edf1c75 | 23423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23425 | { |
23426 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
23427 | if (PyErr_Occurred()) SWIG_fail; | |
23428 | } | |
d14a1e28 RD |
23429 | { |
23430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23431 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
23432 | ||
23433 | wxPyEndAllowThreads(__tstate); | |
23434 | if (PyErr_Occurred()) SWIG_fail; | |
23435 | } | |
23436 | { | |
23437 | resultobj = wxPyMake_wxObject(result); | |
23438 | } | |
23439 | return resultobj; | |
23440 | fail: | |
23441 | return NULL; | |
23442 | } | |
23443 | ||
23444 | ||
23445 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23446 | PyObject *resultobj; | |
23447 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23448 | wxString *arg2 = 0 ; | |
23449 | wxWindow *result; | |
423f194a | 23450 | bool temp2 = False ; |
d14a1e28 RD |
23451 | PyObject * obj0 = 0 ; |
23452 | PyObject * obj1 = 0 ; | |
23453 | char *kwnames[] = { | |
23454 | (char *) "self",(char *) "name", NULL | |
23455 | }; | |
23456 | ||
23457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
23458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23459 | { | |
23460 | arg2 = wxString_in_helper(obj1); | |
23461 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23462 | temp2 = True; |
d14a1e28 RD |
23463 | } |
23464 | { | |
23465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23466 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
23467 | ||
23468 | wxPyEndAllowThreads(__tstate); | |
23469 | if (PyErr_Occurred()) SWIG_fail; | |
23470 | } | |
23471 | { | |
23472 | resultobj = wxPyMake_wxObject(result); | |
23473 | } | |
23474 | { | |
23475 | if (temp2) | |
23476 | delete arg2; | |
23477 | } | |
23478 | return resultobj; | |
23479 | fail: | |
23480 | { | |
23481 | if (temp2) | |
23482 | delete arg2; | |
23483 | } | |
23484 | return NULL; | |
23485 | } | |
23486 | ||
23487 | ||
23488 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23489 | PyObject *resultobj; | |
23490 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23491 | wxEvtHandler *result; | |
23492 | PyObject * obj0 = 0 ; | |
23493 | char *kwnames[] = { | |
23494 | (char *) "self", NULL | |
23495 | }; | |
23496 | ||
23497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
23498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23499 | { | |
23500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23501 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
23502 | ||
23503 | wxPyEndAllowThreads(__tstate); | |
23504 | if (PyErr_Occurred()) SWIG_fail; | |
23505 | } | |
23506 | { | |
23507 | resultobj = wxPyMake_wxObject(result); | |
23508 | } | |
23509 | return resultobj; | |
23510 | fail: | |
23511 | return NULL; | |
23512 | } | |
23513 | ||
23514 | ||
23515 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23516 | PyObject *resultobj; | |
23517 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23518 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23519 | PyObject * obj0 = 0 ; | |
23520 | PyObject * obj1 = 0 ; | |
23521 | char *kwnames[] = { | |
23522 | (char *) "self",(char *) "handler", NULL | |
23523 | }; | |
23524 | ||
23525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
23526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23527 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23528 | { | |
23529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23530 | (arg1)->SetEventHandler(arg2); | |
23531 | ||
23532 | wxPyEndAllowThreads(__tstate); | |
23533 | if (PyErr_Occurred()) SWIG_fail; | |
23534 | } | |
23535 | Py_INCREF(Py_None); resultobj = Py_None; | |
23536 | return resultobj; | |
23537 | fail: | |
23538 | return NULL; | |
23539 | } | |
23540 | ||
23541 | ||
23542 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23543 | PyObject *resultobj; | |
23544 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23545 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23546 | PyObject * obj0 = 0 ; | |
23547 | PyObject * obj1 = 0 ; | |
23548 | char *kwnames[] = { | |
23549 | (char *) "self",(char *) "handler", NULL | |
23550 | }; | |
23551 | ||
23552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
23553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23554 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23555 | { | |
23556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23557 | (arg1)->PushEventHandler(arg2); | |
23558 | ||
23559 | wxPyEndAllowThreads(__tstate); | |
23560 | if (PyErr_Occurred()) SWIG_fail; | |
23561 | } | |
23562 | Py_INCREF(Py_None); resultobj = Py_None; | |
23563 | return resultobj; | |
23564 | fail: | |
23565 | return NULL; | |
23566 | } | |
23567 | ||
23568 | ||
23569 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23570 | PyObject *resultobj; | |
23571 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23572 | bool arg2 = (bool) False ; |
d14a1e28 RD |
23573 | wxEvtHandler *result; |
23574 | PyObject * obj0 = 0 ; | |
23575 | PyObject * obj1 = 0 ; | |
23576 | char *kwnames[] = { | |
23577 | (char *) "self",(char *) "deleteHandler", NULL | |
23578 | }; | |
23579 | ||
23580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
23581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23582 | if (obj1) { | |
83448d71 | 23583 | { |
8edf1c75 | 23584 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
23585 | if (PyErr_Occurred()) SWIG_fail; |
23586 | } | |
d14a1e28 RD |
23587 | } |
23588 | { | |
23589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23590 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
23591 | ||
23592 | wxPyEndAllowThreads(__tstate); | |
23593 | if (PyErr_Occurred()) SWIG_fail; | |
23594 | } | |
23595 | { | |
23596 | resultobj = wxPyMake_wxObject(result); | |
23597 | } | |
23598 | return resultobj; | |
23599 | fail: | |
23600 | return NULL; | |
23601 | } | |
23602 | ||
23603 | ||
23604 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23605 | PyObject *resultobj; | |
23606 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23607 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23608 | bool result; | |
23609 | PyObject * obj0 = 0 ; | |
23610 | PyObject * obj1 = 0 ; | |
23611 | char *kwnames[] = { | |
23612 | (char *) "self",(char *) "handler", NULL | |
23613 | }; | |
23614 | ||
23615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
23616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23617 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23618 | { | |
23619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23620 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
23621 | ||
23622 | wxPyEndAllowThreads(__tstate); | |
23623 | if (PyErr_Occurred()) SWIG_fail; | |
23624 | } | |
8edf1c75 | 23625 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
23626 | return resultobj; |
23627 | fail: | |
23628 | return NULL; | |
23629 | } | |
23630 | ||
23631 | ||
23632 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23633 | PyObject *resultobj; | |
23634 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23635 | wxValidator *arg2 = 0 ; | |
23636 | PyObject * obj0 = 0 ; | |
23637 | PyObject * obj1 = 0 ; | |
23638 | char *kwnames[] = { | |
23639 | (char *) "self",(char *) "validator", NULL | |
23640 | }; | |
23641 | ||
23642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
23643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23644 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23645 | if (arg2 == NULL) { | |
23646 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23647 | } | |
23648 | { | |
23649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23650 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
23651 | ||
23652 | wxPyEndAllowThreads(__tstate); | |
23653 | if (PyErr_Occurred()) SWIG_fail; | |
23654 | } | |
23655 | Py_INCREF(Py_None); resultobj = Py_None; | |
23656 | return resultobj; | |
23657 | fail: | |
23658 | return NULL; | |
23659 | } | |
23660 | ||
23661 | ||
23662 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23663 | PyObject *resultobj; | |
23664 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23665 | wxValidator *result; | |
23666 | PyObject * obj0 = 0 ; | |
23667 | char *kwnames[] = { | |
23668 | (char *) "self", NULL | |
23669 | }; | |
23670 | ||
23671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
23672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23673 | { | |
23674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23675 | result = (wxValidator *)(arg1)->GetValidator(); | |
23676 | ||
23677 | wxPyEndAllowThreads(__tstate); | |
23678 | if (PyErr_Occurred()) SWIG_fail; | |
23679 | } | |
23680 | { | |
23681 | resultobj = wxPyMake_wxObject(result); | |
23682 | } | |
23683 | return resultobj; | |
23684 | fail: | |
23685 | return NULL; | |
23686 | } | |
23687 | ||
23688 | ||
23689 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23690 | PyObject *resultobj; | |
23691 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23692 | wxAcceleratorTable *arg2 = 0 ; | |
23693 | PyObject * obj0 = 0 ; | |
23694 | PyObject * obj1 = 0 ; | |
23695 | char *kwnames[] = { | |
23696 | (char *) "self",(char *) "accel", NULL | |
23697 | }; | |
23698 | ||
23699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
23700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23701 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23702 | if (arg2 == NULL) { | |
23703 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23704 | } | |
23705 | { | |
23706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23707 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
23708 | ||
23709 | wxPyEndAllowThreads(__tstate); | |
23710 | if (PyErr_Occurred()) SWIG_fail; | |
23711 | } | |
23712 | Py_INCREF(Py_None); resultobj = Py_None; | |
23713 | return resultobj; | |
23714 | fail: | |
23715 | return NULL; | |
23716 | } | |
23717 | ||
23718 | ||
23719 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23720 | PyObject *resultobj; | |
23721 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23722 | wxAcceleratorTable *result; | |
23723 | PyObject * obj0 = 0 ; | |
23724 | char *kwnames[] = { | |
23725 | (char *) "self", NULL | |
23726 | }; | |
23727 | ||
23728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
23729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23730 | { | |
23731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23732 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
23733 | ||
23734 | wxPyEndAllowThreads(__tstate); | |
23735 | if (PyErr_Occurred()) SWIG_fail; | |
23736 | } | |
23737 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 0); | |
23738 | return resultobj; | |
23739 | fail: | |
23740 | return NULL; | |
23741 | } | |
23742 | ||
23743 | ||
23744 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23745 | PyObject *resultobj; | |
23746 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23747 | int arg2 ; | |
23748 | int arg3 ; | |
23749 | int arg4 ; | |
23750 | bool result; | |
23751 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23752 | PyObject * obj1 = 0 ; |
23753 | PyObject * obj2 = 0 ; | |
23754 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
23755 | char *kwnames[] = { |
23756 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
23757 | }; | |
23758 | ||
8edf1c75 | 23759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 23760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23761 | { |
23762 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23763 | if (PyErr_Occurred()) SWIG_fail; | |
23764 | } | |
23765 | { | |
23766 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
23767 | if (PyErr_Occurred()) SWIG_fail; | |
23768 | } | |
23769 | { | |
23770 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
23771 | if (PyErr_Occurred()) SWIG_fail; | |
23772 | } | |
d14a1e28 RD |
23773 | { |
23774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23775 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
23776 | ||
23777 | wxPyEndAllowThreads(__tstate); | |
23778 | if (PyErr_Occurred()) SWIG_fail; | |
23779 | } | |
8edf1c75 | 23780 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
23781 | return resultobj; |
23782 | fail: | |
23783 | return NULL; | |
23784 | } | |
23785 | ||
23786 | ||
23787 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23788 | PyObject *resultobj; | |
23789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23790 | int arg2 ; | |
23791 | bool result; | |
23792 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23793 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23794 | char *kwnames[] = { |
23795 | (char *) "self",(char *) "hotkeyId", NULL | |
23796 | }; | |
23797 | ||
8edf1c75 | 23798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 23799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
23800 | { |
23801 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
23802 | if (PyErr_Occurred()) SWIG_fail; | |
23803 | } | |
d14a1e28 RD |
23804 | { |
23805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23806 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
23807 | ||
23808 | wxPyEndAllowThreads(__tstate); | |
23809 | if (PyErr_Occurred()) SWIG_fail; | |
23810 | } | |
8edf1c75 | 23811 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
23812 | return resultobj; |
23813 | fail: | |
23814 | return NULL; | |
23815 | } | |
23816 | ||
23817 | ||
23818 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23819 | PyObject *resultobj; | |
23820 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23821 | wxPoint *arg2 = 0 ; | |
23822 | wxPoint result; | |
23823 | wxPoint temp2 ; | |
23824 | PyObject * obj0 = 0 ; | |
23825 | PyObject * obj1 = 0 ; | |
23826 | char *kwnames[] = { | |
23827 | (char *) "self",(char *) "pt", NULL | |
23828 | }; | |
23829 | ||
23830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
23831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23832 | { | |
23833 | arg2 = &temp2; | |
23834 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23835 | } | |
23836 | { | |
23837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23838 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
23839 | ||
23840 | wxPyEndAllowThreads(__tstate); | |
23841 | if (PyErr_Occurred()) SWIG_fail; | |
23842 | } | |
23843 | { | |
23844 | wxPoint * resultptr; | |
23845 | resultptr = new wxPoint((wxPoint &) result); | |
23846 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23847 | } | |
23848 | return resultobj; | |
23849 | fail: | |
23850 | return NULL; | |
23851 | } | |
23852 | ||
23853 | ||
23854 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23855 | PyObject *resultobj; | |
23856 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23857 | wxSize *arg2 = 0 ; | |
23858 | wxSize result; | |
23859 | wxSize temp2 ; | |
23860 | PyObject * obj0 = 0 ; | |
23861 | PyObject * obj1 = 0 ; | |
23862 | char *kwnames[] = { | |
23863 | (char *) "self",(char *) "sz", NULL | |
23864 | }; | |
23865 | ||
23866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
23867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23868 | { | |
23869 | arg2 = &temp2; | |
23870 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23871 | } | |
23872 | { | |
23873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23874 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
23875 | ||
23876 | wxPyEndAllowThreads(__tstate); | |
23877 | if (PyErr_Occurred()) SWIG_fail; | |
23878 | } | |
23879 | { | |
23880 | wxSize * resultptr; | |
23881 | resultptr = new wxSize((wxSize &) result); | |
23882 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
23883 | } | |
23884 | return resultobj; | |
23885 | fail: | |
23886 | return NULL; | |
23887 | } | |
23888 | ||
23889 | ||
23890 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23891 | PyObject *resultobj; | |
23892 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23893 | wxPoint *arg2 = 0 ; | |
23894 | wxPoint result; | |
23895 | wxPoint temp2 ; | |
23896 | PyObject * obj0 = 0 ; | |
23897 | PyObject * obj1 = 0 ; | |
23898 | char *kwnames[] = { | |
23899 | (char *) "self",(char *) "pt", NULL | |
23900 | }; | |
23901 | ||
23902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
23903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23904 | { | |
23905 | arg2 = &temp2; | |
23906 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23907 | } | |
23908 | { | |
23909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23910 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
23911 | ||
23912 | wxPyEndAllowThreads(__tstate); | |
23913 | if (PyErr_Occurred()) SWIG_fail; | |
23914 | } | |
23915 | { | |
23916 | wxPoint * resultptr; | |
23917 | resultptr = new wxPoint((wxPoint &) result); | |
23918 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23919 | } | |
23920 | return resultobj; | |
23921 | fail: | |
23922 | return NULL; | |
23923 | } | |
23924 | ||
23925 | ||
23926 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23927 | PyObject *resultobj; | |
23928 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23929 | wxSize *arg2 = 0 ; | |
23930 | wxSize result; | |
23931 | wxSize temp2 ; | |
23932 | PyObject * obj0 = 0 ; | |
23933 | PyObject * obj1 = 0 ; | |
23934 | char *kwnames[] = { | |
23935 | (char *) "self",(char *) "sz", NULL | |
23936 | }; | |
23937 | ||
23938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
23939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23940 | { | |
23941 | arg2 = &temp2; | |
23942 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23943 | } | |
23944 | { | |
23945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23946 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
23947 | ||
23948 | wxPyEndAllowThreads(__tstate); | |
23949 | if (PyErr_Occurred()) SWIG_fail; | |
23950 | } | |
23951 | { | |
23952 | wxSize * resultptr; | |
23953 | resultptr = new wxSize((wxSize &) result); | |
23954 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
23955 | } | |
23956 | return resultobj; | |
23957 | fail: | |
23958 | return NULL; | |
23959 | } | |
23960 | ||
23961 | ||
23962 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23963 | PyObject *resultobj; | |
23964 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23965 | wxPoint *arg2 = 0 ; | |
23966 | wxPoint result; | |
23967 | wxPoint temp2 ; | |
23968 | PyObject * obj0 = 0 ; | |
23969 | PyObject * obj1 = 0 ; | |
23970 | char *kwnames[] = { | |
23971 | (char *) "self",(char *) "pt", NULL | |
23972 | }; | |
23973 | ||
23974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
23975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23976 | { | |
23977 | arg2 = &temp2; | |
23978 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23979 | } | |
23980 | { | |
23981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23982 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
23983 | ||
23984 | wxPyEndAllowThreads(__tstate); | |
23985 | if (PyErr_Occurred()) SWIG_fail; | |
23986 | } | |
23987 | { | |
23988 | wxPoint * resultptr; | |
23989 | resultptr = new wxPoint((wxPoint &) result); | |
23990 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
23991 | } | |
23992 | return resultobj; | |
23993 | fail: | |
23994 | return NULL; | |
23995 | } | |
23996 | ||
23997 | ||
23998 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23999 | PyObject *resultobj; | |
24000 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24001 | wxSize *arg2 = 0 ; | |
24002 | wxSize result; | |
24003 | wxSize temp2 ; | |
24004 | PyObject * obj0 = 0 ; | |
24005 | PyObject * obj1 = 0 ; | |
24006 | char *kwnames[] = { | |
24007 | (char *) "self",(char *) "sz", NULL | |
24008 | }; | |
24009 | ||
24010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
24011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24012 | { | |
24013 | arg2 = &temp2; | |
24014 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24015 | } | |
24016 | { | |
24017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24018 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
24019 | ||
24020 | wxPyEndAllowThreads(__tstate); | |
24021 | if (PyErr_Occurred()) SWIG_fail; | |
24022 | } | |
24023 | { | |
24024 | wxSize * resultptr; | |
24025 | resultptr = new wxSize((wxSize &) result); | |
24026 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24027 | } | |
24028 | return resultobj; | |
24029 | fail: | |
24030 | return NULL; | |
24031 | } | |
24032 | ||
24033 | ||
24034 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24035 | PyObject *resultobj; | |
24036 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24037 | int arg2 ; | |
24038 | int arg3 ; | |
24039 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24040 | PyObject * obj1 = 0 ; |
24041 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24042 | char *kwnames[] = { |
24043 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24044 | }; | |
24045 | ||
8edf1c75 | 24046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 24047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
24048 | { |
24049 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
24050 | if (PyErr_Occurred()) SWIG_fail; | |
24051 | } | |
24052 | { | |
24053 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24054 | if (PyErr_Occurred()) SWIG_fail; | |
24055 | } | |
d14a1e28 RD |
24056 | { |
24057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24058 | (arg1)->WarpPointer(arg2,arg3); | |
24059 | ||
24060 | wxPyEndAllowThreads(__tstate); | |
24061 | if (PyErr_Occurred()) SWIG_fail; | |
24062 | } | |
24063 | Py_INCREF(Py_None); resultobj = Py_None; | |
24064 | return resultobj; | |
24065 | fail: | |
24066 | return NULL; | |
24067 | } | |
24068 | ||
24069 | ||
24070 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24071 | PyObject *resultobj; | |
24072 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24073 | PyObject * obj0 = 0 ; | |
24074 | char *kwnames[] = { | |
24075 | (char *) "self", NULL | |
24076 | }; | |
24077 | ||
24078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
24079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24080 | { | |
24081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24082 | (arg1)->CaptureMouse(); | |
24083 | ||
24084 | wxPyEndAllowThreads(__tstate); | |
24085 | if (PyErr_Occurred()) SWIG_fail; | |
24086 | } | |
24087 | Py_INCREF(Py_None); resultobj = Py_None; | |
24088 | return resultobj; | |
24089 | fail: | |
24090 | return NULL; | |
24091 | } | |
24092 | ||
24093 | ||
24094 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24095 | PyObject *resultobj; | |
24096 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24097 | PyObject * obj0 = 0 ; | |
24098 | char *kwnames[] = { | |
24099 | (char *) "self", NULL | |
24100 | }; | |
24101 | ||
24102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
24103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24104 | { | |
24105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24106 | (arg1)->ReleaseMouse(); | |
24107 | ||
24108 | wxPyEndAllowThreads(__tstate); | |
24109 | if (PyErr_Occurred()) SWIG_fail; | |
24110 | } | |
24111 | Py_INCREF(Py_None); resultobj = Py_None; | |
24112 | return resultobj; | |
24113 | fail: | |
24114 | return NULL; | |
24115 | } | |
24116 | ||
24117 | ||
24118 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24119 | PyObject *resultobj; | |
24120 | wxWindow *result; | |
24121 | char *kwnames[] = { | |
24122 | NULL | |
24123 | }; | |
24124 | ||
24125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
24126 | { | |
24127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24128 | result = (wxWindow *)wxWindow::GetCapture(); | |
24129 | ||
24130 | wxPyEndAllowThreads(__tstate); | |
24131 | if (PyErr_Occurred()) SWIG_fail; | |
24132 | } | |
24133 | { | |
24134 | resultobj = wxPyMake_wxObject(result); | |
24135 | } | |
24136 | return resultobj; | |
24137 | fail: | |
24138 | return NULL; | |
24139 | } | |
24140 | ||
24141 | ||
24142 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24143 | PyObject *resultobj; | |
24144 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24145 | bool result; | |
24146 | PyObject * obj0 = 0 ; | |
24147 | char *kwnames[] = { | |
24148 | (char *) "self", NULL | |
24149 | }; | |
24150 | ||
24151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
24152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24153 | { | |
24154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24155 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
24156 | ||
24157 | wxPyEndAllowThreads(__tstate); | |
24158 | if (PyErr_Occurred()) SWIG_fail; | |
24159 | } | |
8edf1c75 | 24160 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
24161 | return resultobj; |
24162 | fail: | |
24163 | return NULL; | |
24164 | } | |
24165 | ||
24166 | ||
24167 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24168 | PyObject *resultobj; | |
24169 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 24170 | bool arg2 = (bool) True ; |
d14a1e28 RD |
24171 | wxRect *arg3 = (wxRect *) NULL ; |
24172 | PyObject * obj0 = 0 ; | |
24173 | PyObject * obj1 = 0 ; | |
24174 | PyObject * obj2 = 0 ; | |
24175 | char *kwnames[] = { | |
24176 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
24177 | }; | |
24178 | ||
24179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24181 | if (obj1) { | |
83448d71 | 24182 | { |
8edf1c75 | 24183 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
24184 | if (PyErr_Occurred()) SWIG_fail; |
24185 | } | |
d14a1e28 RD |
24186 | } |
24187 | if (obj2) { | |
24188 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24189 | } | |
24190 | { | |
24191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24192 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
24193 | ||
24194 | wxPyEndAllowThreads(__tstate); | |
24195 | if (PyErr_Occurred()) SWIG_fail; | |
24196 | } | |
24197 | Py_INCREF(Py_None); resultobj = Py_None; | |
24198 | return resultobj; | |
24199 | fail: | |
24200 | return NULL; | |
24201 | } | |
24202 | ||
24203 | ||
24204 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24205 | PyObject *resultobj; | |
24206 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24207 | wxRect *arg2 = 0 ; | |
24208 | wxRect temp2 ; | |
24209 | PyObject * obj0 = 0 ; | |
24210 | PyObject * obj1 = 0 ; | |
24211 | char *kwnames[] = { | |
24212 | (char *) "self",(char *) "rect", NULL | |
24213 | }; | |
24214 | ||
24215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
24216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24217 | { | |
24218 | arg2 = &temp2; | |
24219 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24220 | } | |
24221 | { | |
24222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24223 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
24224 | ||
24225 | wxPyEndAllowThreads(__tstate); | |
24226 | if (PyErr_Occurred()) SWIG_fail; | |
24227 | } | |
24228 | Py_INCREF(Py_None); resultobj = Py_None; | |
24229 | return resultobj; | |
24230 | fail: | |
24231 | return NULL; | |
24232 | } | |
24233 | ||
24234 | ||
24235 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24236 | PyObject *resultobj; | |
24237 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24238 | PyObject * obj0 = 0 ; | |
24239 | char *kwnames[] = { | |
24240 | (char *) "self", NULL | |
24241 | }; | |
24242 | ||
24243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
24244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24245 | { | |
24246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24247 | (arg1)->Update(); | |
24248 | ||
24249 | wxPyEndAllowThreads(__tstate); | |
24250 | if (PyErr_Occurred()) SWIG_fail; | |
24251 | } | |
24252 | Py_INCREF(Py_None); resultobj = Py_None; | |
24253 | return resultobj; | |
24254 | fail: | |
24255 | return NULL; | |
24256 | } | |
24257 | ||
24258 | ||
24259 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24260 | PyObject *resultobj; | |
24261 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24262 | PyObject * obj0 = 0 ; | |
24263 | char *kwnames[] = { | |
24264 | (char *) "self", NULL | |
24265 | }; | |
24266 | ||
24267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
24268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24269 | { | |
24270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24271 | (arg1)->ClearBackground(); | |
24272 | ||
24273 | wxPyEndAllowThreads(__tstate); | |
24274 | if (PyErr_Occurred()) SWIG_fail; | |
24275 | } | |
24276 | Py_INCREF(Py_None); resultobj = Py_None; | |
24277 | return resultobj; | |
24278 | fail: | |
24279 | return NULL; | |
24280 | } | |
24281 | ||
24282 | ||
24283 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24284 | PyObject *resultobj; | |
24285 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24286 | PyObject * obj0 = 0 ; | |
24287 | char *kwnames[] = { | |
24288 | (char *) "self", NULL | |
24289 | }; | |
24290 | ||
24291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
24292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24293 | { | |
24294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24295 | (arg1)->Freeze(); | |
24296 | ||
24297 | wxPyEndAllowThreads(__tstate); | |
24298 | if (PyErr_Occurred()) SWIG_fail; | |
24299 | } | |
24300 | Py_INCREF(Py_None); resultobj = Py_None; | |
24301 | return resultobj; | |
24302 | fail: | |
24303 | return NULL; | |
24304 | } | |
24305 | ||
24306 | ||
24307 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24308 | PyObject *resultobj; | |
24309 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24310 | PyObject * obj0 = 0 ; | |
24311 | char *kwnames[] = { | |
24312 | (char *) "self", NULL | |
24313 | }; | |
24314 | ||
24315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
24316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24317 | { | |
24318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24319 | (arg1)->Thaw(); | |
24320 | ||
24321 | wxPyEndAllowThreads(__tstate); | |
24322 | if (PyErr_Occurred()) SWIG_fail; | |
24323 | } | |
24324 | Py_INCREF(Py_None); resultobj = Py_None; | |
24325 | return resultobj; | |
24326 | fail: | |
24327 | return NULL; | |
24328 | } | |
24329 | ||
24330 | ||
24331 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24332 | PyObject *resultobj; | |
24333 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24334 | wxDC *arg2 = 0 ; | |
24335 | PyObject * obj0 = 0 ; | |
24336 | PyObject * obj1 = 0 ; | |
24337 | char *kwnames[] = { | |
24338 | (char *) "self",(char *) "dc", NULL | |
24339 | }; | |
24340 | ||
24341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
24342 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24343 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24344 | if (arg2 == NULL) { | |
24345 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24346 | } | |
24347 | { | |
24348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24349 | (arg1)->PrepareDC(*arg2); | |
24350 | ||
24351 | wxPyEndAllowThreads(__tstate); | |
24352 | if (PyErr_Occurred()) SWIG_fail; | |
24353 | } | |
24354 | Py_INCREF(Py_None); resultobj = Py_None; | |
24355 | return resultobj; | |
24356 | fail: | |
24357 | return NULL; | |
24358 | } | |
24359 | ||
24360 | ||
24361 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24362 | PyObject *resultobj; | |
24363 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24364 | wxRegion *result; | |
24365 | PyObject * obj0 = 0 ; | |
24366 | char *kwnames[] = { | |
24367 | (char *) "self", NULL | |
24368 | }; | |
24369 | ||
24370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
24371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24372 | { | |
24373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24374 | { | |
24375 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
24376 | result = (wxRegion *) &_result_ref; | |
24377 | } | |
24378 | ||
24379 | wxPyEndAllowThreads(__tstate); | |
24380 | if (PyErr_Occurred()) SWIG_fail; | |
24381 | } | |
24382 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 0); | |
24383 | return resultobj; | |
24384 | fail: | |
24385 | return NULL; | |
24386 | } | |
24387 | ||
24388 | ||
24389 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24390 | PyObject *resultobj; | |
24391 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24392 | wxRect result; | |
24393 | PyObject * obj0 = 0 ; | |
24394 | char *kwnames[] = { | |
24395 | (char *) "self", NULL | |
24396 | }; | |
24397 | ||
24398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
24399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24400 | { | |
24401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24402 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
24403 | ||
24404 | wxPyEndAllowThreads(__tstate); | |
24405 | if (PyErr_Occurred()) SWIG_fail; | |
24406 | } | |
24407 | { | |
24408 | wxRect * resultptr; | |
24409 | resultptr = new wxRect((wxRect &) result); | |
24410 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
24411 | } | |
24412 | return resultobj; | |
24413 | fail: | |
24414 | return NULL; | |
24415 | } | |
24416 | ||
24417 | ||
24418 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24419 | PyObject *resultobj; | |
24420 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24421 | int arg2 ; | |
24422 | int arg3 ; | |
24423 | int arg4 = (int) 1 ; | |
24424 | int arg5 = (int) 1 ; | |
24425 | bool result; | |
24426 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24427 | PyObject * obj1 = 0 ; |
24428 | PyObject * obj2 = 0 ; | |
24429 | PyObject * obj3 = 0 ; | |
24430 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
24431 | char *kwnames[] = { |
24432 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
24433 | }; | |
24434 | ||
8edf1c75 | 24435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 24436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
24437 | { |
24438 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
24439 | if (PyErr_Occurred()) SWIG_fail; | |
24440 | } | |
24441 | { | |
24442 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
24443 | if (PyErr_Occurred()) SWIG_fail; | |
24444 | } | |
24445 | if (obj3) { | |
24446 | { | |
24447 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
24448 | if (PyErr_Occurred()) SWIG_fail; | |
24449 | } | |
24450 | } | |
24451 | if (obj4) { | |
24452 | { | |
24453 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
24454 | if (PyErr_Occurred()) SWIG_fail; | |
24455 | } | |
24456 | } | |
d14a1e28 RD |
24457 | { |
24458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24459 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
24460 | ||
24461 | wxPyEndAllowThreads(__tstate); | |
24462 | if (PyErr_Occurred()) SWIG_fail; | |
24463 | } | |
8edf1c75 | 24464 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
24465 | return resultobj; |
24466 | fail: | |
24467 | return NULL; | |
24468 | } | |
24469 | ||
24470 | ||
24471 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24472 | PyObject *resultobj; | |
24473 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24474 | wxPoint *arg2 = 0 ; | |
24475 | bool result; | |
24476 | wxPoint temp2 ; | |
24477 | PyObject * obj0 = 0 ; | |
24478 | PyObject * obj1 = 0 ; | |
24479 | char *kwnames[] = { | |
24480 | (char *) "self",(char *) "pt", NULL | |
24481 | }; | |
24482 | ||
24483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
24484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24485 | { | |
24486 | arg2 = &temp2; | |
24487 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24488 | } | |
24489 | { | |
24490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24491 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
24492 | ||
24493 | wxPyEndAllowThreads(__tstate); | |
24494 | if (PyErr_Occurred()) SWIG_fail; | |
24495 | } | |
8edf1c75 | 24496 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
24497 | return resultobj; |
24498 | fail: | |
24499 | return NULL; | |
24500 | } | |
24501 | ||
24502 | ||
24503 | static PyObject *_wrap_Window_isExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24504 | PyObject *resultobj; | |
24505 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24506 | wxRect *arg2 = 0 ; | |
24507 | bool result; | |
24508 | wxRect temp2 ; | |
24509 | PyObject * obj0 = 0 ; | |
24510 | PyObject * obj1 = 0 ; | |
24511 | char *kwnames[] = { | |
24512 | (char *) "self",(char *) "rect", NULL | |
24513 | }; | |
24514 | ||
24515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_isExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
24516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24517 | { | |
24518 | arg2 = &temp2; | |
24519 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24520 | } | |
24521 | { | |
24522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24523 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
24524 | ||
24525 | wxPyEndAllowThreads(__tstate); | |
24526 | if (PyErr_Occurred()) SWIG_fail; | |
24527 | } | |
8edf1c75 | 24528 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
24529 | return resultobj; |
24530 | fail: | |
24531 | return NULL; | |
24532 | } | |
24533 | ||
24534 | ||
24535 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24536 | PyObject *resultobj; | |
24537 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24538 | wxColour *arg2 = 0 ; | |
24539 | bool result; | |
24540 | wxColour temp2 ; | |
24541 | PyObject * obj0 = 0 ; | |
24542 | PyObject * obj1 = 0 ; | |
24543 | char *kwnames[] = { | |
24544 | (char *) "self",(char *) "colour", NULL | |
24545 | }; | |
24546 | ||
24547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24549 | { | |
24550 | arg2 = &temp2; | |
24551 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24552 | } | |
24553 | { | |
24554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24555 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
24556 | ||
24557 | wxPyEndAllowThreads(__tstate); | |
24558 | if (PyErr_Occurred()) SWIG_fail; | |
24559 | } | |
8edf1c75 | 24560 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
24561 | return resultobj; |
24562 | fail: | |
24563 | return NULL; | |
24564 | } | |
24565 | ||
24566 | ||
24567 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24568 | PyObject *resultobj; | |
24569 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24570 | wxColour *arg2 = 0 ; | |
24571 | bool result; | |
24572 | wxColour temp2 ; | |
24573 | PyObject * obj0 = 0 ; | |
24574 | PyObject * obj1 = 0 ; | |
24575 | char *kwnames[] = { | |
24576 | (char *) "self",(char *) "colour", NULL | |
24577 | }; | |
24578 | ||
24579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24581 | { | |
24582 | arg2 = &temp2; | |
24583 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24584 | } | |
24585 | { | |
24586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24587 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
24588 | ||
24589 | wxPyEndAllowThreads(__tstate); | |
24590 | if (PyErr_Occurred()) SWIG_fail; | |
24591 | } | |
8edf1c75 | 24592 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
24593 | return resultobj; |
24594 | fail: | |
24595 | return NULL; | |
24596 | } | |
24597 | ||
24598 | ||
24599 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24600 | PyObject *resultobj; | |
24601 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24602 | wxColour result; | |
24603 | PyObject * obj0 = 0 ; | |
24604 | char *kwnames[] = { | |
24605 | (char *) "self", NULL | |
24606 | }; | |
24607 | ||
24608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
24609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24610 | { | |
24611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24612 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
24613 | ||
24614 | wxPyEndAllowThreads(__tstate); | |
24615 | if (PyErr_Occurred()) SWIG_fail; | |
24616 | } | |
24617 | { | |
24618 | wxColour * resultptr; | |
24619 | resultptr = new wxColour((wxColour &) result); | |
24620 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24621 | } | |
24622 | return resultobj; | |
24623 | fail: | |
24624 | return NULL; | |
24625 | } | |
24626 | ||
24627 | ||
24628 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24629 | PyObject *resultobj; | |
24630 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24631 | wxColour result; | |
24632 | PyObject * obj0 = 0 ; | |
24633 | char *kwnames[] = { | |
24634 | (char *) "self", NULL | |
24635 | }; | |
24636 | ||
24637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
24638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24639 | { | |
24640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24641 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
24642 | ||
24643 | wxPyEndAllowThreads(__tstate); | |
24644 | if (PyErr_Occurred()) SWIG_fail; | |
24645 | } | |
24646 | { | |
24647 | wxColour * resultptr; | |
24648 | resultptr = new wxColour((wxColour &) result); | |
24649 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
24650 | } | |
24651 | return resultobj; | |
24652 | fail: | |
24653 | return NULL; | |
24654 | } | |
24655 | ||
24656 | ||
24657 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24658 | PyObject *resultobj; | |
24659 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24660 | wxCursor *arg2 = 0 ; | |
24661 | bool result; | |
24662 | PyObject * obj0 = 0 ; | |
24663 | PyObject * obj1 = 0 ; | |
24664 | char *kwnames[] = { | |
24665 | (char *) "self",(char *) "cursor", NULL | |
24666 | }; | |
24667 | ||
24668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
24669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24670 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24671 | if (arg2 == NULL) { | |
24672 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24673 | } | |
24674 | { | |
24675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24676 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
24677 | ||
24678 | wxPyEndAllowThreads(__tstate); | |
24679 | if (PyErr_Occurred()) SWIG_fail; | |
24680 | } | |
8edf1c75 | 24681 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
24682 | return resultobj; |
24683 | fail: | |
24684 | return NULL; | |
24685 | } | |
24686 | ||
24687 | ||
24688 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24689 | PyObject *resultobj; | |
24690 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24691 | wxCursor *result; | |
24692 | PyObject * obj0 = 0 ; | |
24693 | char *kwnames[] = { | |
24694 | (char *) "self", NULL | |
24695 | }; | |
24696 | ||
24697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
24698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24699 | { | |
24700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24701 | { | |
24702 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
24703 | result = (wxCursor *) &_result_ref; | |
24704 | } | |
24705 | ||
24706 | wxPyEndAllowThreads(__tstate); | |
24707 | if (PyErr_Occurred()) SWIG_fail; | |
24708 | } | |
24709 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0); | |
24710 | return resultobj; | |
24711 | fail: | |
24712 | return NULL; | |
24713 | } | |
24714 | ||
24715 | ||
24716 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24717 | PyObject *resultobj; | |
24718 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24719 | wxFont *arg2 = 0 ; | |
24720 | bool result; | |
24721 | PyObject * obj0 = 0 ; | |
24722 | PyObject * obj1 = 0 ; | |
24723 | char *kwnames[] = { | |
24724 | (char *) "self",(char *) "font", NULL | |
24725 | }; | |
24726 | ||
24727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
24728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24729 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24730 | if (arg2 == NULL) { | |
24731 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24732 | } | |
24733 | { | |
24734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24735 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
24736 | ||
24737 | wxPyEndAllowThreads(__tstate); | |
24738 | if (PyErr_Occurred()) SWIG_fail; | |
24739 | } | |
8edf1c75 | 24740 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
24741 | return resultobj; |
24742 | fail: | |
24743 | return NULL; | |
24744 | } | |
24745 | ||
24746 | ||
24747 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24748 | PyObject *resultobj; | |
24749 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24750 | wxFont *result; | |
24751 | PyObject * obj0 = 0 ; | |
24752 | char *kwnames[] = { | |
24753 | (char *) "self", NULL | |
24754 | }; | |
24755 | ||
24756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
24757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24758 | { | |
24759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24760 | { | |
24761 | wxFont &_result_ref = (arg1)->GetFont(); | |
24762 | result = (wxFont *) &_result_ref; | |
24763 | } | |
24764 | ||
24765 | wxPyEndAllowThreads(__tstate); | |
24766 | if (PyErr_Occurred()) SWIG_fail; | |
24767 | } | |
24768 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
24769 | return resultobj; | |
24770 | fail: | |
24771 | return NULL; | |
24772 | } | |
24773 | ||
24774 | ||
24775 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24776 | PyObject *resultobj; | |
24777 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24778 | wxCaret *arg2 = (wxCaret *) 0 ; | |
24779 | PyObject * obj0 = 0 ; | |
24780 | PyObject * obj1 = 0 ; | |
24781 | char *kwnames[] = { | |
24782 | (char *) "self",(char *) "caret", NULL | |
24783 | }; | |
24784 | ||
24785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
24786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24787 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24788 | { | |
24789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24790 | (arg1)->SetCaret(arg2); | |
24791 | ||
24792 | wxPyEndAllowThreads(__tstate); | |
24793 | if (PyErr_Occurred()) SWIG_fail; | |
24794 | } | |
24795 | Py_INCREF(Py_None); resultobj = Py_None; | |
24796 | return resultobj; | |
24797 | fail: | |
24798 | return NULL; | |
24799 | } | |
24800 | ||
24801 | ||
24802 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24803 | PyObject *resultobj; | |
24804 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24805 | wxCaret *result; | |
24806 | PyObject * obj0 = 0 ; | |
24807 | char *kwnames[] = { | |
24808 | (char *) "self", NULL | |
24809 | }; | |
24810 | ||
24811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
24812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24813 | { | |
24814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24815 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
24816 | ||
24817 | wxPyEndAllowThreads(__tstate); | |
24818 | if (PyErr_Occurred()) SWIG_fail; | |
24819 | } | |
24820 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 0); | |
24821 | return resultobj; | |
24822 | fail: | |
24823 | return NULL; | |
24824 | } | |
24825 | ||
24826 | ||
24827 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24828 | PyObject *resultobj; | |
24829 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24830 | int result; | |
24831 | PyObject * obj0 = 0 ; | |
24832 | char *kwnames[] = { | |
24833 | (char *) "self", NULL | |
24834 | }; | |
24835 | ||
24836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
24837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24838 | { | |
24839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24840 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
24841 | ||
24842 | wxPyEndAllowThreads(__tstate); | |
24843 | if (PyErr_Occurred()) SWIG_fail; | |
24844 | } | |
8edf1c75 | 24845 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
24846 | return resultobj; |
24847 | fail: | |
24848 | return NULL; | |
24849 | } | |
24850 | ||
24851 | ||
24852 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24853 | PyObject *resultobj; | |
24854 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24855 | int result; | |
24856 | PyObject * obj0 = 0 ; | |
24857 | char *kwnames[] = { | |
24858 | (char *) "self", NULL | |
24859 | }; | |
24860 | ||
24861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
24862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24863 | { | |
24864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24865 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
24866 | ||
24867 | wxPyEndAllowThreads(__tstate); | |
24868 | if (PyErr_Occurred()) SWIG_fail; | |
24869 | } | |
8edf1c75 | 24870 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
24871 | return resultobj; |
24872 | fail: | |
24873 | return NULL; | |
24874 | } | |
24875 | ||
24876 | ||
24877 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24878 | PyObject *resultobj; | |
24879 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24880 | wxString *arg2 = 0 ; | |
24881 | int *arg3 = (int *) 0 ; | |
24882 | int *arg4 = (int *) 0 ; | |
423f194a | 24883 | bool temp2 = False ; |
d14a1e28 RD |
24884 | int temp3 ; |
24885 | int temp4 ; | |
24886 | PyObject * obj0 = 0 ; | |
24887 | PyObject * obj1 = 0 ; | |
24888 | char *kwnames[] = { | |
24889 | (char *) "self",(char *) "string", NULL | |
24890 | }; | |
24891 | ||
24892 | arg3 = &temp3; | |
24893 | arg4 = &temp4; | |
24894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
24895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24896 | { | |
24897 | arg2 = wxString_in_helper(obj1); | |
24898 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24899 | temp2 = True; |
d14a1e28 RD |
24900 | } |
24901 | { | |
24902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24903 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
24904 | ||
24905 | wxPyEndAllowThreads(__tstate); | |
24906 | if (PyErr_Occurred()) SWIG_fail; | |
24907 | } | |
24908 | Py_INCREF(Py_None); resultobj = Py_None; | |
24909 | { | |
24910 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24911 | resultobj = t_output_helper(resultobj,o); | |
24912 | } | |
24913 | { | |
24914 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
24915 | resultobj = t_output_helper(resultobj,o); | |
24916 | } | |
24917 | { | |
24918 | if (temp2) | |
24919 | delete arg2; | |
24920 | } | |
24921 | return resultobj; | |
24922 | fail: | |
24923 | { | |
24924 | if (temp2) | |
24925 | delete arg2; | |
24926 | } | |
24927 | return NULL; | |
24928 | } | |
24929 | ||
24930 | ||
24931 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24932 | PyObject *resultobj; | |
24933 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24934 | wxString *arg2 = 0 ; | |
24935 | int *arg3 = (int *) 0 ; | |
24936 | int *arg4 = (int *) 0 ; | |
24937 | int *arg5 = (int *) 0 ; | |
24938 | int *arg6 = (int *) 0 ; | |
24939 | wxFont *arg7 = (wxFont *) NULL ; | |
423f194a | 24940 | bool temp2 = False ; |
d14a1e28 RD |
24941 | int temp3 ; |
24942 | int temp4 ; | |
24943 | int temp5 ; | |
24944 | int temp6 ; | |
24945 | PyObject * obj0 = 0 ; | |
24946 | PyObject * obj1 = 0 ; | |
24947 | PyObject * obj2 = 0 ; | |
24948 | char *kwnames[] = { | |
24949 | (char *) "self",(char *) "string",(char *) "font", NULL | |
24950 | }; | |
24951 | ||
24952 | arg3 = &temp3; | |
24953 | arg4 = &temp4; | |
24954 | arg5 = &temp5; | |
24955 | arg6 = &temp6; | |
24956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24958 | { | |
24959 | arg2 = wxString_in_helper(obj1); | |
24960 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24961 | temp2 = True; |
d14a1e28 RD |
24962 | } |
24963 | if (obj2) { | |
24964 | if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24965 | } | |
24966 | { | |
24967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24968 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
24969 | ||
24970 | wxPyEndAllowThreads(__tstate); | |
24971 | if (PyErr_Occurred()) SWIG_fail; | |
24972 | } | |
24973 | Py_INCREF(Py_None); resultobj = Py_None; | |
24974 | { | |
24975 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24976 | resultobj = t_output_helper(resultobj,o); | |
24977 | } | |
24978 | { | |
24979 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
24980 | resultobj = t_output_helper(resultobj,o); | |
24981 | } | |
24982 | { | |
24983 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
24984 | resultobj = t_output_helper(resultobj,o); | |
24985 | } | |
24986 | { | |
24987 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
24988 | resultobj = t_output_helper(resultobj,o); | |
24989 | } | |
24990 | { | |
24991 | if (temp2) | |
24992 | delete arg2; | |
24993 | } | |
24994 | return resultobj; | |
24995 | fail: | |
24996 | { | |
24997 | if (temp2) | |
24998 | delete arg2; | |
24999 | } | |
25000 | return NULL; | |
25001 | } | |
25002 | ||
25003 | ||
25004 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25005 | PyObject *resultobj; | |
25006 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25007 | int *arg2 = (int *) 0 ; | |
25008 | int *arg3 = (int *) 0 ; | |
25009 | int temp2 ; | |
25010 | int temp3 ; | |
25011 | PyObject * obj0 = 0 ; | |
25012 | PyObject * obj1 = 0 ; | |
25013 | PyObject * obj2 = 0 ; | |
25014 | char *kwnames[] = { | |
25015 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25016 | }; | |
25017 | ||
25018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25020 | { | |
25021 | temp2 = PyInt_AsLong(obj1); | |
25022 | if (PyErr_Occurred()) SWIG_fail; | |
25023 | arg2 = &temp2; | |
25024 | } | |
25025 | { | |
25026 | temp3 = PyInt_AsLong(obj2); | |
25027 | if (PyErr_Occurred()) SWIG_fail; | |
25028 | arg3 = &temp3; | |
25029 | } | |
25030 | { | |
25031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25032 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
25033 | ||
25034 | wxPyEndAllowThreads(__tstate); | |
25035 | if (PyErr_Occurred()) SWIG_fail; | |
25036 | } | |
25037 | Py_INCREF(Py_None); resultobj = Py_None; | |
25038 | { | |
25039 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25040 | resultobj = t_output_helper(resultobj,o); | |
25041 | } | |
25042 | { | |
25043 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25044 | resultobj = t_output_helper(resultobj,o); | |
25045 | } | |
25046 | return resultobj; | |
25047 | fail: | |
25048 | return NULL; | |
25049 | } | |
25050 | ||
25051 | ||
25052 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25053 | PyObject *resultobj; | |
25054 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25055 | int *arg2 = (int *) 0 ; | |
25056 | int *arg3 = (int *) 0 ; | |
25057 | int temp2 ; | |
25058 | int temp3 ; | |
25059 | PyObject * obj0 = 0 ; | |
25060 | PyObject * obj1 = 0 ; | |
25061 | PyObject * obj2 = 0 ; | |
25062 | char *kwnames[] = { | |
25063 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25064 | }; | |
25065 | ||
25066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25068 | { | |
25069 | temp2 = PyInt_AsLong(obj1); | |
25070 | if (PyErr_Occurred()) SWIG_fail; | |
25071 | arg2 = &temp2; | |
25072 | } | |
25073 | { | |
25074 | temp3 = PyInt_AsLong(obj2); | |
25075 | if (PyErr_Occurred()) SWIG_fail; | |
25076 | arg3 = &temp3; | |
25077 | } | |
25078 | { | |
25079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25080 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
25081 | ||
25082 | wxPyEndAllowThreads(__tstate); | |
25083 | if (PyErr_Occurred()) SWIG_fail; | |
25084 | } | |
25085 | Py_INCREF(Py_None); resultobj = Py_None; | |
25086 | { | |
25087 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25088 | resultobj = t_output_helper(resultobj,o); | |
25089 | } | |
25090 | { | |
25091 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25092 | resultobj = t_output_helper(resultobj,o); | |
25093 | } | |
25094 | return resultobj; | |
25095 | fail: | |
25096 | return NULL; | |
25097 | } | |
25098 | ||
25099 | ||
25100 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25101 | PyObject *resultobj; | |
25102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25103 | wxPoint *arg2 = 0 ; | |
25104 | wxPoint result; | |
25105 | wxPoint temp2 ; | |
25106 | PyObject * obj0 = 0 ; | |
25107 | PyObject * obj1 = 0 ; | |
25108 | char *kwnames[] = { | |
25109 | (char *) "self",(char *) "pt", NULL | |
25110 | }; | |
25111 | ||
25112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
25113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25114 | { | |
25115 | arg2 = &temp2; | |
25116 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25117 | } | |
25118 | { | |
25119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25120 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
25121 | ||
25122 | wxPyEndAllowThreads(__tstate); | |
25123 | if (PyErr_Occurred()) SWIG_fail; | |
25124 | } | |
25125 | { | |
25126 | wxPoint * resultptr; | |
25127 | resultptr = new wxPoint((wxPoint &) result); | |
25128 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
25129 | } | |
25130 | return resultobj; | |
25131 | fail: | |
25132 | return NULL; | |
25133 | } | |
25134 | ||
25135 | ||
25136 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25137 | PyObject *resultobj; | |
25138 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25139 | wxPoint *arg2 = 0 ; | |
25140 | wxPoint result; | |
25141 | wxPoint temp2 ; | |
25142 | PyObject * obj0 = 0 ; | |
25143 | PyObject * obj1 = 0 ; | |
25144 | char *kwnames[] = { | |
25145 | (char *) "self",(char *) "pt", NULL | |
25146 | }; | |
25147 | ||
25148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
25149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25150 | { | |
25151 | arg2 = &temp2; | |
25152 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25153 | } | |
25154 | { | |
25155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25156 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
25157 | ||
25158 | wxPyEndAllowThreads(__tstate); | |
25159 | if (PyErr_Occurred()) SWIG_fail; | |
25160 | } | |
25161 | { | |
25162 | wxPoint * resultptr; | |
25163 | resultptr = new wxPoint((wxPoint &) result); | |
25164 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
25165 | } | |
25166 | return resultobj; | |
25167 | fail: | |
25168 | return NULL; | |
25169 | } | |
25170 | ||
25171 | ||
25172 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25173 | PyObject *resultobj; | |
25174 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a RD |
25175 | int arg2 ; |
25176 | int arg3 ; | |
d14a1e28 RD |
25177 | int result; |
25178 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25179 | PyObject * obj1 = 0 ; |
25180 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25181 | char *kwnames[] = { |
25182 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25183 | }; | |
25184 | ||
8edf1c75 | 25185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 25186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25187 | { |
25188 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25189 | if (PyErr_Occurred()) SWIG_fail; | |
25190 | } | |
25191 | { | |
25192 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25193 | if (PyErr_Occurred()) SWIG_fail; | |
25194 | } | |
d14a1e28 RD |
25195 | { |
25196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25197 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
25198 | ||
25199 | wxPyEndAllowThreads(__tstate); | |
25200 | if (PyErr_Occurred()) SWIG_fail; | |
25201 | } | |
8edf1c75 | 25202 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25203 | return resultobj; |
25204 | fail: | |
25205 | return NULL; | |
25206 | } | |
25207 | ||
25208 | ||
25209 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25210 | PyObject *resultobj; | |
25211 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25212 | wxPoint *arg2 = 0 ; | |
25213 | int result; | |
25214 | wxPoint temp2 ; | |
25215 | PyObject * obj0 = 0 ; | |
25216 | PyObject * obj1 = 0 ; | |
25217 | char *kwnames[] = { | |
25218 | (char *) "self",(char *) "pt", NULL | |
25219 | }; | |
25220 | ||
25221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
25222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25223 | { | |
25224 | arg2 = &temp2; | |
25225 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25226 | } | |
25227 | { | |
25228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25229 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
25230 | ||
25231 | wxPyEndAllowThreads(__tstate); | |
25232 | if (PyErr_Occurred()) SWIG_fail; | |
25233 | } | |
8edf1c75 | 25234 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25235 | return resultobj; |
25236 | fail: | |
25237 | return NULL; | |
25238 | } | |
25239 | ||
25240 | ||
25241 | static PyObject *_wrap_Window_GetBorderFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25242 | PyObject *resultobj; | |
25243 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25244 | long arg2 ; | |
25245 | int result; | |
25246 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25247 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25248 | char *kwnames[] = { |
25249 | (char *) "self",(char *) "flags", NULL | |
25250 | }; | |
25251 | ||
8edf1c75 | 25252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetBorderFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25254 | { |
25255 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
25256 | if (PyErr_Occurred()) SWIG_fail; | |
25257 | } | |
d14a1e28 RD |
25258 | { |
25259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25260 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
25261 | ||
25262 | wxPyEndAllowThreads(__tstate); | |
25263 | if (PyErr_Occurred()) SWIG_fail; | |
25264 | } | |
8edf1c75 | 25265 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25266 | return resultobj; |
25267 | fail: | |
25268 | return NULL; | |
25269 | } | |
25270 | ||
25271 | ||
25272 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25273 | PyObject *resultobj; | |
25274 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25275 | int result; | |
25276 | PyObject * obj0 = 0 ; | |
25277 | char *kwnames[] = { | |
25278 | (char *) "self", NULL | |
25279 | }; | |
25280 | ||
25281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBorder",kwnames,&obj0)) goto fail; | |
25282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25283 | { | |
25284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25285 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
25286 | ||
25287 | wxPyEndAllowThreads(__tstate); | |
25288 | if (PyErr_Occurred()) SWIG_fail; | |
25289 | } | |
8edf1c75 | 25290 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25291 | return resultobj; |
25292 | fail: | |
25293 | return NULL; | |
25294 | } | |
25295 | ||
25296 | ||
25297 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25298 | PyObject *resultobj; | |
25299 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25300 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
25301 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25302 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25303 | char *kwnames[] = { |
25304 | (char *) "self",(char *) "flags", NULL | |
25305 | }; | |
25306 | ||
8edf1c75 | 25307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25309 | if (obj1) { |
25310 | { | |
25311 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
25312 | if (PyErr_Occurred()) SWIG_fail; | |
25313 | } | |
25314 | } | |
d14a1e28 RD |
25315 | { |
25316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25317 | (arg1)->UpdateWindowUI(arg2); | |
25318 | ||
25319 | wxPyEndAllowThreads(__tstate); | |
25320 | if (PyErr_Occurred()) SWIG_fail; | |
25321 | } | |
25322 | Py_INCREF(Py_None); resultobj = Py_None; | |
25323 | return resultobj; | |
25324 | fail: | |
25325 | return NULL; | |
25326 | } | |
25327 | ||
25328 | ||
25329 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25330 | PyObject *resultobj; | |
25331 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25332 | wxMenu *arg2 = (wxMenu *) 0 ; | |
25333 | int arg3 ; | |
25334 | int arg4 ; | |
25335 | bool result; | |
25336 | PyObject * obj0 = 0 ; | |
25337 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
25338 | PyObject * obj2 = 0 ; |
25339 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25340 | char *kwnames[] = { |
25341 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
25342 | }; | |
25343 | ||
8edf1c75 | 25344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
25345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
25346 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
25347 | { |
25348 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25349 | if (PyErr_Occurred()) SWIG_fail; | |
25350 | } | |
25351 | { | |
25352 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25353 | if (PyErr_Occurred()) SWIG_fail; | |
25354 | } | |
d14a1e28 RD |
25355 | { |
25356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25357 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
25358 | ||
25359 | wxPyEndAllowThreads(__tstate); | |
25360 | if (PyErr_Occurred()) SWIG_fail; | |
25361 | } | |
8edf1c75 | 25362 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
25363 | return resultobj; |
25364 | fail: | |
25365 | return NULL; | |
25366 | } | |
25367 | ||
25368 | ||
25369 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25370 | PyObject *resultobj; | |
25371 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25372 | wxMenu *arg2 = (wxMenu *) 0 ; | |
25373 | wxPoint *arg3 = 0 ; | |
25374 | bool result; | |
25375 | wxPoint temp3 ; | |
25376 | PyObject * obj0 = 0 ; | |
25377 | PyObject * obj1 = 0 ; | |
25378 | PyObject * obj2 = 0 ; | |
25379 | char *kwnames[] = { | |
25380 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
25381 | }; | |
25382 | ||
25383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25385 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25386 | { | |
25387 | arg3 = &temp3; | |
25388 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25389 | } | |
25390 | { | |
25391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25392 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
25393 | ||
25394 | wxPyEndAllowThreads(__tstate); | |
25395 | if (PyErr_Occurred()) SWIG_fail; | |
25396 | } | |
8edf1c75 | 25397 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
25398 | return resultobj; |
25399 | fail: | |
25400 | return NULL; | |
25401 | } | |
25402 | ||
25403 | ||
25404 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25405 | PyObject *resultobj; | |
25406 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25407 | long result; | |
25408 | PyObject * obj0 = 0 ; | |
25409 | char *kwnames[] = { | |
25410 | (char *) "self", NULL | |
25411 | }; | |
25412 | ||
25413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
25414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25415 | { | |
25416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25417 | result = (long)wxWindow_GetHandle(arg1); | |
25418 | ||
25419 | wxPyEndAllowThreads(__tstate); | |
25420 | if (PyErr_Occurred()) SWIG_fail; | |
25421 | } | |
8edf1c75 | 25422 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
25423 | return resultobj; |
25424 | fail: | |
25425 | return NULL; | |
25426 | } | |
25427 | ||
25428 | ||
25429 | static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25430 | PyObject *resultobj; | |
25431 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25432 | wxPaintEvent *arg2 = 0 ; | |
25433 | PyObject * obj0 = 0 ; | |
25434 | PyObject * obj1 = 0 ; | |
25435 | char *kwnames[] = { | |
25436 | (char *) "self",(char *) "event", NULL | |
25437 | }; | |
25438 | ||
25439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
25440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25441 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPaintEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25442 | if (arg2 == NULL) { | |
25443 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25444 | } | |
25445 | { | |
25446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25447 | (arg1)->OnPaint(*arg2); | |
25448 | ||
25449 | wxPyEndAllowThreads(__tstate); | |
25450 | if (PyErr_Occurred()) SWIG_fail; | |
25451 | } | |
25452 | Py_INCREF(Py_None); resultobj = Py_None; | |
25453 | return resultobj; | |
25454 | fail: | |
25455 | return NULL; | |
25456 | } | |
25457 | ||
25458 | ||
25459 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25460 | PyObject *resultobj; | |
25461 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25462 | int arg2 ; | |
25463 | bool result; | |
25464 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25465 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25466 | char *kwnames[] = { |
25467 | (char *) "self",(char *) "orient", NULL | |
25468 | }; | |
25469 | ||
8edf1c75 | 25470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25472 | { |
25473 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25474 | if (PyErr_Occurred()) SWIG_fail; | |
25475 | } | |
d14a1e28 RD |
25476 | { |
25477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25478 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
25479 | ||
25480 | wxPyEndAllowThreads(__tstate); | |
25481 | if (PyErr_Occurred()) SWIG_fail; | |
25482 | } | |
8edf1c75 | 25483 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
25484 | return resultobj; |
25485 | fail: | |
25486 | return NULL; | |
25487 | } | |
25488 | ||
25489 | ||
25490 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25491 | PyObject *resultobj; | |
25492 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25493 | int arg2 ; | |
25494 | int arg3 ; | |
25495 | int arg4 ; | |
25496 | int arg5 ; | |
423f194a | 25497 | bool arg6 = (bool) True ; |
d14a1e28 | 25498 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
25499 | PyObject * obj1 = 0 ; |
25500 | PyObject * obj2 = 0 ; | |
25501 | PyObject * obj3 = 0 ; | |
25502 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25503 | PyObject * obj5 = 0 ; |
25504 | char *kwnames[] = { | |
25505 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL | |
25506 | }; | |
25507 | ||
8edf1c75 | 25508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 25509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25510 | { |
25511 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25512 | if (PyErr_Occurred()) SWIG_fail; | |
25513 | } | |
25514 | { | |
25515 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25516 | if (PyErr_Occurred()) SWIG_fail; | |
25517 | } | |
25518 | { | |
25519 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
25520 | if (PyErr_Occurred()) SWIG_fail; | |
25521 | } | |
25522 | { | |
25523 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
25524 | if (PyErr_Occurred()) SWIG_fail; | |
25525 | } | |
d14a1e28 | 25526 | if (obj5) { |
83448d71 | 25527 | { |
8edf1c75 | 25528 | arg6 = (bool) SWIG_PyObj_AsBool(obj5); |
83448d71 RD |
25529 | if (PyErr_Occurred()) SWIG_fail; |
25530 | } | |
d14a1e28 RD |
25531 | } |
25532 | { | |
25533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25534 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
25535 | ||
25536 | wxPyEndAllowThreads(__tstate); | |
25537 | if (PyErr_Occurred()) SWIG_fail; | |
25538 | } | |
25539 | Py_INCREF(Py_None); resultobj = Py_None; | |
25540 | return resultobj; | |
25541 | fail: | |
25542 | return NULL; | |
25543 | } | |
25544 | ||
25545 | ||
25546 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25547 | PyObject *resultobj; | |
25548 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25549 | int arg2 ; | |
25550 | int arg3 ; | |
423f194a | 25551 | bool arg4 = (bool) True ; |
d14a1e28 | 25552 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
25553 | PyObject * obj1 = 0 ; |
25554 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25555 | PyObject * obj3 = 0 ; |
25556 | char *kwnames[] = { | |
25557 | (char *) "self",(char *) "orient",(char *) "pos",(char *) "refresh", NULL | |
25558 | }; | |
25559 | ||
8edf1c75 | 25560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25562 | { |
25563 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25564 | if (PyErr_Occurred()) SWIG_fail; | |
25565 | } | |
25566 | { | |
25567 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25568 | if (PyErr_Occurred()) SWIG_fail; | |
25569 | } | |
d14a1e28 | 25570 | if (obj3) { |
83448d71 | 25571 | { |
8edf1c75 | 25572 | arg4 = (bool) SWIG_PyObj_AsBool(obj3); |
83448d71 RD |
25573 | if (PyErr_Occurred()) SWIG_fail; |
25574 | } | |
d14a1e28 RD |
25575 | } |
25576 | { | |
25577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25578 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
25579 | ||
25580 | wxPyEndAllowThreads(__tstate); | |
25581 | if (PyErr_Occurred()) SWIG_fail; | |
25582 | } | |
25583 | Py_INCREF(Py_None); resultobj = Py_None; | |
25584 | return resultobj; | |
25585 | fail: | |
25586 | return NULL; | |
25587 | } | |
25588 | ||
25589 | ||
25590 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25591 | PyObject *resultobj; | |
25592 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25593 | int arg2 ; | |
25594 | int result; | |
25595 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25596 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25597 | char *kwnames[] = { |
25598 | (char *) "self",(char *) "orient", NULL | |
25599 | }; | |
25600 | ||
8edf1c75 | 25601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25603 | { |
25604 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25605 | if (PyErr_Occurred()) SWIG_fail; | |
25606 | } | |
d14a1e28 RD |
25607 | { |
25608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25609 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
25610 | ||
25611 | wxPyEndAllowThreads(__tstate); | |
25612 | if (PyErr_Occurred()) SWIG_fail; | |
25613 | } | |
8edf1c75 | 25614 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25615 | return resultobj; |
25616 | fail: | |
25617 | return NULL; | |
25618 | } | |
25619 | ||
25620 | ||
25621 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25622 | PyObject *resultobj; | |
25623 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25624 | int arg2 ; | |
25625 | int result; | |
25626 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25627 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25628 | char *kwnames[] = { |
25629 | (char *) "self",(char *) "orient", NULL | |
25630 | }; | |
25631 | ||
8edf1c75 | 25632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25634 | { |
25635 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25636 | if (PyErr_Occurred()) SWIG_fail; | |
25637 | } | |
d14a1e28 RD |
25638 | { |
25639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25640 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
25641 | ||
25642 | wxPyEndAllowThreads(__tstate); | |
25643 | if (PyErr_Occurred()) SWIG_fail; | |
25644 | } | |
8edf1c75 | 25645 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25646 | return resultobj; |
25647 | fail: | |
25648 | return NULL; | |
25649 | } | |
25650 | ||
25651 | ||
25652 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25653 | PyObject *resultobj; | |
25654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25655 | int arg2 ; | |
25656 | int result; | |
25657 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25658 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25659 | char *kwnames[] = { |
25660 | (char *) "self",(char *) "orient", NULL | |
25661 | }; | |
25662 | ||
8edf1c75 | 25663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25665 | { |
25666 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25667 | if (PyErr_Occurred()) SWIG_fail; | |
25668 | } | |
d14a1e28 RD |
25669 | { |
25670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25671 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
25672 | ||
25673 | wxPyEndAllowThreads(__tstate); | |
25674 | if (PyErr_Occurred()) SWIG_fail; | |
25675 | } | |
8edf1c75 | 25676 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
25677 | return resultobj; |
25678 | fail: | |
25679 | return NULL; | |
25680 | } | |
25681 | ||
25682 | ||
25683 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25684 | PyObject *resultobj; | |
25685 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25686 | int arg2 ; | |
25687 | int arg3 ; | |
25688 | wxRect *arg4 = (wxRect *) NULL ; | |
25689 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25690 | PyObject * obj1 = 0 ; |
25691 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25692 | PyObject * obj3 = 0 ; |
25693 | char *kwnames[] = { | |
25694 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
25695 | }; | |
25696 | ||
8edf1c75 | 25697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 25698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25699 | { |
25700 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25701 | if (PyErr_Occurred()) SWIG_fail; | |
25702 | } | |
25703 | { | |
25704 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
25705 | if (PyErr_Occurred()) SWIG_fail; | |
25706 | } | |
d14a1e28 RD |
25707 | if (obj3) { |
25708 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25709 | } | |
25710 | { | |
25711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25712 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
25713 | ||
25714 | wxPyEndAllowThreads(__tstate); | |
25715 | if (PyErr_Occurred()) SWIG_fail; | |
25716 | } | |
25717 | Py_INCREF(Py_None); resultobj = Py_None; | |
25718 | return resultobj; | |
25719 | fail: | |
25720 | return NULL; | |
25721 | } | |
25722 | ||
25723 | ||
25724 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25725 | PyObject *resultobj; | |
25726 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25727 | int arg2 ; | |
25728 | bool result; | |
25729 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25730 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25731 | char *kwnames[] = { |
25732 | (char *) "self",(char *) "lines", NULL | |
25733 | }; | |
25734 | ||
8edf1c75 | 25735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25737 | { |
25738 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25739 | if (PyErr_Occurred()) SWIG_fail; | |
25740 | } | |
d14a1e28 RD |
25741 | { |
25742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25743 | result = (bool)(arg1)->ScrollLines(arg2); | |
25744 | ||
25745 | wxPyEndAllowThreads(__tstate); | |
25746 | if (PyErr_Occurred()) SWIG_fail; | |
25747 | } | |
8edf1c75 | 25748 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
25749 | return resultobj; |
25750 | fail: | |
25751 | return NULL; | |
25752 | } | |
25753 | ||
25754 | ||
25755 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25756 | PyObject *resultobj; | |
25757 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25758 | int arg2 ; | |
25759 | bool result; | |
25760 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25761 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25762 | char *kwnames[] = { |
25763 | (char *) "self",(char *) "pages", NULL | |
25764 | }; | |
25765 | ||
8edf1c75 | 25766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 25767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
25768 | { |
25769 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
25770 | if (PyErr_Occurred()) SWIG_fail; | |
25771 | } | |
d14a1e28 RD |
25772 | { |
25773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25774 | result = (bool)(arg1)->ScrollPages(arg2); | |
25775 | ||
25776 | wxPyEndAllowThreads(__tstate); | |
25777 | if (PyErr_Occurred()) SWIG_fail; | |
25778 | } | |
8edf1c75 | 25779 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
25780 | return resultobj; |
25781 | fail: | |
25782 | return NULL; | |
25783 | } | |
25784 | ||
25785 | ||
25786 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25787 | PyObject *resultobj; | |
25788 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25789 | bool result; | |
25790 | PyObject * obj0 = 0 ; | |
25791 | char *kwnames[] = { | |
25792 | (char *) "self", NULL | |
25793 | }; | |
25794 | ||
25795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
25796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25797 | { | |
25798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25799 | result = (bool)(arg1)->LineUp(); | |
25800 | ||
25801 | wxPyEndAllowThreads(__tstate); | |
25802 | if (PyErr_Occurred()) SWIG_fail; | |
25803 | } | |
8edf1c75 | 25804 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
25805 | return resultobj; |
25806 | fail: | |
25807 | return NULL; | |
25808 | } | |
25809 | ||
25810 | ||
25811 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25812 | PyObject *resultobj; | |
25813 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25814 | bool result; | |
25815 | PyObject * obj0 = 0 ; | |
25816 | char *kwnames[] = { | |
25817 | (char *) "self", NULL | |
25818 | }; | |
25819 | ||
25820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
25821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25822 | { | |
25823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25824 | result = (bool)(arg1)->LineDown(); | |
25825 | ||
25826 | wxPyEndAllowThreads(__tstate); | |
25827 | if (PyErr_Occurred()) SWIG_fail; | |
25828 | } | |
8edf1c75 | 25829 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
25830 | return resultobj; |
25831 | fail: | |
25832 | return NULL; | |
25833 | } | |
25834 | ||
25835 | ||
25836 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25837 | PyObject *resultobj; | |
25838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25839 | bool result; | |
25840 | PyObject * obj0 = 0 ; | |
25841 | char *kwnames[] = { | |
25842 | (char *) "self", NULL | |
25843 | }; | |
25844 | ||
25845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
25846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25847 | { | |
25848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25849 | result = (bool)(arg1)->PageUp(); | |
25850 | ||
25851 | wxPyEndAllowThreads(__tstate); | |
25852 | if (PyErr_Occurred()) SWIG_fail; | |
25853 | } | |
8edf1c75 | 25854 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
25855 | return resultobj; |
25856 | fail: | |
25857 | return NULL; | |
25858 | } | |
25859 | ||
25860 | ||
25861 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25862 | PyObject *resultobj; | |
25863 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25864 | bool result; | |
25865 | PyObject * obj0 = 0 ; | |
25866 | char *kwnames[] = { | |
25867 | (char *) "self", NULL | |
25868 | }; | |
25869 | ||
25870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
25871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25872 | { | |
25873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25874 | result = (bool)(arg1)->PageDown(); | |
25875 | ||
25876 | wxPyEndAllowThreads(__tstate); | |
25877 | if (PyErr_Occurred()) SWIG_fail; | |
25878 | } | |
8edf1c75 | 25879 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
25880 | return resultobj; |
25881 | fail: | |
25882 | return NULL; | |
25883 | } | |
25884 | ||
25885 | ||
25886 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25887 | PyObject *resultobj; | |
25888 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25889 | wxString *arg2 = 0 ; | |
423f194a | 25890 | bool temp2 = False ; |
d14a1e28 RD |
25891 | PyObject * obj0 = 0 ; |
25892 | PyObject * obj1 = 0 ; | |
25893 | char *kwnames[] = { | |
25894 | (char *) "self",(char *) "text", NULL | |
25895 | }; | |
25896 | ||
25897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
25898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25899 | { | |
25900 | arg2 = wxString_in_helper(obj1); | |
25901 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25902 | temp2 = True; |
d14a1e28 RD |
25903 | } |
25904 | { | |
25905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25906 | (arg1)->SetHelpText((wxString const &)*arg2); | |
25907 | ||
25908 | wxPyEndAllowThreads(__tstate); | |
25909 | if (PyErr_Occurred()) SWIG_fail; | |
25910 | } | |
25911 | Py_INCREF(Py_None); resultobj = Py_None; | |
25912 | { | |
25913 | if (temp2) | |
25914 | delete arg2; | |
25915 | } | |
25916 | return resultobj; | |
25917 | fail: | |
25918 | { | |
25919 | if (temp2) | |
25920 | delete arg2; | |
25921 | } | |
25922 | return NULL; | |
25923 | } | |
25924 | ||
25925 | ||
25926 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25927 | PyObject *resultobj; | |
25928 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25929 | wxString *arg2 = 0 ; | |
423f194a | 25930 | bool temp2 = False ; |
d14a1e28 RD |
25931 | PyObject * obj0 = 0 ; |
25932 | PyObject * obj1 = 0 ; | |
25933 | char *kwnames[] = { | |
25934 | (char *) "self",(char *) "text", NULL | |
25935 | }; | |
25936 | ||
25937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
25938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25939 | { | |
25940 | arg2 = wxString_in_helper(obj1); | |
25941 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25942 | temp2 = True; |
d14a1e28 RD |
25943 | } |
25944 | { | |
25945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25946 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
25947 | ||
25948 | wxPyEndAllowThreads(__tstate); | |
25949 | if (PyErr_Occurred()) SWIG_fail; | |
25950 | } | |
25951 | Py_INCREF(Py_None); resultobj = Py_None; | |
25952 | { | |
25953 | if (temp2) | |
25954 | delete arg2; | |
25955 | } | |
25956 | return resultobj; | |
25957 | fail: | |
25958 | { | |
25959 | if (temp2) | |
25960 | delete arg2; | |
25961 | } | |
25962 | return NULL; | |
25963 | } | |
25964 | ||
25965 | ||
25966 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25967 | PyObject *resultobj; | |
25968 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25969 | wxString result; | |
25970 | PyObject * obj0 = 0 ; | |
25971 | char *kwnames[] = { | |
25972 | (char *) "self", NULL | |
25973 | }; | |
25974 | ||
25975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
25976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25977 | { | |
25978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25979 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
25980 | ||
25981 | wxPyEndAllowThreads(__tstate); | |
25982 | if (PyErr_Occurred()) SWIG_fail; | |
25983 | } | |
25984 | { | |
25985 | #if wxUSE_UNICODE | |
25986 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25987 | #else | |
25988 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25989 | #endif | |
25990 | } | |
25991 | return resultobj; | |
25992 | fail: | |
25993 | return NULL; | |
25994 | } | |
25995 | ||
25996 | ||
25997 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25998 | PyObject *resultobj; | |
25999 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26000 | wxString *arg2 = 0 ; | |
423f194a | 26001 | bool temp2 = False ; |
d14a1e28 RD |
26002 | PyObject * obj0 = 0 ; |
26003 | PyObject * obj1 = 0 ; | |
26004 | char *kwnames[] = { | |
26005 | (char *) "self",(char *) "tip", NULL | |
26006 | }; | |
26007 | ||
26008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
26009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26010 | { | |
26011 | arg2 = wxString_in_helper(obj1); | |
26012 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26013 | temp2 = True; |
d14a1e28 RD |
26014 | } |
26015 | { | |
26016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26017 | (arg1)->SetToolTip((wxString const &)*arg2); | |
26018 | ||
26019 | wxPyEndAllowThreads(__tstate); | |
26020 | if (PyErr_Occurred()) SWIG_fail; | |
26021 | } | |
26022 | Py_INCREF(Py_None); resultobj = Py_None; | |
26023 | { | |
26024 | if (temp2) | |
26025 | delete arg2; | |
26026 | } | |
26027 | return resultobj; | |
26028 | fail: | |
26029 | { | |
26030 | if (temp2) | |
26031 | delete arg2; | |
26032 | } | |
26033 | return NULL; | |
26034 | } | |
26035 | ||
26036 | ||
26037 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26038 | PyObject *resultobj; | |
26039 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26040 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
26041 | PyObject * obj0 = 0 ; | |
26042 | PyObject * obj1 = 0 ; | |
26043 | char *kwnames[] = { | |
26044 | (char *) "self",(char *) "tip", NULL | |
26045 | }; | |
26046 | ||
26047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
26048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26049 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26050 | { | |
26051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26052 | (arg1)->SetToolTip(arg2); | |
26053 | ||
26054 | wxPyEndAllowThreads(__tstate); | |
26055 | if (PyErr_Occurred()) SWIG_fail; | |
26056 | } | |
26057 | Py_INCREF(Py_None); resultobj = Py_None; | |
26058 | return resultobj; | |
26059 | fail: | |
26060 | return NULL; | |
26061 | } | |
26062 | ||
26063 | ||
26064 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26065 | PyObject *resultobj; | |
26066 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26067 | wxToolTip *result; | |
26068 | PyObject * obj0 = 0 ; | |
26069 | char *kwnames[] = { | |
26070 | (char *) "self", NULL | |
26071 | }; | |
26072 | ||
26073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
26074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26075 | { | |
26076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26077 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
26078 | ||
26079 | wxPyEndAllowThreads(__tstate); | |
26080 | if (PyErr_Occurred()) SWIG_fail; | |
26081 | } | |
26082 | { | |
26083 | resultobj = wxPyMake_wxObject(result); | |
26084 | } | |
26085 | return resultobj; | |
26086 | fail: | |
26087 | return NULL; | |
26088 | } | |
26089 | ||
26090 | ||
26091 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26092 | PyObject *resultobj; | |
26093 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 26094 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
26095 | PyObject * obj0 = 0 ; |
26096 | PyObject * obj1 = 0 ; | |
26097 | char *kwnames[] = { | |
26098 | (char *) "self",(char *) "dropTarget", NULL | |
26099 | }; | |
26100 | ||
26101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
26102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
58203fa6 | 26103 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; |
d14a1e28 RD |
26104 | { |
26105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26106 | (arg1)->SetDropTarget(arg2); | |
26107 | ||
26108 | wxPyEndAllowThreads(__tstate); | |
26109 | if (PyErr_Occurred()) SWIG_fail; | |
26110 | } | |
26111 | Py_INCREF(Py_None); resultobj = Py_None; | |
26112 | return resultobj; | |
26113 | fail: | |
26114 | return NULL; | |
26115 | } | |
26116 | ||
26117 | ||
26118 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26119 | PyObject *resultobj; | |
26120 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 26121 | wxPyDropTarget *result; |
d14a1e28 RD |
26122 | PyObject * obj0 = 0 ; |
26123 | char *kwnames[] = { | |
26124 | (char *) "self", NULL | |
26125 | }; | |
26126 | ||
26127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
26128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26129 | { | |
26130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 26131 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
26132 | |
26133 | wxPyEndAllowThreads(__tstate); | |
26134 | if (PyErr_Occurred()) SWIG_fail; | |
26135 | } | |
44127b65 | 26136 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
26137 | return resultobj; |
26138 | fail: | |
26139 | return NULL; | |
26140 | } | |
26141 | ||
26142 | ||
26143 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26144 | PyObject *resultobj; | |
26145 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26146 | bool arg2 ; | |
26147 | PyObject * obj0 = 0 ; | |
26148 | PyObject * obj1 = 0 ; | |
26149 | char *kwnames[] = { | |
26150 | (char *) "self",(char *) "accept", NULL | |
26151 | }; | |
26152 | ||
26153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
26154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 26155 | { |
8edf1c75 | 26156 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
26157 | if (PyErr_Occurred()) SWIG_fail; |
26158 | } | |
d14a1e28 RD |
26159 | { |
26160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26161 | (arg1)->DragAcceptFiles(arg2); | |
26162 | ||
26163 | wxPyEndAllowThreads(__tstate); | |
26164 | if (PyErr_Occurred()) SWIG_fail; | |
26165 | } | |
26166 | Py_INCREF(Py_None); resultobj = Py_None; | |
26167 | return resultobj; | |
26168 | fail: | |
26169 | return NULL; | |
26170 | } | |
26171 | ||
26172 | ||
26173 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26174 | PyObject *resultobj; | |
26175 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26176 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
26177 | PyObject * obj0 = 0 ; | |
26178 | PyObject * obj1 = 0 ; | |
26179 | char *kwnames[] = { | |
26180 | (char *) "self",(char *) "constraints", NULL | |
26181 | }; | |
26182 | ||
26183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
26184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26185 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26186 | { | |
26187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26188 | (arg1)->SetConstraints(arg2); | |
26189 | ||
26190 | wxPyEndAllowThreads(__tstate); | |
26191 | if (PyErr_Occurred()) SWIG_fail; | |
26192 | } | |
26193 | Py_INCREF(Py_None); resultobj = Py_None; | |
26194 | return resultobj; | |
26195 | fail: | |
26196 | return NULL; | |
26197 | } | |
26198 | ||
26199 | ||
26200 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26201 | PyObject *resultobj; | |
26202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26203 | wxLayoutConstraints *result; | |
26204 | PyObject * obj0 = 0 ; | |
26205 | char *kwnames[] = { | |
26206 | (char *) "self", NULL | |
26207 | }; | |
26208 | ||
26209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
26210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26211 | { | |
26212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26213 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
26214 | ||
26215 | wxPyEndAllowThreads(__tstate); | |
26216 | if (PyErr_Occurred()) SWIG_fail; | |
26217 | } | |
26218 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 0); | |
26219 | return resultobj; | |
26220 | fail: | |
26221 | return NULL; | |
26222 | } | |
26223 | ||
26224 | ||
26225 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26226 | PyObject *resultobj; | |
26227 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26228 | bool arg2 ; | |
26229 | PyObject * obj0 = 0 ; | |
26230 | PyObject * obj1 = 0 ; | |
26231 | char *kwnames[] = { | |
26232 | (char *) "self",(char *) "autoLayout", NULL | |
26233 | }; | |
26234 | ||
26235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
26236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 26237 | { |
8edf1c75 | 26238 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
26239 | if (PyErr_Occurred()) SWIG_fail; |
26240 | } | |
d14a1e28 RD |
26241 | { |
26242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26243 | (arg1)->SetAutoLayout(arg2); | |
26244 | ||
26245 | wxPyEndAllowThreads(__tstate); | |
26246 | if (PyErr_Occurred()) SWIG_fail; | |
26247 | } | |
26248 | Py_INCREF(Py_None); resultobj = Py_None; | |
26249 | return resultobj; | |
26250 | fail: | |
26251 | return NULL; | |
26252 | } | |
26253 | ||
26254 | ||
26255 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26256 | PyObject *resultobj; | |
26257 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26258 | bool result; | |
26259 | PyObject * obj0 = 0 ; | |
26260 | char *kwnames[] = { | |
26261 | (char *) "self", NULL | |
26262 | }; | |
26263 | ||
26264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
26265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26266 | { | |
26267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26268 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
26269 | ||
26270 | wxPyEndAllowThreads(__tstate); | |
26271 | if (PyErr_Occurred()) SWIG_fail; | |
26272 | } | |
8edf1c75 | 26273 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
26274 | return resultobj; |
26275 | fail: | |
26276 | return NULL; | |
26277 | } | |
26278 | ||
26279 | ||
26280 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26281 | PyObject *resultobj; | |
26282 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26283 | bool result; | |
26284 | PyObject * obj0 = 0 ; | |
26285 | char *kwnames[] = { | |
26286 | (char *) "self", NULL | |
26287 | }; | |
26288 | ||
26289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
26290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26291 | { | |
26292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26293 | result = (bool)(arg1)->Layout(); | |
26294 | ||
26295 | wxPyEndAllowThreads(__tstate); | |
26296 | if (PyErr_Occurred()) SWIG_fail; | |
26297 | } | |
8edf1c75 | 26298 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
26299 | return resultobj; |
26300 | fail: | |
26301 | return NULL; | |
26302 | } | |
26303 | ||
26304 | ||
26305 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26306 | PyObject *resultobj; | |
26307 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26308 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 26309 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26310 | PyObject * obj0 = 0 ; |
26311 | PyObject * obj1 = 0 ; | |
26312 | PyObject * obj2 = 0 ; | |
26313 | char *kwnames[] = { | |
26314 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
26315 | }; | |
26316 | ||
26317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26319 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26320 | if (obj2) { | |
83448d71 | 26321 | { |
8edf1c75 | 26322 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
26323 | if (PyErr_Occurred()) SWIG_fail; |
26324 | } | |
d14a1e28 RD |
26325 | } |
26326 | { | |
26327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26328 | (arg1)->SetSizer(arg2,arg3); | |
26329 | ||
26330 | wxPyEndAllowThreads(__tstate); | |
26331 | if (PyErr_Occurred()) SWIG_fail; | |
26332 | } | |
26333 | Py_INCREF(Py_None); resultobj = Py_None; | |
26334 | return resultobj; | |
26335 | fail: | |
26336 | return NULL; | |
26337 | } | |
26338 | ||
26339 | ||
26340 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26341 | PyObject *resultobj; | |
26342 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26343 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 26344 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26345 | PyObject * obj0 = 0 ; |
26346 | PyObject * obj1 = 0 ; | |
26347 | PyObject * obj2 = 0 ; | |
26348 | char *kwnames[] = { | |
26349 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
26350 | }; | |
26351 | ||
26352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26354 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26355 | if (obj2) { | |
83448d71 | 26356 | { |
8edf1c75 | 26357 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
26358 | if (PyErr_Occurred()) SWIG_fail; |
26359 | } | |
d14a1e28 RD |
26360 | } |
26361 | { | |
26362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26363 | (arg1)->SetSizerAndFit(arg2,arg3); | |
26364 | ||
26365 | wxPyEndAllowThreads(__tstate); | |
26366 | if (PyErr_Occurred()) SWIG_fail; | |
26367 | } | |
26368 | Py_INCREF(Py_None); resultobj = Py_None; | |
26369 | return resultobj; | |
26370 | fail: | |
26371 | return NULL; | |
26372 | } | |
26373 | ||
26374 | ||
26375 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26376 | PyObject *resultobj; | |
26377 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26378 | wxSizer *result; | |
26379 | PyObject * obj0 = 0 ; | |
26380 | char *kwnames[] = { | |
26381 | (char *) "self", NULL | |
26382 | }; | |
26383 | ||
26384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
26385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26386 | { | |
26387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26388 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
26389 | ||
26390 | wxPyEndAllowThreads(__tstate); | |
26391 | if (PyErr_Occurred()) SWIG_fail; | |
26392 | } | |
26393 | { | |
26394 | resultobj = wxPyMake_wxSizer(result); | |
26395 | } | |
26396 | return resultobj; | |
26397 | fail: | |
26398 | return NULL; | |
26399 | } | |
26400 | ||
26401 | ||
26402 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26403 | PyObject *resultobj; | |
26404 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26405 | wxSizer *arg2 = (wxSizer *) 0 ; | |
26406 | PyObject * obj0 = 0 ; | |
26407 | PyObject * obj1 = 0 ; | |
26408 | char *kwnames[] = { | |
26409 | (char *) "self",(char *) "sizer", NULL | |
26410 | }; | |
26411 | ||
26412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
26413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26414 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26415 | { | |
26416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26417 | (arg1)->SetContainingSizer(arg2); | |
26418 | ||
26419 | wxPyEndAllowThreads(__tstate); | |
26420 | if (PyErr_Occurred()) SWIG_fail; | |
26421 | } | |
26422 | Py_INCREF(Py_None); resultobj = Py_None; | |
26423 | return resultobj; | |
26424 | fail: | |
26425 | return NULL; | |
26426 | } | |
26427 | ||
26428 | ||
26429 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26430 | PyObject *resultobj; | |
26431 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26432 | wxSizer *result; | |
26433 | PyObject * obj0 = 0 ; | |
26434 | char *kwnames[] = { | |
26435 | (char *) "self", NULL | |
26436 | }; | |
26437 | ||
26438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
26439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26440 | { | |
26441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26442 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
26443 | ||
26444 | wxPyEndAllowThreads(__tstate); | |
26445 | if (PyErr_Occurred()) SWIG_fail; | |
26446 | } | |
26447 | { | |
26448 | resultobj = wxPyMake_wxSizer(result); | |
26449 | } | |
26450 | return resultobj; | |
26451 | fail: | |
26452 | return NULL; | |
26453 | } | |
26454 | ||
26455 | ||
26456 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
26457 | PyObject *obj; | |
26458 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26459 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
26460 | Py_INCREF(obj); | |
26461 | return Py_BuildValue((char *)""); | |
26462 | } | |
26463 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26464 | PyObject *resultobj; | |
26465 | long arg1 ; | |
26466 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26467 | wxWindow *result; | |
8edf1c75 | 26468 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
26469 | PyObject * obj1 = 0 ; |
26470 | char *kwnames[] = { | |
26471 | (char *) "id",(char *) "parent", NULL | |
26472 | }; | |
26473 | ||
8edf1c75 RD |
26474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
26475 | { | |
26476 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
26477 | if (PyErr_Occurred()) SWIG_fail; | |
26478 | } | |
d14a1e28 RD |
26479 | if (obj1) { |
26480 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26481 | } | |
26482 | { | |
26483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26484 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
26485 | ||
26486 | wxPyEndAllowThreads(__tstate); | |
26487 | if (PyErr_Occurred()) SWIG_fail; | |
26488 | } | |
26489 | { | |
26490 | resultobj = wxPyMake_wxObject(result); | |
26491 | } | |
26492 | return resultobj; | |
26493 | fail: | |
26494 | return NULL; | |
26495 | } | |
26496 | ||
26497 | ||
26498 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26499 | PyObject *resultobj; | |
26500 | wxString *arg1 = 0 ; | |
26501 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26502 | wxWindow *result; | |
423f194a | 26503 | bool temp1 = False ; |
d14a1e28 RD |
26504 | PyObject * obj0 = 0 ; |
26505 | PyObject * obj1 = 0 ; | |
26506 | char *kwnames[] = { | |
26507 | (char *) "name",(char *) "parent", NULL | |
26508 | }; | |
26509 | ||
26510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
26511 | { | |
26512 | arg1 = wxString_in_helper(obj0); | |
26513 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 26514 | temp1 = True; |
d14a1e28 RD |
26515 | } |
26516 | if (obj1) { | |
26517 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26518 | } | |
26519 | { | |
26520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26521 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
26522 | ||
26523 | wxPyEndAllowThreads(__tstate); | |
26524 | if (PyErr_Occurred()) SWIG_fail; | |
26525 | } | |
26526 | { | |
26527 | resultobj = wxPyMake_wxObject(result); | |
26528 | } | |
26529 | { | |
26530 | if (temp1) | |
26531 | delete arg1; | |
26532 | } | |
26533 | return resultobj; | |
26534 | fail: | |
26535 | { | |
26536 | if (temp1) | |
26537 | delete arg1; | |
26538 | } | |
26539 | return NULL; | |
26540 | } | |
26541 | ||
26542 | ||
26543 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26544 | PyObject *resultobj; | |
26545 | wxString *arg1 = 0 ; | |
26546 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26547 | wxWindow *result; | |
423f194a | 26548 | bool temp1 = False ; |
d14a1e28 RD |
26549 | PyObject * obj0 = 0 ; |
26550 | PyObject * obj1 = 0 ; | |
26551 | char *kwnames[] = { | |
26552 | (char *) "label",(char *) "parent", NULL | |
26553 | }; | |
26554 | ||
26555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
26556 | { | |
26557 | arg1 = wxString_in_helper(obj0); | |
26558 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 26559 | temp1 = True; |
d14a1e28 RD |
26560 | } |
26561 | if (obj1) { | |
26562 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26563 | } | |
26564 | { | |
26565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26566 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
26567 | ||
26568 | wxPyEndAllowThreads(__tstate); | |
26569 | if (PyErr_Occurred()) SWIG_fail; | |
26570 | } | |
26571 | { | |
26572 | resultobj = wxPyMake_wxObject(result); | |
26573 | } | |
26574 | { | |
26575 | if (temp1) | |
26576 | delete arg1; | |
26577 | } | |
26578 | return resultobj; | |
26579 | fail: | |
26580 | { | |
26581 | if (temp1) | |
26582 | delete arg1; | |
26583 | } | |
26584 | return NULL; | |
26585 | } | |
26586 | ||
26587 | ||
26588 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26589 | PyObject *resultobj; | |
26590 | unsigned long arg1 ; | |
26591 | wxWindow *result; | |
26592 | PyObject * obj0 = 0 ; | |
26593 | char *kwnames[] = { | |
26594 | (char *) "hWnd", NULL | |
26595 | }; | |
26596 | ||
26597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FromHWND",kwnames,&obj0)) goto fail; | |
83448d71 | 26598 | { |
8edf1c75 | 26599 | arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0); |
83448d71 RD |
26600 | if (PyErr_Occurred()) SWIG_fail; |
26601 | } | |
d14a1e28 RD |
26602 | { |
26603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26604 | result = (wxWindow *)wxWindow_FromHWND(arg1); | |
26605 | ||
26606 | wxPyEndAllowThreads(__tstate); | |
26607 | if (PyErr_Occurred()) SWIG_fail; | |
26608 | } | |
26609 | { | |
26610 | resultobj = wxPyMake_wxObject(result); | |
26611 | } | |
26612 | return resultobj; | |
26613 | fail: | |
26614 | return NULL; | |
26615 | } | |
26616 | ||
26617 | ||
26618 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26619 | PyObject *resultobj; | |
26620 | wxValidator *result; | |
26621 | char *kwnames[] = { | |
26622 | NULL | |
26623 | }; | |
26624 | ||
26625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
26626 | { | |
26627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26628 | result = (wxValidator *)new wxValidator(); | |
26629 | ||
26630 | wxPyEndAllowThreads(__tstate); | |
26631 | if (PyErr_Occurred()) SWIG_fail; | |
26632 | } | |
26633 | { | |
26634 | resultobj = wxPyMake_wxObject(result); | |
26635 | } | |
26636 | return resultobj; | |
26637 | fail: | |
26638 | return NULL; | |
26639 | } | |
26640 | ||
26641 | ||
26642 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26643 | PyObject *resultobj; | |
26644 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26645 | wxValidator *result; | |
26646 | PyObject * obj0 = 0 ; | |
26647 | char *kwnames[] = { | |
26648 | (char *) "self", NULL | |
26649 | }; | |
26650 | ||
26651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
26652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26653 | { | |
26654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26655 | result = (wxValidator *)(arg1)->Clone(); | |
26656 | ||
26657 | wxPyEndAllowThreads(__tstate); | |
26658 | if (PyErr_Occurred()) SWIG_fail; | |
26659 | } | |
26660 | { | |
26661 | resultobj = wxPyMake_wxObject(result); | |
26662 | } | |
26663 | return resultobj; | |
26664 | fail: | |
26665 | return NULL; | |
26666 | } | |
26667 | ||
26668 | ||
26669 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26670 | PyObject *resultobj; | |
26671 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26672 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26673 | bool result; | |
26674 | PyObject * obj0 = 0 ; | |
26675 | PyObject * obj1 = 0 ; | |
26676 | char *kwnames[] = { | |
26677 | (char *) "self",(char *) "parent", NULL | |
26678 | }; | |
26679 | ||
26680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
26681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26682 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26683 | { | |
26684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26685 | result = (bool)(arg1)->Validate(arg2); | |
26686 | ||
26687 | wxPyEndAllowThreads(__tstate); | |
26688 | if (PyErr_Occurred()) SWIG_fail; | |
26689 | } | |
8edf1c75 | 26690 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
26691 | return resultobj; |
26692 | fail: | |
26693 | return NULL; | |
26694 | } | |
26695 | ||
26696 | ||
26697 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26698 | PyObject *resultobj; | |
26699 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26700 | bool result; | |
26701 | PyObject * obj0 = 0 ; | |
26702 | char *kwnames[] = { | |
26703 | (char *) "self", NULL | |
26704 | }; | |
26705 | ||
26706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
26707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26708 | { | |
26709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26710 | result = (bool)(arg1)->TransferToWindow(); | |
26711 | ||
26712 | wxPyEndAllowThreads(__tstate); | |
26713 | if (PyErr_Occurred()) SWIG_fail; | |
26714 | } | |
8edf1c75 | 26715 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
26716 | return resultobj; |
26717 | fail: | |
26718 | return NULL; | |
26719 | } | |
26720 | ||
26721 | ||
26722 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26723 | PyObject *resultobj; | |
26724 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26725 | bool result; | |
26726 | PyObject * obj0 = 0 ; | |
26727 | char *kwnames[] = { | |
26728 | (char *) "self", NULL | |
26729 | }; | |
26730 | ||
26731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
26732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26733 | { | |
26734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26735 | result = (bool)(arg1)->TransferFromWindow(); | |
26736 | ||
26737 | wxPyEndAllowThreads(__tstate); | |
26738 | if (PyErr_Occurred()) SWIG_fail; | |
26739 | } | |
8edf1c75 | 26740 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
26741 | return resultobj; |
26742 | fail: | |
26743 | return NULL; | |
26744 | } | |
26745 | ||
26746 | ||
26747 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26748 | PyObject *resultobj; | |
26749 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26750 | wxWindow *result; | |
26751 | PyObject * obj0 = 0 ; | |
26752 | char *kwnames[] = { | |
26753 | (char *) "self", NULL | |
26754 | }; | |
26755 | ||
26756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
26757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26758 | { | |
26759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26760 | result = (wxWindow *)(arg1)->GetWindow(); | |
26761 | ||
26762 | wxPyEndAllowThreads(__tstate); | |
26763 | if (PyErr_Occurred()) SWIG_fail; | |
26764 | } | |
26765 | { | |
26766 | resultobj = wxPyMake_wxObject(result); | |
26767 | } | |
26768 | return resultobj; | |
26769 | fail: | |
26770 | return NULL; | |
26771 | } | |
26772 | ||
26773 | ||
26774 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26775 | PyObject *resultobj; | |
26776 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26777 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26778 | PyObject * obj0 = 0 ; | |
26779 | PyObject * obj1 = 0 ; | |
26780 | char *kwnames[] = { | |
26781 | (char *) "self",(char *) "window", NULL | |
26782 | }; | |
26783 | ||
26784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
26785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26786 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26787 | { | |
26788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26789 | (arg1)->SetWindow(arg2); | |
26790 | ||
26791 | wxPyEndAllowThreads(__tstate); | |
26792 | if (PyErr_Occurred()) SWIG_fail; | |
26793 | } | |
26794 | Py_INCREF(Py_None); resultobj = Py_None; | |
26795 | return resultobj; | |
26796 | fail: | |
26797 | return NULL; | |
26798 | } | |
26799 | ||
26800 | ||
26801 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26802 | PyObject *resultobj; | |
26803 | bool result; | |
26804 | char *kwnames[] = { | |
26805 | NULL | |
26806 | }; | |
26807 | ||
26808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
26809 | { | |
26810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26811 | result = (bool)wxValidator::IsSilent(); | |
26812 | ||
26813 | wxPyEndAllowThreads(__tstate); | |
26814 | if (PyErr_Occurred()) SWIG_fail; | |
26815 | } | |
8edf1c75 | 26816 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
26817 | return resultobj; |
26818 | fail: | |
26819 | return NULL; | |
26820 | } | |
26821 | ||
26822 | ||
26823 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26824 | PyObject *resultobj; | |
423f194a | 26825 | int arg1 = (int) True ; |
8edf1c75 | 26826 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
26827 | char *kwnames[] = { |
26828 | (char *) "doIt", NULL | |
26829 | }; | |
26830 | ||
8edf1c75 RD |
26831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; |
26832 | if (obj0) { | |
26833 | { | |
26834 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
26835 | if (PyErr_Occurred()) SWIG_fail; | |
26836 | } | |
26837 | } | |
d14a1e28 RD |
26838 | { |
26839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26840 | wxValidator::SetBellOnError(arg1); | |
26841 | ||
26842 | wxPyEndAllowThreads(__tstate); | |
26843 | if (PyErr_Occurred()) SWIG_fail; | |
26844 | } | |
26845 | Py_INCREF(Py_None); resultobj = Py_None; | |
26846 | return resultobj; | |
26847 | fail: | |
26848 | return NULL; | |
26849 | } | |
26850 | ||
26851 | ||
26852 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
26853 | PyObject *obj; | |
26854 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26855 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
26856 | Py_INCREF(obj); | |
26857 | return Py_BuildValue((char *)""); | |
26858 | } | |
26859 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26860 | PyObject *resultobj; | |
26861 | wxPyValidator *result; | |
26862 | char *kwnames[] = { | |
26863 | NULL | |
26864 | }; | |
26865 | ||
26866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
26867 | { | |
26868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26869 | result = (wxPyValidator *)new wxPyValidator(); | |
26870 | ||
26871 | wxPyEndAllowThreads(__tstate); | |
26872 | if (PyErr_Occurred()) SWIG_fail; | |
26873 | } | |
26874 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyValidator, 1); | |
26875 | return resultobj; | |
26876 | fail: | |
26877 | return NULL; | |
26878 | } | |
26879 | ||
26880 | ||
26881 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26882 | PyObject *resultobj; | |
26883 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
26884 | PyObject *arg2 = (PyObject *) 0 ; | |
26885 | PyObject *arg3 = (PyObject *) 0 ; | |
423f194a | 26886 | int arg4 = (int) True ; |
d14a1e28 RD |
26887 | PyObject * obj0 = 0 ; |
26888 | PyObject * obj1 = 0 ; | |
26889 | PyObject * obj2 = 0 ; | |
8edf1c75 | 26890 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
26891 | char *kwnames[] = { |
26892 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
26893 | }; | |
26894 | ||
8edf1c75 | 26895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
26896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
26897 | arg2 = obj1; | |
26898 | arg3 = obj2; | |
8edf1c75 RD |
26899 | if (obj3) { |
26900 | { | |
26901 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
26902 | if (PyErr_Occurred()) SWIG_fail; | |
26903 | } | |
26904 | } | |
d14a1e28 RD |
26905 | { |
26906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26907 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
26908 | ||
26909 | wxPyEndAllowThreads(__tstate); | |
26910 | if (PyErr_Occurred()) SWIG_fail; | |
26911 | } | |
26912 | Py_INCREF(Py_None); resultobj = Py_None; | |
26913 | return resultobj; | |
26914 | fail: | |
26915 | return NULL; | |
26916 | } | |
26917 | ||
26918 | ||
26919 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
26920 | PyObject *obj; | |
26921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26922 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
26923 | Py_INCREF(obj); | |
26924 | return Py_BuildValue((char *)""); | |
26925 | } | |
8edf1c75 | 26926 | static int _wrap_DefaultValidator_set(PyObject *) { |
d14a1e28 RD |
26927 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
26928 | return 1; | |
26929 | } | |
26930 | ||
26931 | ||
26932 | static PyObject *_wrap_DefaultValidator_get() { | |
26933 | PyObject *pyobj; | |
26934 | ||
26935 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultValidator, SWIGTYPE_p_wxValidator, 0); | |
26936 | return pyobj; | |
26937 | } | |
26938 | ||
26939 | ||
26940 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26941 | PyObject *resultobj; | |
26942 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
26943 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
26944 | long arg2 = (long) 0 ; | |
26945 | wxMenu *result; | |
423f194a | 26946 | bool temp1 = False ; |
d14a1e28 | 26947 | PyObject * obj0 = 0 ; |
8edf1c75 | 26948 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26949 | char *kwnames[] = { |
26950 | (char *) "title",(char *) "style", NULL | |
26951 | }; | |
26952 | ||
8edf1c75 | 26953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
26954 | if (obj0) { |
26955 | { | |
26956 | arg1 = wxString_in_helper(obj0); | |
26957 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 26958 | temp1 = True; |
d14a1e28 RD |
26959 | } |
26960 | } | |
8edf1c75 RD |
26961 | if (obj1) { |
26962 | { | |
26963 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
26964 | if (PyErr_Occurred()) SWIG_fail; | |
26965 | } | |
26966 | } | |
d14a1e28 RD |
26967 | { |
26968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26969 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
26970 | ||
26971 | wxPyEndAllowThreads(__tstate); | |
26972 | if (PyErr_Occurred()) SWIG_fail; | |
26973 | } | |
26974 | { | |
26975 | resultobj = wxPyMake_wxObject(result); | |
26976 | } | |
26977 | { | |
26978 | if (temp1) | |
26979 | delete arg1; | |
26980 | } | |
26981 | return resultobj; | |
26982 | fail: | |
26983 | { | |
26984 | if (temp1) | |
26985 | delete arg1; | |
26986 | } | |
26987 | return NULL; | |
26988 | } | |
26989 | ||
26990 | ||
26991 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26992 | PyObject *resultobj; | |
26993 | wxMenu *arg1 = (wxMenu *) 0 ; | |
26994 | int arg2 ; | |
26995 | wxString *arg3 = 0 ; | |
26996 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
26997 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
26998 | int arg5 = (int) wxITEM_NORMAL ; | |
83448d71 | 26999 | wxMenuItem *result; |
423f194a RD |
27000 | bool temp3 = False ; |
27001 | bool temp4 = False ; | |
d14a1e28 | 27002 | PyObject * obj0 = 0 ; |
8edf1c75 | 27003 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27004 | PyObject * obj2 = 0 ; |
27005 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27006 | PyObject * obj4 = 0 ; |
d14a1e28 | 27007 | char *kwnames[] = { |
f0983263 | 27008 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27009 | }; |
27010 | ||
8edf1c75 | 27011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27013 | { |
27014 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27015 | if (PyErr_Occurred()) SWIG_fail; | |
27016 | } | |
d14a1e28 RD |
27017 | { |
27018 | arg3 = wxString_in_helper(obj2); | |
27019 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27020 | temp3 = True; |
d14a1e28 RD |
27021 | } |
27022 | if (obj3) { | |
27023 | { | |
27024 | arg4 = wxString_in_helper(obj3); | |
27025 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27026 | temp4 = True; |
d14a1e28 RD |
27027 | } |
27028 | } | |
8edf1c75 RD |
27029 | if (obj4) { |
27030 | { | |
27031 | arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4); | |
27032 | if (PyErr_Occurred()) SWIG_fail; | |
27033 | } | |
27034 | } | |
d14a1e28 RD |
27035 | { |
27036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27037 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
27038 | |
27039 | wxPyEndAllowThreads(__tstate); | |
27040 | if (PyErr_Occurred()) SWIG_fail; | |
27041 | } | |
83448d71 RD |
27042 | { |
27043 | resultobj = wxPyMake_wxObject(result); | |
27044 | } | |
d14a1e28 RD |
27045 | { |
27046 | if (temp3) | |
27047 | delete arg3; | |
27048 | } | |
27049 | { | |
27050 | if (temp4) | |
27051 | delete arg4; | |
27052 | } | |
27053 | return resultobj; | |
27054 | fail: | |
27055 | { | |
27056 | if (temp3) | |
27057 | delete arg3; | |
27058 | } | |
27059 | { | |
27060 | if (temp4) | |
27061 | delete arg4; | |
27062 | } | |
27063 | return NULL; | |
27064 | } | |
27065 | ||
27066 | ||
27067 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27068 | PyObject *resultobj; | |
27069 | wxMenu *arg1 = (wxMenu *) 0 ; | |
83448d71 | 27070 | wxMenuItem *result; |
d14a1e28 RD |
27071 | PyObject * obj0 = 0 ; |
27072 | char *kwnames[] = { | |
27073 | (char *) "self", NULL | |
27074 | }; | |
27075 | ||
27076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
27077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27078 | { | |
27079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27080 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
27081 | |
27082 | wxPyEndAllowThreads(__tstate); | |
27083 | if (PyErr_Occurred()) SWIG_fail; | |
27084 | } | |
83448d71 RD |
27085 | { |
27086 | resultobj = wxPyMake_wxObject(result); | |
27087 | } | |
d14a1e28 RD |
27088 | return resultobj; |
27089 | fail: | |
27090 | return NULL; | |
27091 | } | |
27092 | ||
27093 | ||
27094 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27095 | PyObject *resultobj; | |
27096 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27097 | int arg2 ; | |
27098 | wxString *arg3 = 0 ; | |
27099 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27100 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27101 | wxMenuItem *result; |
423f194a RD |
27102 | bool temp3 = False ; |
27103 | bool temp4 = False ; | |
d14a1e28 | 27104 | PyObject * obj0 = 0 ; |
8edf1c75 | 27105 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27106 | PyObject * obj2 = 0 ; |
27107 | PyObject * obj3 = 0 ; | |
27108 | char *kwnames[] = { | |
f0983263 | 27109 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27110 | }; |
27111 | ||
8edf1c75 | 27112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 27113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27114 | { |
27115 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27116 | if (PyErr_Occurred()) SWIG_fail; | |
27117 | } | |
d14a1e28 RD |
27118 | { |
27119 | arg3 = wxString_in_helper(obj2); | |
27120 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27121 | temp3 = True; |
d14a1e28 RD |
27122 | } |
27123 | if (obj3) { | |
27124 | { | |
27125 | arg4 = wxString_in_helper(obj3); | |
27126 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27127 | temp4 = True; |
d14a1e28 RD |
27128 | } |
27129 | } | |
27130 | { | |
27131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27132 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27133 | |
27134 | wxPyEndAllowThreads(__tstate); | |
27135 | if (PyErr_Occurred()) SWIG_fail; | |
27136 | } | |
83448d71 RD |
27137 | { |
27138 | resultobj = wxPyMake_wxObject(result); | |
27139 | } | |
d14a1e28 RD |
27140 | { |
27141 | if (temp3) | |
27142 | delete arg3; | |
27143 | } | |
27144 | { | |
27145 | if (temp4) | |
27146 | delete arg4; | |
27147 | } | |
27148 | return resultobj; | |
27149 | fail: | |
27150 | { | |
27151 | if (temp3) | |
27152 | delete arg3; | |
27153 | } | |
27154 | { | |
27155 | if (temp4) | |
27156 | delete arg4; | |
27157 | } | |
27158 | return NULL; | |
27159 | } | |
27160 | ||
27161 | ||
27162 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27163 | PyObject *resultobj; | |
27164 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27165 | int arg2 ; | |
27166 | wxString *arg3 = 0 ; | |
27167 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27168 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27169 | wxMenuItem *result; |
423f194a RD |
27170 | bool temp3 = False ; |
27171 | bool temp4 = False ; | |
d14a1e28 | 27172 | PyObject * obj0 = 0 ; |
8edf1c75 | 27173 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27174 | PyObject * obj2 = 0 ; |
27175 | PyObject * obj3 = 0 ; | |
27176 | char *kwnames[] = { | |
f0983263 | 27177 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27178 | }; |
27179 | ||
8edf1c75 | 27180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 27181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27182 | { |
27183 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27184 | if (PyErr_Occurred()) SWIG_fail; | |
27185 | } | |
d14a1e28 RD |
27186 | { |
27187 | arg3 = wxString_in_helper(obj2); | |
27188 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27189 | temp3 = True; |
d14a1e28 RD |
27190 | } |
27191 | if (obj3) { | |
27192 | { | |
27193 | arg4 = wxString_in_helper(obj3); | |
27194 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27195 | temp4 = True; |
d14a1e28 RD |
27196 | } |
27197 | } | |
27198 | { | |
27199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27200 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27201 | |
27202 | wxPyEndAllowThreads(__tstate); | |
27203 | if (PyErr_Occurred()) SWIG_fail; | |
27204 | } | |
83448d71 RD |
27205 | { |
27206 | resultobj = wxPyMake_wxObject(result); | |
27207 | } | |
d14a1e28 RD |
27208 | { |
27209 | if (temp3) | |
27210 | delete arg3; | |
27211 | } | |
27212 | { | |
27213 | if (temp4) | |
27214 | delete arg4; | |
27215 | } | |
27216 | return resultobj; | |
27217 | fail: | |
27218 | { | |
27219 | if (temp3) | |
27220 | delete arg3; | |
27221 | } | |
27222 | { | |
27223 | if (temp4) | |
27224 | delete arg4; | |
27225 | } | |
27226 | return NULL; | |
27227 | } | |
27228 | ||
27229 | ||
27230 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27231 | PyObject *resultobj; | |
27232 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27233 | int arg2 ; | |
27234 | wxString *arg3 = 0 ; | |
27235 | wxMenu *arg4 = (wxMenu *) 0 ; | |
27236 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27237 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 27238 | wxMenuItem *result; |
423f194a RD |
27239 | bool temp3 = False ; |
27240 | bool temp5 = False ; | |
d14a1e28 | 27241 | PyObject * obj0 = 0 ; |
8edf1c75 | 27242 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27243 | PyObject * obj2 = 0 ; |
27244 | PyObject * obj3 = 0 ; | |
27245 | PyObject * obj4 = 0 ; | |
27246 | char *kwnames[] = { | |
f0983263 | 27247 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
27248 | }; |
27249 | ||
8edf1c75 | 27250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27252 | { |
27253 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27254 | if (PyErr_Occurred()) SWIG_fail; | |
27255 | } | |
d14a1e28 RD |
27256 | { |
27257 | arg3 = wxString_in_helper(obj2); | |
27258 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27259 | temp3 = True; |
d14a1e28 RD |
27260 | } |
27261 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27262 | if (obj4) { | |
27263 | { | |
27264 | arg5 = wxString_in_helper(obj4); | |
27265 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27266 | temp5 = True; |
d14a1e28 RD |
27267 | } |
27268 | } | |
27269 | { | |
27270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27271 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27272 | |
27273 | wxPyEndAllowThreads(__tstate); | |
27274 | if (PyErr_Occurred()) SWIG_fail; | |
27275 | } | |
83448d71 RD |
27276 | { |
27277 | resultobj = wxPyMake_wxObject(result); | |
27278 | } | |
d14a1e28 RD |
27279 | { |
27280 | if (temp3) | |
27281 | delete arg3; | |
27282 | } | |
27283 | { | |
27284 | if (temp5) | |
27285 | delete arg5; | |
27286 | } | |
27287 | return resultobj; | |
27288 | fail: | |
27289 | { | |
27290 | if (temp3) | |
27291 | delete arg3; | |
27292 | } | |
27293 | { | |
27294 | if (temp5) | |
27295 | delete arg5; | |
27296 | } | |
27297 | return NULL; | |
27298 | } | |
27299 | ||
27300 | ||
27301 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27302 | PyObject *resultobj; | |
27303 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27304 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
83448d71 | 27305 | wxMenuItem *result; |
d14a1e28 RD |
27306 | PyObject * obj0 = 0 ; |
27307 | PyObject * obj1 = 0 ; | |
27308 | char *kwnames[] = { | |
27309 | (char *) "self",(char *) "item", NULL | |
27310 | }; | |
27311 | ||
27312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
27313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27314 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27315 | { | |
27316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27317 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
27318 | |
27319 | wxPyEndAllowThreads(__tstate); | |
27320 | if (PyErr_Occurred()) SWIG_fail; | |
27321 | } | |
83448d71 RD |
27322 | { |
27323 | resultobj = wxPyMake_wxObject(result); | |
27324 | } | |
d14a1e28 RD |
27325 | return resultobj; |
27326 | fail: | |
27327 | return NULL; | |
27328 | } | |
27329 | ||
27330 | ||
27331 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27332 | PyObject *resultobj; | |
27333 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27334 | PyObject * obj0 = 0 ; | |
27335 | char *kwnames[] = { | |
27336 | (char *) "self", NULL | |
27337 | }; | |
27338 | ||
27339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
27340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27341 | { | |
27342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27343 | (arg1)->Break(); | |
27344 | ||
27345 | wxPyEndAllowThreads(__tstate); | |
27346 | if (PyErr_Occurred()) SWIG_fail; | |
27347 | } | |
27348 | Py_INCREF(Py_None); resultobj = Py_None; | |
27349 | return resultobj; | |
27350 | fail: | |
27351 | return NULL; | |
27352 | } | |
27353 | ||
27354 | ||
27355 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27356 | PyObject *resultobj; | |
27357 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27358 | size_t arg2 ; | |
27359 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
83448d71 | 27360 | wxMenuItem *result; |
d14a1e28 RD |
27361 | PyObject * obj0 = 0 ; |
27362 | PyObject * obj1 = 0 ; | |
27363 | PyObject * obj2 = 0 ; | |
27364 | char *kwnames[] = { | |
27365 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
27366 | }; | |
27367 | ||
27368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 27370 | { |
8edf1c75 | 27371 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
27372 | if (PyErr_Occurred()) SWIG_fail; |
27373 | } | |
d14a1e28 RD |
27374 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
27375 | { | |
27376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27377 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
27378 | |
27379 | wxPyEndAllowThreads(__tstate); | |
27380 | if (PyErr_Occurred()) SWIG_fail; | |
27381 | } | |
83448d71 RD |
27382 | { |
27383 | resultobj = wxPyMake_wxObject(result); | |
27384 | } | |
d14a1e28 RD |
27385 | return resultobj; |
27386 | fail: | |
27387 | return NULL; | |
27388 | } | |
27389 | ||
27390 | ||
27391 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27392 | PyObject *resultobj; | |
27393 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27394 | size_t arg2 ; | |
27395 | int arg3 ; | |
27396 | wxString *arg4 = 0 ; | |
27397 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27398 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
27399 | int arg6 = (int) wxITEM_NORMAL ; | |
83448d71 | 27400 | wxMenuItem *result; |
423f194a RD |
27401 | bool temp4 = False ; |
27402 | bool temp5 = False ; | |
d14a1e28 RD |
27403 | PyObject * obj0 = 0 ; |
27404 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27405 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27406 | PyObject * obj3 = 0 ; |
27407 | PyObject * obj4 = 0 ; | |
8edf1c75 | 27408 | PyObject * obj5 = 0 ; |
d14a1e28 | 27409 | char *kwnames[] = { |
f0983263 | 27410 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27411 | }; |
27412 | ||
8edf1c75 | 27413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 27414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 27415 | { |
8edf1c75 RD |
27416 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
27417 | if (PyErr_Occurred()) SWIG_fail; | |
27418 | } | |
27419 | { | |
27420 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
27421 | if (PyErr_Occurred()) SWIG_fail; |
27422 | } | |
d14a1e28 RD |
27423 | { |
27424 | arg4 = wxString_in_helper(obj3); | |
27425 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27426 | temp4 = True; |
d14a1e28 RD |
27427 | } |
27428 | if (obj4) { | |
27429 | { | |
27430 | arg5 = wxString_in_helper(obj4); | |
27431 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27432 | temp5 = True; |
d14a1e28 RD |
27433 | } |
27434 | } | |
8edf1c75 RD |
27435 | if (obj5) { |
27436 | { | |
27437 | arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5); | |
27438 | if (PyErr_Occurred()) SWIG_fail; | |
27439 | } | |
27440 | } | |
d14a1e28 RD |
27441 | { |
27442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27443 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
27444 | |
27445 | wxPyEndAllowThreads(__tstate); | |
27446 | if (PyErr_Occurred()) SWIG_fail; | |
27447 | } | |
83448d71 RD |
27448 | { |
27449 | resultobj = wxPyMake_wxObject(result); | |
27450 | } | |
d14a1e28 RD |
27451 | { |
27452 | if (temp4) | |
27453 | delete arg4; | |
27454 | } | |
27455 | { | |
27456 | if (temp5) | |
27457 | delete arg5; | |
27458 | } | |
27459 | return resultobj; | |
27460 | fail: | |
27461 | { | |
27462 | if (temp4) | |
27463 | delete arg4; | |
27464 | } | |
27465 | { | |
27466 | if (temp5) | |
27467 | delete arg5; | |
27468 | } | |
27469 | return NULL; | |
27470 | } | |
27471 | ||
27472 | ||
27473 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27474 | PyObject *resultobj; | |
27475 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27476 | size_t arg2 ; | |
83448d71 | 27477 | wxMenuItem *result; |
d14a1e28 RD |
27478 | PyObject * obj0 = 0 ; |
27479 | PyObject * obj1 = 0 ; | |
27480 | char *kwnames[] = { | |
27481 | (char *) "self",(char *) "pos", NULL | |
27482 | }; | |
27483 | ||
27484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
27485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 27486 | { |
8edf1c75 | 27487 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
27488 | if (PyErr_Occurred()) SWIG_fail; |
27489 | } | |
d14a1e28 RD |
27490 | { |
27491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27492 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
27493 | |
27494 | wxPyEndAllowThreads(__tstate); | |
27495 | if (PyErr_Occurred()) SWIG_fail; | |
27496 | } | |
83448d71 RD |
27497 | { |
27498 | resultobj = wxPyMake_wxObject(result); | |
27499 | } | |
d14a1e28 RD |
27500 | return resultobj; |
27501 | fail: | |
27502 | return NULL; | |
27503 | } | |
27504 | ||
27505 | ||
27506 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27507 | PyObject *resultobj; | |
27508 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27509 | size_t arg2 ; | |
27510 | int arg3 ; | |
27511 | wxString *arg4 = 0 ; | |
27512 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27513 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 27514 | wxMenuItem *result; |
423f194a RD |
27515 | bool temp4 = False ; |
27516 | bool temp5 = False ; | |
d14a1e28 RD |
27517 | PyObject * obj0 = 0 ; |
27518 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27519 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27520 | PyObject * obj3 = 0 ; |
27521 | PyObject * obj4 = 0 ; | |
27522 | char *kwnames[] = { | |
f0983263 | 27523 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27524 | }; |
27525 | ||
8edf1c75 | 27526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 27528 | { |
8edf1c75 RD |
27529 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
27530 | if (PyErr_Occurred()) SWIG_fail; | |
27531 | } | |
27532 | { | |
27533 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
27534 | if (PyErr_Occurred()) SWIG_fail; |
27535 | } | |
d14a1e28 RD |
27536 | { |
27537 | arg4 = wxString_in_helper(obj3); | |
27538 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27539 | temp4 = True; |
d14a1e28 RD |
27540 | } |
27541 | if (obj4) { | |
27542 | { | |
27543 | arg5 = wxString_in_helper(obj4); | |
27544 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27545 | temp5 = True; |
d14a1e28 RD |
27546 | } |
27547 | } | |
27548 | { | |
27549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27550 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27551 | |
27552 | wxPyEndAllowThreads(__tstate); | |
27553 | if (PyErr_Occurred()) SWIG_fail; | |
27554 | } | |
83448d71 RD |
27555 | { |
27556 | resultobj = wxPyMake_wxObject(result); | |
27557 | } | |
d14a1e28 RD |
27558 | { |
27559 | if (temp4) | |
27560 | delete arg4; | |
27561 | } | |
27562 | { | |
27563 | if (temp5) | |
27564 | delete arg5; | |
27565 | } | |
27566 | return resultobj; | |
27567 | fail: | |
27568 | { | |
27569 | if (temp4) | |
27570 | delete arg4; | |
27571 | } | |
27572 | { | |
27573 | if (temp5) | |
27574 | delete arg5; | |
27575 | } | |
27576 | return NULL; | |
27577 | } | |
27578 | ||
27579 | ||
27580 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27581 | PyObject *resultobj; | |
27582 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27583 | size_t arg2 ; | |
27584 | int arg3 ; | |
27585 | wxString *arg4 = 0 ; | |
27586 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27587 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 27588 | wxMenuItem *result; |
423f194a RD |
27589 | bool temp4 = False ; |
27590 | bool temp5 = False ; | |
d14a1e28 RD |
27591 | PyObject * obj0 = 0 ; |
27592 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27593 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27594 | PyObject * obj3 = 0 ; |
27595 | PyObject * obj4 = 0 ; | |
27596 | char *kwnames[] = { | |
f0983263 | 27597 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27598 | }; |
27599 | ||
8edf1c75 | 27600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 27602 | { |
8edf1c75 RD |
27603 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
27604 | if (PyErr_Occurred()) SWIG_fail; | |
27605 | } | |
27606 | { | |
27607 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
27608 | if (PyErr_Occurred()) SWIG_fail; |
27609 | } | |
d14a1e28 RD |
27610 | { |
27611 | arg4 = wxString_in_helper(obj3); | |
27612 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27613 | temp4 = True; |
d14a1e28 RD |
27614 | } |
27615 | if (obj4) { | |
27616 | { | |
27617 | arg5 = wxString_in_helper(obj4); | |
27618 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27619 | temp5 = True; |
d14a1e28 RD |
27620 | } |
27621 | } | |
27622 | { | |
27623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27624 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27625 | |
27626 | wxPyEndAllowThreads(__tstate); | |
27627 | if (PyErr_Occurred()) SWIG_fail; | |
27628 | } | |
83448d71 RD |
27629 | { |
27630 | resultobj = wxPyMake_wxObject(result); | |
27631 | } | |
d14a1e28 RD |
27632 | { |
27633 | if (temp4) | |
27634 | delete arg4; | |
27635 | } | |
27636 | { | |
27637 | if (temp5) | |
27638 | delete arg5; | |
27639 | } | |
27640 | return resultobj; | |
27641 | fail: | |
27642 | { | |
27643 | if (temp4) | |
27644 | delete arg4; | |
27645 | } | |
27646 | { | |
27647 | if (temp5) | |
27648 | delete arg5; | |
27649 | } | |
27650 | return NULL; | |
27651 | } | |
27652 | ||
27653 | ||
27654 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27655 | PyObject *resultobj; | |
27656 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27657 | size_t arg2 ; | |
27658 | int arg3 ; | |
27659 | wxString *arg4 = 0 ; | |
27660 | wxMenu *arg5 = (wxMenu *) 0 ; | |
27661 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
27662 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
83448d71 | 27663 | wxMenuItem *result; |
423f194a RD |
27664 | bool temp4 = False ; |
27665 | bool temp6 = False ; | |
d14a1e28 RD |
27666 | PyObject * obj0 = 0 ; |
27667 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27668 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27669 | PyObject * obj3 = 0 ; |
27670 | PyObject * obj4 = 0 ; | |
27671 | PyObject * obj5 = 0 ; | |
27672 | char *kwnames[] = { | |
f0983263 | 27673 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
27674 | }; |
27675 | ||
8edf1c75 | 27676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 27677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 27678 | { |
8edf1c75 RD |
27679 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
27680 | if (PyErr_Occurred()) SWIG_fail; | |
27681 | } | |
27682 | { | |
27683 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
83448d71 RD |
27684 | if (PyErr_Occurred()) SWIG_fail; |
27685 | } | |
d14a1e28 RD |
27686 | { |
27687 | arg4 = wxString_in_helper(obj3); | |
27688 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27689 | temp4 = True; |
d14a1e28 RD |
27690 | } |
27691 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27692 | if (obj5) { | |
27693 | { | |
27694 | arg6 = wxString_in_helper(obj5); | |
27695 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 27696 | temp6 = True; |
d14a1e28 RD |
27697 | } |
27698 | } | |
27699 | { | |
27700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27701 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
27702 | |
27703 | wxPyEndAllowThreads(__tstate); | |
27704 | if (PyErr_Occurred()) SWIG_fail; | |
27705 | } | |
83448d71 RD |
27706 | { |
27707 | resultobj = wxPyMake_wxObject(result); | |
27708 | } | |
d14a1e28 RD |
27709 | { |
27710 | if (temp4) | |
27711 | delete arg4; | |
27712 | } | |
27713 | { | |
27714 | if (temp6) | |
27715 | delete arg6; | |
27716 | } | |
27717 | return resultobj; | |
27718 | fail: | |
27719 | { | |
27720 | if (temp4) | |
27721 | delete arg4; | |
27722 | } | |
27723 | { | |
27724 | if (temp6) | |
27725 | delete arg6; | |
27726 | } | |
27727 | return NULL; | |
27728 | } | |
27729 | ||
27730 | ||
27731 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27732 | PyObject *resultobj; | |
27733 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27734 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
83448d71 | 27735 | wxMenuItem *result; |
d14a1e28 RD |
27736 | PyObject * obj0 = 0 ; |
27737 | PyObject * obj1 = 0 ; | |
27738 | char *kwnames[] = { | |
27739 | (char *) "self",(char *) "item", NULL | |
27740 | }; | |
27741 | ||
27742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
27743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27744 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27745 | { | |
27746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27747 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
27748 | |
27749 | wxPyEndAllowThreads(__tstate); | |
27750 | if (PyErr_Occurred()) SWIG_fail; | |
27751 | } | |
83448d71 RD |
27752 | { |
27753 | resultobj = wxPyMake_wxObject(result); | |
27754 | } | |
d14a1e28 RD |
27755 | return resultobj; |
27756 | fail: | |
27757 | return NULL; | |
27758 | } | |
27759 | ||
27760 | ||
27761 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27762 | PyObject *resultobj; | |
27763 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27764 | int arg2 ; | |
27765 | wxString *arg3 = 0 ; | |
27766 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27767 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27768 | int arg5 = (int) wxITEM_NORMAL ; | |
83448d71 | 27769 | wxMenuItem *result; |
423f194a RD |
27770 | bool temp3 = False ; |
27771 | bool temp4 = False ; | |
d14a1e28 | 27772 | PyObject * obj0 = 0 ; |
8edf1c75 | 27773 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27774 | PyObject * obj2 = 0 ; |
27775 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27776 | PyObject * obj4 = 0 ; |
d14a1e28 | 27777 | char *kwnames[] = { |
f0983263 | 27778 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27779 | }; |
27780 | ||
8edf1c75 | 27781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 27782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27783 | { |
27784 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27785 | if (PyErr_Occurred()) SWIG_fail; | |
27786 | } | |
d14a1e28 RD |
27787 | { |
27788 | arg3 = wxString_in_helper(obj2); | |
27789 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27790 | temp3 = True; |
d14a1e28 RD |
27791 | } |
27792 | if (obj3) { | |
27793 | { | |
27794 | arg4 = wxString_in_helper(obj3); | |
27795 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27796 | temp4 = True; |
d14a1e28 RD |
27797 | } |
27798 | } | |
8edf1c75 RD |
27799 | if (obj4) { |
27800 | { | |
27801 | arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4); | |
27802 | if (PyErr_Occurred()) SWIG_fail; | |
27803 | } | |
27804 | } | |
d14a1e28 RD |
27805 | { |
27806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27807 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
27808 | |
27809 | wxPyEndAllowThreads(__tstate); | |
27810 | if (PyErr_Occurred()) SWIG_fail; | |
27811 | } | |
83448d71 RD |
27812 | { |
27813 | resultobj = wxPyMake_wxObject(result); | |
27814 | } | |
d14a1e28 RD |
27815 | { |
27816 | if (temp3) | |
27817 | delete arg3; | |
27818 | } | |
27819 | { | |
27820 | if (temp4) | |
27821 | delete arg4; | |
27822 | } | |
27823 | return resultobj; | |
27824 | fail: | |
27825 | { | |
27826 | if (temp3) | |
27827 | delete arg3; | |
27828 | } | |
27829 | { | |
27830 | if (temp4) | |
27831 | delete arg4; | |
27832 | } | |
27833 | return NULL; | |
27834 | } | |
27835 | ||
27836 | ||
27837 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27838 | PyObject *resultobj; | |
27839 | wxMenu *arg1 = (wxMenu *) 0 ; | |
83448d71 | 27840 | wxMenuItem *result; |
d14a1e28 RD |
27841 | PyObject * obj0 = 0 ; |
27842 | char *kwnames[] = { | |
27843 | (char *) "self", NULL | |
27844 | }; | |
27845 | ||
27846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
27847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
27848 | { | |
27849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27850 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
27851 | |
27852 | wxPyEndAllowThreads(__tstate); | |
27853 | if (PyErr_Occurred()) SWIG_fail; | |
27854 | } | |
83448d71 RD |
27855 | { |
27856 | resultobj = wxPyMake_wxObject(result); | |
27857 | } | |
d14a1e28 RD |
27858 | return resultobj; |
27859 | fail: | |
27860 | return NULL; | |
27861 | } | |
27862 | ||
27863 | ||
27864 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27865 | PyObject *resultobj; | |
27866 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27867 | int arg2 ; | |
27868 | wxString *arg3 = 0 ; | |
27869 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27870 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27871 | wxMenuItem *result; |
423f194a RD |
27872 | bool temp3 = False ; |
27873 | bool temp4 = False ; | |
d14a1e28 | 27874 | PyObject * obj0 = 0 ; |
8edf1c75 | 27875 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27876 | PyObject * obj2 = 0 ; |
27877 | PyObject * obj3 = 0 ; | |
27878 | char *kwnames[] = { | |
f0983263 | 27879 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27880 | }; |
27881 | ||
8edf1c75 | 27882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 27883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27884 | { |
27885 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27886 | if (PyErr_Occurred()) SWIG_fail; | |
27887 | } | |
d14a1e28 RD |
27888 | { |
27889 | arg3 = wxString_in_helper(obj2); | |
27890 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27891 | temp3 = True; |
d14a1e28 RD |
27892 | } |
27893 | if (obj3) { | |
27894 | { | |
27895 | arg4 = wxString_in_helper(obj3); | |
27896 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27897 | temp4 = True; |
d14a1e28 RD |
27898 | } |
27899 | } | |
27900 | { | |
27901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27902 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27903 | |
27904 | wxPyEndAllowThreads(__tstate); | |
27905 | if (PyErr_Occurred()) SWIG_fail; | |
27906 | } | |
83448d71 RD |
27907 | { |
27908 | resultobj = wxPyMake_wxObject(result); | |
27909 | } | |
d14a1e28 RD |
27910 | { |
27911 | if (temp3) | |
27912 | delete arg3; | |
27913 | } | |
27914 | { | |
27915 | if (temp4) | |
27916 | delete arg4; | |
27917 | } | |
27918 | return resultobj; | |
27919 | fail: | |
27920 | { | |
27921 | if (temp3) | |
27922 | delete arg3; | |
27923 | } | |
27924 | { | |
27925 | if (temp4) | |
27926 | delete arg4; | |
27927 | } | |
27928 | return NULL; | |
27929 | } | |
27930 | ||
27931 | ||
27932 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27933 | PyObject *resultobj; | |
27934 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27935 | int arg2 ; | |
27936 | wxString *arg3 = 0 ; | |
27937 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27938 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27939 | wxMenuItem *result; |
423f194a RD |
27940 | bool temp3 = False ; |
27941 | bool temp4 = False ; | |
d14a1e28 | 27942 | PyObject * obj0 = 0 ; |
8edf1c75 | 27943 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27944 | PyObject * obj2 = 0 ; |
27945 | PyObject * obj3 = 0 ; | |
27946 | char *kwnames[] = { | |
f0983263 | 27947 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27948 | }; |
27949 | ||
8edf1c75 | 27950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 27951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
27952 | { |
27953 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
27954 | if (PyErr_Occurred()) SWIG_fail; | |
27955 | } | |
d14a1e28 RD |
27956 | { |
27957 | arg3 = wxString_in_helper(obj2); | |
27958 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27959 | temp3 = True; |
d14a1e28 RD |
27960 | } |
27961 | if (obj3) { | |
27962 | { | |
27963 | arg4 = wxString_in_helper(obj3); | |
27964 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27965 | temp4 = True; |
d14a1e28 RD |
27966 | } |
27967 | } | |
27968 | { | |
27969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27970 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27971 | |
27972 | wxPyEndAllowThreads(__tstate); | |
27973 | if (PyErr_Occurred()) SWIG_fail; | |
27974 | } | |
83448d71 RD |
27975 | { |
27976 | resultobj = wxPyMake_wxObject(result); | |
27977 | } | |
d14a1e28 RD |
27978 | { |
27979 | if (temp3) | |
27980 | delete arg3; | |
27981 | } | |
27982 | { | |
27983 | if (temp4) | |
27984 | delete arg4; | |
27985 | } | |
27986 | return resultobj; | |
27987 | fail: | |
27988 | { | |
27989 | if (temp3) | |
27990 | delete arg3; | |
27991 | } | |
27992 | { | |
27993 | if (temp4) | |
27994 | delete arg4; | |
27995 | } | |
27996 | return NULL; | |
27997 | } | |
27998 | ||
27999 | ||
28000 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28001 | PyObject *resultobj; | |
28002 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28003 | int arg2 ; | |
28004 | wxString *arg3 = 0 ; | |
28005 | wxMenu *arg4 = (wxMenu *) 0 ; | |
28006 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28007 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 28008 | wxMenuItem *result; |
423f194a RD |
28009 | bool temp3 = False ; |
28010 | bool temp5 = False ; | |
d14a1e28 | 28011 | PyObject * obj0 = 0 ; |
8edf1c75 | 28012 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28013 | PyObject * obj2 = 0 ; |
28014 | PyObject * obj3 = 0 ; | |
28015 | PyObject * obj4 = 0 ; | |
28016 | char *kwnames[] = { | |
f0983263 | 28017 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
28018 | }; |
28019 | ||
8edf1c75 | 28020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 28021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28022 | { |
28023 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28024 | if (PyErr_Occurred()) SWIG_fail; | |
28025 | } | |
d14a1e28 RD |
28026 | { |
28027 | arg3 = wxString_in_helper(obj2); | |
28028 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28029 | temp3 = True; |
d14a1e28 RD |
28030 | } |
28031 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28032 | if (obj4) { | |
28033 | { | |
28034 | arg5 = wxString_in_helper(obj4); | |
28035 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 28036 | temp5 = True; |
d14a1e28 RD |
28037 | } |
28038 | } | |
28039 | { | |
28040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28041 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28042 | |
28043 | wxPyEndAllowThreads(__tstate); | |
28044 | if (PyErr_Occurred()) SWIG_fail; | |
28045 | } | |
83448d71 RD |
28046 | { |
28047 | resultobj = wxPyMake_wxObject(result); | |
28048 | } | |
d14a1e28 RD |
28049 | { |
28050 | if (temp3) | |
28051 | delete arg3; | |
28052 | } | |
28053 | { | |
28054 | if (temp5) | |
28055 | delete arg5; | |
28056 | } | |
28057 | return resultobj; | |
28058 | fail: | |
28059 | { | |
28060 | if (temp3) | |
28061 | delete arg3; | |
28062 | } | |
28063 | { | |
28064 | if (temp5) | |
28065 | delete arg5; | |
28066 | } | |
28067 | return NULL; | |
28068 | } | |
28069 | ||
28070 | ||
28071 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28072 | PyObject *resultobj; | |
28073 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28074 | int arg2 ; | |
28075 | wxMenuItem *result; | |
28076 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28077 | PyObject * obj1 = 0 ; |
d14a1e28 | 28078 | char *kwnames[] = { |
f0983263 | 28079 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28080 | }; |
28081 | ||
8edf1c75 | 28082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28084 | { |
28085 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28086 | if (PyErr_Occurred()) SWIG_fail; | |
28087 | } | |
d14a1e28 RD |
28088 | { |
28089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28090 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28091 | ||
28092 | wxPyEndAllowThreads(__tstate); | |
28093 | if (PyErr_Occurred()) SWIG_fail; | |
28094 | } | |
28095 | { | |
28096 | resultobj = wxPyMake_wxObject(result); | |
28097 | } | |
28098 | return resultobj; | |
28099 | fail: | |
28100 | return NULL; | |
28101 | } | |
28102 | ||
28103 | ||
28104 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28105 | PyObject *resultobj; | |
28106 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28107 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28108 | wxMenuItem *result; | |
28109 | PyObject * obj0 = 0 ; | |
28110 | PyObject * obj1 = 0 ; | |
28111 | char *kwnames[] = { | |
28112 | (char *) "self",(char *) "item", NULL | |
28113 | }; | |
28114 | ||
28115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
28116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28117 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28118 | { | |
28119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28120 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28121 | ||
28122 | wxPyEndAllowThreads(__tstate); | |
28123 | if (PyErr_Occurred()) SWIG_fail; | |
28124 | } | |
28125 | { | |
28126 | resultobj = wxPyMake_wxObject(result); | |
28127 | } | |
28128 | return resultobj; | |
28129 | fail: | |
28130 | return NULL; | |
28131 | } | |
28132 | ||
28133 | ||
28134 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28135 | PyObject *resultobj; | |
28136 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28137 | int arg2 ; | |
28138 | bool result; | |
28139 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28140 | PyObject * obj1 = 0 ; |
d14a1e28 | 28141 | char *kwnames[] = { |
f0983263 | 28142 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28143 | }; |
28144 | ||
8edf1c75 | 28145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28147 | { |
28148 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28149 | if (PyErr_Occurred()) SWIG_fail; | |
28150 | } | |
d14a1e28 RD |
28151 | { |
28152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28153 | result = (bool)(arg1)->Delete(arg2); | |
28154 | ||
28155 | wxPyEndAllowThreads(__tstate); | |
28156 | if (PyErr_Occurred()) SWIG_fail; | |
28157 | } | |
8edf1c75 | 28158 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
28159 | return resultobj; |
28160 | fail: | |
28161 | return NULL; | |
28162 | } | |
28163 | ||
28164 | ||
28165 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28166 | PyObject *resultobj; | |
28167 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28168 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28169 | bool result; | |
28170 | PyObject * obj0 = 0 ; | |
28171 | PyObject * obj1 = 0 ; | |
28172 | char *kwnames[] = { | |
28173 | (char *) "self",(char *) "item", NULL | |
28174 | }; | |
28175 | ||
28176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
28177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28178 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28179 | { | |
28180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28181 | result = (bool)(arg1)->Delete(arg2); | |
28182 | ||
28183 | wxPyEndAllowThreads(__tstate); | |
28184 | if (PyErr_Occurred()) SWIG_fail; | |
28185 | } | |
8edf1c75 | 28186 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
28187 | return resultobj; |
28188 | fail: | |
28189 | return NULL; | |
28190 | } | |
28191 | ||
28192 | ||
28193 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28194 | PyObject *resultobj; | |
28195 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28196 | PyObject * obj0 = 0 ; | |
28197 | char *kwnames[] = { | |
28198 | (char *) "self", NULL | |
28199 | }; | |
28200 | ||
28201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
28202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28203 | { | |
28204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28205 | wxMenu_Destroy(arg1); | |
28206 | ||
28207 | wxPyEndAllowThreads(__tstate); | |
28208 | if (PyErr_Occurred()) SWIG_fail; | |
28209 | } | |
28210 | Py_INCREF(Py_None); resultobj = Py_None; | |
28211 | return resultobj; | |
28212 | fail: | |
28213 | return NULL; | |
28214 | } | |
28215 | ||
28216 | ||
28217 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28218 | PyObject *resultobj; | |
28219 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28220 | int arg2 ; | |
28221 | bool result; | |
28222 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28223 | PyObject * obj1 = 0 ; |
d14a1e28 | 28224 | char *kwnames[] = { |
f0983263 | 28225 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28226 | }; |
28227 | ||
8edf1c75 | 28228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28230 | { |
28231 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28232 | if (PyErr_Occurred()) SWIG_fail; | |
28233 | } | |
d14a1e28 RD |
28234 | { |
28235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28236 | result = (bool)(arg1)->Destroy(arg2); | |
28237 | ||
28238 | wxPyEndAllowThreads(__tstate); | |
28239 | if (PyErr_Occurred()) SWIG_fail; | |
28240 | } | |
8edf1c75 | 28241 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
28242 | return resultobj; |
28243 | fail: | |
28244 | return NULL; | |
28245 | } | |
28246 | ||
28247 | ||
28248 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28249 | PyObject *resultobj; | |
28250 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28251 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28252 | bool result; | |
28253 | PyObject * obj0 = 0 ; | |
28254 | PyObject * obj1 = 0 ; | |
28255 | char *kwnames[] = { | |
28256 | (char *) "self",(char *) "item", NULL | |
28257 | }; | |
28258 | ||
28259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
28260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28261 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28262 | { | |
28263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28264 | result = (bool)(arg1)->Destroy(arg2); | |
28265 | ||
28266 | wxPyEndAllowThreads(__tstate); | |
28267 | if (PyErr_Occurred()) SWIG_fail; | |
28268 | } | |
8edf1c75 | 28269 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
28270 | return resultobj; |
28271 | fail: | |
28272 | return NULL; | |
28273 | } | |
28274 | ||
28275 | ||
28276 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28277 | PyObject *resultobj; | |
28278 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28279 | size_t result; | |
28280 | PyObject * obj0 = 0 ; | |
28281 | char *kwnames[] = { | |
28282 | (char *) "self", NULL | |
28283 | }; | |
28284 | ||
28285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
28286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28287 | { | |
28288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28289 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
28290 | ||
28291 | wxPyEndAllowThreads(__tstate); | |
28292 | if (PyErr_Occurred()) SWIG_fail; | |
28293 | } | |
8edf1c75 | 28294 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
28295 | return resultobj; |
28296 | fail: | |
28297 | return NULL; | |
28298 | } | |
28299 | ||
28300 | ||
28301 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28302 | PyObject *resultobj; | |
28303 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28304 | PyObject *result; | |
28305 | PyObject * obj0 = 0 ; | |
28306 | char *kwnames[] = { | |
28307 | (char *) "self", NULL | |
28308 | }; | |
28309 | ||
28310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
28311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28312 | { | |
28313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28314 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
28315 | ||
28316 | wxPyEndAllowThreads(__tstate); | |
28317 | if (PyErr_Occurred()) SWIG_fail; | |
28318 | } | |
28319 | resultobj = result; | |
28320 | return resultobj; | |
28321 | fail: | |
28322 | return NULL; | |
28323 | } | |
28324 | ||
28325 | ||
28326 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28327 | PyObject *resultobj; | |
28328 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28329 | wxString *arg2 = 0 ; | |
28330 | int result; | |
423f194a | 28331 | bool temp2 = False ; |
d14a1e28 RD |
28332 | PyObject * obj0 = 0 ; |
28333 | PyObject * obj1 = 0 ; | |
28334 | char *kwnames[] = { | |
28335 | (char *) "self",(char *) "item", NULL | |
28336 | }; | |
28337 | ||
28338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
28339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28340 | { | |
28341 | arg2 = wxString_in_helper(obj1); | |
28342 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28343 | temp2 = True; |
d14a1e28 RD |
28344 | } |
28345 | { | |
28346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28347 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
28348 | ||
28349 | wxPyEndAllowThreads(__tstate); | |
28350 | if (PyErr_Occurred()) SWIG_fail; | |
28351 | } | |
8edf1c75 | 28352 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
28353 | { |
28354 | if (temp2) | |
28355 | delete arg2; | |
28356 | } | |
28357 | return resultobj; | |
28358 | fail: | |
28359 | { | |
28360 | if (temp2) | |
28361 | delete arg2; | |
28362 | } | |
28363 | return NULL; | |
28364 | } | |
28365 | ||
28366 | ||
28367 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28368 | PyObject *resultobj; | |
28369 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28370 | int arg2 ; | |
28371 | wxMenuItem *result; | |
28372 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28373 | PyObject * obj1 = 0 ; |
d14a1e28 | 28374 | char *kwnames[] = { |
f0983263 | 28375 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28376 | }; |
28377 | ||
8edf1c75 | 28378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28380 | { |
28381 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28382 | if (PyErr_Occurred()) SWIG_fail; | |
28383 | } | |
d14a1e28 RD |
28384 | { |
28385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28386 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
28387 | ||
28388 | wxPyEndAllowThreads(__tstate); | |
28389 | if (PyErr_Occurred()) SWIG_fail; | |
28390 | } | |
28391 | { | |
28392 | resultobj = wxPyMake_wxObject(result); | |
28393 | } | |
28394 | return resultobj; | |
28395 | fail: | |
28396 | return NULL; | |
28397 | } | |
28398 | ||
28399 | ||
28400 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28401 | PyObject *resultobj; | |
28402 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28403 | size_t arg2 ; | |
28404 | wxMenuItem *result; | |
28405 | PyObject * obj0 = 0 ; | |
28406 | PyObject * obj1 = 0 ; | |
28407 | char *kwnames[] = { | |
28408 | (char *) "self",(char *) "position", NULL | |
28409 | }; | |
28410 | ||
28411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
28412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 28413 | { |
8edf1c75 | 28414 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
28415 | if (PyErr_Occurred()) SWIG_fail; |
28416 | } | |
d14a1e28 RD |
28417 | { |
28418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28419 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
28420 | ||
28421 | wxPyEndAllowThreads(__tstate); | |
28422 | if (PyErr_Occurred()) SWIG_fail; | |
28423 | } | |
28424 | { | |
28425 | resultobj = wxPyMake_wxObject(result); | |
28426 | } | |
28427 | return resultobj; | |
28428 | fail: | |
28429 | return NULL; | |
28430 | } | |
28431 | ||
28432 | ||
28433 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28434 | PyObject *resultobj; | |
28435 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28436 | int arg2 ; | |
28437 | bool arg3 ; | |
28438 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28439 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28440 | PyObject * obj2 = 0 ; |
28441 | char *kwnames[] = { | |
f0983263 | 28442 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
28443 | }; |
28444 | ||
8edf1c75 | 28445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 28447 | { |
8edf1c75 RD |
28448 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
28449 | if (PyErr_Occurred()) SWIG_fail; | |
28450 | } | |
28451 | { | |
28452 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
28453 | if (PyErr_Occurred()) SWIG_fail; |
28454 | } | |
d14a1e28 RD |
28455 | { |
28456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28457 | (arg1)->Enable(arg2,arg3); | |
28458 | ||
28459 | wxPyEndAllowThreads(__tstate); | |
28460 | if (PyErr_Occurred()) SWIG_fail; | |
28461 | } | |
28462 | Py_INCREF(Py_None); resultobj = Py_None; | |
28463 | return resultobj; | |
28464 | fail: | |
28465 | return NULL; | |
28466 | } | |
28467 | ||
28468 | ||
28469 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28470 | PyObject *resultobj; | |
28471 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28472 | int arg2 ; | |
28473 | bool result; | |
28474 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28475 | PyObject * obj1 = 0 ; |
d14a1e28 | 28476 | char *kwnames[] = { |
f0983263 | 28477 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28478 | }; |
28479 | ||
8edf1c75 | 28480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28482 | { |
28483 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28484 | if (PyErr_Occurred()) SWIG_fail; | |
28485 | } | |
d14a1e28 RD |
28486 | { |
28487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28488 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
28489 | ||
28490 | wxPyEndAllowThreads(__tstate); | |
28491 | if (PyErr_Occurred()) SWIG_fail; | |
28492 | } | |
8edf1c75 | 28493 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
28494 | return resultobj; |
28495 | fail: | |
28496 | return NULL; | |
28497 | } | |
28498 | ||
28499 | ||
28500 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28501 | PyObject *resultobj; | |
28502 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28503 | int arg2 ; | |
28504 | bool arg3 ; | |
28505 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28506 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28507 | PyObject * obj2 = 0 ; |
28508 | char *kwnames[] = { | |
f0983263 | 28509 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
28510 | }; |
28511 | ||
8edf1c75 | 28512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 28514 | { |
8edf1c75 RD |
28515 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
28516 | if (PyErr_Occurred()) SWIG_fail; | |
28517 | } | |
28518 | { | |
28519 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
28520 | if (PyErr_Occurred()) SWIG_fail; |
28521 | } | |
d14a1e28 RD |
28522 | { |
28523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28524 | (arg1)->Check(arg2,arg3); | |
28525 | ||
28526 | wxPyEndAllowThreads(__tstate); | |
28527 | if (PyErr_Occurred()) SWIG_fail; | |
28528 | } | |
28529 | Py_INCREF(Py_None); resultobj = Py_None; | |
28530 | return resultobj; | |
28531 | fail: | |
28532 | return NULL; | |
28533 | } | |
28534 | ||
28535 | ||
28536 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28537 | PyObject *resultobj; | |
28538 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28539 | int arg2 ; | |
28540 | bool result; | |
28541 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28542 | PyObject * obj1 = 0 ; |
d14a1e28 | 28543 | char *kwnames[] = { |
f0983263 | 28544 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28545 | }; |
28546 | ||
8edf1c75 | 28547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28549 | { |
28550 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28551 | if (PyErr_Occurred()) SWIG_fail; | |
28552 | } | |
d14a1e28 RD |
28553 | { |
28554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28555 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
28556 | ||
28557 | wxPyEndAllowThreads(__tstate); | |
28558 | if (PyErr_Occurred()) SWIG_fail; | |
28559 | } | |
8edf1c75 | 28560 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
28561 | return resultobj; |
28562 | fail: | |
28563 | return NULL; | |
28564 | } | |
28565 | ||
28566 | ||
28567 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28568 | PyObject *resultobj; | |
28569 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28570 | int arg2 ; | |
28571 | wxString *arg3 = 0 ; | |
423f194a | 28572 | bool temp3 = False ; |
d14a1e28 | 28573 | PyObject * obj0 = 0 ; |
8edf1c75 | 28574 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28575 | PyObject * obj2 = 0 ; |
28576 | char *kwnames[] = { | |
f0983263 | 28577 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
28578 | }; |
28579 | ||
8edf1c75 | 28580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28582 | { |
28583 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28584 | if (PyErr_Occurred()) SWIG_fail; | |
28585 | } | |
d14a1e28 RD |
28586 | { |
28587 | arg3 = wxString_in_helper(obj2); | |
28588 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28589 | temp3 = True; |
d14a1e28 RD |
28590 | } |
28591 | { | |
28592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28593 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
28594 | ||
28595 | wxPyEndAllowThreads(__tstate); | |
28596 | if (PyErr_Occurred()) SWIG_fail; | |
28597 | } | |
28598 | Py_INCREF(Py_None); resultobj = Py_None; | |
28599 | { | |
28600 | if (temp3) | |
28601 | delete arg3; | |
28602 | } | |
28603 | return resultobj; | |
28604 | fail: | |
28605 | { | |
28606 | if (temp3) | |
28607 | delete arg3; | |
28608 | } | |
28609 | return NULL; | |
28610 | } | |
28611 | ||
28612 | ||
28613 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28614 | PyObject *resultobj; | |
28615 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28616 | int arg2 ; | |
28617 | wxString result; | |
28618 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28619 | PyObject * obj1 = 0 ; |
d14a1e28 | 28620 | char *kwnames[] = { |
f0983263 | 28621 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28622 | }; |
28623 | ||
8edf1c75 | 28624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28626 | { |
28627 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28628 | if (PyErr_Occurred()) SWIG_fail; | |
28629 | } | |
d14a1e28 RD |
28630 | { |
28631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28632 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
28633 | ||
28634 | wxPyEndAllowThreads(__tstate); | |
28635 | if (PyErr_Occurred()) SWIG_fail; | |
28636 | } | |
28637 | { | |
28638 | #if wxUSE_UNICODE | |
28639 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28640 | #else | |
28641 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28642 | #endif | |
28643 | } | |
28644 | return resultobj; | |
28645 | fail: | |
28646 | return NULL; | |
28647 | } | |
28648 | ||
28649 | ||
28650 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28651 | PyObject *resultobj; | |
28652 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28653 | int arg2 ; | |
28654 | wxString *arg3 = 0 ; | |
423f194a | 28655 | bool temp3 = False ; |
d14a1e28 | 28656 | PyObject * obj0 = 0 ; |
8edf1c75 | 28657 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28658 | PyObject * obj2 = 0 ; |
28659 | char *kwnames[] = { | |
f0983263 | 28660 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
28661 | }; |
28662 | ||
8edf1c75 | 28663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 28664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28665 | { |
28666 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28667 | if (PyErr_Occurred()) SWIG_fail; | |
28668 | } | |
d14a1e28 RD |
28669 | { |
28670 | arg3 = wxString_in_helper(obj2); | |
28671 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28672 | temp3 = True; |
d14a1e28 RD |
28673 | } |
28674 | { | |
28675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28676 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
28677 | ||
28678 | wxPyEndAllowThreads(__tstate); | |
28679 | if (PyErr_Occurred()) SWIG_fail; | |
28680 | } | |
28681 | Py_INCREF(Py_None); resultobj = Py_None; | |
28682 | { | |
28683 | if (temp3) | |
28684 | delete arg3; | |
28685 | } | |
28686 | return resultobj; | |
28687 | fail: | |
28688 | { | |
28689 | if (temp3) | |
28690 | delete arg3; | |
28691 | } | |
28692 | return NULL; | |
28693 | } | |
28694 | ||
28695 | ||
28696 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28697 | PyObject *resultobj; | |
28698 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28699 | int arg2 ; | |
28700 | wxString result; | |
28701 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28702 | PyObject * obj1 = 0 ; |
d14a1e28 | 28703 | char *kwnames[] = { |
f0983263 | 28704 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28705 | }; |
28706 | ||
8edf1c75 | 28707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 28708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
28709 | { |
28710 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
28711 | if (PyErr_Occurred()) SWIG_fail; | |
28712 | } | |
d14a1e28 RD |
28713 | { |
28714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28715 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
28716 | ||
28717 | wxPyEndAllowThreads(__tstate); | |
28718 | if (PyErr_Occurred()) SWIG_fail; | |
28719 | } | |
28720 | { | |
28721 | #if wxUSE_UNICODE | |
28722 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28723 | #else | |
28724 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28725 | #endif | |
28726 | } | |
28727 | return resultobj; | |
28728 | fail: | |
28729 | return NULL; | |
28730 | } | |
28731 | ||
28732 | ||
28733 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28734 | PyObject *resultobj; | |
28735 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28736 | wxString *arg2 = 0 ; | |
423f194a | 28737 | bool temp2 = False ; |
d14a1e28 RD |
28738 | PyObject * obj0 = 0 ; |
28739 | PyObject * obj1 = 0 ; | |
28740 | char *kwnames[] = { | |
28741 | (char *) "self",(char *) "title", NULL | |
28742 | }; | |
28743 | ||
28744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
28745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28746 | { | |
28747 | arg2 = wxString_in_helper(obj1); | |
28748 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28749 | temp2 = True; |
d14a1e28 RD |
28750 | } |
28751 | { | |
28752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28753 | (arg1)->SetTitle((wxString const &)*arg2); | |
28754 | ||
28755 | wxPyEndAllowThreads(__tstate); | |
28756 | if (PyErr_Occurred()) SWIG_fail; | |
28757 | } | |
28758 | Py_INCREF(Py_None); resultobj = Py_None; | |
28759 | { | |
28760 | if (temp2) | |
28761 | delete arg2; | |
28762 | } | |
28763 | return resultobj; | |
28764 | fail: | |
28765 | { | |
28766 | if (temp2) | |
28767 | delete arg2; | |
28768 | } | |
28769 | return NULL; | |
28770 | } | |
28771 | ||
28772 | ||
28773 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28774 | PyObject *resultobj; | |
28775 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28776 | wxString result; | |
28777 | PyObject * obj0 = 0 ; | |
28778 | char *kwnames[] = { | |
28779 | (char *) "self", NULL | |
28780 | }; | |
28781 | ||
28782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
28783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28784 | { | |
28785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28786 | result = ((wxMenu const *)arg1)->GetTitle(); | |
28787 | ||
28788 | wxPyEndAllowThreads(__tstate); | |
28789 | if (PyErr_Occurred()) SWIG_fail; | |
28790 | } | |
28791 | { | |
28792 | #if wxUSE_UNICODE | |
28793 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28794 | #else | |
28795 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28796 | #endif | |
28797 | } | |
28798 | return resultobj; | |
28799 | fail: | |
28800 | return NULL; | |
28801 | } | |
28802 | ||
28803 | ||
28804 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28805 | PyObject *resultobj; | |
28806 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28807 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
28808 | PyObject * obj0 = 0 ; | |
28809 | PyObject * obj1 = 0 ; | |
28810 | char *kwnames[] = { | |
28811 | (char *) "self",(char *) "handler", NULL | |
28812 | }; | |
28813 | ||
28814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
28815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28816 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28817 | { | |
28818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28819 | (arg1)->SetEventHandler(arg2); | |
28820 | ||
28821 | wxPyEndAllowThreads(__tstate); | |
28822 | if (PyErr_Occurred()) SWIG_fail; | |
28823 | } | |
28824 | Py_INCREF(Py_None); resultobj = Py_None; | |
28825 | return resultobj; | |
28826 | fail: | |
28827 | return NULL; | |
28828 | } | |
28829 | ||
28830 | ||
28831 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28832 | PyObject *resultobj; | |
28833 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28834 | wxEvtHandler *result; | |
28835 | PyObject * obj0 = 0 ; | |
28836 | char *kwnames[] = { | |
28837 | (char *) "self", NULL | |
28838 | }; | |
28839 | ||
28840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
28841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28842 | { | |
28843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28844 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
28845 | ||
28846 | wxPyEndAllowThreads(__tstate); | |
28847 | if (PyErr_Occurred()) SWIG_fail; | |
28848 | } | |
28849 | { | |
28850 | resultobj = wxPyMake_wxObject(result); | |
28851 | } | |
28852 | return resultobj; | |
28853 | fail: | |
28854 | return NULL; | |
28855 | } | |
28856 | ||
28857 | ||
28858 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28859 | PyObject *resultobj; | |
28860 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28861 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28862 | PyObject * obj0 = 0 ; | |
28863 | PyObject * obj1 = 0 ; | |
28864 | char *kwnames[] = { | |
28865 | (char *) "self",(char *) "win", NULL | |
28866 | }; | |
28867 | ||
28868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
28869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28870 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28871 | { | |
28872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28873 | (arg1)->SetInvokingWindow(arg2); | |
28874 | ||
28875 | wxPyEndAllowThreads(__tstate); | |
28876 | if (PyErr_Occurred()) SWIG_fail; | |
28877 | } | |
28878 | Py_INCREF(Py_None); resultobj = Py_None; | |
28879 | return resultobj; | |
28880 | fail: | |
28881 | return NULL; | |
28882 | } | |
28883 | ||
28884 | ||
28885 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28886 | PyObject *resultobj; | |
28887 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28888 | wxWindow *result; | |
28889 | PyObject * obj0 = 0 ; | |
28890 | char *kwnames[] = { | |
28891 | (char *) "self", NULL | |
28892 | }; | |
28893 | ||
28894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
28895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28896 | { | |
28897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28898 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
28899 | ||
28900 | wxPyEndAllowThreads(__tstate); | |
28901 | if (PyErr_Occurred()) SWIG_fail; | |
28902 | } | |
28903 | { | |
28904 | resultobj = wxPyMake_wxObject(result); | |
28905 | } | |
28906 | return resultobj; | |
28907 | fail: | |
28908 | return NULL; | |
28909 | } | |
28910 | ||
28911 | ||
28912 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28913 | PyObject *resultobj; | |
28914 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28915 | long result; | |
28916 | PyObject * obj0 = 0 ; | |
28917 | char *kwnames[] = { | |
28918 | (char *) "self", NULL | |
28919 | }; | |
28920 | ||
28921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
28922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28923 | { | |
28924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28925 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
28926 | ||
28927 | wxPyEndAllowThreads(__tstate); | |
28928 | if (PyErr_Occurred()) SWIG_fail; | |
28929 | } | |
8edf1c75 | 28930 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
28931 | return resultobj; |
28932 | fail: | |
28933 | return NULL; | |
28934 | } | |
28935 | ||
28936 | ||
28937 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28938 | PyObject *resultobj; | |
28939 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28940 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
28941 | PyObject * obj0 = 0 ; | |
28942 | PyObject * obj1 = 0 ; | |
28943 | char *kwnames[] = { | |
28944 | (char *) "self",(char *) "source", NULL | |
28945 | }; | |
28946 | ||
28947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
28948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28949 | if (obj1) { | |
28950 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28951 | } | |
28952 | { | |
28953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28954 | (arg1)->UpdateUI(arg2); | |
28955 | ||
28956 | wxPyEndAllowThreads(__tstate); | |
28957 | if (PyErr_Occurred()) SWIG_fail; | |
28958 | } | |
28959 | Py_INCREF(Py_None); resultobj = Py_None; | |
28960 | return resultobj; | |
28961 | fail: | |
28962 | return NULL; | |
28963 | } | |
28964 | ||
28965 | ||
28966 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28967 | PyObject *resultobj; | |
28968 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28969 | wxMenuBar *result; | |
28970 | PyObject * obj0 = 0 ; | |
28971 | char *kwnames[] = { | |
28972 | (char *) "self", NULL | |
28973 | }; | |
28974 | ||
28975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
28976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
28977 | { | |
28978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28979 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
28980 | ||
28981 | wxPyEndAllowThreads(__tstate); | |
28982 | if (PyErr_Occurred()) SWIG_fail; | |
28983 | } | |
28984 | { | |
28985 | resultobj = wxPyMake_wxObject(result); | |
28986 | } | |
28987 | return resultobj; | |
28988 | fail: | |
28989 | return NULL; | |
28990 | } | |
28991 | ||
28992 | ||
28993 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28994 | PyObject *resultobj; | |
28995 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28996 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
28997 | PyObject * obj0 = 0 ; | |
28998 | PyObject * obj1 = 0 ; | |
28999 | char *kwnames[] = { | |
29000 | (char *) "self",(char *) "menubar", NULL | |
29001 | }; | |
29002 | ||
29003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
29004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29005 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29006 | { | |
29007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29008 | (arg1)->Attach(arg2); | |
29009 | ||
29010 | wxPyEndAllowThreads(__tstate); | |
29011 | if (PyErr_Occurred()) SWIG_fail; | |
29012 | } | |
29013 | Py_INCREF(Py_None); resultobj = Py_None; | |
29014 | return resultobj; | |
29015 | fail: | |
29016 | return NULL; | |
29017 | } | |
29018 | ||
29019 | ||
29020 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29021 | PyObject *resultobj; | |
29022 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29023 | PyObject * obj0 = 0 ; | |
29024 | char *kwnames[] = { | |
29025 | (char *) "self", NULL | |
29026 | }; | |
29027 | ||
29028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
29029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29030 | { | |
29031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29032 | (arg1)->Detach(); | |
29033 | ||
29034 | wxPyEndAllowThreads(__tstate); | |
29035 | if (PyErr_Occurred()) SWIG_fail; | |
29036 | } | |
29037 | Py_INCREF(Py_None); resultobj = Py_None; | |
29038 | return resultobj; | |
29039 | fail: | |
29040 | return NULL; | |
29041 | } | |
29042 | ||
29043 | ||
29044 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29045 | PyObject *resultobj; | |
29046 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29047 | bool result; | |
29048 | PyObject * obj0 = 0 ; | |
29049 | char *kwnames[] = { | |
29050 | (char *) "self", NULL | |
29051 | }; | |
29052 | ||
29053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
29054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29055 | { | |
29056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29057 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
29058 | ||
29059 | wxPyEndAllowThreads(__tstate); | |
29060 | if (PyErr_Occurred()) SWIG_fail; | |
29061 | } | |
8edf1c75 | 29062 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
29063 | return resultobj; |
29064 | fail: | |
29065 | return NULL; | |
29066 | } | |
29067 | ||
29068 | ||
29069 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29070 | PyObject *resultobj; | |
29071 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29072 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29073 | PyObject * obj0 = 0 ; | |
29074 | PyObject * obj1 = 0 ; | |
29075 | char *kwnames[] = { | |
29076 | (char *) "self",(char *) "parent", NULL | |
29077 | }; | |
29078 | ||
29079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
29080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29081 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29082 | { | |
29083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29084 | (arg1)->SetParent(arg2); | |
29085 | ||
29086 | wxPyEndAllowThreads(__tstate); | |
29087 | if (PyErr_Occurred()) SWIG_fail; | |
29088 | } | |
29089 | Py_INCREF(Py_None); resultobj = Py_None; | |
29090 | return resultobj; | |
29091 | fail: | |
29092 | return NULL; | |
29093 | } | |
29094 | ||
29095 | ||
29096 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29097 | PyObject *resultobj; | |
29098 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29099 | wxMenu *result; | |
29100 | PyObject * obj0 = 0 ; | |
29101 | char *kwnames[] = { | |
29102 | (char *) "self", NULL | |
29103 | }; | |
29104 | ||
29105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
29106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29107 | { | |
29108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29109 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
29110 | ||
29111 | wxPyEndAllowThreads(__tstate); | |
29112 | if (PyErr_Occurred()) SWIG_fail; | |
29113 | } | |
29114 | { | |
29115 | resultobj = wxPyMake_wxObject(result); | |
29116 | } | |
29117 | return resultobj; | |
29118 | fail: | |
29119 | return NULL; | |
29120 | } | |
29121 | ||
29122 | ||
29123 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
29124 | PyObject *obj; | |
29125 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29126 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
29127 | Py_INCREF(obj); | |
29128 | return Py_BuildValue((char *)""); | |
29129 | } | |
29130 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29131 | PyObject *resultobj; | |
29132 | long arg1 = (long) 0 ; | |
29133 | wxMenuBar *result; | |
8edf1c75 | 29134 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
29135 | char *kwnames[] = { |
29136 | (char *) "style", NULL | |
29137 | }; | |
29138 | ||
8edf1c75 RD |
29139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; |
29140 | if (obj0) { | |
29141 | { | |
29142 | arg1 = (long) SWIG_PyObj_AsLong(obj0); | |
29143 | if (PyErr_Occurred()) SWIG_fail; | |
29144 | } | |
29145 | } | |
d14a1e28 RD |
29146 | { |
29147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29148 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
29149 | ||
29150 | wxPyEndAllowThreads(__tstate); | |
29151 | if (PyErr_Occurred()) SWIG_fail; | |
29152 | } | |
29153 | { | |
29154 | resultobj = wxPyMake_wxObject(result); | |
29155 | } | |
29156 | return resultobj; | |
29157 | fail: | |
29158 | return NULL; | |
29159 | } | |
29160 | ||
29161 | ||
29162 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29163 | PyObject *resultobj; | |
29164 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29165 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29166 | wxString *arg3 = 0 ; | |
29167 | bool result; | |
423f194a | 29168 | bool temp3 = False ; |
d14a1e28 RD |
29169 | PyObject * obj0 = 0 ; |
29170 | PyObject * obj1 = 0 ; | |
29171 | PyObject * obj2 = 0 ; | |
29172 | char *kwnames[] = { | |
29173 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
29174 | }; | |
29175 | ||
29176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29178 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29179 | { | |
29180 | arg3 = wxString_in_helper(obj2); | |
29181 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29182 | temp3 = True; |
d14a1e28 RD |
29183 | } |
29184 | { | |
29185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29186 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
29187 | ||
29188 | wxPyEndAllowThreads(__tstate); | |
29189 | if (PyErr_Occurred()) SWIG_fail; | |
29190 | } | |
8edf1c75 | 29191 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
29192 | { |
29193 | if (temp3) | |
29194 | delete arg3; | |
29195 | } | |
29196 | return resultobj; | |
29197 | fail: | |
29198 | { | |
29199 | if (temp3) | |
29200 | delete arg3; | |
29201 | } | |
29202 | return NULL; | |
29203 | } | |
29204 | ||
29205 | ||
29206 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29207 | PyObject *resultobj; | |
29208 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29209 | size_t arg2 ; | |
29210 | wxMenu *arg3 = (wxMenu *) 0 ; | |
29211 | wxString *arg4 = 0 ; | |
29212 | bool result; | |
423f194a | 29213 | bool temp4 = False ; |
d14a1e28 RD |
29214 | PyObject * obj0 = 0 ; |
29215 | PyObject * obj1 = 0 ; | |
29216 | PyObject * obj2 = 0 ; | |
29217 | PyObject * obj3 = 0 ; | |
29218 | char *kwnames[] = { | |
29219 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
29220 | }; | |
29221 | ||
29222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29224 | { |
8edf1c75 | 29225 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29226 | if (PyErr_Occurred()) SWIG_fail; |
29227 | } | |
d14a1e28 RD |
29228 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
29229 | { | |
29230 | arg4 = wxString_in_helper(obj3); | |
29231 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 29232 | temp4 = True; |
d14a1e28 RD |
29233 | } |
29234 | { | |
29235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29236 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
29237 | ||
29238 | wxPyEndAllowThreads(__tstate); | |
29239 | if (PyErr_Occurred()) SWIG_fail; | |
29240 | } | |
8edf1c75 | 29241 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
29242 | { |
29243 | if (temp4) | |
29244 | delete arg4; | |
29245 | } | |
29246 | return resultobj; | |
29247 | fail: | |
29248 | { | |
29249 | if (temp4) | |
29250 | delete arg4; | |
29251 | } | |
29252 | return NULL; | |
29253 | } | |
29254 | ||
29255 | ||
29256 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29257 | PyObject *resultobj; | |
29258 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29259 | size_t result; | |
29260 | PyObject * obj0 = 0 ; | |
29261 | char *kwnames[] = { | |
29262 | (char *) "self", NULL | |
29263 | }; | |
29264 | ||
29265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
29266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29267 | { | |
29268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29269 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
29270 | ||
29271 | wxPyEndAllowThreads(__tstate); | |
29272 | if (PyErr_Occurred()) SWIG_fail; | |
29273 | } | |
8edf1c75 | 29274 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
29275 | return resultobj; |
29276 | fail: | |
29277 | return NULL; | |
29278 | } | |
29279 | ||
29280 | ||
29281 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29282 | PyObject *resultobj; | |
29283 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29284 | size_t arg2 ; | |
29285 | wxMenu *result; | |
29286 | PyObject * obj0 = 0 ; | |
29287 | PyObject * obj1 = 0 ; | |
29288 | char *kwnames[] = { | |
29289 | (char *) "self",(char *) "pos", NULL | |
29290 | }; | |
29291 | ||
29292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
29293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29294 | { |
8edf1c75 | 29295 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29296 | if (PyErr_Occurred()) SWIG_fail; |
29297 | } | |
d14a1e28 RD |
29298 | { |
29299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29300 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
29301 | ||
29302 | wxPyEndAllowThreads(__tstate); | |
29303 | if (PyErr_Occurred()) SWIG_fail; | |
29304 | } | |
29305 | { | |
29306 | resultobj = wxPyMake_wxObject(result); | |
29307 | } | |
29308 | return resultobj; | |
29309 | fail: | |
29310 | return NULL; | |
29311 | } | |
29312 | ||
29313 | ||
29314 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29315 | PyObject *resultobj; | |
29316 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29317 | size_t arg2 ; | |
29318 | wxMenu *arg3 = (wxMenu *) 0 ; | |
29319 | wxString *arg4 = 0 ; | |
29320 | wxMenu *result; | |
423f194a | 29321 | bool temp4 = False ; |
d14a1e28 RD |
29322 | PyObject * obj0 = 0 ; |
29323 | PyObject * obj1 = 0 ; | |
29324 | PyObject * obj2 = 0 ; | |
29325 | PyObject * obj3 = 0 ; | |
29326 | char *kwnames[] = { | |
29327 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
29328 | }; | |
29329 | ||
29330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29332 | { |
8edf1c75 | 29333 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29334 | if (PyErr_Occurred()) SWIG_fail; |
29335 | } | |
d14a1e28 RD |
29336 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
29337 | { | |
29338 | arg4 = wxString_in_helper(obj3); | |
29339 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 29340 | temp4 = True; |
d14a1e28 RD |
29341 | } |
29342 | { | |
29343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29344 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
29345 | ||
29346 | wxPyEndAllowThreads(__tstate); | |
29347 | if (PyErr_Occurred()) SWIG_fail; | |
29348 | } | |
29349 | { | |
29350 | resultobj = wxPyMake_wxObject(result); | |
29351 | } | |
29352 | { | |
29353 | if (temp4) | |
29354 | delete arg4; | |
29355 | } | |
29356 | return resultobj; | |
29357 | fail: | |
29358 | { | |
29359 | if (temp4) | |
29360 | delete arg4; | |
29361 | } | |
29362 | return NULL; | |
29363 | } | |
29364 | ||
29365 | ||
29366 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29367 | PyObject *resultobj; | |
29368 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29369 | size_t arg2 ; | |
29370 | wxMenu *result; | |
29371 | PyObject * obj0 = 0 ; | |
29372 | PyObject * obj1 = 0 ; | |
29373 | char *kwnames[] = { | |
29374 | (char *) "self",(char *) "pos", NULL | |
29375 | }; | |
29376 | ||
29377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
29378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29379 | { |
8edf1c75 | 29380 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29381 | if (PyErr_Occurred()) SWIG_fail; |
29382 | } | |
d14a1e28 RD |
29383 | { |
29384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29385 | result = (wxMenu *)(arg1)->Remove(arg2); | |
29386 | ||
29387 | wxPyEndAllowThreads(__tstate); | |
29388 | if (PyErr_Occurred()) SWIG_fail; | |
29389 | } | |
29390 | { | |
29391 | resultobj = wxPyMake_wxObject(result); | |
29392 | } | |
29393 | return resultobj; | |
29394 | fail: | |
29395 | return NULL; | |
29396 | } | |
29397 | ||
29398 | ||
29399 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29400 | PyObject *resultobj; | |
29401 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29402 | size_t arg2 ; | |
29403 | bool arg3 ; | |
29404 | PyObject * obj0 = 0 ; | |
29405 | PyObject * obj1 = 0 ; | |
29406 | PyObject * obj2 = 0 ; | |
29407 | char *kwnames[] = { | |
29408 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
29409 | }; | |
29410 | ||
29411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29413 | { |
8edf1c75 | 29414 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29415 | if (PyErr_Occurred()) SWIG_fail; |
29416 | } | |
29417 | { | |
8edf1c75 | 29418 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
29419 | if (PyErr_Occurred()) SWIG_fail; |
29420 | } | |
d14a1e28 RD |
29421 | { |
29422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29423 | (arg1)->EnableTop(arg2,arg3); | |
29424 | ||
29425 | wxPyEndAllowThreads(__tstate); | |
29426 | if (PyErr_Occurred()) SWIG_fail; | |
29427 | } | |
29428 | Py_INCREF(Py_None); resultobj = Py_None; | |
29429 | return resultobj; | |
29430 | fail: | |
29431 | return NULL; | |
29432 | } | |
29433 | ||
29434 | ||
29435 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29436 | PyObject *resultobj; | |
29437 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29438 | size_t arg2 ; | |
29439 | bool result; | |
29440 | PyObject * obj0 = 0 ; | |
29441 | PyObject * obj1 = 0 ; | |
29442 | char *kwnames[] = { | |
29443 | (char *) "self",(char *) "pos", NULL | |
29444 | }; | |
29445 | ||
29446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
29447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29448 | { |
8edf1c75 | 29449 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29450 | if (PyErr_Occurred()) SWIG_fail; |
29451 | } | |
d14a1e28 RD |
29452 | { |
29453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29454 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
29455 | ||
29456 | wxPyEndAllowThreads(__tstate); | |
29457 | if (PyErr_Occurred()) SWIG_fail; | |
29458 | } | |
8edf1c75 | 29459 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
29460 | return resultobj; |
29461 | fail: | |
29462 | return NULL; | |
29463 | } | |
29464 | ||
29465 | ||
29466 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29467 | PyObject *resultobj; | |
29468 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29469 | size_t arg2 ; | |
29470 | wxString *arg3 = 0 ; | |
423f194a | 29471 | bool temp3 = False ; |
d14a1e28 RD |
29472 | PyObject * obj0 = 0 ; |
29473 | PyObject * obj1 = 0 ; | |
29474 | PyObject * obj2 = 0 ; | |
29475 | char *kwnames[] = { | |
29476 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
29477 | }; | |
29478 | ||
29479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29481 | { |
8edf1c75 | 29482 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29483 | if (PyErr_Occurred()) SWIG_fail; |
29484 | } | |
d14a1e28 RD |
29485 | { |
29486 | arg3 = wxString_in_helper(obj2); | |
29487 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29488 | temp3 = True; |
d14a1e28 RD |
29489 | } |
29490 | { | |
29491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29492 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
29493 | ||
29494 | wxPyEndAllowThreads(__tstate); | |
29495 | if (PyErr_Occurred()) SWIG_fail; | |
29496 | } | |
29497 | Py_INCREF(Py_None); resultobj = Py_None; | |
29498 | { | |
29499 | if (temp3) | |
29500 | delete arg3; | |
29501 | } | |
29502 | return resultobj; | |
29503 | fail: | |
29504 | { | |
29505 | if (temp3) | |
29506 | delete arg3; | |
29507 | } | |
29508 | return NULL; | |
29509 | } | |
29510 | ||
29511 | ||
29512 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29513 | PyObject *resultobj; | |
29514 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29515 | size_t arg2 ; | |
29516 | wxString result; | |
29517 | PyObject * obj0 = 0 ; | |
29518 | PyObject * obj1 = 0 ; | |
29519 | char *kwnames[] = { | |
29520 | (char *) "self",(char *) "pos", NULL | |
29521 | }; | |
29522 | ||
29523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
29524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 29525 | { |
8edf1c75 | 29526 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
29527 | if (PyErr_Occurred()) SWIG_fail; |
29528 | } | |
d14a1e28 RD |
29529 | { |
29530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29531 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
29532 | ||
29533 | wxPyEndAllowThreads(__tstate); | |
29534 | if (PyErr_Occurred()) SWIG_fail; | |
29535 | } | |
29536 | { | |
29537 | #if wxUSE_UNICODE | |
29538 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29539 | #else | |
29540 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29541 | #endif | |
29542 | } | |
29543 | return resultobj; | |
29544 | fail: | |
29545 | return NULL; | |
29546 | } | |
29547 | ||
29548 | ||
29549 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29550 | PyObject *resultobj; | |
29551 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29552 | wxString *arg2 = 0 ; | |
29553 | wxString *arg3 = 0 ; | |
29554 | int result; | |
423f194a RD |
29555 | bool temp2 = False ; |
29556 | bool temp3 = False ; | |
d14a1e28 RD |
29557 | PyObject * obj0 = 0 ; |
29558 | PyObject * obj1 = 0 ; | |
29559 | PyObject * obj2 = 0 ; | |
29560 | char *kwnames[] = { | |
29561 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
29562 | }; | |
29563 | ||
29564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29566 | { | |
29567 | arg2 = wxString_in_helper(obj1); | |
29568 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29569 | temp2 = True; |
d14a1e28 RD |
29570 | } |
29571 | { | |
29572 | arg3 = wxString_in_helper(obj2); | |
29573 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29574 | temp3 = True; |
d14a1e28 RD |
29575 | } |
29576 | { | |
29577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29578 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
29579 | ||
29580 | wxPyEndAllowThreads(__tstate); | |
29581 | if (PyErr_Occurred()) SWIG_fail; | |
29582 | } | |
8edf1c75 | 29583 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
29584 | { |
29585 | if (temp2) | |
29586 | delete arg2; | |
29587 | } | |
29588 | { | |
29589 | if (temp3) | |
29590 | delete arg3; | |
29591 | } | |
29592 | return resultobj; | |
29593 | fail: | |
29594 | { | |
29595 | if (temp2) | |
29596 | delete arg2; | |
29597 | } | |
29598 | { | |
29599 | if (temp3) | |
29600 | delete arg3; | |
29601 | } | |
29602 | return NULL; | |
29603 | } | |
29604 | ||
29605 | ||
29606 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29607 | PyObject *resultobj; | |
29608 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29609 | int arg2 ; | |
29610 | wxMenuItem *result; | |
29611 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29612 | PyObject * obj1 = 0 ; |
d14a1e28 | 29613 | char *kwnames[] = { |
f0983263 | 29614 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29615 | }; |
29616 | ||
8edf1c75 | 29617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29619 | { |
29620 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29621 | if (PyErr_Occurred()) SWIG_fail; | |
29622 | } | |
d14a1e28 RD |
29623 | { |
29624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29625 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
29626 | ||
29627 | wxPyEndAllowThreads(__tstate); | |
29628 | if (PyErr_Occurred()) SWIG_fail; | |
29629 | } | |
29630 | { | |
29631 | resultobj = wxPyMake_wxObject(result); | |
29632 | } | |
29633 | return resultobj; | |
29634 | fail: | |
29635 | return NULL; | |
29636 | } | |
29637 | ||
29638 | ||
29639 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29640 | PyObject *resultobj; | |
29641 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29642 | wxString *arg2 = 0 ; | |
29643 | int result; | |
423f194a | 29644 | bool temp2 = False ; |
d14a1e28 RD |
29645 | PyObject * obj0 = 0 ; |
29646 | PyObject * obj1 = 0 ; | |
29647 | char *kwnames[] = { | |
29648 | (char *) "self",(char *) "title", NULL | |
29649 | }; | |
29650 | ||
29651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
29652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29653 | { | |
29654 | arg2 = wxString_in_helper(obj1); | |
29655 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29656 | temp2 = True; |
d14a1e28 RD |
29657 | } |
29658 | { | |
29659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29660 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
29661 | ||
29662 | wxPyEndAllowThreads(__tstate); | |
29663 | if (PyErr_Occurred()) SWIG_fail; | |
29664 | } | |
8edf1c75 | 29665 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
29666 | { |
29667 | if (temp2) | |
29668 | delete arg2; | |
29669 | } | |
29670 | return resultobj; | |
29671 | fail: | |
29672 | { | |
29673 | if (temp2) | |
29674 | delete arg2; | |
29675 | } | |
29676 | return NULL; | |
29677 | } | |
29678 | ||
29679 | ||
29680 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29681 | PyObject *resultobj; | |
29682 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29683 | int arg2 ; | |
29684 | bool arg3 ; | |
29685 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29686 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29687 | PyObject * obj2 = 0 ; |
29688 | char *kwnames[] = { | |
f0983263 | 29689 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
29690 | }; |
29691 | ||
8edf1c75 | 29692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 29693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 29694 | { |
8edf1c75 RD |
29695 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
29696 | if (PyErr_Occurred()) SWIG_fail; | |
29697 | } | |
29698 | { | |
29699 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
29700 | if (PyErr_Occurred()) SWIG_fail; |
29701 | } | |
d14a1e28 RD |
29702 | { |
29703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29704 | (arg1)->Enable(arg2,arg3); | |
29705 | ||
29706 | wxPyEndAllowThreads(__tstate); | |
29707 | if (PyErr_Occurred()) SWIG_fail; | |
29708 | } | |
29709 | Py_INCREF(Py_None); resultobj = Py_None; | |
29710 | return resultobj; | |
29711 | fail: | |
29712 | return NULL; | |
29713 | } | |
29714 | ||
29715 | ||
29716 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29717 | PyObject *resultobj; | |
29718 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29719 | int arg2 ; | |
29720 | bool arg3 ; | |
29721 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29722 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29723 | PyObject * obj2 = 0 ; |
29724 | char *kwnames[] = { | |
f0983263 | 29725 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
29726 | }; |
29727 | ||
8edf1c75 | 29728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 29729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 29730 | { |
8edf1c75 RD |
29731 | arg2 = (int) SWIG_PyObj_AsInt(obj1); |
29732 | if (PyErr_Occurred()) SWIG_fail; | |
29733 | } | |
29734 | { | |
29735 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
29736 | if (PyErr_Occurred()) SWIG_fail; |
29737 | } | |
d14a1e28 RD |
29738 | { |
29739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29740 | (arg1)->Check(arg2,arg3); | |
29741 | ||
29742 | wxPyEndAllowThreads(__tstate); | |
29743 | if (PyErr_Occurred()) SWIG_fail; | |
29744 | } | |
29745 | Py_INCREF(Py_None); resultobj = Py_None; | |
29746 | return resultobj; | |
29747 | fail: | |
29748 | return NULL; | |
29749 | } | |
29750 | ||
29751 | ||
29752 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29753 | PyObject *resultobj; | |
29754 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29755 | int arg2 ; | |
29756 | bool result; | |
29757 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29758 | PyObject * obj1 = 0 ; |
d14a1e28 | 29759 | char *kwnames[] = { |
f0983263 | 29760 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29761 | }; |
29762 | ||
8edf1c75 | 29763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29765 | { |
29766 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29767 | if (PyErr_Occurred()) SWIG_fail; | |
29768 | } | |
d14a1e28 RD |
29769 | { |
29770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29771 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
29772 | ||
29773 | wxPyEndAllowThreads(__tstate); | |
29774 | if (PyErr_Occurred()) SWIG_fail; | |
29775 | } | |
8edf1c75 | 29776 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
29777 | return resultobj; |
29778 | fail: | |
29779 | return NULL; | |
29780 | } | |
29781 | ||
29782 | ||
29783 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29784 | PyObject *resultobj; | |
29785 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29786 | int arg2 ; | |
29787 | bool result; | |
29788 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29789 | PyObject * obj1 = 0 ; |
d14a1e28 | 29790 | char *kwnames[] = { |
f0983263 | 29791 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29792 | }; |
29793 | ||
8edf1c75 | 29794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29796 | { |
29797 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29798 | if (PyErr_Occurred()) SWIG_fail; | |
29799 | } | |
d14a1e28 RD |
29800 | { |
29801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29802 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
29803 | ||
29804 | wxPyEndAllowThreads(__tstate); | |
29805 | if (PyErr_Occurred()) SWIG_fail; | |
29806 | } | |
8edf1c75 | 29807 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
29808 | return resultobj; |
29809 | fail: | |
29810 | return NULL; | |
29811 | } | |
29812 | ||
29813 | ||
29814 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29815 | PyObject *resultobj; | |
29816 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29817 | int arg2 ; | |
29818 | wxString *arg3 = 0 ; | |
423f194a | 29819 | bool temp3 = False ; |
d14a1e28 | 29820 | PyObject * obj0 = 0 ; |
8edf1c75 | 29821 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29822 | PyObject * obj2 = 0 ; |
29823 | char *kwnames[] = { | |
f0983263 | 29824 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
29825 | }; |
29826 | ||
8edf1c75 | 29827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 29828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29829 | { |
29830 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29831 | if (PyErr_Occurred()) SWIG_fail; | |
29832 | } | |
d14a1e28 RD |
29833 | { |
29834 | arg3 = wxString_in_helper(obj2); | |
29835 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29836 | temp3 = True; |
d14a1e28 RD |
29837 | } |
29838 | { | |
29839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29840 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
29841 | ||
29842 | wxPyEndAllowThreads(__tstate); | |
29843 | if (PyErr_Occurred()) SWIG_fail; | |
29844 | } | |
29845 | Py_INCREF(Py_None); resultobj = Py_None; | |
29846 | { | |
29847 | if (temp3) | |
29848 | delete arg3; | |
29849 | } | |
29850 | return resultobj; | |
29851 | fail: | |
29852 | { | |
29853 | if (temp3) | |
29854 | delete arg3; | |
29855 | } | |
29856 | return NULL; | |
29857 | } | |
29858 | ||
29859 | ||
29860 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29861 | PyObject *resultobj; | |
29862 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29863 | int arg2 ; | |
29864 | wxString result; | |
29865 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29866 | PyObject * obj1 = 0 ; |
d14a1e28 | 29867 | char *kwnames[] = { |
f0983263 | 29868 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29869 | }; |
29870 | ||
8edf1c75 | 29871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29873 | { |
29874 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29875 | if (PyErr_Occurred()) SWIG_fail; | |
29876 | } | |
d14a1e28 RD |
29877 | { |
29878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29879 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
29880 | ||
29881 | wxPyEndAllowThreads(__tstate); | |
29882 | if (PyErr_Occurred()) SWIG_fail; | |
29883 | } | |
29884 | { | |
29885 | #if wxUSE_UNICODE | |
29886 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29887 | #else | |
29888 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29889 | #endif | |
29890 | } | |
29891 | return resultobj; | |
29892 | fail: | |
29893 | return NULL; | |
29894 | } | |
29895 | ||
29896 | ||
29897 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29898 | PyObject *resultobj; | |
29899 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29900 | int arg2 ; | |
29901 | wxString *arg3 = 0 ; | |
423f194a | 29902 | bool temp3 = False ; |
d14a1e28 | 29903 | PyObject * obj0 = 0 ; |
8edf1c75 | 29904 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29905 | PyObject * obj2 = 0 ; |
29906 | char *kwnames[] = { | |
f0983263 | 29907 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
29908 | }; |
29909 | ||
8edf1c75 | 29910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 29911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29912 | { |
29913 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29914 | if (PyErr_Occurred()) SWIG_fail; | |
29915 | } | |
d14a1e28 RD |
29916 | { |
29917 | arg3 = wxString_in_helper(obj2); | |
29918 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29919 | temp3 = True; |
d14a1e28 RD |
29920 | } |
29921 | { | |
29922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29923 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
29924 | ||
29925 | wxPyEndAllowThreads(__tstate); | |
29926 | if (PyErr_Occurred()) SWIG_fail; | |
29927 | } | |
29928 | Py_INCREF(Py_None); resultobj = Py_None; | |
29929 | { | |
29930 | if (temp3) | |
29931 | delete arg3; | |
29932 | } | |
29933 | return resultobj; | |
29934 | fail: | |
29935 | { | |
29936 | if (temp3) | |
29937 | delete arg3; | |
29938 | } | |
29939 | return NULL; | |
29940 | } | |
29941 | ||
29942 | ||
29943 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29944 | PyObject *resultobj; | |
29945 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29946 | int arg2 ; | |
29947 | wxString result; | |
29948 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29949 | PyObject * obj1 = 0 ; |
d14a1e28 | 29950 | char *kwnames[] = { |
f0983263 | 29951 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29952 | }; |
29953 | ||
8edf1c75 | 29954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 29955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
29956 | { |
29957 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
29958 | if (PyErr_Occurred()) SWIG_fail; | |
29959 | } | |
d14a1e28 RD |
29960 | { |
29961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29962 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
29963 | ||
29964 | wxPyEndAllowThreads(__tstate); | |
29965 | if (PyErr_Occurred()) SWIG_fail; | |
29966 | } | |
29967 | { | |
29968 | #if wxUSE_UNICODE | |
29969 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29970 | #else | |
29971 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29972 | #endif | |
29973 | } | |
29974 | return resultobj; | |
29975 | fail: | |
29976 | return NULL; | |
29977 | } | |
29978 | ||
29979 | ||
29980 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29981 | PyObject *resultobj; | |
29982 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29983 | wxFrame *result; | |
29984 | PyObject * obj0 = 0 ; | |
29985 | char *kwnames[] = { | |
29986 | (char *) "self", NULL | |
29987 | }; | |
29988 | ||
29989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
29990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
29991 | { | |
29992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29993 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
29994 | ||
29995 | wxPyEndAllowThreads(__tstate); | |
29996 | if (PyErr_Occurred()) SWIG_fail; | |
29997 | } | |
29998 | { | |
29999 | resultobj = wxPyMake_wxObject(result); | |
30000 | } | |
30001 | return resultobj; | |
30002 | fail: | |
30003 | return NULL; | |
30004 | } | |
30005 | ||
30006 | ||
30007 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30008 | PyObject *resultobj; | |
30009 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30010 | bool result; | |
30011 | PyObject * obj0 = 0 ; | |
30012 | char *kwnames[] = { | |
30013 | (char *) "self", NULL | |
30014 | }; | |
30015 | ||
30016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
30017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30018 | { | |
30019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30020 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
30021 | ||
30022 | wxPyEndAllowThreads(__tstate); | |
30023 | if (PyErr_Occurred()) SWIG_fail; | |
30024 | } | |
8edf1c75 | 30025 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
30026 | return resultobj; |
30027 | fail: | |
30028 | return NULL; | |
30029 | } | |
30030 | ||
30031 | ||
30032 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30033 | PyObject *resultobj; | |
30034 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30035 | wxFrame *arg2 = (wxFrame *) 0 ; | |
30036 | PyObject * obj0 = 0 ; | |
30037 | PyObject * obj1 = 0 ; | |
30038 | char *kwnames[] = { | |
30039 | (char *) "self",(char *) "frame", NULL | |
30040 | }; | |
30041 | ||
30042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
30043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30044 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30045 | { | |
30046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30047 | (arg1)->Attach(arg2); | |
30048 | ||
30049 | wxPyEndAllowThreads(__tstate); | |
30050 | if (PyErr_Occurred()) SWIG_fail; | |
30051 | } | |
30052 | Py_INCREF(Py_None); resultobj = Py_None; | |
30053 | return resultobj; | |
30054 | fail: | |
30055 | return NULL; | |
30056 | } | |
30057 | ||
30058 | ||
30059 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30060 | PyObject *resultobj; | |
30061 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30062 | PyObject * obj0 = 0 ; | |
30063 | char *kwnames[] = { | |
30064 | (char *) "self", NULL | |
30065 | }; | |
30066 | ||
30067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
30068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30069 | { | |
30070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30071 | (arg1)->Detach(); | |
30072 | ||
30073 | wxPyEndAllowThreads(__tstate); | |
30074 | if (PyErr_Occurred()) SWIG_fail; | |
30075 | } | |
30076 | Py_INCREF(Py_None); resultobj = Py_None; | |
30077 | return resultobj; | |
30078 | fail: | |
30079 | return NULL; | |
30080 | } | |
30081 | ||
30082 | ||
30083 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
30084 | PyObject *obj; | |
30085 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30086 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
30087 | Py_INCREF(obj); | |
30088 | return Py_BuildValue((char *)""); | |
30089 | } | |
30090 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30091 | PyObject *resultobj; | |
30092 | wxMenu *arg1 = (wxMenu *) NULL ; | |
30093 | int arg2 = (int) wxID_SEPARATOR ; | |
30094 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
30095 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
30096 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30097 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30098 | int arg5 = (int) wxITEM_NORMAL ; | |
30099 | wxMenu *arg6 = (wxMenu *) NULL ; | |
30100 | wxMenuItem *result; | |
423f194a RD |
30101 | bool temp3 = False ; |
30102 | bool temp4 = False ; | |
d14a1e28 | 30103 | PyObject * obj0 = 0 ; |
8edf1c75 | 30104 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30105 | PyObject * obj2 = 0 ; |
30106 | PyObject * obj3 = 0 ; | |
8edf1c75 | 30107 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30108 | PyObject * obj5 = 0 ; |
30109 | char *kwnames[] = { | |
30110 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
30111 | }; | |
30112 | ||
8edf1c75 | 30113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
30114 | if (obj0) { |
30115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30116 | } | |
8edf1c75 RD |
30117 | if (obj1) { |
30118 | { | |
30119 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
30120 | if (PyErr_Occurred()) SWIG_fail; | |
30121 | } | |
30122 | } | |
d14a1e28 RD |
30123 | if (obj2) { |
30124 | { | |
30125 | arg3 = wxString_in_helper(obj2); | |
30126 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30127 | temp3 = True; |
d14a1e28 RD |
30128 | } |
30129 | } | |
30130 | if (obj3) { | |
30131 | { | |
30132 | arg4 = wxString_in_helper(obj3); | |
30133 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 30134 | temp4 = True; |
d14a1e28 RD |
30135 | } |
30136 | } | |
8edf1c75 RD |
30137 | if (obj4) { |
30138 | { | |
30139 | arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4); | |
30140 | if (PyErr_Occurred()) SWIG_fail; | |
30141 | } | |
30142 | } | |
d14a1e28 RD |
30143 | if (obj5) { |
30144 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30145 | } | |
30146 | { | |
30147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30148 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
30149 | ||
30150 | wxPyEndAllowThreads(__tstate); | |
30151 | if (PyErr_Occurred()) SWIG_fail; | |
30152 | } | |
30153 | { | |
30154 | resultobj = wxPyMake_wxObject(result); | |
30155 | } | |
30156 | { | |
30157 | if (temp3) | |
30158 | delete arg3; | |
30159 | } | |
30160 | { | |
30161 | if (temp4) | |
30162 | delete arg4; | |
30163 | } | |
30164 | return resultobj; | |
30165 | fail: | |
30166 | { | |
30167 | if (temp3) | |
30168 | delete arg3; | |
30169 | } | |
30170 | { | |
30171 | if (temp4) | |
30172 | delete arg4; | |
30173 | } | |
30174 | return NULL; | |
30175 | } | |
30176 | ||
30177 | ||
30178 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30179 | PyObject *resultobj; | |
30180 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30181 | wxMenu *result; | |
30182 | PyObject * obj0 = 0 ; | |
30183 | char *kwnames[] = { | |
30184 | (char *) "self", NULL | |
30185 | }; | |
30186 | ||
30187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
30188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30189 | { | |
30190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30191 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
30192 | ||
30193 | wxPyEndAllowThreads(__tstate); | |
30194 | if (PyErr_Occurred()) SWIG_fail; | |
30195 | } | |
30196 | { | |
30197 | resultobj = wxPyMake_wxObject(result); | |
30198 | } | |
30199 | return resultobj; | |
30200 | fail: | |
30201 | return NULL; | |
30202 | } | |
30203 | ||
30204 | ||
30205 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30206 | PyObject *resultobj; | |
30207 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30208 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30209 | PyObject * obj0 = 0 ; | |
30210 | PyObject * obj1 = 0 ; | |
30211 | char *kwnames[] = { | |
30212 | (char *) "self",(char *) "menu", NULL | |
30213 | }; | |
30214 | ||
30215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
30216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30217 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30218 | { | |
30219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30220 | (arg1)->SetMenu(arg2); | |
30221 | ||
30222 | wxPyEndAllowThreads(__tstate); | |
30223 | if (PyErr_Occurred()) SWIG_fail; | |
30224 | } | |
30225 | Py_INCREF(Py_None); resultobj = Py_None; | |
30226 | return resultobj; | |
30227 | fail: | |
30228 | return NULL; | |
30229 | } | |
30230 | ||
30231 | ||
30232 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30233 | PyObject *resultobj; | |
30234 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30235 | int arg2 ; | |
30236 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30237 | PyObject * obj1 = 0 ; |
d14a1e28 | 30238 | char *kwnames[] = { |
f0983263 | 30239 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30240 | }; |
30241 | ||
8edf1c75 | 30242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 30243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
30244 | { |
30245 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
30246 | if (PyErr_Occurred()) SWIG_fail; | |
30247 | } | |
d14a1e28 RD |
30248 | { |
30249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30250 | (arg1)->SetId(arg2); | |
30251 | ||
30252 | wxPyEndAllowThreads(__tstate); | |
30253 | if (PyErr_Occurred()) SWIG_fail; | |
30254 | } | |
30255 | Py_INCREF(Py_None); resultobj = Py_None; | |
30256 | return resultobj; | |
30257 | fail: | |
30258 | return NULL; | |
30259 | } | |
30260 | ||
30261 | ||
30262 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30263 | PyObject *resultobj; | |
30264 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30265 | int result; | |
30266 | PyObject * obj0 = 0 ; | |
30267 | char *kwnames[] = { | |
30268 | (char *) "self", NULL | |
30269 | }; | |
30270 | ||
30271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
30272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30273 | { | |
30274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30275 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
30276 | ||
30277 | wxPyEndAllowThreads(__tstate); | |
30278 | if (PyErr_Occurred()) SWIG_fail; | |
30279 | } | |
8edf1c75 | 30280 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
30281 | return resultobj; |
30282 | fail: | |
30283 | return NULL; | |
30284 | } | |
30285 | ||
30286 | ||
30287 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30288 | PyObject *resultobj; | |
30289 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30290 | bool result; | |
30291 | PyObject * obj0 = 0 ; | |
30292 | char *kwnames[] = { | |
30293 | (char *) "self", NULL | |
30294 | }; | |
30295 | ||
30296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
30297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30298 | { | |
30299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30300 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
30301 | ||
30302 | wxPyEndAllowThreads(__tstate); | |
30303 | if (PyErr_Occurred()) SWIG_fail; | |
30304 | } | |
8edf1c75 | 30305 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
30306 | return resultobj; |
30307 | fail: | |
30308 | return NULL; | |
30309 | } | |
30310 | ||
30311 | ||
30312 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30313 | PyObject *resultobj; | |
30314 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30315 | wxString *arg2 = 0 ; | |
423f194a | 30316 | bool temp2 = False ; |
d14a1e28 RD |
30317 | PyObject * obj0 = 0 ; |
30318 | PyObject * obj1 = 0 ; | |
30319 | char *kwnames[] = { | |
30320 | (char *) "self",(char *) "str", NULL | |
30321 | }; | |
30322 | ||
30323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
30324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30325 | { | |
30326 | arg2 = wxString_in_helper(obj1); | |
30327 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 30328 | temp2 = True; |
d14a1e28 RD |
30329 | } |
30330 | { | |
30331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30332 | (arg1)->SetText((wxString const &)*arg2); | |
30333 | ||
30334 | wxPyEndAllowThreads(__tstate); | |
30335 | if (PyErr_Occurred()) SWIG_fail; | |
30336 | } | |
30337 | Py_INCREF(Py_None); resultobj = Py_None; | |
30338 | { | |
30339 | if (temp2) | |
30340 | delete arg2; | |
30341 | } | |
30342 | return resultobj; | |
30343 | fail: | |
30344 | { | |
30345 | if (temp2) | |
30346 | delete arg2; | |
30347 | } | |
30348 | return NULL; | |
30349 | } | |
30350 | ||
30351 | ||
30352 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30353 | PyObject *resultobj; | |
30354 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30355 | wxString result; | |
30356 | PyObject * obj0 = 0 ; | |
30357 | char *kwnames[] = { | |
30358 | (char *) "self", NULL | |
30359 | }; | |
30360 | ||
30361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
30362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30363 | { | |
30364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30365 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
30366 | ||
30367 | wxPyEndAllowThreads(__tstate); | |
30368 | if (PyErr_Occurred()) SWIG_fail; | |
30369 | } | |
30370 | { | |
30371 | #if wxUSE_UNICODE | |
30372 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30373 | #else | |
30374 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30375 | #endif | |
30376 | } | |
30377 | return resultobj; | |
30378 | fail: | |
30379 | return NULL; | |
30380 | } | |
30381 | ||
30382 | ||
30383 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30384 | PyObject *resultobj; | |
30385 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30386 | wxString *result; | |
30387 | PyObject * obj0 = 0 ; | |
30388 | char *kwnames[] = { | |
30389 | (char *) "self", NULL | |
30390 | }; | |
30391 | ||
30392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
30393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30394 | { | |
30395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30396 | { | |
30397 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
30398 | result = (wxString *) &_result_ref; | |
30399 | } | |
30400 | ||
30401 | wxPyEndAllowThreads(__tstate); | |
30402 | if (PyErr_Occurred()) SWIG_fail; | |
30403 | } | |
f0983263 RD |
30404 | { |
30405 | #if wxUSE_UNICODE | |
30406 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30407 | #else | |
30408 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30409 | #endif | |
30410 | } | |
d14a1e28 RD |
30411 | return resultobj; |
30412 | fail: | |
30413 | return NULL; | |
30414 | } | |
30415 | ||
30416 | ||
30417 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30418 | PyObject *resultobj; | |
30419 | wxString *arg1 = 0 ; | |
30420 | wxString result; | |
423f194a | 30421 | bool temp1 = False ; |
d14a1e28 RD |
30422 | PyObject * obj0 = 0 ; |
30423 | char *kwnames[] = { | |
30424 | (char *) "text", NULL | |
30425 | }; | |
30426 | ||
30427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
30428 | { | |
30429 | arg1 = wxString_in_helper(obj0); | |
30430 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 30431 | temp1 = True; |
d14a1e28 RD |
30432 | } |
30433 | { | |
30434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30435 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
30436 | ||
30437 | wxPyEndAllowThreads(__tstate); | |
30438 | if (PyErr_Occurred()) SWIG_fail; | |
30439 | } | |
30440 | { | |
30441 | #if wxUSE_UNICODE | |
30442 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30443 | #else | |
30444 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30445 | #endif | |
30446 | } | |
30447 | { | |
30448 | if (temp1) | |
30449 | delete arg1; | |
30450 | } | |
30451 | return resultobj; | |
30452 | fail: | |
30453 | { | |
30454 | if (temp1) | |
30455 | delete arg1; | |
30456 | } | |
30457 | return NULL; | |
30458 | } | |
30459 | ||
30460 | ||
30461 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30462 | PyObject *resultobj; | |
30463 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30464 | int result; | |
30465 | PyObject * obj0 = 0 ; | |
30466 | char *kwnames[] = { | |
30467 | (char *) "self", NULL | |
30468 | }; | |
30469 | ||
30470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
30471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30472 | { | |
30473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30474 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
30475 | ||
30476 | wxPyEndAllowThreads(__tstate); | |
30477 | if (PyErr_Occurred()) SWIG_fail; | |
30478 | } | |
8edf1c75 | 30479 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
30480 | return resultobj; |
30481 | fail: | |
30482 | return NULL; | |
30483 | } | |
30484 | ||
30485 | ||
30486 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30487 | PyObject *resultobj; | |
30488 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30489 | bool arg2 ; | |
30490 | PyObject * obj0 = 0 ; | |
30491 | PyObject * obj1 = 0 ; | |
30492 | char *kwnames[] = { | |
30493 | (char *) "self",(char *) "checkable", NULL | |
30494 | }; | |
30495 | ||
30496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
30497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 30498 | { |
8edf1c75 | 30499 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
30500 | if (PyErr_Occurred()) SWIG_fail; |
30501 | } | |
d14a1e28 RD |
30502 | { |
30503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30504 | (arg1)->SetCheckable(arg2); | |
30505 | ||
30506 | wxPyEndAllowThreads(__tstate); | |
30507 | if (PyErr_Occurred()) SWIG_fail; | |
30508 | } | |
30509 | Py_INCREF(Py_None); resultobj = Py_None; | |
30510 | return resultobj; | |
30511 | fail: | |
30512 | return NULL; | |
30513 | } | |
30514 | ||
30515 | ||
30516 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30517 | PyObject *resultobj; | |
30518 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30519 | bool result; | |
30520 | PyObject * obj0 = 0 ; | |
30521 | char *kwnames[] = { | |
30522 | (char *) "self", NULL | |
30523 | }; | |
30524 | ||
30525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
30526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30527 | { | |
30528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30529 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
30530 | ||
30531 | wxPyEndAllowThreads(__tstate); | |
30532 | if (PyErr_Occurred()) SWIG_fail; | |
30533 | } | |
8edf1c75 | 30534 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
30535 | return resultobj; |
30536 | fail: | |
30537 | return NULL; | |
30538 | } | |
30539 | ||
30540 | ||
30541 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30542 | PyObject *resultobj; | |
30543 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30544 | bool result; | |
30545 | PyObject * obj0 = 0 ; | |
30546 | char *kwnames[] = { | |
30547 | (char *) "self", NULL | |
30548 | }; | |
30549 | ||
30550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
30551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30552 | { | |
30553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30554 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
30555 | ||
30556 | wxPyEndAllowThreads(__tstate); | |
30557 | if (PyErr_Occurred()) SWIG_fail; | |
30558 | } | |
8edf1c75 | 30559 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
30560 | return resultobj; |
30561 | fail: | |
30562 | return NULL; | |
30563 | } | |
30564 | ||
30565 | ||
30566 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30567 | PyObject *resultobj; | |
30568 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30569 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30570 | PyObject * obj0 = 0 ; | |
30571 | PyObject * obj1 = 0 ; | |
30572 | char *kwnames[] = { | |
30573 | (char *) "self",(char *) "menu", NULL | |
30574 | }; | |
30575 | ||
30576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
30577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30578 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30579 | { | |
30580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30581 | (arg1)->SetSubMenu(arg2); | |
30582 | ||
30583 | wxPyEndAllowThreads(__tstate); | |
30584 | if (PyErr_Occurred()) SWIG_fail; | |
30585 | } | |
30586 | Py_INCREF(Py_None); resultobj = Py_None; | |
30587 | return resultobj; | |
30588 | fail: | |
30589 | return NULL; | |
30590 | } | |
30591 | ||
30592 | ||
30593 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30594 | PyObject *resultobj; | |
30595 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30596 | wxMenu *result; | |
30597 | PyObject * obj0 = 0 ; | |
30598 | char *kwnames[] = { | |
30599 | (char *) "self", NULL | |
30600 | }; | |
30601 | ||
30602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
30603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30604 | { | |
30605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30606 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
30607 | ||
30608 | wxPyEndAllowThreads(__tstate); | |
30609 | if (PyErr_Occurred()) SWIG_fail; | |
30610 | } | |
30611 | { | |
30612 | resultobj = wxPyMake_wxObject(result); | |
30613 | } | |
30614 | return resultobj; | |
30615 | fail: | |
30616 | return NULL; | |
30617 | } | |
30618 | ||
30619 | ||
30620 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30621 | PyObject *resultobj; | |
30622 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 30623 | bool arg2 = (bool) True ; |
d14a1e28 RD |
30624 | PyObject * obj0 = 0 ; |
30625 | PyObject * obj1 = 0 ; | |
30626 | char *kwnames[] = { | |
30627 | (char *) "self",(char *) "enable", NULL | |
30628 | }; | |
30629 | ||
30630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
30631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30632 | if (obj1) { | |
83448d71 | 30633 | { |
8edf1c75 | 30634 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
30635 | if (PyErr_Occurred()) SWIG_fail; |
30636 | } | |
d14a1e28 RD |
30637 | } |
30638 | { | |
30639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30640 | (arg1)->Enable(arg2); | |
30641 | ||
30642 | wxPyEndAllowThreads(__tstate); | |
30643 | if (PyErr_Occurred()) SWIG_fail; | |
30644 | } | |
30645 | Py_INCREF(Py_None); resultobj = Py_None; | |
30646 | return resultobj; | |
30647 | fail: | |
30648 | return NULL; | |
30649 | } | |
30650 | ||
30651 | ||
30652 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30653 | PyObject *resultobj; | |
30654 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30655 | bool result; | |
30656 | PyObject * obj0 = 0 ; | |
30657 | char *kwnames[] = { | |
30658 | (char *) "self", NULL | |
30659 | }; | |
30660 | ||
30661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
30662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30663 | { | |
30664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30665 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
30666 | ||
30667 | wxPyEndAllowThreads(__tstate); | |
30668 | if (PyErr_Occurred()) SWIG_fail; | |
30669 | } | |
8edf1c75 | 30670 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
30671 | return resultobj; |
30672 | fail: | |
30673 | return NULL; | |
30674 | } | |
30675 | ||
30676 | ||
30677 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30678 | PyObject *resultobj; | |
30679 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 30680 | bool arg2 = (bool) True ; |
d14a1e28 RD |
30681 | PyObject * obj0 = 0 ; |
30682 | PyObject * obj1 = 0 ; | |
30683 | char *kwnames[] = { | |
30684 | (char *) "self",(char *) "check", NULL | |
30685 | }; | |
30686 | ||
30687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
30688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30689 | if (obj1) { | |
83448d71 | 30690 | { |
8edf1c75 | 30691 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
30692 | if (PyErr_Occurred()) SWIG_fail; |
30693 | } | |
d14a1e28 RD |
30694 | } |
30695 | { | |
30696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30697 | (arg1)->Check(arg2); | |
30698 | ||
30699 | wxPyEndAllowThreads(__tstate); | |
30700 | if (PyErr_Occurred()) SWIG_fail; | |
30701 | } | |
30702 | Py_INCREF(Py_None); resultobj = Py_None; | |
30703 | return resultobj; | |
30704 | fail: | |
30705 | return NULL; | |
30706 | } | |
30707 | ||
30708 | ||
30709 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30710 | PyObject *resultobj; | |
30711 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30712 | bool result; | |
30713 | PyObject * obj0 = 0 ; | |
30714 | char *kwnames[] = { | |
30715 | (char *) "self", NULL | |
30716 | }; | |
30717 | ||
30718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
30719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30720 | { | |
30721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30722 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
30723 | ||
30724 | wxPyEndAllowThreads(__tstate); | |
30725 | if (PyErr_Occurred()) SWIG_fail; | |
30726 | } | |
8edf1c75 | 30727 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
30728 | return resultobj; |
30729 | fail: | |
30730 | return NULL; | |
30731 | } | |
30732 | ||
30733 | ||
30734 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30735 | PyObject *resultobj; | |
30736 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30737 | PyObject * obj0 = 0 ; | |
30738 | char *kwnames[] = { | |
30739 | (char *) "self", NULL | |
30740 | }; | |
30741 | ||
30742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
30743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30744 | { | |
30745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30746 | (arg1)->Toggle(); | |
30747 | ||
30748 | wxPyEndAllowThreads(__tstate); | |
30749 | if (PyErr_Occurred()) SWIG_fail; | |
30750 | } | |
30751 | Py_INCREF(Py_None); resultobj = Py_None; | |
30752 | return resultobj; | |
30753 | fail: | |
30754 | return NULL; | |
30755 | } | |
30756 | ||
30757 | ||
30758 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30759 | PyObject *resultobj; | |
30760 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30761 | wxString *arg2 = 0 ; | |
423f194a | 30762 | bool temp2 = False ; |
d14a1e28 RD |
30763 | PyObject * obj0 = 0 ; |
30764 | PyObject * obj1 = 0 ; | |
30765 | char *kwnames[] = { | |
30766 | (char *) "self",(char *) "str", NULL | |
30767 | }; | |
30768 | ||
30769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
30770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30771 | { | |
30772 | arg2 = wxString_in_helper(obj1); | |
30773 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 30774 | temp2 = True; |
d14a1e28 RD |
30775 | } |
30776 | { | |
30777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30778 | (arg1)->SetHelp((wxString const &)*arg2); | |
30779 | ||
30780 | wxPyEndAllowThreads(__tstate); | |
30781 | if (PyErr_Occurred()) SWIG_fail; | |
30782 | } | |
30783 | Py_INCREF(Py_None); resultobj = Py_None; | |
30784 | { | |
30785 | if (temp2) | |
30786 | delete arg2; | |
30787 | } | |
30788 | return resultobj; | |
30789 | fail: | |
30790 | { | |
30791 | if (temp2) | |
30792 | delete arg2; | |
30793 | } | |
30794 | return NULL; | |
30795 | } | |
30796 | ||
30797 | ||
30798 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30799 | PyObject *resultobj; | |
30800 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30801 | wxString *result; | |
30802 | PyObject * obj0 = 0 ; | |
30803 | char *kwnames[] = { | |
30804 | (char *) "self", NULL | |
30805 | }; | |
30806 | ||
30807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
30808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30809 | { | |
30810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30811 | { | |
30812 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
30813 | result = (wxString *) &_result_ref; | |
30814 | } | |
30815 | ||
30816 | wxPyEndAllowThreads(__tstate); | |
30817 | if (PyErr_Occurred()) SWIG_fail; | |
30818 | } | |
f0983263 RD |
30819 | { |
30820 | #if wxUSE_UNICODE | |
30821 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30822 | #else | |
30823 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30824 | #endif | |
30825 | } | |
d14a1e28 RD |
30826 | return resultobj; |
30827 | fail: | |
30828 | return NULL; | |
30829 | } | |
30830 | ||
30831 | ||
30832 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30833 | PyObject *resultobj; | |
30834 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30835 | wxAcceleratorEntry *result; | |
30836 | PyObject * obj0 = 0 ; | |
30837 | char *kwnames[] = { | |
30838 | (char *) "self", NULL | |
30839 | }; | |
30840 | ||
30841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
30842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30843 | { | |
30844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30845 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
30846 | ||
30847 | wxPyEndAllowThreads(__tstate); | |
30848 | if (PyErr_Occurred()) SWIG_fail; | |
30849 | } | |
30850 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0); | |
30851 | return resultobj; | |
30852 | fail: | |
30853 | return NULL; | |
30854 | } | |
30855 | ||
30856 | ||
30857 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30858 | PyObject *resultobj; | |
30859 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30860 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
30861 | PyObject * obj0 = 0 ; | |
30862 | PyObject * obj1 = 0 ; | |
30863 | char *kwnames[] = { | |
30864 | (char *) "self",(char *) "accel", NULL | |
30865 | }; | |
30866 | ||
30867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
30868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30869 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30870 | { | |
30871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30872 | (arg1)->SetAccel(arg2); | |
30873 | ||
30874 | wxPyEndAllowThreads(__tstate); | |
30875 | if (PyErr_Occurred()) SWIG_fail; | |
30876 | } | |
30877 | Py_INCREF(Py_None); resultobj = Py_None; | |
30878 | return resultobj; | |
30879 | fail: | |
30880 | return NULL; | |
30881 | } | |
30882 | ||
30883 | ||
30884 | static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30885 | PyObject *resultobj; | |
30886 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30887 | wxFont *arg2 = 0 ; | |
30888 | PyObject * obj0 = 0 ; | |
30889 | PyObject * obj1 = 0 ; | |
30890 | char *kwnames[] = { | |
30891 | (char *) "self",(char *) "font", NULL | |
30892 | }; | |
30893 | ||
30894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
30895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30896 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30897 | if (arg2 == NULL) { | |
30898 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
30899 | } | |
30900 | { | |
30901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30902 | (arg1)->SetFont((wxFont const &)*arg2); | |
30903 | ||
30904 | wxPyEndAllowThreads(__tstate); | |
30905 | if (PyErr_Occurred()) SWIG_fail; | |
30906 | } | |
30907 | Py_INCREF(Py_None); resultobj = Py_None; | |
30908 | return resultobj; | |
30909 | fail: | |
30910 | return NULL; | |
30911 | } | |
30912 | ||
30913 | ||
30914 | static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30915 | PyObject *resultobj; | |
30916 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30917 | wxFont result; | |
30918 | PyObject * obj0 = 0 ; | |
30919 | char *kwnames[] = { | |
30920 | (char *) "self", NULL | |
30921 | }; | |
30922 | ||
30923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
30924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30925 | { | |
30926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30927 | result = (arg1)->GetFont(); | |
30928 | ||
30929 | wxPyEndAllowThreads(__tstate); | |
30930 | if (PyErr_Occurred()) SWIG_fail; | |
30931 | } | |
30932 | { | |
30933 | wxFont * resultptr; | |
30934 | resultptr = new wxFont((wxFont &) result); | |
30935 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
30936 | } | |
30937 | return resultobj; | |
30938 | fail: | |
30939 | return NULL; | |
30940 | } | |
30941 | ||
30942 | ||
30943 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30944 | PyObject *resultobj; | |
30945 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30946 | wxColour *arg2 = 0 ; | |
30947 | wxColour temp2 ; | |
30948 | PyObject * obj0 = 0 ; | |
30949 | PyObject * obj1 = 0 ; | |
30950 | char *kwnames[] = { | |
30951 | (char *) "self",(char *) "colText", NULL | |
30952 | }; | |
30953 | ||
30954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
30955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30956 | { | |
30957 | arg2 = &temp2; | |
30958 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30959 | } | |
30960 | { | |
30961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30962 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
30963 | ||
30964 | wxPyEndAllowThreads(__tstate); | |
30965 | if (PyErr_Occurred()) SWIG_fail; | |
30966 | } | |
30967 | Py_INCREF(Py_None); resultobj = Py_None; | |
30968 | return resultobj; | |
30969 | fail: | |
30970 | return NULL; | |
30971 | } | |
30972 | ||
30973 | ||
30974 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30975 | PyObject *resultobj; | |
30976 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30977 | wxColour result; | |
30978 | PyObject * obj0 = 0 ; | |
30979 | char *kwnames[] = { | |
30980 | (char *) "self", NULL | |
30981 | }; | |
30982 | ||
30983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
30984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
30985 | { | |
30986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30987 | result = (arg1)->GetTextColour(); | |
30988 | ||
30989 | wxPyEndAllowThreads(__tstate); | |
30990 | if (PyErr_Occurred()) SWIG_fail; | |
30991 | } | |
30992 | { | |
30993 | wxColour * resultptr; | |
30994 | resultptr = new wxColour((wxColour &) result); | |
30995 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
30996 | } | |
30997 | return resultobj; | |
30998 | fail: | |
30999 | return NULL; | |
31000 | } | |
31001 | ||
31002 | ||
31003 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31004 | PyObject *resultobj; | |
31005 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31006 | wxColour *arg2 = 0 ; | |
31007 | wxColour temp2 ; | |
31008 | PyObject * obj0 = 0 ; | |
31009 | PyObject * obj1 = 0 ; | |
31010 | char *kwnames[] = { | |
31011 | (char *) "self",(char *) "colBack", NULL | |
31012 | }; | |
31013 | ||
31014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
31015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31016 | { | |
31017 | arg2 = &temp2; | |
31018 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31019 | } | |
31020 | { | |
31021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31022 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
31023 | ||
31024 | wxPyEndAllowThreads(__tstate); | |
31025 | if (PyErr_Occurred()) SWIG_fail; | |
31026 | } | |
31027 | Py_INCREF(Py_None); resultobj = Py_None; | |
31028 | return resultobj; | |
31029 | fail: | |
31030 | return NULL; | |
31031 | } | |
31032 | ||
31033 | ||
31034 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31035 | PyObject *resultobj; | |
31036 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31037 | wxColour result; | |
31038 | PyObject * obj0 = 0 ; | |
31039 | char *kwnames[] = { | |
31040 | (char *) "self", NULL | |
31041 | }; | |
31042 | ||
31043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
31044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31045 | { | |
31046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31047 | result = (arg1)->GetBackgroundColour(); | |
31048 | ||
31049 | wxPyEndAllowThreads(__tstate); | |
31050 | if (PyErr_Occurred()) SWIG_fail; | |
31051 | } | |
31052 | { | |
31053 | wxColour * resultptr; | |
31054 | resultptr = new wxColour((wxColour &) result); | |
31055 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
31056 | } | |
31057 | return resultobj; | |
31058 | fail: | |
31059 | return NULL; | |
31060 | } | |
31061 | ||
31062 | ||
31063 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31064 | PyObject *resultobj; | |
31065 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31066 | wxBitmap *arg2 = 0 ; | |
31067 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
31068 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
31069 | PyObject * obj0 = 0 ; | |
31070 | PyObject * obj1 = 0 ; | |
31071 | PyObject * obj2 = 0 ; | |
31072 | char *kwnames[] = { | |
31073 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
31074 | }; | |
31075 | ||
31076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31078 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31079 | if (arg2 == NULL) { | |
31080 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31081 | } | |
31082 | if (obj2) { | |
31083 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31084 | if (arg3 == NULL) { | |
31085 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31086 | } | |
31087 | } | |
31088 | { | |
31089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31090 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
31091 | ||
31092 | wxPyEndAllowThreads(__tstate); | |
31093 | if (PyErr_Occurred()) SWIG_fail; | |
31094 | } | |
31095 | Py_INCREF(Py_None); resultobj = Py_None; | |
31096 | return resultobj; | |
31097 | fail: | |
31098 | return NULL; | |
31099 | } | |
31100 | ||
31101 | ||
31102 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31103 | PyObject *resultobj; | |
31104 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31105 | wxBitmap *arg2 = 0 ; | |
31106 | PyObject * obj0 = 0 ; | |
31107 | PyObject * obj1 = 0 ; | |
31108 | char *kwnames[] = { | |
31109 | (char *) "self",(char *) "bmpDisabled", NULL | |
31110 | }; | |
31111 | ||
31112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
31113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31114 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31115 | if (arg2 == NULL) { | |
31116 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31117 | } | |
31118 | { | |
31119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31120 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
31121 | ||
31122 | wxPyEndAllowThreads(__tstate); | |
31123 | if (PyErr_Occurred()) SWIG_fail; | |
31124 | } | |
31125 | Py_INCREF(Py_None); resultobj = Py_None; | |
31126 | return resultobj; | |
31127 | fail: | |
31128 | return NULL; | |
31129 | } | |
31130 | ||
31131 | ||
31132 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31133 | PyObject *resultobj; | |
31134 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31135 | wxBitmap *result; | |
31136 | PyObject * obj0 = 0 ; | |
31137 | char *kwnames[] = { | |
31138 | (char *) "self", NULL | |
31139 | }; | |
31140 | ||
31141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
31142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31143 | { | |
31144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31145 | { | |
31146 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
31147 | result = (wxBitmap *) &_result_ref; | |
31148 | } | |
31149 | ||
31150 | wxPyEndAllowThreads(__tstate); | |
31151 | if (PyErr_Occurred()) SWIG_fail; | |
31152 | } | |
31153 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
31154 | return resultobj; | |
31155 | fail: | |
31156 | return NULL; | |
31157 | } | |
31158 | ||
31159 | ||
31160 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31161 | PyObject *resultobj; | |
31162 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31163 | int arg2 ; | |
31164 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31165 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31166 | char *kwnames[] = { |
31167 | (char *) "self",(char *) "nWidth", NULL | |
31168 | }; | |
31169 | ||
8edf1c75 | 31170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 31171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
31172 | { |
31173 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31174 | if (PyErr_Occurred()) SWIG_fail; | |
31175 | } | |
d14a1e28 RD |
31176 | { |
31177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31178 | (arg1)->SetMarginWidth(arg2); | |
31179 | ||
31180 | wxPyEndAllowThreads(__tstate); | |
31181 | if (PyErr_Occurred()) SWIG_fail; | |
31182 | } | |
31183 | Py_INCREF(Py_None); resultobj = Py_None; | |
31184 | return resultobj; | |
31185 | fail: | |
31186 | return NULL; | |
31187 | } | |
31188 | ||
31189 | ||
31190 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31191 | PyObject *resultobj; | |
31192 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31193 | int result; | |
31194 | PyObject * obj0 = 0 ; | |
31195 | char *kwnames[] = { | |
31196 | (char *) "self", NULL | |
31197 | }; | |
31198 | ||
31199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
31200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31201 | { | |
31202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31203 | result = (int)(arg1)->GetMarginWidth(); | |
31204 | ||
31205 | wxPyEndAllowThreads(__tstate); | |
31206 | if (PyErr_Occurred()) SWIG_fail; | |
31207 | } | |
8edf1c75 | 31208 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31209 | return resultobj; |
31210 | fail: | |
31211 | return NULL; | |
31212 | } | |
31213 | ||
31214 | ||
31215 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31216 | PyObject *resultobj; | |
31217 | int result; | |
31218 | char *kwnames[] = { | |
31219 | NULL | |
31220 | }; | |
31221 | ||
31222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
31223 | { | |
31224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31225 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
31226 | ||
31227 | wxPyEndAllowThreads(__tstate); | |
31228 | if (PyErr_Occurred()) SWIG_fail; | |
31229 | } | |
8edf1c75 | 31230 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31231 | return resultobj; |
31232 | fail: | |
31233 | return NULL; | |
31234 | } | |
31235 | ||
31236 | ||
31237 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31238 | PyObject *resultobj; | |
31239 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31240 | bool result; | |
31241 | PyObject * obj0 = 0 ; | |
31242 | char *kwnames[] = { | |
31243 | (char *) "self", NULL | |
31244 | }; | |
31245 | ||
31246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
31247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31248 | { | |
31249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31250 | result = (bool)(arg1)->IsOwnerDrawn(); | |
31251 | ||
31252 | wxPyEndAllowThreads(__tstate); | |
31253 | if (PyErr_Occurred()) SWIG_fail; | |
31254 | } | |
8edf1c75 | 31255 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
31256 | return resultobj; |
31257 | fail: | |
31258 | return NULL; | |
31259 | } | |
31260 | ||
31261 | ||
31262 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31263 | PyObject *resultobj; | |
31264 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 31265 | bool arg2 = (bool) True ; |
d14a1e28 RD |
31266 | PyObject * obj0 = 0 ; |
31267 | PyObject * obj1 = 0 ; | |
31268 | char *kwnames[] = { | |
31269 | (char *) "self",(char *) "ownerDrawn", NULL | |
31270 | }; | |
31271 | ||
31272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
31273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31274 | if (obj1) { | |
83448d71 | 31275 | { |
8edf1c75 | 31276 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
31277 | if (PyErr_Occurred()) SWIG_fail; |
31278 | } | |
d14a1e28 RD |
31279 | } |
31280 | { | |
31281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31282 | (arg1)->SetOwnerDrawn(arg2); | |
31283 | ||
31284 | wxPyEndAllowThreads(__tstate); | |
31285 | if (PyErr_Occurred()) SWIG_fail; | |
31286 | } | |
31287 | Py_INCREF(Py_None); resultobj = Py_None; | |
31288 | return resultobj; | |
31289 | fail: | |
31290 | return NULL; | |
31291 | } | |
31292 | ||
31293 | ||
31294 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31295 | PyObject *resultobj; | |
31296 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31297 | PyObject * obj0 = 0 ; | |
31298 | char *kwnames[] = { | |
31299 | (char *) "self", NULL | |
31300 | }; | |
31301 | ||
31302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
31303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31304 | { | |
31305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31306 | (arg1)->ResetOwnerDrawn(); | |
31307 | ||
31308 | wxPyEndAllowThreads(__tstate); | |
31309 | if (PyErr_Occurred()) SWIG_fail; | |
31310 | } | |
31311 | Py_INCREF(Py_None); resultobj = Py_None; | |
31312 | return resultobj; | |
31313 | fail: | |
31314 | return NULL; | |
31315 | } | |
31316 | ||
31317 | ||
31318 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31319 | PyObject *resultobj; | |
31320 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31321 | wxBitmap *arg2 = 0 ; | |
31322 | PyObject * obj0 = 0 ; | |
31323 | PyObject * obj1 = 0 ; | |
31324 | char *kwnames[] = { | |
31325 | (char *) "self",(char *) "bitmap", NULL | |
31326 | }; | |
31327 | ||
31328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
31329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31330 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31331 | if (arg2 == NULL) { | |
31332 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31333 | } | |
31334 | { | |
31335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31336 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
31337 | ||
31338 | wxPyEndAllowThreads(__tstate); | |
31339 | if (PyErr_Occurred()) SWIG_fail; | |
31340 | } | |
31341 | Py_INCREF(Py_None); resultobj = Py_None; | |
31342 | return resultobj; | |
31343 | fail: | |
31344 | return NULL; | |
31345 | } | |
31346 | ||
31347 | ||
31348 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31349 | PyObject *resultobj; | |
31350 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31351 | wxBitmap *result; | |
31352 | PyObject * obj0 = 0 ; | |
31353 | char *kwnames[] = { | |
31354 | (char *) "self", NULL | |
31355 | }; | |
31356 | ||
31357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
31358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31359 | { | |
31360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31361 | { | |
31362 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
31363 | result = (wxBitmap *) &_result_ref; | |
31364 | } | |
31365 | ||
31366 | wxPyEndAllowThreads(__tstate); | |
31367 | if (PyErr_Occurred()) SWIG_fail; | |
31368 | } | |
31369 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
31370 | return resultobj; | |
31371 | fail: | |
31372 | return NULL; | |
31373 | } | |
31374 | ||
31375 | ||
31376 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
31377 | PyObject *obj; | |
31378 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31379 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
31380 | Py_INCREF(obj); | |
31381 | return Py_BuildValue((char *)""); | |
31382 | } | |
8edf1c75 | 31383 | static int _wrap_ControlNameStr_set(PyObject *) { |
d03fd34d RD |
31384 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
31385 | return 1; | |
31386 | } | |
31387 | ||
31388 | ||
31389 | static PyObject *_wrap_ControlNameStr_get() { | |
31390 | PyObject *pyobj; | |
31391 | ||
31392 | { | |
31393 | #if wxUSE_UNICODE | |
31394 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
31395 | #else | |
31396 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
31397 | #endif | |
31398 | } | |
31399 | return pyobj; | |
31400 | } | |
31401 | ||
31402 | ||
d14a1e28 RD |
31403 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { |
31404 | PyObject *resultobj; | |
31405 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 31406 | int arg2 ; |
d14a1e28 RD |
31407 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
31408 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31409 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31410 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31411 | long arg5 = (long) 0 ; | |
31412 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
31413 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
31414 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
31415 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31416 | wxControl *result; | |
31417 | wxPoint temp3 ; | |
31418 | wxSize temp4 ; | |
423f194a | 31419 | bool temp7 = False ; |
d14a1e28 | 31420 | PyObject * obj0 = 0 ; |
8edf1c75 | 31421 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31422 | PyObject * obj2 = 0 ; |
31423 | PyObject * obj3 = 0 ; | |
8edf1c75 | 31424 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
31425 | PyObject * obj5 = 0 ; |
31426 | PyObject * obj6 = 0 ; | |
31427 | char *kwnames[] = { | |
31428 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31429 | }; | |
31430 | ||
8edf1c75 | 31431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 31432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
31433 | { |
31434 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31435 | if (PyErr_Occurred()) SWIG_fail; | |
31436 | } | |
d14a1e28 RD |
31437 | if (obj2) { |
31438 | { | |
31439 | arg3 = &temp3; | |
31440 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31441 | } | |
31442 | } | |
31443 | if (obj3) { | |
31444 | { | |
31445 | arg4 = &temp4; | |
31446 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
31447 | } | |
31448 | } | |
8edf1c75 RD |
31449 | if (obj4) { |
31450 | { | |
31451 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
31452 | if (PyErr_Occurred()) SWIG_fail; | |
31453 | } | |
31454 | } | |
d14a1e28 RD |
31455 | if (obj5) { |
31456 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31457 | if (arg6 == NULL) { | |
31458 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31459 | } | |
31460 | } | |
31461 | if (obj6) { | |
31462 | { | |
31463 | arg7 = wxString_in_helper(obj6); | |
31464 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 31465 | temp7 = True; |
d14a1e28 RD |
31466 | } |
31467 | } | |
31468 | { | |
31469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31470 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
31471 | ||
31472 | wxPyEndAllowThreads(__tstate); | |
31473 | if (PyErr_Occurred()) SWIG_fail; | |
31474 | } | |
31475 | { | |
31476 | resultobj = wxPyMake_wxObject(result); | |
31477 | } | |
31478 | { | |
31479 | if (temp7) | |
31480 | delete arg7; | |
31481 | } | |
31482 | return resultobj; | |
31483 | fail: | |
31484 | { | |
31485 | if (temp7) | |
31486 | delete arg7; | |
31487 | } | |
31488 | return NULL; | |
31489 | } | |
31490 | ||
31491 | ||
31492 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31493 | PyObject *resultobj; | |
31494 | wxControl *result; | |
31495 | char *kwnames[] = { | |
31496 | NULL | |
31497 | }; | |
31498 | ||
31499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
31500 | { | |
31501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31502 | result = (wxControl *)new wxControl(); | |
31503 | ||
31504 | wxPyEndAllowThreads(__tstate); | |
31505 | if (PyErr_Occurred()) SWIG_fail; | |
31506 | } | |
31507 | { | |
31508 | resultobj = wxPyMake_wxObject(result); | |
31509 | } | |
31510 | return resultobj; | |
31511 | fail: | |
31512 | return NULL; | |
31513 | } | |
31514 | ||
31515 | ||
31516 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31517 | PyObject *resultobj; | |
31518 | wxControl *arg1 = (wxControl *) 0 ; | |
31519 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 31520 | int arg3 ; |
d14a1e28 RD |
31521 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
31522 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31523 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31524 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31525 | long arg6 = (long) 0 ; | |
31526 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
31527 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
31528 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
31529 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
31530 | bool result; | |
31531 | wxPoint temp4 ; | |
31532 | wxSize temp5 ; | |
423f194a | 31533 | bool temp8 = False ; |
d14a1e28 RD |
31534 | PyObject * obj0 = 0 ; |
31535 | PyObject * obj1 = 0 ; | |
8edf1c75 | 31536 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
31537 | PyObject * obj3 = 0 ; |
31538 | PyObject * obj4 = 0 ; | |
8edf1c75 | 31539 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
31540 | PyObject * obj6 = 0 ; |
31541 | PyObject * obj7 = 0 ; | |
31542 | char *kwnames[] = { | |
31543 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31544 | }; | |
31545 | ||
8edf1c75 | 31546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
31547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
31548 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
31549 | { |
31550 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
31551 | if (PyErr_Occurred()) SWIG_fail; | |
31552 | } | |
d14a1e28 RD |
31553 | if (obj3) { |
31554 | { | |
31555 | arg4 = &temp4; | |
31556 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
31557 | } | |
31558 | } | |
31559 | if (obj4) { | |
31560 | { | |
31561 | arg5 = &temp5; | |
31562 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
31563 | } | |
31564 | } | |
8edf1c75 RD |
31565 | if (obj5) { |
31566 | { | |
31567 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
31568 | if (PyErr_Occurred()) SWIG_fail; | |
31569 | } | |
31570 | } | |
d14a1e28 RD |
31571 | if (obj6) { |
31572 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31573 | if (arg7 == NULL) { | |
31574 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31575 | } | |
31576 | } | |
31577 | if (obj7) { | |
31578 | { | |
31579 | arg8 = wxString_in_helper(obj7); | |
31580 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 31581 | temp8 = True; |
d14a1e28 RD |
31582 | } |
31583 | } | |
31584 | { | |
31585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31586 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
31587 | ||
31588 | wxPyEndAllowThreads(__tstate); | |
31589 | if (PyErr_Occurred()) SWIG_fail; | |
31590 | } | |
8edf1c75 | 31591 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
31592 | { |
31593 | if (temp8) | |
31594 | delete arg8; | |
31595 | } | |
31596 | return resultobj; | |
31597 | fail: | |
31598 | { | |
31599 | if (temp8) | |
31600 | delete arg8; | |
31601 | } | |
31602 | return NULL; | |
31603 | } | |
31604 | ||
31605 | ||
31606 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31607 | PyObject *resultobj; | |
31608 | wxControl *arg1 = (wxControl *) 0 ; | |
31609 | wxCommandEvent *arg2 = 0 ; | |
31610 | PyObject * obj0 = 0 ; | |
31611 | PyObject * obj1 = 0 ; | |
31612 | char *kwnames[] = { | |
31613 | (char *) "self",(char *) "event", NULL | |
31614 | }; | |
31615 | ||
31616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
31617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31618 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31619 | if (arg2 == NULL) { | |
31620 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
31621 | } | |
31622 | { | |
31623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31624 | (arg1)->Command(*arg2); | |
31625 | ||
31626 | wxPyEndAllowThreads(__tstate); | |
31627 | if (PyErr_Occurred()) SWIG_fail; | |
31628 | } | |
31629 | Py_INCREF(Py_None); resultobj = Py_None; | |
31630 | return resultobj; | |
31631 | fail: | |
31632 | return NULL; | |
31633 | } | |
31634 | ||
31635 | ||
31636 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31637 | PyObject *resultobj; | |
31638 | wxControl *arg1 = (wxControl *) 0 ; | |
31639 | wxString result; | |
31640 | PyObject * obj0 = 0 ; | |
31641 | char *kwnames[] = { | |
31642 | (char *) "self", NULL | |
31643 | }; | |
31644 | ||
31645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
31646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31647 | { | |
31648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31649 | result = (arg1)->GetLabel(); | |
31650 | ||
31651 | wxPyEndAllowThreads(__tstate); | |
31652 | if (PyErr_Occurred()) SWIG_fail; | |
31653 | } | |
31654 | { | |
31655 | #if wxUSE_UNICODE | |
31656 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31657 | #else | |
31658 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31659 | #endif | |
31660 | } | |
31661 | return resultobj; | |
31662 | fail: | |
31663 | return NULL; | |
31664 | } | |
31665 | ||
31666 | ||
31667 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31668 | PyObject *resultobj; | |
31669 | wxControl *arg1 = (wxControl *) 0 ; | |
31670 | wxString *arg2 = 0 ; | |
423f194a | 31671 | bool temp2 = False ; |
d14a1e28 RD |
31672 | PyObject * obj0 = 0 ; |
31673 | PyObject * obj1 = 0 ; | |
31674 | char *kwnames[] = { | |
31675 | (char *) "self",(char *) "label", NULL | |
31676 | }; | |
31677 | ||
31678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31680 | { | |
31681 | arg2 = wxString_in_helper(obj1); | |
31682 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31683 | temp2 = True; |
d14a1e28 RD |
31684 | } |
31685 | { | |
31686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31687 | (arg1)->SetLabel((wxString const &)*arg2); | |
31688 | ||
31689 | wxPyEndAllowThreads(__tstate); | |
31690 | if (PyErr_Occurred()) SWIG_fail; | |
31691 | } | |
31692 | Py_INCREF(Py_None); resultobj = Py_None; | |
31693 | { | |
31694 | if (temp2) | |
31695 | delete arg2; | |
31696 | } | |
31697 | return resultobj; | |
31698 | fail: | |
31699 | { | |
31700 | if (temp2) | |
31701 | delete arg2; | |
31702 | } | |
31703 | return NULL; | |
31704 | } | |
31705 | ||
31706 | ||
31707 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
31708 | PyObject *obj; | |
31709 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31710 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
31711 | Py_INCREF(obj); | |
31712 | return Py_BuildValue((char *)""); | |
31713 | } | |
31714 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31715 | PyObject *resultobj; | |
31716 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31717 | wxString *arg2 = 0 ; | |
31718 | PyObject *arg3 = (PyObject *) NULL ; | |
31719 | int result; | |
423f194a | 31720 | bool temp2 = False ; |
d14a1e28 RD |
31721 | PyObject * obj0 = 0 ; |
31722 | PyObject * obj1 = 0 ; | |
31723 | PyObject * obj2 = 0 ; | |
31724 | char *kwnames[] = { | |
31725 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
31726 | }; | |
31727 | ||
31728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31730 | { | |
31731 | arg2 = wxString_in_helper(obj1); | |
31732 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31733 | temp2 = True; |
d14a1e28 RD |
31734 | } |
31735 | if (obj2) { | |
31736 | arg3 = obj2; | |
31737 | } | |
31738 | { | |
31739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31740 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
31741 | ||
31742 | wxPyEndAllowThreads(__tstate); | |
31743 | if (PyErr_Occurred()) SWIG_fail; | |
31744 | } | |
8edf1c75 | 31745 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31746 | { |
31747 | if (temp2) | |
31748 | delete arg2; | |
31749 | } | |
31750 | return resultobj; | |
31751 | fail: | |
31752 | { | |
31753 | if (temp2) | |
31754 | delete arg2; | |
31755 | } | |
31756 | return NULL; | |
31757 | } | |
31758 | ||
31759 | ||
31760 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31761 | PyObject *resultobj; | |
31762 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31763 | wxArrayString *arg2 = 0 ; | |
31764 | PyObject * obj0 = 0 ; | |
31765 | PyObject * obj1 = 0 ; | |
31766 | char *kwnames[] = { | |
31767 | (char *) "self",(char *) "strings", NULL | |
31768 | }; | |
31769 | ||
31770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
31771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31772 | { | |
31773 | if (! PySequence_Check(obj1)) { | |
31774 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
31775 | SWIG_fail; | |
31776 | } | |
31777 | arg2 = new wxArrayString; | |
31778 | int i, len=PySequence_Length(obj1); | |
31779 | for (i=0; i<len; i++) { | |
31780 | PyObject* item = PySequence_GetItem(obj1, i); | |
31781 | #if wxUSE_UNICODE | |
31782 | PyObject* str = PyObject_Unicode(item); | |
31783 | #else | |
31784 | PyObject* str = PyObject_Str(item); | |
31785 | #endif | |
31786 | arg2->Add(Py2wxString(str)); | |
31787 | Py_DECREF(item); | |
31788 | Py_DECREF(str); | |
31789 | } | |
31790 | } | |
31791 | { | |
31792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31793 | (arg1)->Append((wxArrayString const &)*arg2); | |
31794 | ||
31795 | wxPyEndAllowThreads(__tstate); | |
31796 | if (PyErr_Occurred()) SWIG_fail; | |
31797 | } | |
31798 | Py_INCREF(Py_None); resultobj = Py_None; | |
31799 | { | |
31800 | if (arg2) delete arg2; | |
31801 | } | |
31802 | return resultobj; | |
31803 | fail: | |
31804 | { | |
31805 | if (arg2) delete arg2; | |
31806 | } | |
31807 | return NULL; | |
31808 | } | |
31809 | ||
31810 | ||
31811 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31812 | PyObject *resultobj; | |
31813 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31814 | wxString *arg2 = 0 ; | |
31815 | int arg3 ; | |
31816 | PyObject *arg4 = (PyObject *) NULL ; | |
31817 | int result; | |
423f194a | 31818 | bool temp2 = False ; |
d14a1e28 RD |
31819 | PyObject * obj0 = 0 ; |
31820 | PyObject * obj1 = 0 ; | |
8edf1c75 | 31821 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
31822 | PyObject * obj3 = 0 ; |
31823 | char *kwnames[] = { | |
31824 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
31825 | }; | |
31826 | ||
8edf1c75 | 31827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
31828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
31829 | { | |
31830 | arg2 = wxString_in_helper(obj1); | |
31831 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31832 | temp2 = True; |
d14a1e28 | 31833 | } |
8edf1c75 RD |
31834 | { |
31835 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
31836 | if (PyErr_Occurred()) SWIG_fail; | |
31837 | } | |
d14a1e28 RD |
31838 | if (obj3) { |
31839 | arg4 = obj3; | |
31840 | } | |
31841 | { | |
31842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31843 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
31844 | ||
31845 | wxPyEndAllowThreads(__tstate); | |
31846 | if (PyErr_Occurred()) SWIG_fail; | |
31847 | } | |
8edf1c75 | 31848 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31849 | { |
31850 | if (temp2) | |
31851 | delete arg2; | |
31852 | } | |
31853 | return resultobj; | |
31854 | fail: | |
31855 | { | |
31856 | if (temp2) | |
31857 | delete arg2; | |
31858 | } | |
31859 | return NULL; | |
31860 | } | |
31861 | ||
31862 | ||
31863 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31864 | PyObject *resultobj; | |
31865 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31866 | PyObject * obj0 = 0 ; | |
31867 | char *kwnames[] = { | |
31868 | (char *) "self", NULL | |
31869 | }; | |
31870 | ||
31871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
31872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31873 | { | |
31874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31875 | (arg1)->Clear(); | |
31876 | ||
31877 | wxPyEndAllowThreads(__tstate); | |
31878 | if (PyErr_Occurred()) SWIG_fail; | |
31879 | } | |
31880 | Py_INCREF(Py_None); resultobj = Py_None; | |
31881 | return resultobj; | |
31882 | fail: | |
31883 | return NULL; | |
31884 | } | |
31885 | ||
31886 | ||
31887 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31888 | PyObject *resultobj; | |
31889 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31890 | int arg2 ; | |
31891 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31892 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31893 | char *kwnames[] = { |
31894 | (char *) "self",(char *) "n", NULL | |
31895 | }; | |
31896 | ||
8edf1c75 | 31897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 31898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
31899 | { |
31900 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31901 | if (PyErr_Occurred()) SWIG_fail; | |
31902 | } | |
d14a1e28 RD |
31903 | { |
31904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31905 | (arg1)->Delete(arg2); | |
31906 | ||
31907 | wxPyEndAllowThreads(__tstate); | |
31908 | if (PyErr_Occurred()) SWIG_fail; | |
31909 | } | |
31910 | Py_INCREF(Py_None); resultobj = Py_None; | |
31911 | return resultobj; | |
31912 | fail: | |
31913 | return NULL; | |
31914 | } | |
31915 | ||
31916 | ||
31917 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31918 | PyObject *resultobj; | |
31919 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31920 | int result; | |
31921 | PyObject * obj0 = 0 ; | |
31922 | char *kwnames[] = { | |
31923 | (char *) "self", NULL | |
31924 | }; | |
31925 | ||
31926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
31927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31928 | { | |
31929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31930 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
31931 | ||
31932 | wxPyEndAllowThreads(__tstate); | |
31933 | if (PyErr_Occurred()) SWIG_fail; | |
31934 | } | |
8edf1c75 | 31935 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
31936 | return resultobj; |
31937 | fail: | |
31938 | return NULL; | |
31939 | } | |
31940 | ||
31941 | ||
31942 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31943 | PyObject *resultobj; | |
31944 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31945 | bool result; | |
31946 | PyObject * obj0 = 0 ; | |
31947 | char *kwnames[] = { | |
31948 | (char *) "self", NULL | |
31949 | }; | |
31950 | ||
31951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
31952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
31953 | { | |
31954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31955 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
31956 | ||
31957 | wxPyEndAllowThreads(__tstate); | |
31958 | if (PyErr_Occurred()) SWIG_fail; | |
31959 | } | |
8edf1c75 | 31960 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
31961 | return resultobj; |
31962 | fail: | |
31963 | return NULL; | |
31964 | } | |
31965 | ||
31966 | ||
31967 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31968 | PyObject *resultobj; | |
31969 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
31970 | int arg2 ; | |
31971 | wxString result; | |
31972 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31973 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31974 | char *kwnames[] = { |
31975 | (char *) "self",(char *) "n", NULL | |
31976 | }; | |
31977 | ||
8edf1c75 | 31978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 31979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
31980 | { |
31981 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
31982 | if (PyErr_Occurred()) SWIG_fail; | |
31983 | } | |
d14a1e28 RD |
31984 | { |
31985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31986 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
31987 | ||
31988 | wxPyEndAllowThreads(__tstate); | |
31989 | if (PyErr_Occurred()) SWIG_fail; | |
31990 | } | |
31991 | { | |
31992 | #if wxUSE_UNICODE | |
31993 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31994 | #else | |
31995 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31996 | #endif | |
31997 | } | |
31998 | return resultobj; | |
31999 | fail: | |
32000 | return NULL; | |
32001 | } | |
32002 | ||
32003 | ||
32004 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32005 | PyObject *resultobj; | |
32006 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32007 | wxArrayString result; | |
32008 | PyObject * obj0 = 0 ; | |
32009 | char *kwnames[] = { | |
32010 | (char *) "self", NULL | |
32011 | }; | |
32012 | ||
32013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
32014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32015 | { | |
32016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32017 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
32018 | ||
32019 | wxPyEndAllowThreads(__tstate); | |
32020 | if (PyErr_Occurred()) SWIG_fail; | |
32021 | } | |
32022 | { | |
32023 | resultobj = wxArrayString2PyList_helper(result); | |
32024 | } | |
32025 | return resultobj; | |
32026 | fail: | |
32027 | return NULL; | |
32028 | } | |
32029 | ||
32030 | ||
32031 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32032 | PyObject *resultobj; | |
32033 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32034 | int arg2 ; | |
32035 | wxString *arg3 = 0 ; | |
423f194a | 32036 | bool temp3 = False ; |
d14a1e28 | 32037 | PyObject * obj0 = 0 ; |
8edf1c75 | 32038 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32039 | PyObject * obj2 = 0 ; |
32040 | char *kwnames[] = { | |
32041 | (char *) "self",(char *) "n",(char *) "s", NULL | |
32042 | }; | |
32043 | ||
8edf1c75 | 32044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 32045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32046 | { |
32047 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32048 | if (PyErr_Occurred()) SWIG_fail; | |
32049 | } | |
d14a1e28 RD |
32050 | { |
32051 | arg3 = wxString_in_helper(obj2); | |
32052 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 32053 | temp3 = True; |
d14a1e28 RD |
32054 | } |
32055 | { | |
32056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32057 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
32058 | ||
32059 | wxPyEndAllowThreads(__tstate); | |
32060 | if (PyErr_Occurred()) SWIG_fail; | |
32061 | } | |
32062 | Py_INCREF(Py_None); resultobj = Py_None; | |
32063 | { | |
32064 | if (temp3) | |
32065 | delete arg3; | |
32066 | } | |
32067 | return resultobj; | |
32068 | fail: | |
32069 | { | |
32070 | if (temp3) | |
32071 | delete arg3; | |
32072 | } | |
32073 | return NULL; | |
32074 | } | |
32075 | ||
32076 | ||
32077 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32078 | PyObject *resultobj; | |
32079 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32080 | wxString *arg2 = 0 ; | |
32081 | int result; | |
423f194a | 32082 | bool temp2 = False ; |
d14a1e28 RD |
32083 | PyObject * obj0 = 0 ; |
32084 | PyObject * obj1 = 0 ; | |
32085 | char *kwnames[] = { | |
32086 | (char *) "self",(char *) "s", NULL | |
32087 | }; | |
32088 | ||
32089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
32090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32091 | { | |
32092 | arg2 = wxString_in_helper(obj1); | |
32093 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32094 | temp2 = True; |
d14a1e28 RD |
32095 | } |
32096 | { | |
32097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32098 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
32099 | ||
32100 | wxPyEndAllowThreads(__tstate); | |
32101 | if (PyErr_Occurred()) SWIG_fail; | |
32102 | } | |
8edf1c75 | 32103 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
32104 | { |
32105 | if (temp2) | |
32106 | delete arg2; | |
32107 | } | |
32108 | return resultobj; | |
32109 | fail: | |
32110 | { | |
32111 | if (temp2) | |
32112 | delete arg2; | |
32113 | } | |
32114 | return NULL; | |
32115 | } | |
32116 | ||
32117 | ||
32118 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32119 | PyObject *resultobj; | |
32120 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32121 | int arg2 ; | |
32122 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32123 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32124 | char *kwnames[] = { |
32125 | (char *) "self",(char *) "n", NULL | |
32126 | }; | |
32127 | ||
8edf1c75 | 32128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32130 | { |
32131 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32132 | if (PyErr_Occurred()) SWIG_fail; | |
32133 | } | |
d14a1e28 RD |
32134 | { |
32135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32136 | (arg1)->Select(arg2); | |
32137 | ||
32138 | wxPyEndAllowThreads(__tstate); | |
32139 | if (PyErr_Occurred()) SWIG_fail; | |
32140 | } | |
32141 | Py_INCREF(Py_None); resultobj = Py_None; | |
32142 | return resultobj; | |
32143 | fail: | |
32144 | return NULL; | |
32145 | } | |
32146 | ||
32147 | ||
32148 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32149 | PyObject *resultobj; | |
32150 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32151 | int result; | |
32152 | PyObject * obj0 = 0 ; | |
32153 | char *kwnames[] = { | |
32154 | (char *) "self", NULL | |
32155 | }; | |
32156 | ||
32157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
32158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32159 | { | |
32160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32161 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
32162 | ||
32163 | wxPyEndAllowThreads(__tstate); | |
32164 | if (PyErr_Occurred()) SWIG_fail; | |
32165 | } | |
8edf1c75 | 32166 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
32167 | return resultobj; |
32168 | fail: | |
32169 | return NULL; | |
32170 | } | |
32171 | ||
32172 | ||
32173 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32174 | PyObject *resultobj; | |
32175 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32176 | wxString result; | |
32177 | PyObject * obj0 = 0 ; | |
32178 | char *kwnames[] = { | |
32179 | (char *) "self", NULL | |
32180 | }; | |
32181 | ||
32182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
32183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32184 | { | |
32185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32186 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
32187 | ||
32188 | wxPyEndAllowThreads(__tstate); | |
32189 | if (PyErr_Occurred()) SWIG_fail; | |
32190 | } | |
32191 | { | |
32192 | #if wxUSE_UNICODE | |
32193 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32194 | #else | |
32195 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32196 | #endif | |
32197 | } | |
32198 | return resultobj; | |
32199 | fail: | |
32200 | return NULL; | |
32201 | } | |
32202 | ||
32203 | ||
32204 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32205 | PyObject *resultobj; | |
32206 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32207 | int arg2 ; | |
32208 | PyObject *result; | |
32209 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32210 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32211 | char *kwnames[] = { |
32212 | (char *) "self",(char *) "n", NULL | |
32213 | }; | |
32214 | ||
8edf1c75 | 32215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32217 | { |
32218 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32219 | if (PyErr_Occurred()) SWIG_fail; | |
32220 | } | |
d14a1e28 RD |
32221 | { |
32222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32223 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
32224 | ||
32225 | wxPyEndAllowThreads(__tstate); | |
32226 | if (PyErr_Occurred()) SWIG_fail; | |
32227 | } | |
32228 | resultobj = result; | |
32229 | return resultobj; | |
32230 | fail: | |
32231 | return NULL; | |
32232 | } | |
32233 | ||
32234 | ||
32235 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32236 | PyObject *resultobj; | |
32237 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32238 | int arg2 ; | |
32239 | PyObject *arg3 = (PyObject *) 0 ; | |
32240 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32241 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32242 | PyObject * obj2 = 0 ; |
32243 | char *kwnames[] = { | |
32244 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
32245 | }; | |
32246 | ||
8edf1c75 | 32247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 32248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32249 | { |
32250 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32251 | if (PyErr_Occurred()) SWIG_fail; | |
32252 | } | |
d14a1e28 RD |
32253 | arg3 = obj2; |
32254 | { | |
32255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32256 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
32257 | ||
32258 | wxPyEndAllowThreads(__tstate); | |
32259 | if (PyErr_Occurred()) SWIG_fail; | |
32260 | } | |
32261 | Py_INCREF(Py_None); resultobj = Py_None; | |
32262 | return resultobj; | |
32263 | fail: | |
32264 | return NULL; | |
32265 | } | |
32266 | ||
32267 | ||
32268 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
32269 | PyObject *obj; | |
32270 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32271 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
32272 | Py_INCREF(obj); | |
32273 | return Py_BuildValue((char *)""); | |
32274 | } | |
32275 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
32276 | PyObject *obj; | |
32277 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32278 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
32279 | Py_INCREF(obj); | |
32280 | return Py_BuildValue((char *)""); | |
32281 | } | |
32282 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32283 | PyObject *resultobj; | |
32284 | wxSizerItem *result; | |
32285 | char *kwnames[] = { | |
32286 | NULL | |
32287 | }; | |
32288 | ||
32289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
32290 | { | |
32291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32292 | result = (wxSizerItem *)new wxSizerItem(); | |
32293 | ||
32294 | wxPyEndAllowThreads(__tstate); | |
32295 | if (PyErr_Occurred()) SWIG_fail; | |
32296 | } | |
32297 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
32298 | return resultobj; | |
32299 | fail: | |
32300 | return NULL; | |
32301 | } | |
32302 | ||
32303 | ||
32304 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32305 | PyObject *resultobj; | |
32306 | int arg1 ; | |
32307 | int arg2 ; | |
32308 | int arg3 ; | |
32309 | int arg4 ; | |
32310 | int arg5 ; | |
32311 | wxObject *arg6 = (wxObject *) 0 ; | |
32312 | wxSizerItem *result; | |
8edf1c75 RD |
32313 | PyObject * obj0 = 0 ; |
32314 | PyObject * obj1 = 0 ; | |
32315 | PyObject * obj2 = 0 ; | |
32316 | PyObject * obj3 = 0 ; | |
32317 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
32318 | PyObject * obj5 = 0 ; |
32319 | char *kwnames[] = { | |
32320 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32321 | }; | |
32322 | ||
8edf1c75 RD |
32323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
32324 | { | |
32325 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
32326 | if (PyErr_Occurred()) SWIG_fail; | |
32327 | } | |
32328 | { | |
32329 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32330 | if (PyErr_Occurred()) SWIG_fail; | |
32331 | } | |
32332 | { | |
32333 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32334 | if (PyErr_Occurred()) SWIG_fail; | |
32335 | } | |
32336 | { | |
32337 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
32338 | if (PyErr_Occurred()) SWIG_fail; | |
32339 | } | |
32340 | { | |
32341 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
32342 | if (PyErr_Occurred()) SWIG_fail; | |
32343 | } | |
d14a1e28 RD |
32344 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
32345 | { | |
32346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32347 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
32348 | ||
32349 | wxPyEndAllowThreads(__tstate); | |
32350 | if (PyErr_Occurred()) SWIG_fail; | |
32351 | } | |
32352 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
32353 | return resultobj; | |
32354 | fail: | |
32355 | return NULL; | |
32356 | } | |
32357 | ||
32358 | ||
32359 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32360 | PyObject *resultobj; | |
32361 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32362 | int arg2 ; | |
32363 | int arg3 ; | |
32364 | int arg4 ; | |
32365 | wxObject *arg5 = (wxObject *) 0 ; | |
32366 | wxSizerItem *result; | |
32367 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32368 | PyObject * obj1 = 0 ; |
32369 | PyObject * obj2 = 0 ; | |
32370 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
32371 | PyObject * obj4 = 0 ; |
32372 | char *kwnames[] = { | |
32373 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32374 | }; | |
32375 | ||
8edf1c75 | 32376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 32377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32378 | { |
32379 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32380 | if (PyErr_Occurred()) SWIG_fail; | |
32381 | } | |
32382 | { | |
32383 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32384 | if (PyErr_Occurred()) SWIG_fail; | |
32385 | } | |
32386 | { | |
32387 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
32388 | if (PyErr_Occurred()) SWIG_fail; | |
32389 | } | |
d14a1e28 RD |
32390 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
32391 | { | |
32392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32393 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
32394 | ||
32395 | wxPyEndAllowThreads(__tstate); | |
32396 | if (PyErr_Occurred()) SWIG_fail; | |
32397 | } | |
32398 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
32399 | return resultobj; | |
32400 | fail: | |
32401 | return NULL; | |
32402 | } | |
32403 | ||
32404 | ||
32405 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32406 | PyObject *resultobj; | |
32407 | wxSizer *arg1 = (wxSizer *) 0 ; | |
32408 | int arg2 ; | |
32409 | int arg3 ; | |
32410 | int arg4 ; | |
32411 | wxObject *arg5 = (wxObject *) 0 ; | |
32412 | wxSizerItem *result; | |
32413 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32414 | PyObject * obj1 = 0 ; |
32415 | PyObject * obj2 = 0 ; | |
32416 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
32417 | PyObject * obj4 = 0 ; |
32418 | char *kwnames[] = { | |
32419 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32420 | }; | |
32421 | ||
8edf1c75 | 32422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 32423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32424 | { |
32425 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32426 | if (PyErr_Occurred()) SWIG_fail; | |
32427 | } | |
32428 | { | |
32429 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32430 | if (PyErr_Occurred()) SWIG_fail; | |
32431 | } | |
32432 | { | |
32433 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
32434 | if (PyErr_Occurred()) SWIG_fail; | |
32435 | } | |
d14a1e28 RD |
32436 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
32437 | { | |
32438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32439 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
32440 | ||
32441 | wxPyEndAllowThreads(__tstate); | |
32442 | if (PyErr_Occurred()) SWIG_fail; | |
32443 | } | |
32444 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1); | |
32445 | return resultobj; | |
32446 | fail: | |
32447 | return NULL; | |
32448 | } | |
32449 | ||
32450 | ||
32451 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32452 | PyObject *resultobj; | |
32453 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32454 | PyObject * obj0 = 0 ; | |
32455 | char *kwnames[] = { | |
32456 | (char *) "self", NULL | |
32457 | }; | |
32458 | ||
32459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
32460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32461 | { | |
32462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32463 | (arg1)->DeleteWindows(); | |
32464 | ||
32465 | wxPyEndAllowThreads(__tstate); | |
32466 | if (PyErr_Occurred()) SWIG_fail; | |
32467 | } | |
32468 | Py_INCREF(Py_None); resultobj = Py_None; | |
32469 | return resultobj; | |
32470 | fail: | |
32471 | return NULL; | |
32472 | } | |
32473 | ||
32474 | ||
32475 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32476 | PyObject *resultobj; | |
32477 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32478 | PyObject * obj0 = 0 ; | |
32479 | char *kwnames[] = { | |
32480 | (char *) "self", NULL | |
32481 | }; | |
32482 | ||
32483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
32484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32485 | { | |
32486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32487 | (arg1)->DetachSizer(); | |
32488 | ||
32489 | wxPyEndAllowThreads(__tstate); | |
32490 | if (PyErr_Occurred()) SWIG_fail; | |
32491 | } | |
32492 | Py_INCREF(Py_None); resultobj = Py_None; | |
32493 | return resultobj; | |
32494 | fail: | |
32495 | return NULL; | |
32496 | } | |
32497 | ||
32498 | ||
32499 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32500 | PyObject *resultobj; | |
32501 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32502 | wxSize result; | |
32503 | PyObject * obj0 = 0 ; | |
32504 | char *kwnames[] = { | |
32505 | (char *) "self", NULL | |
32506 | }; | |
32507 | ||
32508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
32509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32510 | { | |
32511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32512 | result = (arg1)->GetSize(); | |
32513 | ||
32514 | wxPyEndAllowThreads(__tstate); | |
32515 | if (PyErr_Occurred()) SWIG_fail; | |
32516 | } | |
32517 | { | |
32518 | wxSize * resultptr; | |
32519 | resultptr = new wxSize((wxSize &) result); | |
32520 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
32521 | } | |
32522 | return resultobj; | |
32523 | fail: | |
32524 | return NULL; | |
32525 | } | |
32526 | ||
32527 | ||
32528 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32529 | PyObject *resultobj; | |
32530 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32531 | wxSize result; | |
32532 | PyObject * obj0 = 0 ; | |
32533 | char *kwnames[] = { | |
32534 | (char *) "self", NULL | |
32535 | }; | |
32536 | ||
32537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
32538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32539 | { | |
32540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32541 | result = (arg1)->CalcMin(); | |
32542 | ||
32543 | wxPyEndAllowThreads(__tstate); | |
32544 | if (PyErr_Occurred()) SWIG_fail; | |
32545 | } | |
32546 | { | |
32547 | wxSize * resultptr; | |
32548 | resultptr = new wxSize((wxSize &) result); | |
32549 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
32550 | } | |
32551 | return resultobj; | |
32552 | fail: | |
32553 | return NULL; | |
32554 | } | |
32555 | ||
32556 | ||
32557 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32558 | PyObject *resultobj; | |
32559 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32560 | wxPoint arg2 ; | |
32561 | wxSize arg3 ; | |
32562 | wxPoint *argp2 ; | |
32563 | wxSize *argp3 ; | |
32564 | PyObject * obj0 = 0 ; | |
32565 | PyObject * obj1 = 0 ; | |
32566 | PyObject * obj2 = 0 ; | |
32567 | char *kwnames[] = { | |
32568 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
32569 | }; | |
32570 | ||
32571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32573 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32574 | arg2 = *argp2; | |
32575 | if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32576 | arg3 = *argp3; | |
32577 | { | |
32578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32579 | (arg1)->SetDimension(arg2,arg3); | |
32580 | ||
32581 | wxPyEndAllowThreads(__tstate); | |
32582 | if (PyErr_Occurred()) SWIG_fail; | |
32583 | } | |
32584 | Py_INCREF(Py_None); resultobj = Py_None; | |
32585 | return resultobj; | |
32586 | fail: | |
32587 | return NULL; | |
32588 | } | |
32589 | ||
32590 | ||
32591 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32592 | PyObject *resultobj; | |
32593 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32594 | wxSize result; | |
32595 | PyObject * obj0 = 0 ; | |
32596 | char *kwnames[] = { | |
32597 | (char *) "self", NULL | |
32598 | }; | |
32599 | ||
32600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
32601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32602 | { | |
32603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32604 | result = (arg1)->GetMinSize(); | |
32605 | ||
32606 | wxPyEndAllowThreads(__tstate); | |
32607 | if (PyErr_Occurred()) SWIG_fail; | |
32608 | } | |
32609 | { | |
32610 | wxSize * resultptr; | |
32611 | resultptr = new wxSize((wxSize &) result); | |
32612 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
32613 | } | |
32614 | return resultobj; | |
32615 | fail: | |
32616 | return NULL; | |
32617 | } | |
32618 | ||
32619 | ||
32620 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32621 | PyObject *resultobj; | |
32622 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32623 | int arg2 ; | |
32624 | int arg3 ; | |
32625 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32626 | PyObject * obj1 = 0 ; |
32627 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32628 | char *kwnames[] = { |
32629 | (char *) "self",(char *) "x",(char *) "y", NULL | |
32630 | }; | |
32631 | ||
8edf1c75 | 32632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 32633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32634 | { |
32635 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32636 | if (PyErr_Occurred()) SWIG_fail; | |
32637 | } | |
32638 | { | |
32639 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32640 | if (PyErr_Occurred()) SWIG_fail; | |
32641 | } | |
d14a1e28 RD |
32642 | { |
32643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32644 | (arg1)->SetInitSize(arg2,arg3); | |
32645 | ||
32646 | wxPyEndAllowThreads(__tstate); | |
32647 | if (PyErr_Occurred()) SWIG_fail; | |
32648 | } | |
32649 | Py_INCREF(Py_None); resultobj = Py_None; | |
32650 | return resultobj; | |
32651 | fail: | |
32652 | return NULL; | |
32653 | } | |
32654 | ||
32655 | ||
32656 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32657 | PyObject *resultobj; | |
32658 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32659 | int arg2 ; | |
32660 | int arg3 ; | |
32661 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32662 | PyObject * obj1 = 0 ; |
32663 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32664 | char *kwnames[] = { |
32665 | (char *) "self",(char *) "width",(char *) "height", NULL | |
32666 | }; | |
32667 | ||
8edf1c75 | 32668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 32669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32670 | { |
32671 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32672 | if (PyErr_Occurred()) SWIG_fail; | |
32673 | } | |
32674 | { | |
32675 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
32676 | if (PyErr_Occurred()) SWIG_fail; | |
32677 | } | |
d14a1e28 RD |
32678 | { |
32679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32680 | (arg1)->SetRatio(arg2,arg3); | |
32681 | ||
32682 | wxPyEndAllowThreads(__tstate); | |
32683 | if (PyErr_Occurred()) SWIG_fail; | |
32684 | } | |
32685 | Py_INCREF(Py_None); resultobj = Py_None; | |
32686 | return resultobj; | |
32687 | fail: | |
32688 | return NULL; | |
32689 | } | |
32690 | ||
32691 | ||
32692 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32693 | PyObject *resultobj; | |
32694 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32695 | wxSize arg2 ; | |
32696 | wxSize *argp2 ; | |
32697 | PyObject * obj0 = 0 ; | |
32698 | PyObject * obj1 = 0 ; | |
32699 | char *kwnames[] = { | |
32700 | (char *) "self",(char *) "size", NULL | |
32701 | }; | |
32702 | ||
32703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
32704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32705 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32706 | arg2 = *argp2; | |
32707 | { | |
32708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32709 | (arg1)->SetRatio(arg2); | |
32710 | ||
32711 | wxPyEndAllowThreads(__tstate); | |
32712 | if (PyErr_Occurred()) SWIG_fail; | |
32713 | } | |
32714 | Py_INCREF(Py_None); resultobj = Py_None; | |
32715 | return resultobj; | |
32716 | fail: | |
32717 | return NULL; | |
32718 | } | |
32719 | ||
32720 | ||
32721 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32722 | PyObject *resultobj; | |
32723 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32724 | float arg2 ; | |
32725 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32726 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32727 | char *kwnames[] = { |
32728 | (char *) "self",(char *) "ratio", NULL | |
32729 | }; | |
32730 | ||
8edf1c75 | 32731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32733 | { |
32734 | arg2 = (float) SWIG_PyObj_AsFloat(obj1); | |
32735 | if (PyErr_Occurred()) SWIG_fail; | |
32736 | } | |
d14a1e28 RD |
32737 | { |
32738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32739 | (arg1)->SetRatio(arg2); | |
32740 | ||
32741 | wxPyEndAllowThreads(__tstate); | |
32742 | if (PyErr_Occurred()) SWIG_fail; | |
32743 | } | |
32744 | Py_INCREF(Py_None); resultobj = Py_None; | |
32745 | return resultobj; | |
32746 | fail: | |
32747 | return NULL; | |
32748 | } | |
32749 | ||
32750 | ||
32751 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32752 | PyObject *resultobj; | |
32753 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32754 | float result; | |
32755 | PyObject * obj0 = 0 ; | |
32756 | char *kwnames[] = { | |
32757 | (char *) "self", NULL | |
32758 | }; | |
32759 | ||
32760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
32761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32762 | { | |
32763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32764 | result = (float)(arg1)->GetRatio(); | |
32765 | ||
32766 | wxPyEndAllowThreads(__tstate); | |
32767 | if (PyErr_Occurred()) SWIG_fail; | |
32768 | } | |
8edf1c75 | 32769 | resultobj = SWIG_PyObj_FromFloat((float)result); |
d14a1e28 RD |
32770 | return resultobj; |
32771 | fail: | |
32772 | return NULL; | |
32773 | } | |
32774 | ||
32775 | ||
32776 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32777 | PyObject *resultobj; | |
32778 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32779 | bool result; | |
32780 | PyObject * obj0 = 0 ; | |
32781 | char *kwnames[] = { | |
32782 | (char *) "self", NULL | |
32783 | }; | |
32784 | ||
32785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
32786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32787 | { | |
32788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32789 | result = (bool)(arg1)->IsWindow(); | |
32790 | ||
32791 | wxPyEndAllowThreads(__tstate); | |
32792 | if (PyErr_Occurred()) SWIG_fail; | |
32793 | } | |
8edf1c75 | 32794 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
32795 | return resultobj; |
32796 | fail: | |
32797 | return NULL; | |
32798 | } | |
32799 | ||
32800 | ||
32801 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32802 | PyObject *resultobj; | |
32803 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32804 | bool result; | |
32805 | PyObject * obj0 = 0 ; | |
32806 | char *kwnames[] = { | |
32807 | (char *) "self", NULL | |
32808 | }; | |
32809 | ||
32810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
32811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32812 | { | |
32813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32814 | result = (bool)(arg1)->IsSizer(); | |
32815 | ||
32816 | wxPyEndAllowThreads(__tstate); | |
32817 | if (PyErr_Occurred()) SWIG_fail; | |
32818 | } | |
8edf1c75 | 32819 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
32820 | return resultobj; |
32821 | fail: | |
32822 | return NULL; | |
32823 | } | |
32824 | ||
32825 | ||
32826 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32827 | PyObject *resultobj; | |
32828 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32829 | bool result; | |
32830 | PyObject * obj0 = 0 ; | |
32831 | char *kwnames[] = { | |
32832 | (char *) "self", NULL | |
32833 | }; | |
32834 | ||
32835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
32836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32837 | { | |
32838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32839 | result = (bool)(arg1)->IsSpacer(); | |
32840 | ||
32841 | wxPyEndAllowThreads(__tstate); | |
32842 | if (PyErr_Occurred()) SWIG_fail; | |
32843 | } | |
8edf1c75 | 32844 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
32845 | return resultobj; |
32846 | fail: | |
32847 | return NULL; | |
32848 | } | |
32849 | ||
32850 | ||
32851 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32852 | PyObject *resultobj; | |
32853 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32854 | int arg2 ; | |
32855 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32856 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32857 | char *kwnames[] = { |
32858 | (char *) "self",(char *) "proportion", NULL | |
32859 | }; | |
32860 | ||
8edf1c75 | 32861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32862 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32863 | { |
32864 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32865 | if (PyErr_Occurred()) SWIG_fail; | |
32866 | } | |
d14a1e28 RD |
32867 | { |
32868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32869 | (arg1)->SetProportion(arg2); | |
32870 | ||
32871 | wxPyEndAllowThreads(__tstate); | |
32872 | if (PyErr_Occurred()) SWIG_fail; | |
32873 | } | |
32874 | Py_INCREF(Py_None); resultobj = Py_None; | |
32875 | return resultobj; | |
32876 | fail: | |
32877 | return NULL; | |
32878 | } | |
32879 | ||
32880 | ||
32881 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32882 | PyObject *resultobj; | |
32883 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32884 | int result; | |
32885 | PyObject * obj0 = 0 ; | |
32886 | char *kwnames[] = { | |
32887 | (char *) "self", NULL | |
32888 | }; | |
32889 | ||
32890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
32891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32892 | { | |
32893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32894 | result = (int)(arg1)->GetProportion(); | |
32895 | ||
32896 | wxPyEndAllowThreads(__tstate); | |
32897 | if (PyErr_Occurred()) SWIG_fail; | |
32898 | } | |
8edf1c75 | 32899 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
32900 | return resultobj; |
32901 | fail: | |
32902 | return NULL; | |
32903 | } | |
32904 | ||
32905 | ||
32906 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32907 | PyObject *resultobj; | |
32908 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32909 | int arg2 ; | |
32910 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32911 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32912 | char *kwnames[] = { |
32913 | (char *) "self",(char *) "flag", NULL | |
32914 | }; | |
32915 | ||
8edf1c75 | 32916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32918 | { |
32919 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32920 | if (PyErr_Occurred()) SWIG_fail; | |
32921 | } | |
d14a1e28 RD |
32922 | { |
32923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32924 | (arg1)->SetFlag(arg2); | |
32925 | ||
32926 | wxPyEndAllowThreads(__tstate); | |
32927 | if (PyErr_Occurred()) SWIG_fail; | |
32928 | } | |
32929 | Py_INCREF(Py_None); resultobj = Py_None; | |
32930 | return resultobj; | |
32931 | fail: | |
32932 | return NULL; | |
32933 | } | |
32934 | ||
32935 | ||
32936 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32937 | PyObject *resultobj; | |
32938 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32939 | int result; | |
32940 | PyObject * obj0 = 0 ; | |
32941 | char *kwnames[] = { | |
32942 | (char *) "self", NULL | |
32943 | }; | |
32944 | ||
32945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
32946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
32947 | { | |
32948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32949 | result = (int)(arg1)->GetFlag(); | |
32950 | ||
32951 | wxPyEndAllowThreads(__tstate); | |
32952 | if (PyErr_Occurred()) SWIG_fail; | |
32953 | } | |
8edf1c75 | 32954 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
32955 | return resultobj; |
32956 | fail: | |
32957 | return NULL; | |
32958 | } | |
32959 | ||
32960 | ||
32961 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32962 | PyObject *resultobj; | |
32963 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32964 | int arg2 ; | |
32965 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32966 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32967 | char *kwnames[] = { |
32968 | (char *) "self",(char *) "border", NULL | |
32969 | }; | |
32970 | ||
8edf1c75 | 32971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 32972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
32973 | { |
32974 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
32975 | if (PyErr_Occurred()) SWIG_fail; | |
32976 | } | |
d14a1e28 RD |
32977 | { |
32978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32979 | (arg1)->SetBorder(arg2); | |
32980 | ||
32981 | wxPyEndAllowThreads(__tstate); | |
32982 | if (PyErr_Occurred()) SWIG_fail; | |
32983 | } | |
32984 | Py_INCREF(Py_None); resultobj = Py_None; | |
32985 | return resultobj; | |
32986 | fail: | |
32987 | return NULL; | |
32988 | } | |
32989 | ||
32990 | ||
32991 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32992 | PyObject *resultobj; | |
32993 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32994 | int result; | |
32995 | PyObject * obj0 = 0 ; | |
32996 | char *kwnames[] = { | |
32997 | (char *) "self", NULL | |
32998 | }; | |
32999 | ||
33000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
33001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33002 | { | |
33003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33004 | result = (int)(arg1)->GetBorder(); | |
33005 | ||
33006 | wxPyEndAllowThreads(__tstate); | |
33007 | if (PyErr_Occurred()) SWIG_fail; | |
33008 | } | |
8edf1c75 | 33009 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
33010 | return resultobj; |
33011 | fail: | |
33012 | return NULL; | |
33013 | } | |
33014 | ||
33015 | ||
33016 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33017 | PyObject *resultobj; | |
33018 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33019 | wxWindow *result; | |
33020 | PyObject * obj0 = 0 ; | |
33021 | char *kwnames[] = { | |
33022 | (char *) "self", NULL | |
33023 | }; | |
33024 | ||
33025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
33026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33027 | { | |
33028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33029 | result = (wxWindow *)(arg1)->GetWindow(); | |
33030 | ||
33031 | wxPyEndAllowThreads(__tstate); | |
33032 | if (PyErr_Occurred()) SWIG_fail; | |
33033 | } | |
33034 | { | |
33035 | resultobj = wxPyMake_wxObject(result); | |
33036 | } | |
33037 | return resultobj; | |
33038 | fail: | |
33039 | return NULL; | |
33040 | } | |
33041 | ||
33042 | ||
33043 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33044 | PyObject *resultobj; | |
33045 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33046 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33047 | PyObject * obj0 = 0 ; | |
33048 | PyObject * obj1 = 0 ; | |
33049 | char *kwnames[] = { | |
33050 | (char *) "self",(char *) "window", NULL | |
33051 | }; | |
33052 | ||
33053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
33054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33055 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33056 | { | |
33057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33058 | (arg1)->SetWindow(arg2); | |
33059 | ||
33060 | wxPyEndAllowThreads(__tstate); | |
33061 | if (PyErr_Occurred()) SWIG_fail; | |
33062 | } | |
33063 | Py_INCREF(Py_None); resultobj = Py_None; | |
33064 | return resultobj; | |
33065 | fail: | |
33066 | return NULL; | |
33067 | } | |
33068 | ||
33069 | ||
33070 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33071 | PyObject *resultobj; | |
33072 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33073 | wxSizer *result; | |
33074 | PyObject * obj0 = 0 ; | |
33075 | char *kwnames[] = { | |
33076 | (char *) "self", NULL | |
33077 | }; | |
33078 | ||
33079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
33080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33081 | { | |
33082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33083 | result = (wxSizer *)(arg1)->GetSizer(); | |
33084 | ||
33085 | wxPyEndAllowThreads(__tstate); | |
33086 | if (PyErr_Occurred()) SWIG_fail; | |
33087 | } | |
33088 | { | |
33089 | resultobj = wxPyMake_wxSizer(result); | |
33090 | } | |
33091 | return resultobj; | |
33092 | fail: | |
33093 | return NULL; | |
33094 | } | |
33095 | ||
33096 | ||
33097 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33098 | PyObject *resultobj; | |
33099 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33100 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33101 | PyObject * obj0 = 0 ; | |
33102 | PyObject * obj1 = 0 ; | |
33103 | char *kwnames[] = { | |
33104 | (char *) "self",(char *) "sizer", NULL | |
33105 | }; | |
33106 | ||
33107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
33108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33109 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33110 | { | |
33111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33112 | (arg1)->SetSizer(arg2); | |
33113 | ||
33114 | wxPyEndAllowThreads(__tstate); | |
33115 | if (PyErr_Occurred()) SWIG_fail; | |
33116 | } | |
33117 | Py_INCREF(Py_None); resultobj = Py_None; | |
33118 | return resultobj; | |
33119 | fail: | |
33120 | return NULL; | |
33121 | } | |
33122 | ||
33123 | ||
33124 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33125 | PyObject *resultobj; | |
33126 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33127 | wxSize *result; | |
33128 | PyObject * obj0 = 0 ; | |
33129 | char *kwnames[] = { | |
33130 | (char *) "self", NULL | |
33131 | }; | |
33132 | ||
33133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
33134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33135 | { | |
33136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33137 | { | |
33138 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
33139 | result = (wxSize *) &_result_ref; | |
33140 | } | |
33141 | ||
33142 | wxPyEndAllowThreads(__tstate); | |
33143 | if (PyErr_Occurred()) SWIG_fail; | |
33144 | } | |
33145 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
33146 | return resultobj; | |
33147 | fail: | |
33148 | return NULL; | |
33149 | } | |
33150 | ||
33151 | ||
33152 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33153 | PyObject *resultobj; | |
33154 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33155 | wxSize *arg2 = 0 ; | |
33156 | wxSize temp2 ; | |
33157 | PyObject * obj0 = 0 ; | |
33158 | PyObject * obj1 = 0 ; | |
33159 | char *kwnames[] = { | |
33160 | (char *) "self",(char *) "size", NULL | |
33161 | }; | |
33162 | ||
33163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
33164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33165 | { | |
33166 | arg2 = &temp2; | |
33167 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33168 | } | |
33169 | { | |
33170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33171 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
33172 | ||
33173 | wxPyEndAllowThreads(__tstate); | |
33174 | if (PyErr_Occurred()) SWIG_fail; | |
33175 | } | |
33176 | Py_INCREF(Py_None); resultobj = Py_None; | |
33177 | return resultobj; | |
33178 | fail: | |
33179 | return NULL; | |
33180 | } | |
33181 | ||
33182 | ||
33183 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33184 | PyObject *resultobj; | |
33185 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33186 | bool arg2 ; | |
33187 | PyObject * obj0 = 0 ; | |
33188 | PyObject * obj1 = 0 ; | |
33189 | char *kwnames[] = { | |
33190 | (char *) "self",(char *) "show", NULL | |
33191 | }; | |
33192 | ||
33193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
33194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 33195 | { |
8edf1c75 | 33196 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
33197 | if (PyErr_Occurred()) SWIG_fail; |
33198 | } | |
d14a1e28 RD |
33199 | { |
33200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33201 | (arg1)->Show(arg2); | |
33202 | ||
33203 | wxPyEndAllowThreads(__tstate); | |
33204 | if (PyErr_Occurred()) SWIG_fail; | |
33205 | } | |
33206 | Py_INCREF(Py_None); resultobj = Py_None; | |
33207 | return resultobj; | |
33208 | fail: | |
33209 | return NULL; | |
33210 | } | |
33211 | ||
33212 | ||
33213 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33214 | PyObject *resultobj; | |
33215 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33216 | bool result; | |
33217 | PyObject * obj0 = 0 ; | |
33218 | char *kwnames[] = { | |
33219 | (char *) "self", NULL | |
33220 | }; | |
33221 | ||
33222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
33223 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33224 | { | |
33225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33226 | result = (bool)(arg1)->IsShown(); | |
33227 | ||
33228 | wxPyEndAllowThreads(__tstate); | |
33229 | if (PyErr_Occurred()) SWIG_fail; | |
33230 | } | |
8edf1c75 | 33231 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
33232 | return resultobj; |
33233 | fail: | |
33234 | return NULL; | |
33235 | } | |
33236 | ||
33237 | ||
33238 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33239 | PyObject *resultobj; | |
33240 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33241 | wxPoint result; | |
33242 | PyObject * obj0 = 0 ; | |
33243 | char *kwnames[] = { | |
33244 | (char *) "self", NULL | |
33245 | }; | |
33246 | ||
33247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
33248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33249 | { | |
33250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33251 | result = (arg1)->GetPosition(); | |
33252 | ||
33253 | wxPyEndAllowThreads(__tstate); | |
33254 | if (PyErr_Occurred()) SWIG_fail; | |
33255 | } | |
33256 | { | |
33257 | wxPoint * resultptr; | |
33258 | resultptr = new wxPoint((wxPoint &) result); | |
33259 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
33260 | } | |
33261 | return resultobj; | |
33262 | fail: | |
33263 | return NULL; | |
33264 | } | |
33265 | ||
33266 | ||
33267 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33268 | PyObject *resultobj; | |
33269 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33270 | PyObject *result; | |
33271 | PyObject * obj0 = 0 ; | |
33272 | char *kwnames[] = { | |
33273 | (char *) "self", NULL | |
33274 | }; | |
33275 | ||
33276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
33277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33278 | { | |
33279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33280 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
33281 | ||
33282 | wxPyEndAllowThreads(__tstate); | |
33283 | if (PyErr_Occurred()) SWIG_fail; | |
33284 | } | |
33285 | resultobj = result; | |
33286 | return resultobj; | |
33287 | fail: | |
33288 | return NULL; | |
33289 | } | |
33290 | ||
33291 | ||
33292 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
33293 | PyObject *obj; | |
33294 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33295 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
33296 | Py_INCREF(obj); | |
33297 | return Py_BuildValue((char *)""); | |
33298 | } | |
33299 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33300 | PyObject *resultobj; | |
33301 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33302 | PyObject *arg2 = (PyObject *) 0 ; | |
33303 | PyObject * obj0 = 0 ; | |
33304 | PyObject * obj1 = 0 ; | |
33305 | char *kwnames[] = { | |
33306 | (char *) "self",(char *) "_self", NULL | |
33307 | }; | |
33308 | ||
33309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
33310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33311 | arg2 = obj1; | |
33312 | { | |
33313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33314 | wxSizer__setOORInfo(arg1,arg2); | |
33315 | ||
33316 | wxPyEndAllowThreads(__tstate); | |
33317 | if (PyErr_Occurred()) SWIG_fail; | |
33318 | } | |
33319 | Py_INCREF(Py_None); resultobj = Py_None; | |
33320 | return resultobj; | |
33321 | fail: | |
33322 | return NULL; | |
33323 | } | |
33324 | ||
33325 | ||
33326 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33327 | PyObject *resultobj; | |
33328 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33329 | PyObject *arg2 = (PyObject *) 0 ; | |
33330 | int arg3 = (int) 0 ; | |
33331 | int arg4 = (int) 0 ; | |
33332 | int arg5 = (int) 0 ; | |
33333 | PyObject *arg6 = (PyObject *) NULL ; | |
33334 | PyObject * obj0 = 0 ; | |
33335 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
33336 | PyObject * obj2 = 0 ; |
33337 | PyObject * obj3 = 0 ; | |
33338 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33339 | PyObject * obj5 = 0 ; |
33340 | char *kwnames[] = { | |
33341 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33342 | }; | |
33343 | ||
8edf1c75 | 33344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
33345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
33346 | arg2 = obj1; | |
8edf1c75 RD |
33347 | if (obj2) { |
33348 | { | |
33349 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
33350 | if (PyErr_Occurred()) SWIG_fail; | |
33351 | } | |
33352 | } | |
33353 | if (obj3) { | |
33354 | { | |
33355 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
33356 | if (PyErr_Occurred()) SWIG_fail; | |
33357 | } | |
33358 | } | |
33359 | if (obj4) { | |
33360 | { | |
33361 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
33362 | if (PyErr_Occurred()) SWIG_fail; | |
33363 | } | |
33364 | } | |
d14a1e28 RD |
33365 | if (obj5) { |
33366 | arg6 = obj5; | |
33367 | } | |
33368 | { | |
33369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33370 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
33371 | ||
33372 | wxPyEndAllowThreads(__tstate); | |
33373 | if (PyErr_Occurred()) SWIG_fail; | |
33374 | } | |
33375 | Py_INCREF(Py_None); resultobj = Py_None; | |
33376 | return resultobj; | |
33377 | fail: | |
33378 | return NULL; | |
33379 | } | |
33380 | ||
33381 | ||
33382 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33383 | PyObject *resultobj; | |
33384 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33385 | int arg2 ; | |
33386 | PyObject *arg3 = (PyObject *) 0 ; | |
33387 | int arg4 = (int) 0 ; | |
33388 | int arg5 = (int) 0 ; | |
33389 | int arg6 = (int) 0 ; | |
33390 | PyObject *arg7 = (PyObject *) NULL ; | |
33391 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33392 | PyObject * obj1 = 0 ; |
d14a1e28 | 33393 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
33394 | PyObject * obj3 = 0 ; |
33395 | PyObject * obj4 = 0 ; | |
33396 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
33397 | PyObject * obj6 = 0 ; |
33398 | char *kwnames[] = { | |
33399 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33400 | }; | |
33401 | ||
8edf1c75 | 33402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 33403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
33404 | { |
33405 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
33406 | if (PyErr_Occurred()) SWIG_fail; | |
33407 | } | |
d14a1e28 | 33408 | arg3 = obj2; |
8edf1c75 RD |
33409 | if (obj3) { |
33410 | { | |
33411 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
33412 | if (PyErr_Occurred()) SWIG_fail; | |
33413 | } | |
33414 | } | |
33415 | if (obj4) { | |
33416 | { | |
33417 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
33418 | if (PyErr_Occurred()) SWIG_fail; | |
33419 | } | |
33420 | } | |
33421 | if (obj5) { | |
33422 | { | |
33423 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
33424 | if (PyErr_Occurred()) SWIG_fail; | |
33425 | } | |
33426 | } | |
d14a1e28 RD |
33427 | if (obj6) { |
33428 | arg7 = obj6; | |
33429 | } | |
33430 | { | |
33431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33432 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
33433 | ||
33434 | wxPyEndAllowThreads(__tstate); | |
33435 | if (PyErr_Occurred()) SWIG_fail; | |
33436 | } | |
33437 | Py_INCREF(Py_None); resultobj = Py_None; | |
33438 | return resultobj; | |
33439 | fail: | |
33440 | return NULL; | |
33441 | } | |
33442 | ||
33443 | ||
33444 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33445 | PyObject *resultobj; | |
33446 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33447 | PyObject *arg2 = (PyObject *) 0 ; | |
33448 | int arg3 = (int) 0 ; | |
33449 | int arg4 = (int) 0 ; | |
33450 | int arg5 = (int) 0 ; | |
33451 | PyObject *arg6 = (PyObject *) NULL ; | |
33452 | PyObject * obj0 = 0 ; | |
33453 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
33454 | PyObject * obj2 = 0 ; |
33455 | PyObject * obj3 = 0 ; | |
33456 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33457 | PyObject * obj5 = 0 ; |
33458 | char *kwnames[] = { | |
33459 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33460 | }; | |
33461 | ||
8edf1c75 | 33462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
33463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
33464 | arg2 = obj1; | |
8edf1c75 RD |
33465 | if (obj2) { |
33466 | { | |
33467 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
33468 | if (PyErr_Occurred()) SWIG_fail; | |
33469 | } | |
33470 | } | |
33471 | if (obj3) { | |
33472 | { | |
33473 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
33474 | if (PyErr_Occurred()) SWIG_fail; | |
33475 | } | |
33476 | } | |
33477 | if (obj4) { | |
33478 | { | |
33479 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
33480 | if (PyErr_Occurred()) SWIG_fail; | |
33481 | } | |
33482 | } | |
d14a1e28 RD |
33483 | if (obj5) { |
33484 | arg6 = obj5; | |
33485 | } | |
33486 | { | |
33487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33488 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
33489 | ||
33490 | wxPyEndAllowThreads(__tstate); | |
33491 | if (PyErr_Occurred()) SWIG_fail; | |
33492 | } | |
33493 | Py_INCREF(Py_None); resultobj = Py_None; | |
33494 | return resultobj; | |
33495 | fail: | |
33496 | return NULL; | |
33497 | } | |
33498 | ||
33499 | ||
33500 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33501 | PyObject *resultobj; | |
33502 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33503 | PyObject *arg2 = (PyObject *) 0 ; | |
33504 | bool result; | |
33505 | PyObject * obj0 = 0 ; | |
33506 | PyObject * obj1 = 0 ; | |
33507 | char *kwnames[] = { | |
33508 | (char *) "self",(char *) "item", NULL | |
33509 | }; | |
33510 | ||
33511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
33512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33513 | arg2 = obj1; | |
33514 | { | |
33515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33516 | result = (bool)wxSizer_Remove(arg1,arg2); | |
33517 | ||
33518 | wxPyEndAllowThreads(__tstate); | |
33519 | if (PyErr_Occurred()) SWIG_fail; | |
33520 | } | |
8edf1c75 | 33521 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
33522 | return resultobj; |
33523 | fail: | |
33524 | return NULL; | |
33525 | } | |
33526 | ||
33527 | ||
33528 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33529 | PyObject *resultobj; | |
33530 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33531 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a RD |
33532 | wxSize *arg3 = 0 ; |
33533 | wxSize temp3 ; | |
d14a1e28 RD |
33534 | PyObject * obj0 = 0 ; |
33535 | PyObject * obj1 = 0 ; | |
33536 | PyObject * obj2 = 0 ; | |
33537 | char *kwnames[] = { | |
33538 | (char *) "self",(char *) "item",(char *) "size", NULL | |
33539 | }; | |
33540 | ||
33541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33543 | arg2 = obj1; | |
423f194a RD |
33544 | { |
33545 | arg3 = &temp3; | |
33546 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
33547 | } | |
d14a1e28 RD |
33548 | { |
33549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 33550 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
33551 | |
33552 | wxPyEndAllowThreads(__tstate); | |
33553 | if (PyErr_Occurred()) SWIG_fail; | |
33554 | } | |
33555 | Py_INCREF(Py_None); resultobj = Py_None; | |
33556 | return resultobj; | |
33557 | fail: | |
33558 | return NULL; | |
33559 | } | |
33560 | ||
33561 | ||
33562 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33563 | PyObject *resultobj; | |
33564 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33565 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
33566 | PyObject * obj0 = 0 ; | |
33567 | PyObject * obj1 = 0 ; | |
33568 | char *kwnames[] = { | |
33569 | (char *) "self",(char *) "item", NULL | |
33570 | }; | |
33571 | ||
33572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
33573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33574 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33575 | { | |
33576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33577 | (arg1)->Add(arg2); | |
33578 | ||
33579 | wxPyEndAllowThreads(__tstate); | |
33580 | if (PyErr_Occurred()) SWIG_fail; | |
33581 | } | |
33582 | Py_INCREF(Py_None); resultobj = Py_None; | |
33583 | return resultobj; | |
33584 | fail: | |
33585 | return NULL; | |
33586 | } | |
33587 | ||
33588 | ||
33589 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33590 | PyObject *resultobj; | |
33591 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33592 | size_t arg2 ; | |
33593 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
33594 | PyObject * obj0 = 0 ; | |
33595 | PyObject * obj1 = 0 ; | |
33596 | PyObject * obj2 = 0 ; | |
33597 | char *kwnames[] = { | |
33598 | (char *) "self",(char *) "index",(char *) "item", NULL | |
33599 | }; | |
33600 | ||
33601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 33603 | { |
8edf1c75 | 33604 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
33605 | if (PyErr_Occurred()) SWIG_fail; |
33606 | } | |
d14a1e28 RD |
33607 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
33608 | { | |
33609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33610 | (arg1)->Insert(arg2,arg3); | |
33611 | ||
33612 | wxPyEndAllowThreads(__tstate); | |
33613 | if (PyErr_Occurred()) SWIG_fail; | |
33614 | } | |
33615 | Py_INCREF(Py_None); resultobj = Py_None; | |
33616 | return resultobj; | |
33617 | fail: | |
33618 | return NULL; | |
33619 | } | |
33620 | ||
33621 | ||
33622 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33623 | PyObject *resultobj; | |
33624 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33625 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
33626 | PyObject * obj0 = 0 ; | |
33627 | PyObject * obj1 = 0 ; | |
33628 | char *kwnames[] = { | |
33629 | (char *) "self",(char *) "item", NULL | |
33630 | }; | |
33631 | ||
33632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
33633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33634 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33635 | { | |
33636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33637 | (arg1)->Prepend(arg2); | |
33638 | ||
33639 | wxPyEndAllowThreads(__tstate); | |
33640 | if (PyErr_Occurred()) SWIG_fail; | |
33641 | } | |
33642 | Py_INCREF(Py_None); resultobj = Py_None; | |
33643 | return resultobj; | |
33644 | fail: | |
33645 | return NULL; | |
33646 | } | |
33647 | ||
33648 | ||
33649 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33650 | PyObject *resultobj; | |
33651 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33652 | int arg2 ; | |
33653 | int arg3 ; | |
33654 | int arg4 ; | |
33655 | int arg5 ; | |
33656 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
33657 | PyObject * obj1 = 0 ; |
33658 | PyObject * obj2 = 0 ; | |
33659 | PyObject * obj3 = 0 ; | |
33660 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33661 | char *kwnames[] = { |
33662 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
33663 | }; | |
33664 | ||
8edf1c75 | 33665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 33666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
33667 | { |
33668 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
33669 | if (PyErr_Occurred()) SWIG_fail; | |
33670 | } | |
33671 | { | |
33672 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
33673 | if (PyErr_Occurred()) SWIG_fail; | |
33674 | } | |
33675 | { | |
33676 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
33677 | if (PyErr_Occurred()) SWIG_fail; | |
33678 | } | |
33679 | { | |
33680 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
33681 | if (PyErr_Occurred()) SWIG_fail; | |
33682 | } | |
d14a1e28 RD |
33683 | { |
33684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33685 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
33686 | ||
33687 | wxPyEndAllowThreads(__tstate); | |
33688 | if (PyErr_Occurred()) SWIG_fail; | |
33689 | } | |
33690 | Py_INCREF(Py_None); resultobj = Py_None; | |
33691 | return resultobj; | |
33692 | fail: | |
33693 | return NULL; | |
33694 | } | |
33695 | ||
33696 | ||
33697 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33698 | PyObject *resultobj; | |
33699 | wxSizer *arg1 = (wxSizer *) 0 ; | |
a64def11 RD |
33700 | wxSize *arg2 = 0 ; |
33701 | wxSize temp2 ; | |
d14a1e28 RD |
33702 | PyObject * obj0 = 0 ; |
33703 | PyObject * obj1 = 0 ; | |
33704 | char *kwnames[] = { | |
33705 | (char *) "self",(char *) "size", NULL | |
33706 | }; | |
33707 | ||
33708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
33709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a64def11 RD |
33710 | { |
33711 | arg2 = &temp2; | |
33712 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33713 | } | |
d14a1e28 RD |
33714 | { |
33715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a64def11 | 33716 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
33717 | |
33718 | wxPyEndAllowThreads(__tstate); | |
33719 | if (PyErr_Occurred()) SWIG_fail; | |
33720 | } | |
33721 | Py_INCREF(Py_None); resultobj = Py_None; | |
33722 | return resultobj; | |
33723 | fail: | |
33724 | return NULL; | |
33725 | } | |
33726 | ||
33727 | ||
33728 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33729 | PyObject *resultobj; | |
33730 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33731 | wxSize result; | |
33732 | PyObject * obj0 = 0 ; | |
33733 | char *kwnames[] = { | |
33734 | (char *) "self", NULL | |
33735 | }; | |
33736 | ||
33737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
33738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33739 | { | |
33740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33741 | result = (arg1)->GetSize(); | |
33742 | ||
33743 | wxPyEndAllowThreads(__tstate); | |
33744 | if (PyErr_Occurred()) SWIG_fail; | |
33745 | } | |
33746 | { | |
33747 | wxSize * resultptr; | |
33748 | resultptr = new wxSize((wxSize &) result); | |
33749 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33750 | } | |
33751 | return resultobj; | |
33752 | fail: | |
33753 | return NULL; | |
33754 | } | |
33755 | ||
33756 | ||
33757 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33758 | PyObject *resultobj; | |
33759 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33760 | wxPoint result; | |
33761 | PyObject * obj0 = 0 ; | |
33762 | char *kwnames[] = { | |
33763 | (char *) "self", NULL | |
33764 | }; | |
33765 | ||
33766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
33767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33768 | { | |
33769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33770 | result = (arg1)->GetPosition(); | |
33771 | ||
33772 | wxPyEndAllowThreads(__tstate); | |
33773 | if (PyErr_Occurred()) SWIG_fail; | |
33774 | } | |
33775 | { | |
33776 | wxPoint * resultptr; | |
33777 | resultptr = new wxPoint((wxPoint &) result); | |
33778 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
33779 | } | |
33780 | return resultobj; | |
33781 | fail: | |
33782 | return NULL; | |
33783 | } | |
33784 | ||
33785 | ||
33786 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33787 | PyObject *resultobj; | |
33788 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33789 | wxSize result; | |
33790 | PyObject * obj0 = 0 ; | |
33791 | char *kwnames[] = { | |
33792 | (char *) "self", NULL | |
33793 | }; | |
33794 | ||
33795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
33796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33797 | { | |
33798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33799 | result = (arg1)->GetMinSize(); | |
33800 | ||
33801 | wxPyEndAllowThreads(__tstate); | |
33802 | if (PyErr_Occurred()) SWIG_fail; | |
33803 | } | |
33804 | { | |
33805 | wxSize * resultptr; | |
33806 | resultptr = new wxSize((wxSize &) result); | |
33807 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33808 | } | |
33809 | return resultobj; | |
33810 | fail: | |
33811 | return NULL; | |
33812 | } | |
33813 | ||
33814 | ||
33815 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33816 | PyObject *resultobj; | |
33817 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33818 | PyObject * obj0 = 0 ; | |
33819 | char *kwnames[] = { | |
33820 | (char *) "self", NULL | |
33821 | }; | |
33822 | ||
33823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
33824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33825 | { | |
33826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33827 | (arg1)->RecalcSizes(); | |
33828 | ||
33829 | wxPyEndAllowThreads(__tstate); | |
33830 | if (PyErr_Occurred()) SWIG_fail; | |
33831 | } | |
33832 | Py_INCREF(Py_None); resultobj = Py_None; | |
33833 | return resultobj; | |
33834 | fail: | |
33835 | return NULL; | |
33836 | } | |
33837 | ||
33838 | ||
33839 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33840 | PyObject *resultobj; | |
33841 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33842 | wxSize result; | |
33843 | PyObject * obj0 = 0 ; | |
33844 | char *kwnames[] = { | |
33845 | (char *) "self", NULL | |
33846 | }; | |
33847 | ||
33848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
33849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33850 | { | |
33851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33852 | result = (arg1)->CalcMin(); | |
33853 | ||
33854 | wxPyEndAllowThreads(__tstate); | |
33855 | if (PyErr_Occurred()) SWIG_fail; | |
33856 | } | |
33857 | { | |
33858 | wxSize * resultptr; | |
33859 | resultptr = new wxSize((wxSize &) result); | |
33860 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33861 | } | |
33862 | return resultobj; | |
33863 | fail: | |
33864 | return NULL; | |
33865 | } | |
33866 | ||
33867 | ||
33868 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33869 | PyObject *resultobj; | |
33870 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33871 | PyObject * obj0 = 0 ; | |
33872 | char *kwnames[] = { | |
33873 | (char *) "self", NULL | |
33874 | }; | |
33875 | ||
33876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
33877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33878 | { | |
33879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33880 | (arg1)->Layout(); | |
33881 | ||
33882 | wxPyEndAllowThreads(__tstate); | |
33883 | if (PyErr_Occurred()) SWIG_fail; | |
33884 | } | |
33885 | Py_INCREF(Py_None); resultobj = Py_None; | |
33886 | return resultobj; | |
33887 | fail: | |
33888 | return NULL; | |
33889 | } | |
33890 | ||
33891 | ||
33892 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33893 | PyObject *resultobj; | |
33894 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33895 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33896 | wxSize result; | |
33897 | PyObject * obj0 = 0 ; | |
33898 | PyObject * obj1 = 0 ; | |
33899 | char *kwnames[] = { | |
33900 | (char *) "self",(char *) "window", NULL | |
33901 | }; | |
33902 | ||
33903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
33904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33905 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33906 | { | |
33907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33908 | result = (arg1)->Fit(arg2); | |
33909 | ||
33910 | wxPyEndAllowThreads(__tstate); | |
33911 | if (PyErr_Occurred()) SWIG_fail; | |
33912 | } | |
33913 | { | |
33914 | wxSize * resultptr; | |
33915 | resultptr = new wxSize((wxSize &) result); | |
33916 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
33917 | } | |
33918 | return resultobj; | |
33919 | fail: | |
33920 | return NULL; | |
33921 | } | |
33922 | ||
33923 | ||
33924 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33925 | PyObject *resultobj; | |
33926 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33927 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33928 | PyObject * obj0 = 0 ; | |
33929 | PyObject * obj1 = 0 ; | |
33930 | char *kwnames[] = { | |
33931 | (char *) "self",(char *) "window", NULL | |
33932 | }; | |
33933 | ||
33934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
33935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33936 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33937 | { | |
33938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33939 | (arg1)->FitInside(arg2); | |
33940 | ||
33941 | wxPyEndAllowThreads(__tstate); | |
33942 | if (PyErr_Occurred()) SWIG_fail; | |
33943 | } | |
33944 | Py_INCREF(Py_None); resultobj = Py_None; | |
33945 | return resultobj; | |
33946 | fail: | |
33947 | return NULL; | |
33948 | } | |
33949 | ||
33950 | ||
33951 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33952 | PyObject *resultobj; | |
33953 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33954 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33955 | PyObject * obj0 = 0 ; | |
33956 | PyObject * obj1 = 0 ; | |
33957 | char *kwnames[] = { | |
33958 | (char *) "self",(char *) "window", NULL | |
33959 | }; | |
33960 | ||
33961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
33962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33963 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33964 | { | |
33965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33966 | (arg1)->SetSizeHints(arg2); | |
33967 | ||
33968 | wxPyEndAllowThreads(__tstate); | |
33969 | if (PyErr_Occurred()) SWIG_fail; | |
33970 | } | |
33971 | Py_INCREF(Py_None); resultobj = Py_None; | |
33972 | return resultobj; | |
33973 | fail: | |
33974 | return NULL; | |
33975 | } | |
33976 | ||
33977 | ||
33978 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33979 | PyObject *resultobj; | |
33980 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33981 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33982 | PyObject * obj0 = 0 ; | |
33983 | PyObject * obj1 = 0 ; | |
33984 | char *kwnames[] = { | |
33985 | (char *) "self",(char *) "window", NULL | |
33986 | }; | |
33987 | ||
33988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
33989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33990 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
33991 | { | |
33992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33993 | (arg1)->SetVirtualSizeHints(arg2); | |
33994 | ||
33995 | wxPyEndAllowThreads(__tstate); | |
33996 | if (PyErr_Occurred()) SWIG_fail; | |
33997 | } | |
33998 | Py_INCREF(Py_None); resultobj = Py_None; | |
33999 | return resultobj; | |
34000 | fail: | |
34001 | return NULL; | |
34002 | } | |
34003 | ||
34004 | ||
34005 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34006 | PyObject *resultobj; | |
34007 | wxSizer *arg1 = (wxSizer *) 0 ; | |
423f194a | 34008 | bool arg2 = (bool) False ; |
d14a1e28 RD |
34009 | PyObject * obj0 = 0 ; |
34010 | PyObject * obj1 = 0 ; | |
34011 | char *kwnames[] = { | |
34012 | (char *) "self",(char *) "delete_windows", NULL | |
34013 | }; | |
34014 | ||
34015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
34016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34017 | if (obj1) { | |
83448d71 | 34018 | { |
8edf1c75 | 34019 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
34020 | if (PyErr_Occurred()) SWIG_fail; |
34021 | } | |
d14a1e28 RD |
34022 | } |
34023 | { | |
34024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34025 | (arg1)->Clear(arg2); | |
34026 | ||
34027 | wxPyEndAllowThreads(__tstate); | |
34028 | if (PyErr_Occurred()) SWIG_fail; | |
34029 | } | |
34030 | Py_INCREF(Py_None); resultobj = Py_None; | |
34031 | return resultobj; | |
34032 | fail: | |
34033 | return NULL; | |
34034 | } | |
34035 | ||
34036 | ||
34037 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34038 | PyObject *resultobj; | |
34039 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34040 | PyObject * obj0 = 0 ; | |
34041 | char *kwnames[] = { | |
34042 | (char *) "self", NULL | |
34043 | }; | |
34044 | ||
34045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
34046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34047 | { | |
34048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34049 | (arg1)->DeleteWindows(); | |
34050 | ||
34051 | wxPyEndAllowThreads(__tstate); | |
34052 | if (PyErr_Occurred()) SWIG_fail; | |
34053 | } | |
34054 | Py_INCREF(Py_None); resultobj = Py_None; | |
34055 | return resultobj; | |
34056 | fail: | |
34057 | return NULL; | |
34058 | } | |
34059 | ||
34060 | ||
34061 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34062 | PyObject *resultobj; | |
34063 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34064 | PyObject *result; | |
34065 | PyObject * obj0 = 0 ; | |
34066 | char *kwnames[] = { | |
34067 | (char *) "self", NULL | |
34068 | }; | |
34069 | ||
34070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
34071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34072 | { | |
34073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34074 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
34075 | ||
34076 | wxPyEndAllowThreads(__tstate); | |
34077 | if (PyErr_Occurred()) SWIG_fail; | |
34078 | } | |
34079 | resultobj = result; | |
34080 | return resultobj; | |
34081 | fail: | |
34082 | return NULL; | |
34083 | } | |
34084 | ||
34085 | ||
34086 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34087 | PyObject *resultobj; | |
34088 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34089 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 34090 | bool arg3 = (bool) True ; |
d14a1e28 RD |
34091 | PyObject * obj0 = 0 ; |
34092 | PyObject * obj1 = 0 ; | |
34093 | PyObject * obj2 = 0 ; | |
34094 | char *kwnames[] = { | |
34095 | (char *) "self",(char *) "item",(char *) "show", NULL | |
34096 | }; | |
34097 | ||
34098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34100 | arg2 = obj1; | |
34101 | if (obj2) { | |
83448d71 | 34102 | { |
8edf1c75 | 34103 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
34104 | if (PyErr_Occurred()) SWIG_fail; |
34105 | } | |
d14a1e28 RD |
34106 | } |
34107 | { | |
34108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34109 | wxSizer_Show(arg1,arg2,arg3); | |
34110 | ||
34111 | wxPyEndAllowThreads(__tstate); | |
34112 | if (PyErr_Occurred()) SWIG_fail; | |
34113 | } | |
34114 | Py_INCREF(Py_None); resultobj = Py_None; | |
34115 | return resultobj; | |
34116 | fail: | |
34117 | return NULL; | |
34118 | } | |
34119 | ||
34120 | ||
34121 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34122 | PyObject *resultobj; | |
34123 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34124 | PyObject *arg2 = (PyObject *) 0 ; | |
34125 | PyObject * obj0 = 0 ; | |
34126 | PyObject * obj1 = 0 ; | |
34127 | char *kwnames[] = { | |
34128 | (char *) "self",(char *) "item", NULL | |
34129 | }; | |
34130 | ||
34131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
34132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34133 | arg2 = obj1; | |
34134 | { | |
34135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34136 | wxSizer_Hide(arg1,arg2); | |
34137 | ||
34138 | wxPyEndAllowThreads(__tstate); | |
34139 | if (PyErr_Occurred()) SWIG_fail; | |
34140 | } | |
34141 | Py_INCREF(Py_None); resultobj = Py_None; | |
34142 | return resultobj; | |
34143 | fail: | |
34144 | return NULL; | |
34145 | } | |
34146 | ||
34147 | ||
34148 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34149 | PyObject *resultobj; | |
34150 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34151 | PyObject *arg2 = (PyObject *) 0 ; | |
34152 | bool result; | |
34153 | PyObject * obj0 = 0 ; | |
34154 | PyObject * obj1 = 0 ; | |
34155 | char *kwnames[] = { | |
34156 | (char *) "self",(char *) "item", NULL | |
34157 | }; | |
34158 | ||
34159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
34160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34161 | arg2 = obj1; | |
34162 | { | |
34163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34164 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
34165 | ||
34166 | wxPyEndAllowThreads(__tstate); | |
34167 | if (PyErr_Occurred()) SWIG_fail; | |
34168 | } | |
8edf1c75 | 34169 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
34170 | return resultobj; |
34171 | fail: | |
34172 | return NULL; | |
34173 | } | |
34174 | ||
34175 | ||
34176 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34177 | PyObject *resultobj; | |
34178 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34179 | bool arg2 ; | |
34180 | PyObject * obj0 = 0 ; | |
34181 | PyObject * obj1 = 0 ; | |
34182 | char *kwnames[] = { | |
34183 | (char *) "self",(char *) "show", NULL | |
34184 | }; | |
34185 | ||
34186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
34187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 34188 | { |
8edf1c75 | 34189 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
34190 | if (PyErr_Occurred()) SWIG_fail; |
34191 | } | |
d14a1e28 RD |
34192 | { |
34193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34194 | (arg1)->ShowItems(arg2); | |
34195 | ||
34196 | wxPyEndAllowThreads(__tstate); | |
34197 | if (PyErr_Occurred()) SWIG_fail; | |
34198 | } | |
34199 | Py_INCREF(Py_None); resultobj = Py_None; | |
34200 | return resultobj; | |
34201 | fail: | |
34202 | return NULL; | |
34203 | } | |
34204 | ||
34205 | ||
34206 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
34207 | PyObject *obj; | |
34208 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34209 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
34210 | Py_INCREF(obj); | |
34211 | return Py_BuildValue((char *)""); | |
34212 | } | |
34213 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34214 | PyObject *resultobj; | |
34215 | wxPySizer *result; | |
34216 | char *kwnames[] = { | |
34217 | NULL | |
34218 | }; | |
34219 | ||
34220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
34221 | { | |
34222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34223 | result = (wxPySizer *)new wxPySizer(); | |
34224 | ||
34225 | wxPyEndAllowThreads(__tstate); | |
34226 | if (PyErr_Occurred()) SWIG_fail; | |
34227 | } | |
34228 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPySizer, 1); | |
34229 | return resultobj; | |
34230 | fail: | |
34231 | return NULL; | |
34232 | } | |
34233 | ||
34234 | ||
34235 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34236 | PyObject *resultobj; | |
34237 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
34238 | PyObject *arg2 = (PyObject *) 0 ; | |
34239 | PyObject *arg3 = (PyObject *) 0 ; | |
34240 | PyObject * obj0 = 0 ; | |
34241 | PyObject * obj1 = 0 ; | |
34242 | PyObject * obj2 = 0 ; | |
34243 | char *kwnames[] = { | |
34244 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
34245 | }; | |
34246 | ||
34247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPySizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34249 | arg2 = obj1; | |
34250 | arg3 = obj2; | |
34251 | { | |
34252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34253 | (arg1)->_setCallbackInfo(arg2,arg3); | |
34254 | ||
34255 | wxPyEndAllowThreads(__tstate); | |
34256 | if (PyErr_Occurred()) SWIG_fail; | |
34257 | } | |
34258 | Py_INCREF(Py_None); resultobj = Py_None; | |
34259 | return resultobj; | |
34260 | fail: | |
34261 | return NULL; | |
34262 | } | |
34263 | ||
34264 | ||
34265 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
34266 | PyObject *obj; | |
34267 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34268 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
34269 | Py_INCREF(obj); | |
34270 | return Py_BuildValue((char *)""); | |
34271 | } | |
34272 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34273 | PyObject *resultobj; | |
34274 | int arg1 = (int) wxHORIZONTAL ; | |
34275 | wxBoxSizer *result; | |
8edf1c75 | 34276 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
34277 | char *kwnames[] = { |
34278 | (char *) "orient", NULL | |
34279 | }; | |
34280 | ||
8edf1c75 RD |
34281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; |
34282 | if (obj0) { | |
34283 | { | |
34284 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
34285 | if (PyErr_Occurred()) SWIG_fail; | |
34286 | } | |
34287 | } | |
d14a1e28 RD |
34288 | { |
34289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34290 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
34291 | ||
34292 | wxPyEndAllowThreads(__tstate); | |
34293 | if (PyErr_Occurred()) SWIG_fail; | |
34294 | } | |
34295 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBoxSizer, 1); | |
34296 | return resultobj; | |
34297 | fail: | |
34298 | return NULL; | |
34299 | } | |
34300 | ||
34301 | ||
34302 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34303 | PyObject *resultobj; | |
34304 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34305 | int result; | |
34306 | PyObject * obj0 = 0 ; | |
34307 | char *kwnames[] = { | |
34308 | (char *) "self", NULL | |
34309 | }; | |
34310 | ||
34311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
34312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34313 | { | |
34314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34315 | result = (int)(arg1)->GetOrientation(); | |
34316 | ||
34317 | wxPyEndAllowThreads(__tstate); | |
34318 | if (PyErr_Occurred()) SWIG_fail; | |
34319 | } | |
8edf1c75 | 34320 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34321 | return resultobj; |
34322 | fail: | |
34323 | return NULL; | |
34324 | } | |
34325 | ||
34326 | ||
34327 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34328 | PyObject *resultobj; | |
34329 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34330 | int arg2 ; | |
34331 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34332 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34333 | char *kwnames[] = { |
34334 | (char *) "self",(char *) "orient", NULL | |
34335 | }; | |
34336 | ||
8edf1c75 | 34337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
34339 | { |
34340 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34341 | if (PyErr_Occurred()) SWIG_fail; | |
34342 | } | |
d14a1e28 RD |
34343 | { |
34344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34345 | (arg1)->SetOrientation(arg2); | |
34346 | ||
34347 | wxPyEndAllowThreads(__tstate); | |
34348 | if (PyErr_Occurred()) SWIG_fail; | |
34349 | } | |
34350 | Py_INCREF(Py_None); resultobj = Py_None; | |
34351 | return resultobj; | |
34352 | fail: | |
34353 | return NULL; | |
34354 | } | |
34355 | ||
34356 | ||
34357 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34358 | PyObject *resultobj; | |
34359 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34360 | PyObject * obj0 = 0 ; | |
34361 | char *kwnames[] = { | |
34362 | (char *) "self", NULL | |
34363 | }; | |
34364 | ||
34365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34367 | { | |
34368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34369 | (arg1)->RecalcSizes(); | |
34370 | ||
34371 | wxPyEndAllowThreads(__tstate); | |
34372 | if (PyErr_Occurred()) SWIG_fail; | |
34373 | } | |
34374 | Py_INCREF(Py_None); resultobj = Py_None; | |
34375 | return resultobj; | |
34376 | fail: | |
34377 | return NULL; | |
34378 | } | |
34379 | ||
34380 | ||
34381 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34382 | PyObject *resultobj; | |
34383 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34384 | wxSize result; | |
34385 | PyObject * obj0 = 0 ; | |
34386 | char *kwnames[] = { | |
34387 | (char *) "self", NULL | |
34388 | }; | |
34389 | ||
34390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34392 | { | |
34393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34394 | result = (arg1)->CalcMin(); | |
34395 | ||
34396 | wxPyEndAllowThreads(__tstate); | |
34397 | if (PyErr_Occurred()) SWIG_fail; | |
34398 | } | |
34399 | { | |
34400 | wxSize * resultptr; | |
34401 | resultptr = new wxSize((wxSize &) result); | |
34402 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34403 | } | |
34404 | return resultobj; | |
34405 | fail: | |
34406 | return NULL; | |
34407 | } | |
34408 | ||
34409 | ||
34410 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
34411 | PyObject *obj; | |
34412 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34413 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
34414 | Py_INCREF(obj); | |
34415 | return Py_BuildValue((char *)""); | |
34416 | } | |
34417 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34418 | PyObject *resultobj; | |
34419 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
34420 | int arg2 = (int) wxHORIZONTAL ; | |
34421 | wxStaticBoxSizer *result; | |
34422 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34423 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34424 | char *kwnames[] = { |
34425 | (char *) "box",(char *) "orient", NULL | |
34426 | }; | |
34427 | ||
8edf1c75 | 34428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
34430 | if (obj1) { |
34431 | { | |
34432 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34433 | if (PyErr_Occurred()) SWIG_fail; | |
34434 | } | |
34435 | } | |
d14a1e28 RD |
34436 | { |
34437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34438 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
34439 | ||
34440 | wxPyEndAllowThreads(__tstate); | |
34441 | if (PyErr_Occurred()) SWIG_fail; | |
34442 | } | |
34443 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBoxSizer, 1); | |
34444 | return resultobj; | |
34445 | fail: | |
34446 | return NULL; | |
34447 | } | |
34448 | ||
34449 | ||
34450 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34451 | PyObject *resultobj; | |
34452 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34453 | wxStaticBox *result; | |
34454 | PyObject * obj0 = 0 ; | |
34455 | char *kwnames[] = { | |
34456 | (char *) "self", NULL | |
34457 | }; | |
34458 | ||
34459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
34460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34461 | { | |
34462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34463 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
34464 | ||
34465 | wxPyEndAllowThreads(__tstate); | |
34466 | if (PyErr_Occurred()) SWIG_fail; | |
34467 | } | |
34468 | { | |
34469 | resultobj = wxPyMake_wxObject(result); | |
34470 | } | |
34471 | return resultobj; | |
34472 | fail: | |
34473 | return NULL; | |
34474 | } | |
34475 | ||
34476 | ||
34477 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34478 | PyObject *resultobj; | |
34479 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34480 | PyObject * obj0 = 0 ; | |
34481 | char *kwnames[] = { | |
34482 | (char *) "self", NULL | |
34483 | }; | |
34484 | ||
34485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34487 | { | |
34488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34489 | (arg1)->RecalcSizes(); | |
34490 | ||
34491 | wxPyEndAllowThreads(__tstate); | |
34492 | if (PyErr_Occurred()) SWIG_fail; | |
34493 | } | |
34494 | Py_INCREF(Py_None); resultobj = Py_None; | |
34495 | return resultobj; | |
34496 | fail: | |
34497 | return NULL; | |
34498 | } | |
34499 | ||
34500 | ||
34501 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34502 | PyObject *resultobj; | |
34503 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34504 | wxSize result; | |
34505 | PyObject * obj0 = 0 ; | |
34506 | char *kwnames[] = { | |
34507 | (char *) "self", NULL | |
34508 | }; | |
34509 | ||
34510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34512 | { | |
34513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34514 | result = (arg1)->CalcMin(); | |
34515 | ||
34516 | wxPyEndAllowThreads(__tstate); | |
34517 | if (PyErr_Occurred()) SWIG_fail; | |
34518 | } | |
34519 | { | |
34520 | wxSize * resultptr; | |
34521 | resultptr = new wxSize((wxSize &) result); | |
34522 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34523 | } | |
34524 | return resultobj; | |
34525 | fail: | |
34526 | return NULL; | |
34527 | } | |
34528 | ||
34529 | ||
34530 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
34531 | PyObject *obj; | |
34532 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34533 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
34534 | Py_INCREF(obj); | |
34535 | return Py_BuildValue((char *)""); | |
34536 | } | |
34537 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34538 | PyObject *resultobj; | |
34539 | int arg1 = (int) 1 ; | |
34540 | int arg2 = (int) 0 ; | |
34541 | int arg3 = (int) 0 ; | |
34542 | int arg4 = (int) 0 ; | |
34543 | wxGridSizer *result; | |
8edf1c75 RD |
34544 | PyObject * obj0 = 0 ; |
34545 | PyObject * obj1 = 0 ; | |
34546 | PyObject * obj2 = 0 ; | |
34547 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
34548 | char *kwnames[] = { |
34549 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
34550 | }; | |
34551 | ||
8edf1c75 RD |
34552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
34553 | if (obj0) { | |
34554 | { | |
34555 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
34556 | if (PyErr_Occurred()) SWIG_fail; | |
34557 | } | |
34558 | } | |
34559 | if (obj1) { | |
34560 | { | |
34561 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34562 | if (PyErr_Occurred()) SWIG_fail; | |
34563 | } | |
34564 | } | |
34565 | if (obj2) { | |
34566 | { | |
34567 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
34568 | if (PyErr_Occurred()) SWIG_fail; | |
34569 | } | |
34570 | } | |
34571 | if (obj3) { | |
34572 | { | |
34573 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
34574 | if (PyErr_Occurred()) SWIG_fail; | |
34575 | } | |
34576 | } | |
d14a1e28 RD |
34577 | { |
34578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34579 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
34580 | ||
34581 | wxPyEndAllowThreads(__tstate); | |
34582 | if (PyErr_Occurred()) SWIG_fail; | |
34583 | } | |
34584 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizer, 1); | |
34585 | return resultobj; | |
34586 | fail: | |
34587 | return NULL; | |
34588 | } | |
34589 | ||
34590 | ||
34591 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34592 | PyObject *resultobj; | |
34593 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34594 | PyObject * obj0 = 0 ; | |
34595 | char *kwnames[] = { | |
34596 | (char *) "self", NULL | |
34597 | }; | |
34598 | ||
34599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34601 | { | |
34602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34603 | (arg1)->RecalcSizes(); | |
34604 | ||
34605 | wxPyEndAllowThreads(__tstate); | |
34606 | if (PyErr_Occurred()) SWIG_fail; | |
34607 | } | |
34608 | Py_INCREF(Py_None); resultobj = Py_None; | |
34609 | return resultobj; | |
34610 | fail: | |
34611 | return NULL; | |
34612 | } | |
34613 | ||
34614 | ||
34615 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34616 | PyObject *resultobj; | |
34617 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34618 | wxSize result; | |
34619 | PyObject * obj0 = 0 ; | |
34620 | char *kwnames[] = { | |
34621 | (char *) "self", NULL | |
34622 | }; | |
34623 | ||
34624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34626 | { | |
34627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34628 | result = (arg1)->CalcMin(); | |
34629 | ||
34630 | wxPyEndAllowThreads(__tstate); | |
34631 | if (PyErr_Occurred()) SWIG_fail; | |
34632 | } | |
34633 | { | |
34634 | wxSize * resultptr; | |
34635 | resultptr = new wxSize((wxSize &) result); | |
34636 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34637 | } | |
34638 | return resultobj; | |
34639 | fail: | |
34640 | return NULL; | |
34641 | } | |
34642 | ||
34643 | ||
34644 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34645 | PyObject *resultobj; | |
34646 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34647 | int arg2 ; | |
34648 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34650 | char *kwnames[] = { |
34651 | (char *) "self",(char *) "cols", NULL | |
34652 | }; | |
34653 | ||
8edf1c75 | 34654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
34656 | { |
34657 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34658 | if (PyErr_Occurred()) SWIG_fail; | |
34659 | } | |
d14a1e28 RD |
34660 | { |
34661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34662 | (arg1)->SetCols(arg2); | |
34663 | ||
34664 | wxPyEndAllowThreads(__tstate); | |
34665 | if (PyErr_Occurred()) SWIG_fail; | |
34666 | } | |
34667 | Py_INCREF(Py_None); resultobj = Py_None; | |
34668 | return resultobj; | |
34669 | fail: | |
34670 | return NULL; | |
34671 | } | |
34672 | ||
34673 | ||
34674 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34675 | PyObject *resultobj; | |
34676 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34677 | int arg2 ; | |
34678 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34679 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34680 | char *kwnames[] = { |
34681 | (char *) "self",(char *) "rows", NULL | |
34682 | }; | |
34683 | ||
8edf1c75 | 34684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
34686 | { |
34687 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34688 | if (PyErr_Occurred()) SWIG_fail; | |
34689 | } | |
d14a1e28 RD |
34690 | { |
34691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34692 | (arg1)->SetRows(arg2); | |
34693 | ||
34694 | wxPyEndAllowThreads(__tstate); | |
34695 | if (PyErr_Occurred()) SWIG_fail; | |
34696 | } | |
34697 | Py_INCREF(Py_None); resultobj = Py_None; | |
34698 | return resultobj; | |
34699 | fail: | |
34700 | return NULL; | |
34701 | } | |
34702 | ||
34703 | ||
34704 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34705 | PyObject *resultobj; | |
34706 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34707 | int arg2 ; | |
34708 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34709 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34710 | char *kwnames[] = { |
34711 | (char *) "self",(char *) "gap", NULL | |
34712 | }; | |
34713 | ||
8edf1c75 | 34714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
34716 | { |
34717 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34718 | if (PyErr_Occurred()) SWIG_fail; | |
34719 | } | |
d14a1e28 RD |
34720 | { |
34721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34722 | (arg1)->SetVGap(arg2); | |
34723 | ||
34724 | wxPyEndAllowThreads(__tstate); | |
34725 | if (PyErr_Occurred()) SWIG_fail; | |
34726 | } | |
34727 | Py_INCREF(Py_None); resultobj = Py_None; | |
34728 | return resultobj; | |
34729 | fail: | |
34730 | return NULL; | |
34731 | } | |
34732 | ||
34733 | ||
34734 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34735 | PyObject *resultobj; | |
34736 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34737 | int arg2 ; | |
34738 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34739 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34740 | char *kwnames[] = { |
34741 | (char *) "self",(char *) "gap", NULL | |
34742 | }; | |
34743 | ||
8edf1c75 | 34744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 34745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
34746 | { |
34747 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34748 | if (PyErr_Occurred()) SWIG_fail; | |
34749 | } | |
d14a1e28 RD |
34750 | { |
34751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34752 | (arg1)->SetHGap(arg2); | |
34753 | ||
34754 | wxPyEndAllowThreads(__tstate); | |
34755 | if (PyErr_Occurred()) SWIG_fail; | |
34756 | } | |
34757 | Py_INCREF(Py_None); resultobj = Py_None; | |
34758 | return resultobj; | |
34759 | fail: | |
34760 | return NULL; | |
34761 | } | |
34762 | ||
34763 | ||
34764 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34765 | PyObject *resultobj; | |
34766 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34767 | int result; | |
34768 | PyObject * obj0 = 0 ; | |
34769 | char *kwnames[] = { | |
34770 | (char *) "self", NULL | |
34771 | }; | |
34772 | ||
34773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
34774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34775 | { | |
34776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34777 | result = (int)(arg1)->GetCols(); | |
34778 | ||
34779 | wxPyEndAllowThreads(__tstate); | |
34780 | if (PyErr_Occurred()) SWIG_fail; | |
34781 | } | |
8edf1c75 | 34782 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34783 | return resultobj; |
34784 | fail: | |
34785 | return NULL; | |
34786 | } | |
34787 | ||
34788 | ||
34789 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34790 | PyObject *resultobj; | |
34791 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34792 | int result; | |
34793 | PyObject * obj0 = 0 ; | |
34794 | char *kwnames[] = { | |
34795 | (char *) "self", NULL | |
34796 | }; | |
34797 | ||
34798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
34799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34800 | { | |
34801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34802 | result = (int)(arg1)->GetRows(); | |
34803 | ||
34804 | wxPyEndAllowThreads(__tstate); | |
34805 | if (PyErr_Occurred()) SWIG_fail; | |
34806 | } | |
8edf1c75 | 34807 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34808 | return resultobj; |
34809 | fail: | |
34810 | return NULL; | |
34811 | } | |
34812 | ||
34813 | ||
34814 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34815 | PyObject *resultobj; | |
34816 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34817 | int result; | |
34818 | PyObject * obj0 = 0 ; | |
34819 | char *kwnames[] = { | |
34820 | (char *) "self", NULL | |
34821 | }; | |
34822 | ||
34823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
34824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34825 | { | |
34826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34827 | result = (int)(arg1)->GetVGap(); | |
34828 | ||
34829 | wxPyEndAllowThreads(__tstate); | |
34830 | if (PyErr_Occurred()) SWIG_fail; | |
34831 | } | |
8edf1c75 | 34832 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34833 | return resultobj; |
34834 | fail: | |
34835 | return NULL; | |
34836 | } | |
34837 | ||
34838 | ||
34839 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34840 | PyObject *resultobj; | |
34841 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34842 | int result; | |
34843 | PyObject * obj0 = 0 ; | |
34844 | char *kwnames[] = { | |
34845 | (char *) "self", NULL | |
34846 | }; | |
34847 | ||
34848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
34849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34850 | { | |
34851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34852 | result = (int)(arg1)->GetHGap(); | |
34853 | ||
34854 | wxPyEndAllowThreads(__tstate); | |
34855 | if (PyErr_Occurred()) SWIG_fail; | |
34856 | } | |
8edf1c75 | 34857 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
34858 | return resultobj; |
34859 | fail: | |
34860 | return NULL; | |
34861 | } | |
34862 | ||
34863 | ||
34864 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
34865 | PyObject *obj; | |
34866 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34867 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
34868 | Py_INCREF(obj); | |
34869 | return Py_BuildValue((char *)""); | |
34870 | } | |
34871 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34872 | PyObject *resultobj; | |
34873 | int arg1 = (int) 1 ; | |
34874 | int arg2 = (int) 0 ; | |
34875 | int arg3 = (int) 0 ; | |
34876 | int arg4 = (int) 0 ; | |
34877 | wxFlexGridSizer *result; | |
8edf1c75 RD |
34878 | PyObject * obj0 = 0 ; |
34879 | PyObject * obj1 = 0 ; | |
34880 | PyObject * obj2 = 0 ; | |
34881 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
34882 | char *kwnames[] = { |
34883 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
34884 | }; | |
34885 | ||
8edf1c75 RD |
34886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
34887 | if (obj0) { | |
34888 | { | |
34889 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
34890 | if (PyErr_Occurred()) SWIG_fail; | |
34891 | } | |
34892 | } | |
34893 | if (obj1) { | |
34894 | { | |
34895 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
34896 | if (PyErr_Occurred()) SWIG_fail; | |
34897 | } | |
34898 | } | |
34899 | if (obj2) { | |
34900 | { | |
34901 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
34902 | if (PyErr_Occurred()) SWIG_fail; | |
34903 | } | |
34904 | } | |
34905 | if (obj3) { | |
34906 | { | |
34907 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
34908 | if (PyErr_Occurred()) SWIG_fail; | |
34909 | } | |
34910 | } | |
d14a1e28 RD |
34911 | { |
34912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34913 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
34914 | ||
34915 | wxPyEndAllowThreads(__tstate); | |
34916 | if (PyErr_Occurred()) SWIG_fail; | |
34917 | } | |
34918 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFlexGridSizer, 1); | |
34919 | return resultobj; | |
34920 | fail: | |
34921 | return NULL; | |
34922 | } | |
34923 | ||
34924 | ||
34925 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34926 | PyObject *resultobj; | |
34927 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34928 | PyObject * obj0 = 0 ; | |
34929 | char *kwnames[] = { | |
34930 | (char *) "self", NULL | |
34931 | }; | |
34932 | ||
34933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
34934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34935 | { | |
34936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34937 | (arg1)->RecalcSizes(); | |
34938 | ||
34939 | wxPyEndAllowThreads(__tstate); | |
34940 | if (PyErr_Occurred()) SWIG_fail; | |
34941 | } | |
34942 | Py_INCREF(Py_None); resultobj = Py_None; | |
34943 | return resultobj; | |
34944 | fail: | |
34945 | return NULL; | |
34946 | } | |
34947 | ||
34948 | ||
34949 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34950 | PyObject *resultobj; | |
34951 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34952 | wxSize result; | |
34953 | PyObject * obj0 = 0 ; | |
34954 | char *kwnames[] = { | |
34955 | (char *) "self", NULL | |
34956 | }; | |
34957 | ||
34958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
34959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
34960 | { | |
34961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34962 | result = (arg1)->CalcMin(); | |
34963 | ||
34964 | wxPyEndAllowThreads(__tstate); | |
34965 | if (PyErr_Occurred()) SWIG_fail; | |
34966 | } | |
34967 | { | |
34968 | wxSize * resultptr; | |
34969 | resultptr = new wxSize((wxSize &) result); | |
34970 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
34971 | } | |
34972 | return resultobj; | |
34973 | fail: | |
34974 | return NULL; | |
34975 | } | |
34976 | ||
34977 | ||
34978 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34979 | PyObject *resultobj; | |
34980 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
34981 | size_t arg2 ; | |
34982 | int arg3 = (int) 0 ; | |
34983 | PyObject * obj0 = 0 ; | |
34984 | PyObject * obj1 = 0 ; | |
8edf1c75 | 34985 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
34986 | char *kwnames[] = { |
34987 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
34988 | }; | |
34989 | ||
8edf1c75 | 34990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 34991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 34992 | { |
8edf1c75 | 34993 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
34994 | if (PyErr_Occurred()) SWIG_fail; |
34995 | } | |
8edf1c75 RD |
34996 | if (obj2) { |
34997 | { | |
34998 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
34999 | if (PyErr_Occurred()) SWIG_fail; | |
35000 | } | |
35001 | } | |
d14a1e28 RD |
35002 | { |
35003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35004 | (arg1)->AddGrowableRow(arg2,arg3); | |
35005 | ||
35006 | wxPyEndAllowThreads(__tstate); | |
35007 | if (PyErr_Occurred()) SWIG_fail; | |
35008 | } | |
35009 | Py_INCREF(Py_None); resultobj = Py_None; | |
35010 | return resultobj; | |
35011 | fail: | |
35012 | return NULL; | |
35013 | } | |
35014 | ||
35015 | ||
35016 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35017 | PyObject *resultobj; | |
35018 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35019 | size_t arg2 ; | |
35020 | PyObject * obj0 = 0 ; | |
35021 | PyObject * obj1 = 0 ; | |
35022 | char *kwnames[] = { | |
35023 | (char *) "self",(char *) "idx", NULL | |
35024 | }; | |
35025 | ||
35026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
35027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 35028 | { |
8edf1c75 | 35029 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
35030 | if (PyErr_Occurred()) SWIG_fail; |
35031 | } | |
d14a1e28 RD |
35032 | { |
35033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35034 | (arg1)->RemoveGrowableRow(arg2); | |
35035 | ||
35036 | wxPyEndAllowThreads(__tstate); | |
35037 | if (PyErr_Occurred()) SWIG_fail; | |
35038 | } | |
35039 | Py_INCREF(Py_None); resultobj = Py_None; | |
35040 | return resultobj; | |
35041 | fail: | |
35042 | return NULL; | |
35043 | } | |
35044 | ||
35045 | ||
35046 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35047 | PyObject *resultobj; | |
35048 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35049 | size_t arg2 ; | |
35050 | int arg3 = (int) 0 ; | |
35051 | PyObject * obj0 = 0 ; | |
35052 | PyObject * obj1 = 0 ; | |
8edf1c75 | 35053 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
35054 | char *kwnames[] = { |
35055 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
35056 | }; | |
35057 | ||
8edf1c75 | 35058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 35059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 35060 | { |
8edf1c75 | 35061 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
35062 | if (PyErr_Occurred()) SWIG_fail; |
35063 | } | |
8edf1c75 RD |
35064 | if (obj2) { |
35065 | { | |
35066 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
35067 | if (PyErr_Occurred()) SWIG_fail; | |
35068 | } | |
35069 | } | |
d14a1e28 RD |
35070 | { |
35071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35072 | (arg1)->AddGrowableCol(arg2,arg3); | |
35073 | ||
35074 | wxPyEndAllowThreads(__tstate); | |
35075 | if (PyErr_Occurred()) SWIG_fail; | |
35076 | } | |
35077 | Py_INCREF(Py_None); resultobj = Py_None; | |
35078 | return resultobj; | |
35079 | fail: | |
35080 | return NULL; | |
35081 | } | |
35082 | ||
35083 | ||
35084 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35085 | PyObject *resultobj; | |
35086 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35087 | size_t arg2 ; | |
35088 | PyObject * obj0 = 0 ; | |
35089 | PyObject * obj1 = 0 ; | |
35090 | char *kwnames[] = { | |
35091 | (char *) "self",(char *) "idx", NULL | |
35092 | }; | |
35093 | ||
35094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
35095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 35096 | { |
8edf1c75 | 35097 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
35098 | if (PyErr_Occurred()) SWIG_fail; |
35099 | } | |
d14a1e28 RD |
35100 | { |
35101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35102 | (arg1)->RemoveGrowableCol(arg2); | |
35103 | ||
35104 | wxPyEndAllowThreads(__tstate); | |
35105 | if (PyErr_Occurred()) SWIG_fail; | |
35106 | } | |
35107 | Py_INCREF(Py_None); resultobj = Py_None; | |
35108 | return resultobj; | |
35109 | fail: | |
35110 | return NULL; | |
35111 | } | |
35112 | ||
35113 | ||
35114 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35115 | PyObject *resultobj; | |
35116 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35117 | int arg2 ; | |
35118 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35119 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35120 | char *kwnames[] = { |
35121 | (char *) "self",(char *) "direction", NULL | |
35122 | }; | |
35123 | ||
8edf1c75 | 35124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35126 | { |
35127 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35128 | if (PyErr_Occurred()) SWIG_fail; | |
35129 | } | |
d14a1e28 RD |
35130 | { |
35131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35132 | (arg1)->SetFlexibleDirection(arg2); | |
35133 | ||
35134 | wxPyEndAllowThreads(__tstate); | |
35135 | if (PyErr_Occurred()) SWIG_fail; | |
35136 | } | |
35137 | Py_INCREF(Py_None); resultobj = Py_None; | |
35138 | return resultobj; | |
35139 | fail: | |
35140 | return NULL; | |
35141 | } | |
35142 | ||
35143 | ||
35144 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35145 | PyObject *resultobj; | |
35146 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35147 | int result; | |
35148 | PyObject * obj0 = 0 ; | |
35149 | char *kwnames[] = { | |
35150 | (char *) "self", NULL | |
35151 | }; | |
35152 | ||
35153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
35154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35155 | { | |
35156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35157 | result = (int)(arg1)->GetFlexibleDirection(); | |
35158 | ||
35159 | wxPyEndAllowThreads(__tstate); | |
35160 | if (PyErr_Occurred()) SWIG_fail; | |
35161 | } | |
8edf1c75 | 35162 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35163 | return resultobj; |
35164 | fail: | |
35165 | return NULL; | |
35166 | } | |
35167 | ||
35168 | ||
35169 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35170 | PyObject *resultobj; | |
35171 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35172 | int arg2 ; | |
35173 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35174 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35175 | char *kwnames[] = { |
35176 | (char *) "self",(char *) "mode", NULL | |
35177 | }; | |
35178 | ||
8edf1c75 | 35179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35181 | { |
35182 | arg2 = (wxFlexSizerGrowMode) SWIG_PyObj_AsInt(obj1); | |
35183 | if (PyErr_Occurred()) SWIG_fail; | |
35184 | } | |
d14a1e28 RD |
35185 | { |
35186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35187 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
35188 | ||
35189 | wxPyEndAllowThreads(__tstate); | |
35190 | if (PyErr_Occurred()) SWIG_fail; | |
35191 | } | |
35192 | Py_INCREF(Py_None); resultobj = Py_None; | |
35193 | return resultobj; | |
35194 | fail: | |
35195 | return NULL; | |
35196 | } | |
35197 | ||
35198 | ||
35199 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35200 | PyObject *resultobj; | |
35201 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35202 | int result; | |
35203 | PyObject * obj0 = 0 ; | |
35204 | char *kwnames[] = { | |
35205 | (char *) "self", NULL | |
35206 | }; | |
35207 | ||
35208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
35209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35210 | { | |
35211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35212 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
35213 | ||
35214 | wxPyEndAllowThreads(__tstate); | |
35215 | if (PyErr_Occurred()) SWIG_fail; | |
35216 | } | |
8edf1c75 | 35217 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35218 | return resultobj; |
35219 | fail: | |
35220 | return NULL; | |
35221 | } | |
35222 | ||
35223 | ||
423f194a RD |
35224 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { |
35225 | PyObject *resultobj; | |
35226 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35227 | wxArrayInt *result; | |
35228 | PyObject * obj0 = 0 ; | |
35229 | char *kwnames[] = { | |
35230 | (char *) "self", NULL | |
35231 | }; | |
35232 | ||
35233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
35234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35235 | { | |
35236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35237 | { | |
35238 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
35239 | result = (wxArrayInt *) &_result_ref; | |
35240 | } | |
35241 | ||
35242 | wxPyEndAllowThreads(__tstate); | |
35243 | if (PyErr_Occurred()) SWIG_fail; | |
35244 | } | |
35245 | { | |
35246 | resultobj = PyList_New(0); | |
35247 | size_t idx; | |
35248 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
35249 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
35250 | PyList_Append(resultobj, val); | |
35251 | Py_DECREF(val); | |
35252 | } | |
35253 | } | |
35254 | return resultobj; | |
35255 | fail: | |
35256 | return NULL; | |
35257 | } | |
35258 | ||
35259 | ||
35260 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35261 | PyObject *resultobj; | |
35262 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35263 | wxArrayInt *result; | |
35264 | PyObject * obj0 = 0 ; | |
35265 | char *kwnames[] = { | |
35266 | (char *) "self", NULL | |
35267 | }; | |
35268 | ||
35269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
35270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35271 | { | |
35272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35273 | { | |
35274 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
35275 | result = (wxArrayInt *) &_result_ref; | |
35276 | } | |
35277 | ||
35278 | wxPyEndAllowThreads(__tstate); | |
35279 | if (PyErr_Occurred()) SWIG_fail; | |
35280 | } | |
35281 | { | |
35282 | resultobj = PyList_New(0); | |
35283 | size_t idx; | |
35284 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
35285 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
35286 | PyList_Append(resultobj, val); | |
35287 | Py_DECREF(val); | |
35288 | } | |
35289 | } | |
35290 | return resultobj; | |
35291 | fail: | |
35292 | return NULL; | |
35293 | } | |
35294 | ||
35295 | ||
d14a1e28 RD |
35296 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { |
35297 | PyObject *obj; | |
35298 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35299 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
35300 | Py_INCREF(obj); | |
35301 | return Py_BuildValue((char *)""); | |
35302 | } | |
35303 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35304 | PyObject *resultobj; | |
35305 | int arg1 = (int) 0 ; | |
35306 | int arg2 = (int) 0 ; | |
35307 | wxGBPosition *result; | |
8edf1c75 RD |
35308 | PyObject * obj0 = 0 ; |
35309 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
35310 | char *kwnames[] = { |
35311 | (char *) "row",(char *) "col", NULL | |
35312 | }; | |
35313 | ||
8edf1c75 RD |
35314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; |
35315 | if (obj0) { | |
35316 | { | |
35317 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
35318 | if (PyErr_Occurred()) SWIG_fail; | |
35319 | } | |
35320 | } | |
35321 | if (obj1) { | |
35322 | { | |
35323 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35324 | if (PyErr_Occurred()) SWIG_fail; | |
35325 | } | |
35326 | } | |
d14a1e28 RD |
35327 | { |
35328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35329 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
35330 | ||
35331 | wxPyEndAllowThreads(__tstate); | |
35332 | if (PyErr_Occurred()) SWIG_fail; | |
35333 | } | |
35334 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBPosition, 1); | |
35335 | return resultobj; | |
35336 | fail: | |
35337 | return NULL; | |
35338 | } | |
35339 | ||
35340 | ||
35341 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35342 | PyObject *resultobj; | |
35343 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35344 | int result; | |
35345 | PyObject * obj0 = 0 ; | |
35346 | char *kwnames[] = { | |
35347 | (char *) "self", NULL | |
35348 | }; | |
35349 | ||
35350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
35351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35352 | { | |
35353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35354 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
35355 | ||
35356 | wxPyEndAllowThreads(__tstate); | |
35357 | if (PyErr_Occurred()) SWIG_fail; | |
35358 | } | |
8edf1c75 | 35359 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35360 | return resultobj; |
35361 | fail: | |
35362 | return NULL; | |
35363 | } | |
35364 | ||
35365 | ||
35366 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35367 | PyObject *resultobj; | |
35368 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35369 | int result; | |
35370 | PyObject * obj0 = 0 ; | |
35371 | char *kwnames[] = { | |
35372 | (char *) "self", NULL | |
35373 | }; | |
35374 | ||
35375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
35376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35377 | { | |
35378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35379 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
35380 | ||
35381 | wxPyEndAllowThreads(__tstate); | |
35382 | if (PyErr_Occurred()) SWIG_fail; | |
35383 | } | |
8edf1c75 | 35384 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35385 | return resultobj; |
35386 | fail: | |
35387 | return NULL; | |
35388 | } | |
35389 | ||
35390 | ||
35391 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35392 | PyObject *resultobj; | |
35393 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35394 | int arg2 ; | |
35395 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35396 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35397 | char *kwnames[] = { |
35398 | (char *) "self",(char *) "row", NULL | |
35399 | }; | |
35400 | ||
8edf1c75 | 35401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35403 | { |
35404 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35405 | if (PyErr_Occurred()) SWIG_fail; | |
35406 | } | |
d14a1e28 RD |
35407 | { |
35408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35409 | (arg1)->SetRow(arg2); | |
35410 | ||
35411 | wxPyEndAllowThreads(__tstate); | |
35412 | if (PyErr_Occurred()) SWIG_fail; | |
35413 | } | |
35414 | Py_INCREF(Py_None); resultobj = Py_None; | |
35415 | return resultobj; | |
35416 | fail: | |
35417 | return NULL; | |
35418 | } | |
35419 | ||
35420 | ||
35421 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35422 | PyObject *resultobj; | |
35423 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35424 | int arg2 ; | |
35425 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35426 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35427 | char *kwnames[] = { |
35428 | (char *) "self",(char *) "col", NULL | |
35429 | }; | |
35430 | ||
8edf1c75 | 35431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35433 | { |
35434 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35435 | if (PyErr_Occurred()) SWIG_fail; | |
35436 | } | |
d14a1e28 RD |
35437 | { |
35438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35439 | (arg1)->SetCol(arg2); | |
35440 | ||
35441 | wxPyEndAllowThreads(__tstate); | |
35442 | if (PyErr_Occurred()) SWIG_fail; | |
35443 | } | |
35444 | Py_INCREF(Py_None); resultobj = Py_None; | |
35445 | return resultobj; | |
35446 | fail: | |
35447 | return NULL; | |
35448 | } | |
35449 | ||
35450 | ||
35451 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35452 | PyObject *resultobj; | |
35453 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35454 | wxGBPosition *arg2 = 0 ; | |
35455 | bool result; | |
35456 | wxGBPosition temp2 ; | |
35457 | PyObject * obj0 = 0 ; | |
35458 | PyObject * obj1 = 0 ; | |
35459 | char *kwnames[] = { | |
35460 | (char *) "self",(char *) "p", NULL | |
35461 | }; | |
35462 | ||
35463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
35464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35465 | { | |
35466 | arg2 = &temp2; | |
35467 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
35468 | } | |
35469 | { | |
35470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35471 | result = (bool)((wxGBPosition const *)arg1)->operator ==((wxGBPosition const &)*arg2); | |
35472 | ||
35473 | wxPyEndAllowThreads(__tstate); | |
35474 | if (PyErr_Occurred()) SWIG_fail; | |
35475 | } | |
8edf1c75 | 35476 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
35477 | return resultobj; |
35478 | fail: | |
35479 | return NULL; | |
35480 | } | |
35481 | ||
35482 | ||
35483 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35484 | PyObject *resultobj; | |
35485 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35486 | wxGBPosition *arg2 = 0 ; | |
35487 | bool result; | |
35488 | wxGBPosition temp2 ; | |
35489 | PyObject * obj0 = 0 ; | |
35490 | PyObject * obj1 = 0 ; | |
35491 | char *kwnames[] = { | |
35492 | (char *) "self",(char *) "p", NULL | |
35493 | }; | |
35494 | ||
35495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
35496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35497 | { | |
35498 | arg2 = &temp2; | |
35499 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
35500 | } | |
35501 | { | |
35502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35503 | result = (bool)((wxGBPosition const *)arg1)->operator !=((wxGBPosition const &)*arg2); | |
35504 | ||
35505 | wxPyEndAllowThreads(__tstate); | |
35506 | if (PyErr_Occurred()) SWIG_fail; | |
35507 | } | |
8edf1c75 | 35508 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
35509 | return resultobj; |
35510 | fail: | |
35511 | return NULL; | |
35512 | } | |
35513 | ||
35514 | ||
423f194a RD |
35515 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
35516 | PyObject *resultobj; | |
35517 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35518 | int arg2 = (int) 0 ; | |
35519 | int arg3 = (int) 0 ; | |
35520 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
35521 | PyObject * obj1 = 0 ; |
35522 | PyObject * obj2 = 0 ; | |
423f194a RD |
35523 | char *kwnames[] = { |
35524 | (char *) "self",(char *) "row",(char *) "col", NULL | |
35525 | }; | |
35526 | ||
8edf1c75 | 35527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
423f194a | 35528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35529 | if (obj1) { |
35530 | { | |
35531 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35532 | if (PyErr_Occurred()) SWIG_fail; | |
35533 | } | |
35534 | } | |
35535 | if (obj2) { | |
35536 | { | |
35537 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
35538 | if (PyErr_Occurred()) SWIG_fail; | |
35539 | } | |
35540 | } | |
423f194a RD |
35541 | { |
35542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35543 | wxGBPosition_Set(arg1,arg2,arg3); | |
35544 | ||
35545 | wxPyEndAllowThreads(__tstate); | |
35546 | if (PyErr_Occurred()) SWIG_fail; | |
35547 | } | |
35548 | Py_INCREF(Py_None); resultobj = Py_None; | |
35549 | return resultobj; | |
35550 | fail: | |
35551 | return NULL; | |
35552 | } | |
35553 | ||
35554 | ||
35555 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
35556 | PyObject *resultobj; |
35557 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35558 | PyObject *result; | |
35559 | PyObject * obj0 = 0 ; | |
35560 | char *kwnames[] = { | |
35561 | (char *) "self", NULL | |
35562 | }; | |
35563 | ||
423f194a | 35564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
35565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35566 | { | |
35567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 35568 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
35569 | |
35570 | wxPyEndAllowThreads(__tstate); | |
35571 | if (PyErr_Occurred()) SWIG_fail; | |
35572 | } | |
35573 | resultobj = result; | |
35574 | return resultobj; | |
35575 | fail: | |
35576 | return NULL; | |
35577 | } | |
35578 | ||
35579 | ||
35580 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
35581 | PyObject *obj; | |
35582 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35583 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
35584 | Py_INCREF(obj); | |
35585 | return Py_BuildValue((char *)""); | |
35586 | } | |
35587 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35588 | PyObject *resultobj; | |
35589 | int arg1 = (int) 1 ; | |
35590 | int arg2 = (int) 1 ; | |
35591 | wxGBSpan *result; | |
8edf1c75 RD |
35592 | PyObject * obj0 = 0 ; |
35593 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
35594 | char *kwnames[] = { |
35595 | (char *) "rowspan",(char *) "colspan", NULL | |
35596 | }; | |
35597 | ||
8edf1c75 RD |
35598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; |
35599 | if (obj0) { | |
35600 | { | |
35601 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
35602 | if (PyErr_Occurred()) SWIG_fail; | |
35603 | } | |
35604 | } | |
35605 | if (obj1) { | |
35606 | { | |
35607 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35608 | if (PyErr_Occurred()) SWIG_fail; | |
35609 | } | |
35610 | } | |
d14a1e28 RD |
35611 | { |
35612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35613 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
35614 | ||
35615 | wxPyEndAllowThreads(__tstate); | |
35616 | if (PyErr_Occurred()) SWIG_fail; | |
35617 | } | |
35618 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSpan, 1); | |
35619 | return resultobj; | |
35620 | fail: | |
35621 | return NULL; | |
35622 | } | |
35623 | ||
35624 | ||
35625 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35626 | PyObject *resultobj; | |
35627 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35628 | int result; | |
35629 | PyObject * obj0 = 0 ; | |
35630 | char *kwnames[] = { | |
35631 | (char *) "self", NULL | |
35632 | }; | |
35633 | ||
35634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
35635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35636 | { | |
35637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35638 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
35639 | ||
35640 | wxPyEndAllowThreads(__tstate); | |
35641 | if (PyErr_Occurred()) SWIG_fail; | |
35642 | } | |
8edf1c75 | 35643 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35644 | return resultobj; |
35645 | fail: | |
35646 | return NULL; | |
35647 | } | |
35648 | ||
35649 | ||
35650 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35651 | PyObject *resultobj; | |
35652 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35653 | int result; | |
35654 | PyObject * obj0 = 0 ; | |
35655 | char *kwnames[] = { | |
35656 | (char *) "self", NULL | |
35657 | }; | |
35658 | ||
35659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
35660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35661 | { | |
35662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35663 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
35664 | ||
35665 | wxPyEndAllowThreads(__tstate); | |
35666 | if (PyErr_Occurred()) SWIG_fail; | |
35667 | } | |
8edf1c75 | 35668 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
35669 | return resultobj; |
35670 | fail: | |
35671 | return NULL; | |
35672 | } | |
35673 | ||
35674 | ||
35675 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35676 | PyObject *resultobj; | |
35677 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35678 | int arg2 ; | |
35679 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35680 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35681 | char *kwnames[] = { |
35682 | (char *) "self",(char *) "rowspan", NULL | |
35683 | }; | |
35684 | ||
8edf1c75 | 35685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35687 | { |
35688 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35689 | if (PyErr_Occurred()) SWIG_fail; | |
35690 | } | |
d14a1e28 RD |
35691 | { |
35692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35693 | (arg1)->SetRowspan(arg2); | |
35694 | ||
35695 | wxPyEndAllowThreads(__tstate); | |
35696 | if (PyErr_Occurred()) SWIG_fail; | |
35697 | } | |
35698 | Py_INCREF(Py_None); resultobj = Py_None; | |
35699 | return resultobj; | |
35700 | fail: | |
35701 | return NULL; | |
35702 | } | |
35703 | ||
35704 | ||
35705 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35706 | PyObject *resultobj; | |
35707 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35708 | int arg2 ; | |
35709 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35710 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35711 | char *kwnames[] = { |
35712 | (char *) "self",(char *) "colspan", NULL | |
35713 | }; | |
35714 | ||
8edf1c75 | 35715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 35716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35717 | { |
35718 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35719 | if (PyErr_Occurred()) SWIG_fail; | |
35720 | } | |
d14a1e28 RD |
35721 | { |
35722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35723 | (arg1)->SetColspan(arg2); | |
35724 | ||
35725 | wxPyEndAllowThreads(__tstate); | |
35726 | if (PyErr_Occurred()) SWIG_fail; | |
35727 | } | |
35728 | Py_INCREF(Py_None); resultobj = Py_None; | |
35729 | return resultobj; | |
35730 | fail: | |
35731 | return NULL; | |
35732 | } | |
35733 | ||
35734 | ||
35735 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35736 | PyObject *resultobj; | |
35737 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35738 | wxGBSpan *arg2 = 0 ; | |
35739 | bool result; | |
35740 | wxGBSpan temp2 ; | |
35741 | PyObject * obj0 = 0 ; | |
35742 | PyObject * obj1 = 0 ; | |
35743 | char *kwnames[] = { | |
35744 | (char *) "self",(char *) "o", NULL | |
35745 | }; | |
35746 | ||
35747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
35748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35749 | { | |
35750 | arg2 = &temp2; | |
35751 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
35752 | } | |
35753 | { | |
35754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35755 | result = (bool)((wxGBSpan const *)arg1)->operator ==((wxGBSpan const &)*arg2); | |
35756 | ||
35757 | wxPyEndAllowThreads(__tstate); | |
35758 | if (PyErr_Occurred()) SWIG_fail; | |
35759 | } | |
8edf1c75 | 35760 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
35761 | return resultobj; |
35762 | fail: | |
35763 | return NULL; | |
35764 | } | |
35765 | ||
35766 | ||
35767 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35768 | PyObject *resultobj; | |
35769 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35770 | wxGBSpan *arg2 = 0 ; | |
35771 | bool result; | |
35772 | wxGBSpan temp2 ; | |
35773 | PyObject * obj0 = 0 ; | |
35774 | PyObject * obj1 = 0 ; | |
35775 | char *kwnames[] = { | |
35776 | (char *) "self",(char *) "o", NULL | |
35777 | }; | |
35778 | ||
35779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
35780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
35781 | { | |
35782 | arg2 = &temp2; | |
35783 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
35784 | } | |
35785 | { | |
35786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35787 | result = (bool)((wxGBSpan const *)arg1)->operator !=((wxGBSpan const &)*arg2); | |
35788 | ||
35789 | wxPyEndAllowThreads(__tstate); | |
35790 | if (PyErr_Occurred()) SWIG_fail; | |
35791 | } | |
8edf1c75 | 35792 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
35793 | return resultobj; |
35794 | fail: | |
35795 | return NULL; | |
35796 | } | |
35797 | ||
35798 | ||
423f194a RD |
35799 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
35800 | PyObject *resultobj; | |
35801 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35802 | int arg2 = (int) 1 ; | |
35803 | int arg3 = (int) 1 ; | |
35804 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
35805 | PyObject * obj1 = 0 ; |
35806 | PyObject * obj2 = 0 ; | |
423f194a RD |
35807 | char *kwnames[] = { |
35808 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
35809 | }; | |
35810 | ||
8edf1c75 | 35811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
423f194a | 35812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
35813 | if (obj1) { |
35814 | { | |
35815 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
35816 | if (PyErr_Occurred()) SWIG_fail; | |
35817 | } | |
35818 | } | |
35819 | if (obj2) { | |
35820 | { | |
35821 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
35822 | if (PyErr_Occurred()) SWIG_fail; | |
35823 | } | |
35824 | } | |
423f194a RD |
35825 | { |
35826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35827 | wxGBSpan_Set(arg1,arg2,arg3); | |
35828 | ||
35829 | wxPyEndAllowThreads(__tstate); | |
35830 | if (PyErr_Occurred()) SWIG_fail; | |
35831 | } | |
35832 | Py_INCREF(Py_None); resultobj = Py_None; | |
35833 | return resultobj; | |
35834 | fail: | |
35835 | return NULL; | |
35836 | } | |
35837 | ||
35838 | ||
35839 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
35840 | PyObject *resultobj; |
35841 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35842 | PyObject *result; | |
35843 | PyObject * obj0 = 0 ; | |
35844 | char *kwnames[] = { | |
35845 | (char *) "self", NULL | |
35846 | }; | |
35847 | ||
423f194a | 35848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
35849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35850 | { | |
35851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 35852 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
35853 | |
35854 | wxPyEndAllowThreads(__tstate); | |
35855 | if (PyErr_Occurred()) SWIG_fail; | |
35856 | } | |
35857 | resultobj = result; | |
35858 | return resultobj; | |
35859 | fail: | |
35860 | return NULL; | |
35861 | } | |
35862 | ||
35863 | ||
35864 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
35865 | PyObject *obj; | |
35866 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35867 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
35868 | Py_INCREF(obj); | |
35869 | return Py_BuildValue((char *)""); | |
35870 | } | |
8edf1c75 | 35871 | static int _wrap_DefaultSpan_set(PyObject *) { |
d14a1e28 RD |
35872 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
35873 | return 1; | |
35874 | } | |
35875 | ||
35876 | ||
35877 | static PyObject *_wrap_DefaultSpan_get() { | |
35878 | PyObject *pyobj; | |
35879 | ||
35880 | pyobj = SWIG_NewPointerObj((void *) &wxDefaultSpan, SWIGTYPE_p_wxGBSpan, 0); | |
35881 | return pyobj; | |
35882 | } | |
35883 | ||
35884 | ||
35885 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35886 | PyObject *resultobj; | |
35887 | wxGBSizerItem *result; | |
35888 | char *kwnames[] = { | |
35889 | NULL | |
35890 | }; | |
35891 | ||
35892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
35893 | { | |
35894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35895 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
35896 | ||
35897 | wxPyEndAllowThreads(__tstate); | |
35898 | if (PyErr_Occurred()) SWIG_fail; | |
35899 | } | |
35900 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
35901 | return resultobj; | |
35902 | fail: | |
35903 | return NULL; | |
35904 | } | |
35905 | ||
35906 | ||
35907 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35908 | PyObject *resultobj; | |
35909 | wxWindow *arg1 = (wxWindow *) 0 ; | |
35910 | wxGBPosition *arg2 = 0 ; | |
35911 | wxGBSpan *arg3 = 0 ; | |
35912 | int arg4 ; | |
35913 | int arg5 ; | |
35914 | wxObject *arg6 = (wxObject *) 0 ; | |
35915 | wxGBSizerItem *result; | |
35916 | wxGBPosition temp2 ; | |
35917 | wxGBSpan temp3 ; | |
35918 | PyObject * obj0 = 0 ; | |
35919 | PyObject * obj1 = 0 ; | |
35920 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
35921 | PyObject * obj3 = 0 ; |
35922 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
35923 | PyObject * obj5 = 0 ; |
35924 | char *kwnames[] = { | |
35925 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35926 | }; | |
35927 | ||
8edf1c75 | 35928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
35929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35930 | { | |
35931 | arg2 = &temp2; | |
35932 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
35933 | } | |
35934 | { | |
35935 | arg3 = &temp3; | |
35936 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
35937 | } | |
8edf1c75 RD |
35938 | { |
35939 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
35940 | if (PyErr_Occurred()) SWIG_fail; | |
35941 | } | |
35942 | { | |
35943 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
35944 | if (PyErr_Occurred()) SWIG_fail; | |
35945 | } | |
d14a1e28 RD |
35946 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35947 | { | |
35948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35949 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
35950 | ||
35951 | wxPyEndAllowThreads(__tstate); | |
35952 | if (PyErr_Occurred()) SWIG_fail; | |
35953 | } | |
35954 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
35955 | return resultobj; | |
35956 | fail: | |
35957 | return NULL; | |
35958 | } | |
35959 | ||
35960 | ||
35961 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35962 | PyObject *resultobj; | |
35963 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35964 | wxGBPosition *arg2 = 0 ; | |
35965 | wxGBSpan *arg3 = 0 ; | |
35966 | int arg4 ; | |
35967 | int arg5 ; | |
35968 | wxObject *arg6 = (wxObject *) 0 ; | |
35969 | wxGBSizerItem *result; | |
35970 | wxGBPosition temp2 ; | |
35971 | wxGBSpan temp3 ; | |
35972 | PyObject * obj0 = 0 ; | |
35973 | PyObject * obj1 = 0 ; | |
35974 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
35975 | PyObject * obj3 = 0 ; |
35976 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
35977 | PyObject * obj5 = 0 ; |
35978 | char *kwnames[] = { | |
35979 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35980 | }; | |
35981 | ||
8edf1c75 | 35982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
35983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
35984 | { | |
35985 | arg2 = &temp2; | |
35986 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
35987 | } | |
35988 | { | |
35989 | arg3 = &temp3; | |
35990 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
35991 | } | |
8edf1c75 RD |
35992 | { |
35993 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
35994 | if (PyErr_Occurred()) SWIG_fail; | |
35995 | } | |
35996 | { | |
35997 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
35998 | if (PyErr_Occurred()) SWIG_fail; | |
35999 | } | |
d14a1e28 RD |
36000 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
36001 | { | |
36002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36003 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
36004 | ||
36005 | wxPyEndAllowThreads(__tstate); | |
36006 | if (PyErr_Occurred()) SWIG_fail; | |
36007 | } | |
36008 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
36009 | return resultobj; | |
36010 | fail: | |
36011 | return NULL; | |
36012 | } | |
36013 | ||
36014 | ||
36015 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36016 | PyObject *resultobj; | |
36017 | int arg1 ; | |
36018 | int arg2 ; | |
36019 | wxGBPosition *arg3 = 0 ; | |
36020 | wxGBSpan *arg4 = 0 ; | |
36021 | int arg5 ; | |
36022 | int arg6 ; | |
36023 | wxObject *arg7 = (wxObject *) 0 ; | |
36024 | wxGBSizerItem *result; | |
36025 | wxGBPosition temp3 ; | |
36026 | wxGBSpan temp4 ; | |
8edf1c75 RD |
36027 | PyObject * obj0 = 0 ; |
36028 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36029 | PyObject * obj2 = 0 ; |
36030 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
36031 | PyObject * obj4 = 0 ; |
36032 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
36033 | PyObject * obj6 = 0 ; |
36034 | char *kwnames[] = { | |
36035 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36036 | }; | |
36037 | ||
8edf1c75 RD |
36038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
36039 | { | |
36040 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
36041 | if (PyErr_Occurred()) SWIG_fail; | |
36042 | } | |
36043 | { | |
36044 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
36045 | if (PyErr_Occurred()) SWIG_fail; | |
36046 | } | |
d14a1e28 RD |
36047 | { |
36048 | arg3 = &temp3; | |
36049 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36050 | } | |
36051 | { | |
36052 | arg4 = &temp4; | |
36053 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
36054 | } | |
8edf1c75 RD |
36055 | { |
36056 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
36057 | if (PyErr_Occurred()) SWIG_fail; | |
36058 | } | |
36059 | { | |
36060 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
36061 | if (PyErr_Occurred()) SWIG_fail; | |
36062 | } | |
d14a1e28 RD |
36063 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
36064 | { | |
36065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36066 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
36067 | ||
36068 | wxPyEndAllowThreads(__tstate); | |
36069 | if (PyErr_Occurred()) SWIG_fail; | |
36070 | } | |
36071 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1); | |
36072 | return resultobj; | |
36073 | fail: | |
36074 | return NULL; | |
36075 | } | |
36076 | ||
36077 | ||
36078 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36079 | PyObject *resultobj; | |
36080 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36081 | wxGBPosition result; | |
36082 | PyObject * obj0 = 0 ; | |
36083 | char *kwnames[] = { | |
36084 | (char *) "self", NULL | |
36085 | }; | |
36086 | ||
36087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
36088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36089 | { | |
36090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36091 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
36092 | ||
36093 | wxPyEndAllowThreads(__tstate); | |
36094 | if (PyErr_Occurred()) SWIG_fail; | |
36095 | } | |
36096 | { | |
36097 | wxGBPosition * resultptr; | |
36098 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
36099 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
36100 | } | |
36101 | return resultobj; | |
36102 | fail: | |
36103 | return NULL; | |
36104 | } | |
36105 | ||
36106 | ||
36107 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36108 | PyObject *resultobj; | |
36109 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36110 | wxGBSpan result; | |
36111 | PyObject * obj0 = 0 ; | |
36112 | char *kwnames[] = { | |
36113 | (char *) "self", NULL | |
36114 | }; | |
36115 | ||
36116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
36117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36118 | { | |
36119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36120 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
36121 | ||
36122 | wxPyEndAllowThreads(__tstate); | |
36123 | if (PyErr_Occurred()) SWIG_fail; | |
36124 | } | |
36125 | { | |
36126 | wxGBSpan * resultptr; | |
36127 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
36128 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
36129 | } | |
36130 | return resultobj; | |
36131 | fail: | |
36132 | return NULL; | |
36133 | } | |
36134 | ||
36135 | ||
36136 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36137 | PyObject *resultobj; | |
36138 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36139 | wxGBPosition *arg2 = 0 ; | |
36140 | bool result; | |
36141 | wxGBPosition temp2 ; | |
36142 | PyObject * obj0 = 0 ; | |
36143 | PyObject * obj1 = 0 ; | |
36144 | char *kwnames[] = { | |
36145 | (char *) "self",(char *) "pos", NULL | |
36146 | }; | |
36147 | ||
36148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
36149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36150 | { | |
36151 | arg2 = &temp2; | |
36152 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36153 | } | |
36154 | { | |
36155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36156 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
36157 | ||
36158 | wxPyEndAllowThreads(__tstate); | |
36159 | if (PyErr_Occurred()) SWIG_fail; | |
36160 | } | |
8edf1c75 | 36161 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
36162 | return resultobj; |
36163 | fail: | |
36164 | return NULL; | |
36165 | } | |
36166 | ||
36167 | ||
36168 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36169 | PyObject *resultobj; | |
36170 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36171 | wxGBSpan *arg2 = 0 ; | |
36172 | bool result; | |
36173 | wxGBSpan temp2 ; | |
36174 | PyObject * obj0 = 0 ; | |
36175 | PyObject * obj1 = 0 ; | |
36176 | char *kwnames[] = { | |
36177 | (char *) "self",(char *) "span", NULL | |
36178 | }; | |
36179 | ||
36180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
36181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36182 | { | |
36183 | arg2 = &temp2; | |
36184 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36185 | } | |
36186 | { | |
36187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36188 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
36189 | ||
36190 | wxPyEndAllowThreads(__tstate); | |
36191 | if (PyErr_Occurred()) SWIG_fail; | |
36192 | } | |
8edf1c75 | 36193 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
36194 | return resultobj; |
36195 | fail: | |
36196 | return NULL; | |
36197 | } | |
36198 | ||
36199 | ||
36200 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
36201 | PyObject *resultobj; | |
36202 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36203 | wxGBSizerItem *arg2 = 0 ; | |
36204 | bool result; | |
36205 | PyObject * obj0 = 0 ; | |
36206 | PyObject * obj1 = 0 ; | |
36207 | ||
36208 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
36209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36210 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36211 | if (arg2 == NULL) { | |
36212 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
36213 | } | |
36214 | { | |
36215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36216 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
36217 | ||
36218 | wxPyEndAllowThreads(__tstate); | |
36219 | if (PyErr_Occurred()) SWIG_fail; | |
36220 | } | |
8edf1c75 | 36221 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
36222 | return resultobj; |
36223 | fail: | |
36224 | return NULL; | |
36225 | } | |
36226 | ||
36227 | ||
36228 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
36229 | PyObject *resultobj; | |
36230 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36231 | wxGBPosition *arg2 = 0 ; | |
36232 | wxGBSpan *arg3 = 0 ; | |
36233 | bool result; | |
36234 | wxGBPosition temp2 ; | |
36235 | wxGBSpan temp3 ; | |
36236 | PyObject * obj0 = 0 ; | |
36237 | PyObject * obj1 = 0 ; | |
36238 | PyObject * obj2 = 0 ; | |
36239 | ||
36240 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
36241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36242 | { | |
36243 | arg2 = &temp2; | |
36244 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36245 | } | |
36246 | { | |
36247 | arg3 = &temp3; | |
36248 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36249 | } | |
36250 | { | |
36251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36252 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
36253 | ||
36254 | wxPyEndAllowThreads(__tstate); | |
36255 | if (PyErr_Occurred()) SWIG_fail; | |
36256 | } | |
8edf1c75 | 36257 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
36258 | return resultobj; |
36259 | fail: | |
36260 | return NULL; | |
36261 | } | |
36262 | ||
36263 | ||
36264 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
36265 | int argc; | |
36266 | PyObject *argv[4]; | |
36267 | int ii; | |
36268 | ||
36269 | argc = PyObject_Length(args); | |
36270 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
36271 | argv[ii] = PyTuple_GetItem(args,ii); | |
36272 | } | |
36273 | if (argc == 2) { | |
36274 | int _v; | |
36275 | { | |
36276 | void *ptr; | |
36277 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
36278 | _v = 0; | |
36279 | PyErr_Clear(); | |
36280 | } else { | |
36281 | _v = 1; | |
36282 | } | |
36283 | } | |
36284 | if (_v) { | |
36285 | { | |
36286 | void *ptr; | |
36287 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
36288 | _v = 0; | |
36289 | PyErr_Clear(); | |
36290 | } else { | |
36291 | _v = 1; | |
36292 | } | |
36293 | } | |
36294 | if (_v) { | |
36295 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
36296 | } | |
36297 | } | |
36298 | } | |
36299 | if (argc == 3) { | |
36300 | int _v; | |
36301 | { | |
36302 | void *ptr; | |
36303 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
36304 | _v = 0; | |
36305 | PyErr_Clear(); | |
36306 | } else { | |
36307 | _v = 1; | |
36308 | } | |
36309 | } | |
36310 | if (_v) { | |
36311 | { | |
36312 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
36313 | } | |
36314 | if (_v) { | |
36315 | { | |
36316 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
36317 | } | |
36318 | if (_v) { | |
36319 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
36320 | } | |
36321 | } | |
36322 | } | |
36323 | } | |
36324 | ||
36325 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
36326 | return NULL; | |
36327 | } | |
36328 | ||
36329 | ||
36330 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36331 | PyObject *resultobj; | |
36332 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36333 | int *arg2 = 0 ; | |
36334 | int *arg3 = 0 ; | |
36335 | PyObject * obj0 = 0 ; | |
36336 | PyObject * obj1 = 0 ; | |
36337 | PyObject * obj2 = 0 ; | |
36338 | char *kwnames[] = { | |
36339 | (char *) "self",(char *) "row",(char *) "col", NULL | |
36340 | }; | |
36341 | ||
36342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36344 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36345 | if (arg2 == NULL) { | |
36346 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
36347 | } | |
36348 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36349 | if (arg3 == NULL) { | |
36350 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
36351 | } | |
36352 | { | |
36353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36354 | (arg1)->GetEndPos(*arg2,*arg3); | |
36355 | ||
36356 | wxPyEndAllowThreads(__tstate); | |
36357 | if (PyErr_Occurred()) SWIG_fail; | |
36358 | } | |
36359 | Py_INCREF(Py_None); resultobj = Py_None; | |
36360 | return resultobj; | |
36361 | fail: | |
36362 | return NULL; | |
36363 | } | |
36364 | ||
36365 | ||
36366 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36367 | PyObject *resultobj; | |
36368 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36369 | wxGridBagSizer *result; | |
36370 | PyObject * obj0 = 0 ; | |
36371 | char *kwnames[] = { | |
36372 | (char *) "self", NULL | |
36373 | }; | |
36374 | ||
36375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
36376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36377 | { | |
36378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36379 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
36380 | ||
36381 | wxPyEndAllowThreads(__tstate); | |
36382 | if (PyErr_Occurred()) SWIG_fail; | |
36383 | } | |
36384 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 0); | |
36385 | return resultobj; | |
36386 | fail: | |
36387 | return NULL; | |
36388 | } | |
36389 | ||
36390 | ||
36391 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36392 | PyObject *resultobj; | |
36393 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36394 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
36395 | PyObject * obj0 = 0 ; | |
36396 | PyObject * obj1 = 0 ; | |
36397 | char *kwnames[] = { | |
36398 | (char *) "self",(char *) "sizer", NULL | |
36399 | }; | |
36400 | ||
36401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
36402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36403 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36404 | { | |
36405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36406 | (arg1)->SetGBSizer(arg2); | |
36407 | ||
36408 | wxPyEndAllowThreads(__tstate); | |
36409 | if (PyErr_Occurred()) SWIG_fail; | |
36410 | } | |
36411 | Py_INCREF(Py_None); resultobj = Py_None; | |
36412 | return resultobj; | |
36413 | fail: | |
36414 | return NULL; | |
36415 | } | |
36416 | ||
36417 | ||
36418 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
36419 | PyObject *obj; | |
36420 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36421 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
36422 | Py_INCREF(obj); | |
36423 | return Py_BuildValue((char *)""); | |
36424 | } | |
36425 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36426 | PyObject *resultobj; | |
36427 | int arg1 = (int) 0 ; | |
36428 | int arg2 = (int) 0 ; | |
36429 | wxGridBagSizer *result; | |
8edf1c75 RD |
36430 | PyObject * obj0 = 0 ; |
36431 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36432 | char *kwnames[] = { |
36433 | (char *) "vgap",(char *) "hgap", NULL | |
36434 | }; | |
36435 | ||
8edf1c75 RD |
36436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; |
36437 | if (obj0) { | |
36438 | { | |
36439 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
36440 | if (PyErr_Occurred()) SWIG_fail; | |
36441 | } | |
36442 | } | |
36443 | if (obj1) { | |
36444 | { | |
36445 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
36446 | if (PyErr_Occurred()) SWIG_fail; | |
36447 | } | |
36448 | } | |
d14a1e28 RD |
36449 | { |
36450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36451 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
36452 | ||
36453 | wxPyEndAllowThreads(__tstate); | |
36454 | if (PyErr_Occurred()) SWIG_fail; | |
36455 | } | |
36456 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 1); | |
36457 | return resultobj; | |
36458 | fail: | |
36459 | return NULL; | |
36460 | } | |
36461 | ||
36462 | ||
36463 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36464 | PyObject *resultobj; | |
36465 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36466 | PyObject *arg2 = (PyObject *) 0 ; | |
36467 | wxGBPosition *arg3 = 0 ; | |
36468 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
36469 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
36470 | int arg5 = (int) 0 ; | |
36471 | int arg6 = (int) 0 ; | |
36472 | PyObject *arg7 = (PyObject *) NULL ; | |
36473 | bool result; | |
36474 | wxGBPosition temp3 ; | |
36475 | wxGBSpan temp4 ; | |
36476 | PyObject * obj0 = 0 ; | |
36477 | PyObject * obj1 = 0 ; | |
36478 | PyObject * obj2 = 0 ; | |
36479 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
36480 | PyObject * obj4 = 0 ; |
36481 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
36482 | PyObject * obj6 = 0 ; |
36483 | char *kwnames[] = { | |
36484 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36485 | }; | |
36486 | ||
8edf1c75 | 36487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
36488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
36489 | arg2 = obj1; | |
36490 | { | |
36491 | arg3 = &temp3; | |
36492 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36493 | } | |
36494 | if (obj3) { | |
36495 | { | |
36496 | arg4 = &temp4; | |
36497 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
36498 | } | |
36499 | } | |
8edf1c75 RD |
36500 | if (obj4) { |
36501 | { | |
36502 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
36503 | if (PyErr_Occurred()) SWIG_fail; | |
36504 | } | |
36505 | } | |
36506 | if (obj5) { | |
36507 | { | |
36508 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
36509 | if (PyErr_Occurred()) SWIG_fail; | |
36510 | } | |
36511 | } | |
d14a1e28 RD |
36512 | if (obj6) { |
36513 | arg7 = obj6; | |
36514 | } | |
36515 | { | |
36516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36517 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
36518 | ||
36519 | wxPyEndAllowThreads(__tstate); | |
36520 | if (PyErr_Occurred()) SWIG_fail; | |
36521 | } | |
8edf1c75 | 36522 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
36523 | return resultobj; |
36524 | fail: | |
36525 | return NULL; | |
36526 | } | |
36527 | ||
36528 | ||
36529 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36530 | PyObject *resultobj; | |
36531 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36532 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
36533 | bool result; | |
36534 | PyObject * obj0 = 0 ; | |
36535 | PyObject * obj1 = 0 ; | |
36536 | char *kwnames[] = { | |
36537 | (char *) "self",(char *) "item", NULL | |
36538 | }; | |
36539 | ||
36540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
36541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36542 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36543 | { | |
36544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36545 | result = (bool)(arg1)->Add(arg2); | |
36546 | ||
36547 | wxPyEndAllowThreads(__tstate); | |
36548 | if (PyErr_Occurred()) SWIG_fail; | |
36549 | } | |
8edf1c75 | 36550 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
36551 | return resultobj; |
36552 | fail: | |
36553 | return NULL; | |
36554 | } | |
36555 | ||
36556 | ||
36557 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36558 | PyObject *resultobj; | |
36559 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36560 | wxSize result; | |
36561 | PyObject * obj0 = 0 ; | |
36562 | char *kwnames[] = { | |
36563 | (char *) "self", NULL | |
36564 | }; | |
36565 | ||
36566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
36567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36568 | { | |
36569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36570 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
36571 | ||
36572 | wxPyEndAllowThreads(__tstate); | |
36573 | if (PyErr_Occurred()) SWIG_fail; | |
36574 | } | |
36575 | { | |
36576 | wxSize * resultptr; | |
36577 | resultptr = new wxSize((wxSize &) result); | |
36578 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
36579 | } | |
36580 | return resultobj; | |
36581 | fail: | |
36582 | return NULL; | |
36583 | } | |
36584 | ||
36585 | ||
36586 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36587 | PyObject *resultobj; | |
36588 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36589 | wxSize *arg2 = 0 ; | |
36590 | wxSize temp2 ; | |
36591 | PyObject * obj0 = 0 ; | |
36592 | PyObject * obj1 = 0 ; | |
36593 | char *kwnames[] = { | |
36594 | (char *) "self",(char *) "sz", NULL | |
36595 | }; | |
36596 | ||
36597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
36598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36599 | { | |
36600 | arg2 = &temp2; | |
36601 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
36602 | } | |
36603 | { | |
36604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36605 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
36606 | ||
36607 | wxPyEndAllowThreads(__tstate); | |
36608 | if (PyErr_Occurred()) SWIG_fail; | |
36609 | } | |
36610 | Py_INCREF(Py_None); resultobj = Py_None; | |
36611 | return resultobj; | |
36612 | fail: | |
36613 | return NULL; | |
36614 | } | |
36615 | ||
36616 | ||
36617 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
36618 | PyObject *resultobj; | |
36619 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36620 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36621 | wxGBPosition result; | |
36622 | PyObject * obj0 = 0 ; | |
36623 | PyObject * obj1 = 0 ; | |
36624 | ||
36625 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
36626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36627 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36628 | { | |
36629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36630 | result = (arg1)->GetItemPosition(arg2); | |
36631 | ||
36632 | wxPyEndAllowThreads(__tstate); | |
36633 | if (PyErr_Occurred()) SWIG_fail; | |
36634 | } | |
36635 | { | |
36636 | wxGBPosition * resultptr; | |
36637 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
36638 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
36639 | } | |
36640 | return resultobj; | |
36641 | fail: | |
36642 | return NULL; | |
36643 | } | |
36644 | ||
36645 | ||
36646 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
36647 | PyObject *resultobj; | |
36648 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36649 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36650 | wxGBPosition result; | |
36651 | PyObject * obj0 = 0 ; | |
36652 | PyObject * obj1 = 0 ; | |
36653 | ||
36654 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
36655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36656 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36657 | { | |
36658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36659 | result = (arg1)->GetItemPosition(arg2); | |
36660 | ||
36661 | wxPyEndAllowThreads(__tstate); | |
36662 | if (PyErr_Occurred()) SWIG_fail; | |
36663 | } | |
36664 | { | |
36665 | wxGBPosition * resultptr; | |
36666 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
36667 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
36668 | } | |
36669 | return resultobj; | |
36670 | fail: | |
36671 | return NULL; | |
36672 | } | |
36673 | ||
36674 | ||
36675 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
36676 | PyObject *resultobj; | |
36677 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36678 | size_t arg2 ; | |
36679 | wxGBPosition result; | |
36680 | PyObject * obj0 = 0 ; | |
36681 | PyObject * obj1 = 0 ; | |
36682 | ||
36683 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
36684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 36685 | { |
8edf1c75 | 36686 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
36687 | if (PyErr_Occurred()) SWIG_fail; |
36688 | } | |
d14a1e28 RD |
36689 | { |
36690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36691 | result = (arg1)->GetItemPosition(arg2); | |
36692 | ||
36693 | wxPyEndAllowThreads(__tstate); | |
36694 | if (PyErr_Occurred()) SWIG_fail; | |
36695 | } | |
36696 | { | |
36697 | wxGBPosition * resultptr; | |
36698 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
36699 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1); | |
36700 | } | |
36701 | return resultobj; | |
36702 | fail: | |
36703 | return NULL; | |
36704 | } | |
36705 | ||
36706 | ||
36707 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
36708 | int argc; | |
36709 | PyObject *argv[3]; | |
36710 | int ii; | |
36711 | ||
36712 | argc = PyObject_Length(args); | |
36713 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
36714 | argv[ii] = PyTuple_GetItem(args,ii); | |
36715 | } | |
36716 | if (argc == 2) { | |
36717 | int _v; | |
36718 | { | |
36719 | void *ptr; | |
36720 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36721 | _v = 0; | |
36722 | PyErr_Clear(); | |
36723 | } else { | |
36724 | _v = 1; | |
36725 | } | |
36726 | } | |
36727 | if (_v) { | |
36728 | { | |
36729 | void *ptr; | |
36730 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
36731 | _v = 0; | |
36732 | PyErr_Clear(); | |
36733 | } else { | |
36734 | _v = 1; | |
36735 | } | |
36736 | } | |
36737 | if (_v) { | |
36738 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
36739 | } | |
36740 | } | |
36741 | } | |
36742 | if (argc == 2) { | |
36743 | int _v; | |
36744 | { | |
36745 | void *ptr; | |
36746 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36747 | _v = 0; | |
36748 | PyErr_Clear(); | |
36749 | } else { | |
36750 | _v = 1; | |
36751 | } | |
36752 | } | |
36753 | if (_v) { | |
36754 | { | |
36755 | void *ptr; | |
36756 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
36757 | _v = 0; | |
36758 | PyErr_Clear(); | |
36759 | } else { | |
36760 | _v = 1; | |
36761 | } | |
36762 | } | |
36763 | if (_v) { | |
36764 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
36765 | } | |
36766 | } | |
36767 | } | |
36768 | if (argc == 2) { | |
36769 | int _v; | |
36770 | { | |
36771 | void *ptr; | |
36772 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36773 | _v = 0; | |
36774 | PyErr_Clear(); | |
36775 | } else { | |
36776 | _v = 1; | |
36777 | } | |
36778 | } | |
36779 | if (_v) { | |
36780 | { | |
8edf1c75 | 36781 | SWIG_PyObj_AsUnsignedLong(argv[1]); |
83448d71 RD |
36782 | if (PyErr_Occurred()) { |
36783 | _v = 0; | |
36784 | PyErr_Clear(); | |
36785 | } else { | |
36786 | _v = 1; | |
36787 | } | |
d14a1e28 RD |
36788 | } |
36789 | if (_v) { | |
36790 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
36791 | } | |
36792 | } | |
36793 | } | |
36794 | ||
36795 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
36796 | return NULL; | |
36797 | } | |
36798 | ||
36799 | ||
36800 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
36801 | PyObject *resultobj; | |
36802 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36803 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36804 | wxGBPosition *arg3 = 0 ; | |
36805 | bool result; | |
36806 | wxGBPosition temp3 ; | |
36807 | PyObject * obj0 = 0 ; | |
36808 | PyObject * obj1 = 0 ; | |
36809 | PyObject * obj2 = 0 ; | |
36810 | ||
36811 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
36812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36813 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36814 | { | |
36815 | arg3 = &temp3; | |
36816 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36817 | } | |
36818 | { | |
36819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36820 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
36821 | ||
36822 | wxPyEndAllowThreads(__tstate); | |
36823 | if (PyErr_Occurred()) SWIG_fail; | |
36824 | } | |
8edf1c75 | 36825 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
36826 | return resultobj; |
36827 | fail: | |
36828 | return NULL; | |
36829 | } | |
36830 | ||
36831 | ||
36832 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
36833 | PyObject *resultobj; | |
36834 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36835 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36836 | wxGBPosition *arg3 = 0 ; | |
36837 | bool result; | |
36838 | wxGBPosition temp3 ; | |
36839 | PyObject * obj0 = 0 ; | |
36840 | PyObject * obj1 = 0 ; | |
36841 | PyObject * obj2 = 0 ; | |
36842 | ||
36843 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
36844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36845 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
36846 | { | |
36847 | arg3 = &temp3; | |
36848 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36849 | } | |
36850 | { | |
36851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36852 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
36853 | ||
36854 | wxPyEndAllowThreads(__tstate); | |
36855 | if (PyErr_Occurred()) SWIG_fail; | |
36856 | } | |
8edf1c75 | 36857 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
36858 | return resultobj; |
36859 | fail: | |
36860 | return NULL; | |
36861 | } | |
36862 | ||
36863 | ||
36864 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
36865 | PyObject *resultobj; | |
36866 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36867 | size_t arg2 ; | |
36868 | wxGBPosition *arg3 = 0 ; | |
36869 | bool result; | |
36870 | wxGBPosition temp3 ; | |
36871 | PyObject * obj0 = 0 ; | |
36872 | PyObject * obj1 = 0 ; | |
36873 | PyObject * obj2 = 0 ; | |
36874 | ||
36875 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
36876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 36877 | { |
8edf1c75 | 36878 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
36879 | if (PyErr_Occurred()) SWIG_fail; |
36880 | } | |
d14a1e28 RD |
36881 | { |
36882 | arg3 = &temp3; | |
36883 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36884 | } | |
36885 | { | |
36886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36887 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
36888 | ||
36889 | wxPyEndAllowThreads(__tstate); | |
36890 | if (PyErr_Occurred()) SWIG_fail; | |
36891 | } | |
8edf1c75 | 36892 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
36893 | return resultobj; |
36894 | fail: | |
36895 | return NULL; | |
36896 | } | |
36897 | ||
36898 | ||
36899 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
36900 | int argc; | |
36901 | PyObject *argv[4]; | |
36902 | int ii; | |
36903 | ||
36904 | argc = PyObject_Length(args); | |
36905 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
36906 | argv[ii] = PyTuple_GetItem(args,ii); | |
36907 | } | |
36908 | if (argc == 3) { | |
36909 | int _v; | |
36910 | { | |
36911 | void *ptr; | |
36912 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36913 | _v = 0; | |
36914 | PyErr_Clear(); | |
36915 | } else { | |
36916 | _v = 1; | |
36917 | } | |
36918 | } | |
36919 | if (_v) { | |
36920 | { | |
36921 | void *ptr; | |
36922 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
36923 | _v = 0; | |
36924 | PyErr_Clear(); | |
36925 | } else { | |
36926 | _v = 1; | |
36927 | } | |
36928 | } | |
36929 | if (_v) { | |
36930 | { | |
36931 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
36932 | } | |
36933 | if (_v) { | |
36934 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
36935 | } | |
36936 | } | |
36937 | } | |
36938 | } | |
36939 | if (argc == 3) { | |
36940 | int _v; | |
36941 | { | |
36942 | void *ptr; | |
36943 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36944 | _v = 0; | |
36945 | PyErr_Clear(); | |
36946 | } else { | |
36947 | _v = 1; | |
36948 | } | |
36949 | } | |
36950 | if (_v) { | |
36951 | { | |
36952 | void *ptr; | |
36953 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
36954 | _v = 0; | |
36955 | PyErr_Clear(); | |
36956 | } else { | |
36957 | _v = 1; | |
36958 | } | |
36959 | } | |
36960 | if (_v) { | |
36961 | { | |
36962 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
36963 | } | |
36964 | if (_v) { | |
36965 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
36966 | } | |
36967 | } | |
36968 | } | |
36969 | } | |
36970 | if (argc == 3) { | |
36971 | int _v; | |
36972 | { | |
36973 | void *ptr; | |
36974 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
36975 | _v = 0; | |
36976 | PyErr_Clear(); | |
36977 | } else { | |
36978 | _v = 1; | |
36979 | } | |
36980 | } | |
36981 | if (_v) { | |
36982 | { | |
8edf1c75 | 36983 | SWIG_PyObj_AsUnsignedLong(argv[1]); |
83448d71 RD |
36984 | if (PyErr_Occurred()) { |
36985 | _v = 0; | |
36986 | PyErr_Clear(); | |
36987 | } else { | |
36988 | _v = 1; | |
36989 | } | |
d14a1e28 RD |
36990 | } |
36991 | if (_v) { | |
36992 | { | |
36993 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
36994 | } | |
36995 | if (_v) { | |
36996 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
36997 | } | |
36998 | } | |
36999 | } | |
37000 | } | |
37001 | ||
37002 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
37003 | return NULL; | |
37004 | } | |
37005 | ||
37006 | ||
37007 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
37008 | PyObject *resultobj; | |
37009 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37010 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37011 | wxGBSpan result; | |
37012 | PyObject * obj0 = 0 ; | |
37013 | PyObject * obj1 = 0 ; | |
37014 | ||
37015 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
37016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37017 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37018 | { | |
37019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37020 | result = (arg1)->GetItemSpan(arg2); | |
37021 | ||
37022 | wxPyEndAllowThreads(__tstate); | |
37023 | if (PyErr_Occurred()) SWIG_fail; | |
37024 | } | |
37025 | { | |
37026 | wxGBSpan * resultptr; | |
37027 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
37028 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
37029 | } | |
37030 | return resultobj; | |
37031 | fail: | |
37032 | return NULL; | |
37033 | } | |
37034 | ||
37035 | ||
37036 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
37037 | PyObject *resultobj; | |
37038 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37039 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37040 | wxGBSpan result; | |
37041 | PyObject * obj0 = 0 ; | |
37042 | PyObject * obj1 = 0 ; | |
37043 | ||
37044 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
37045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37046 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37047 | { | |
37048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37049 | result = (arg1)->GetItemSpan(arg2); | |
37050 | ||
37051 | wxPyEndAllowThreads(__tstate); | |
37052 | if (PyErr_Occurred()) SWIG_fail; | |
37053 | } | |
37054 | { | |
37055 | wxGBSpan * resultptr; | |
37056 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
37057 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
37058 | } | |
37059 | return resultobj; | |
37060 | fail: | |
37061 | return NULL; | |
37062 | } | |
37063 | ||
37064 | ||
37065 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
37066 | PyObject *resultobj; | |
37067 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37068 | size_t arg2 ; | |
37069 | wxGBSpan result; | |
37070 | PyObject * obj0 = 0 ; | |
37071 | PyObject * obj1 = 0 ; | |
37072 | ||
37073 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
37074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 37075 | { |
8edf1c75 | 37076 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
37077 | if (PyErr_Occurred()) SWIG_fail; |
37078 | } | |
d14a1e28 RD |
37079 | { |
37080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37081 | result = (arg1)->GetItemSpan(arg2); | |
37082 | ||
37083 | wxPyEndAllowThreads(__tstate); | |
37084 | if (PyErr_Occurred()) SWIG_fail; | |
37085 | } | |
37086 | { | |
37087 | wxGBSpan * resultptr; | |
37088 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
37089 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1); | |
37090 | } | |
37091 | return resultobj; | |
37092 | fail: | |
37093 | return NULL; | |
37094 | } | |
37095 | ||
37096 | ||
37097 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
37098 | int argc; | |
37099 | PyObject *argv[3]; | |
37100 | int ii; | |
37101 | ||
37102 | argc = PyObject_Length(args); | |
37103 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37104 | argv[ii] = PyTuple_GetItem(args,ii); | |
37105 | } | |
37106 | if (argc == 2) { | |
37107 | int _v; | |
37108 | { | |
37109 | void *ptr; | |
37110 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37111 | _v = 0; | |
37112 | PyErr_Clear(); | |
37113 | } else { | |
37114 | _v = 1; | |
37115 | } | |
37116 | } | |
37117 | if (_v) { | |
37118 | { | |
37119 | void *ptr; | |
37120 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
37121 | _v = 0; | |
37122 | PyErr_Clear(); | |
37123 | } else { | |
37124 | _v = 1; | |
37125 | } | |
37126 | } | |
37127 | if (_v) { | |
37128 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
37129 | } | |
37130 | } | |
37131 | } | |
37132 | if (argc == 2) { | |
37133 | int _v; | |
37134 | { | |
37135 | void *ptr; | |
37136 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37137 | _v = 0; | |
37138 | PyErr_Clear(); | |
37139 | } else { | |
37140 | _v = 1; | |
37141 | } | |
37142 | } | |
37143 | if (_v) { | |
37144 | { | |
37145 | void *ptr; | |
37146 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
37147 | _v = 0; | |
37148 | PyErr_Clear(); | |
37149 | } else { | |
37150 | _v = 1; | |
37151 | } | |
37152 | } | |
37153 | if (_v) { | |
37154 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
37155 | } | |
37156 | } | |
37157 | } | |
37158 | if (argc == 2) { | |
37159 | int _v; | |
37160 | { | |
37161 | void *ptr; | |
37162 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37163 | _v = 0; | |
37164 | PyErr_Clear(); | |
37165 | } else { | |
37166 | _v = 1; | |
37167 | } | |
37168 | } | |
37169 | if (_v) { | |
37170 | { | |
8edf1c75 | 37171 | SWIG_PyObj_AsUnsignedLong(argv[1]); |
83448d71 RD |
37172 | if (PyErr_Occurred()) { |
37173 | _v = 0; | |
37174 | PyErr_Clear(); | |
37175 | } else { | |
37176 | _v = 1; | |
37177 | } | |
d14a1e28 RD |
37178 | } |
37179 | if (_v) { | |
37180 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
37181 | } | |
37182 | } | |
37183 | } | |
37184 | ||
37185 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
37186 | return NULL; | |
37187 | } | |
37188 | ||
37189 | ||
37190 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
37191 | PyObject *resultobj; | |
37192 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37193 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37194 | wxGBSpan *arg3 = 0 ; | |
37195 | bool result; | |
37196 | wxGBSpan temp3 ; | |
37197 | PyObject * obj0 = 0 ; | |
37198 | PyObject * obj1 = 0 ; | |
37199 | PyObject * obj2 = 0 ; | |
37200 | ||
37201 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
37202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37203 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37204 | { | |
37205 | arg3 = &temp3; | |
37206 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37207 | } | |
37208 | { | |
37209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37210 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
37211 | ||
37212 | wxPyEndAllowThreads(__tstate); | |
37213 | if (PyErr_Occurred()) SWIG_fail; | |
37214 | } | |
8edf1c75 | 37215 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
37216 | return resultobj; |
37217 | fail: | |
37218 | return NULL; | |
37219 | } | |
37220 | ||
37221 | ||
37222 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
37223 | PyObject *resultobj; | |
37224 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37225 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37226 | wxGBSpan *arg3 = 0 ; | |
37227 | bool result; | |
37228 | wxGBSpan temp3 ; | |
37229 | PyObject * obj0 = 0 ; | |
37230 | PyObject * obj1 = 0 ; | |
37231 | PyObject * obj2 = 0 ; | |
37232 | ||
37233 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
37234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37235 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37236 | { | |
37237 | arg3 = &temp3; | |
37238 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37239 | } | |
37240 | { | |
37241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37242 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
37243 | ||
37244 | wxPyEndAllowThreads(__tstate); | |
37245 | if (PyErr_Occurred()) SWIG_fail; | |
37246 | } | |
8edf1c75 | 37247 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
37248 | return resultobj; |
37249 | fail: | |
37250 | return NULL; | |
37251 | } | |
37252 | ||
37253 | ||
37254 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
37255 | PyObject *resultobj; | |
37256 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37257 | size_t arg2 ; | |
37258 | wxGBSpan *arg3 = 0 ; | |
37259 | bool result; | |
37260 | wxGBSpan temp3 ; | |
37261 | PyObject * obj0 = 0 ; | |
37262 | PyObject * obj1 = 0 ; | |
37263 | PyObject * obj2 = 0 ; | |
37264 | ||
37265 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
37266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 37267 | { |
8edf1c75 | 37268 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
37269 | if (PyErr_Occurred()) SWIG_fail; |
37270 | } | |
d14a1e28 RD |
37271 | { |
37272 | arg3 = &temp3; | |
37273 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37274 | } | |
37275 | { | |
37276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37277 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
37278 | ||
37279 | wxPyEndAllowThreads(__tstate); | |
37280 | if (PyErr_Occurred()) SWIG_fail; | |
37281 | } | |
8edf1c75 | 37282 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
37283 | return resultobj; |
37284 | fail: | |
37285 | return NULL; | |
37286 | } | |
37287 | ||
37288 | ||
37289 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
37290 | int argc; | |
37291 | PyObject *argv[4]; | |
37292 | int ii; | |
37293 | ||
37294 | argc = PyObject_Length(args); | |
37295 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37296 | argv[ii] = PyTuple_GetItem(args,ii); | |
37297 | } | |
37298 | if (argc == 3) { | |
37299 | int _v; | |
37300 | { | |
37301 | void *ptr; | |
37302 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37303 | _v = 0; | |
37304 | PyErr_Clear(); | |
37305 | } else { | |
37306 | _v = 1; | |
37307 | } | |
37308 | } | |
37309 | if (_v) { | |
37310 | { | |
37311 | void *ptr; | |
37312 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
37313 | _v = 0; | |
37314 | PyErr_Clear(); | |
37315 | } else { | |
37316 | _v = 1; | |
37317 | } | |
37318 | } | |
37319 | if (_v) { | |
37320 | { | |
37321 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37322 | } | |
37323 | if (_v) { | |
37324 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
37325 | } | |
37326 | } | |
37327 | } | |
37328 | } | |
37329 | if (argc == 3) { | |
37330 | int _v; | |
37331 | { | |
37332 | void *ptr; | |
37333 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37334 | _v = 0; | |
37335 | PyErr_Clear(); | |
37336 | } else { | |
37337 | _v = 1; | |
37338 | } | |
37339 | } | |
37340 | if (_v) { | |
37341 | { | |
37342 | void *ptr; | |
37343 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
37344 | _v = 0; | |
37345 | PyErr_Clear(); | |
37346 | } else { | |
37347 | _v = 1; | |
37348 | } | |
37349 | } | |
37350 | if (_v) { | |
37351 | { | |
37352 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37353 | } | |
37354 | if (_v) { | |
37355 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
37356 | } | |
37357 | } | |
37358 | } | |
37359 | } | |
37360 | if (argc == 3) { | |
37361 | int _v; | |
37362 | { | |
37363 | void *ptr; | |
37364 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37365 | _v = 0; | |
37366 | PyErr_Clear(); | |
37367 | } else { | |
37368 | _v = 1; | |
37369 | } | |
37370 | } | |
37371 | if (_v) { | |
37372 | { | |
8edf1c75 | 37373 | SWIG_PyObj_AsUnsignedLong(argv[1]); |
83448d71 RD |
37374 | if (PyErr_Occurred()) { |
37375 | _v = 0; | |
37376 | PyErr_Clear(); | |
37377 | } else { | |
37378 | _v = 1; | |
37379 | } | |
d14a1e28 RD |
37380 | } |
37381 | if (_v) { | |
37382 | { | |
37383 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37384 | } | |
37385 | if (_v) { | |
37386 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
37387 | } | |
37388 | } | |
37389 | } | |
37390 | } | |
37391 | ||
37392 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
37393 | return NULL; | |
37394 | } | |
37395 | ||
37396 | ||
37397 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
37398 | PyObject *resultobj; | |
37399 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37400 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37401 | wxGBSizerItem *result; | |
37402 | PyObject * obj0 = 0 ; | |
37403 | PyObject * obj1 = 0 ; | |
37404 | ||
37405 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
37406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37407 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37408 | { | |
37409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37410 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
37411 | ||
37412 | wxPyEndAllowThreads(__tstate); | |
37413 | if (PyErr_Occurred()) SWIG_fail; | |
37414 | } | |
37415 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
37416 | return resultobj; | |
37417 | fail: | |
37418 | return NULL; | |
37419 | } | |
37420 | ||
37421 | ||
37422 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
37423 | PyObject *resultobj; | |
37424 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37425 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37426 | wxGBSizerItem *result; | |
37427 | PyObject * obj0 = 0 ; | |
37428 | PyObject * obj1 = 0 ; | |
37429 | ||
37430 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
37431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37432 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37433 | { | |
37434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37435 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
37436 | ||
37437 | wxPyEndAllowThreads(__tstate); | |
37438 | if (PyErr_Occurred()) SWIG_fail; | |
37439 | } | |
37440 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
37441 | return resultobj; | |
37442 | fail: | |
37443 | return NULL; | |
37444 | } | |
37445 | ||
37446 | ||
37447 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
37448 | int argc; | |
37449 | PyObject *argv[3]; | |
37450 | int ii; | |
37451 | ||
37452 | argc = PyObject_Length(args); | |
37453 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37454 | argv[ii] = PyTuple_GetItem(args,ii); | |
37455 | } | |
37456 | if (argc == 2) { | |
37457 | int _v; | |
37458 | { | |
37459 | void *ptr; | |
37460 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37461 | _v = 0; | |
37462 | PyErr_Clear(); | |
37463 | } else { | |
37464 | _v = 1; | |
37465 | } | |
37466 | } | |
37467 | if (_v) { | |
37468 | { | |
37469 | void *ptr; | |
37470 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
37471 | _v = 0; | |
37472 | PyErr_Clear(); | |
37473 | } else { | |
37474 | _v = 1; | |
37475 | } | |
37476 | } | |
37477 | if (_v) { | |
37478 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
37479 | } | |
37480 | } | |
37481 | } | |
37482 | if (argc == 2) { | |
37483 | int _v; | |
37484 | { | |
37485 | void *ptr; | |
37486 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37487 | _v = 0; | |
37488 | PyErr_Clear(); | |
37489 | } else { | |
37490 | _v = 1; | |
37491 | } | |
37492 | } | |
37493 | if (_v) { | |
37494 | { | |
37495 | void *ptr; | |
37496 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
37497 | _v = 0; | |
37498 | PyErr_Clear(); | |
37499 | } else { | |
37500 | _v = 1; | |
37501 | } | |
37502 | } | |
37503 | if (_v) { | |
37504 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
37505 | } | |
37506 | } | |
37507 | } | |
37508 | ||
37509 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
37510 | return NULL; | |
37511 | } | |
37512 | ||
37513 | ||
37514 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37515 | PyObject *resultobj; | |
37516 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37517 | wxGBPosition *arg2 = 0 ; | |
37518 | wxGBSizerItem *result; | |
37519 | wxGBPosition temp2 ; | |
37520 | PyObject * obj0 = 0 ; | |
37521 | PyObject * obj1 = 0 ; | |
37522 | char *kwnames[] = { | |
37523 | (char *) "self",(char *) "pos", NULL | |
37524 | }; | |
37525 | ||
37526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
37527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37528 | { | |
37529 | arg2 = &temp2; | |
37530 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37531 | } | |
37532 | { | |
37533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37534 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
37535 | ||
37536 | wxPyEndAllowThreads(__tstate); | |
37537 | if (PyErr_Occurred()) SWIG_fail; | |
37538 | } | |
37539 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
37540 | return resultobj; | |
37541 | fail: | |
37542 | return NULL; | |
37543 | } | |
37544 | ||
37545 | ||
423f194a RD |
37546 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
37547 | PyObject *resultobj; | |
37548 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37549 | wxPoint *arg2 = 0 ; | |
37550 | wxGBSizerItem *result; | |
37551 | wxPoint temp2 ; | |
37552 | PyObject * obj0 = 0 ; | |
37553 | PyObject * obj1 = 0 ; | |
37554 | char *kwnames[] = { | |
37555 | (char *) "self",(char *) "pt", NULL | |
37556 | }; | |
37557 | ||
37558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
37559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37560 | { | |
37561 | arg2 = &temp2; | |
37562 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37563 | } | |
37564 | { | |
37565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37566 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
37567 | ||
37568 | wxPyEndAllowThreads(__tstate); | |
37569 | if (PyErr_Occurred()) SWIG_fail; | |
37570 | } | |
37571 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
37572 | return resultobj; | |
37573 | fail: | |
37574 | return NULL; | |
37575 | } | |
37576 | ||
37577 | ||
d14a1e28 RD |
37578 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { |
37579 | PyObject *resultobj; | |
37580 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37581 | wxObject *arg2 = (wxObject *) 0 ; | |
37582 | wxGBSizerItem *result; | |
37583 | PyObject * obj0 = 0 ; | |
37584 | PyObject * obj1 = 0 ; | |
37585 | char *kwnames[] = { | |
37586 | (char *) "self",(char *) "userData", NULL | |
37587 | }; | |
37588 | ||
37589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
37590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37591 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37592 | { | |
37593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37594 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
37595 | ||
37596 | wxPyEndAllowThreads(__tstate); | |
37597 | if (PyErr_Occurred()) SWIG_fail; | |
37598 | } | |
37599 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0); | |
37600 | return resultobj; | |
37601 | fail: | |
37602 | return NULL; | |
37603 | } | |
37604 | ||
37605 | ||
37606 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37607 | PyObject *resultobj; | |
37608 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37609 | PyObject * obj0 = 0 ; | |
37610 | char *kwnames[] = { | |
37611 | (char *) "self", NULL | |
37612 | }; | |
37613 | ||
37614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
37615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37616 | { | |
37617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37618 | (arg1)->RecalcSizes(); | |
37619 | ||
37620 | wxPyEndAllowThreads(__tstate); | |
37621 | if (PyErr_Occurred()) SWIG_fail; | |
37622 | } | |
37623 | Py_INCREF(Py_None); resultobj = Py_None; | |
37624 | return resultobj; | |
37625 | fail: | |
37626 | return NULL; | |
37627 | } | |
37628 | ||
37629 | ||
37630 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37631 | PyObject *resultobj; | |
37632 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37633 | wxSize result; | |
37634 | PyObject * obj0 = 0 ; | |
37635 | char *kwnames[] = { | |
37636 | (char *) "self", NULL | |
37637 | }; | |
37638 | ||
37639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
37640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37641 | { | |
37642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37643 | result = (arg1)->CalcMin(); | |
37644 | ||
37645 | wxPyEndAllowThreads(__tstate); | |
37646 | if (PyErr_Occurred()) SWIG_fail; | |
37647 | } | |
37648 | { | |
37649 | wxSize * resultptr; | |
37650 | resultptr = new wxSize((wxSize &) result); | |
37651 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
37652 | } | |
37653 | return resultobj; | |
37654 | fail: | |
37655 | return NULL; | |
37656 | } | |
37657 | ||
37658 | ||
37659 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
37660 | PyObject *resultobj; | |
37661 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37662 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
37663 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
37664 | bool result; | |
37665 | PyObject * obj0 = 0 ; | |
37666 | PyObject * obj1 = 0 ; | |
37667 | PyObject * obj2 = 0 ; | |
37668 | ||
37669 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
37670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37671 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37672 | if (obj2) { | |
37673 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37674 | } | |
37675 | { | |
37676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37677 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
37678 | ||
37679 | wxPyEndAllowThreads(__tstate); | |
37680 | if (PyErr_Occurred()) SWIG_fail; | |
37681 | } | |
8edf1c75 | 37682 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
37683 | return resultobj; |
37684 | fail: | |
37685 | return NULL; | |
37686 | } | |
37687 | ||
37688 | ||
37689 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
37690 | PyObject *resultobj; | |
37691 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37692 | wxGBPosition *arg2 = 0 ; | |
37693 | wxGBSpan *arg3 = 0 ; | |
37694 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
37695 | bool result; | |
37696 | wxGBPosition temp2 ; | |
37697 | wxGBSpan temp3 ; | |
37698 | PyObject * obj0 = 0 ; | |
37699 | PyObject * obj1 = 0 ; | |
37700 | PyObject * obj2 = 0 ; | |
37701 | PyObject * obj3 = 0 ; | |
37702 | ||
37703 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
37704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37705 | { | |
37706 | arg2 = &temp2; | |
37707 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37708 | } | |
37709 | { | |
37710 | arg3 = &temp3; | |
37711 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37712 | } | |
37713 | if (obj3) { | |
37714 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
37715 | } | |
37716 | { | |
37717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37718 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
37719 | ||
37720 | wxPyEndAllowThreads(__tstate); | |
37721 | if (PyErr_Occurred()) SWIG_fail; | |
37722 | } | |
8edf1c75 | 37723 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
37724 | return resultobj; |
37725 | fail: | |
37726 | return NULL; | |
37727 | } | |
37728 | ||
37729 | ||
37730 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
37731 | int argc; | |
37732 | PyObject *argv[5]; | |
37733 | int ii; | |
37734 | ||
37735 | argc = PyObject_Length(args); | |
37736 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
37737 | argv[ii] = PyTuple_GetItem(args,ii); | |
37738 | } | |
37739 | if ((argc >= 2) && (argc <= 3)) { | |
37740 | int _v; | |
37741 | { | |
37742 | void *ptr; | |
37743 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37744 | _v = 0; | |
37745 | PyErr_Clear(); | |
37746 | } else { | |
37747 | _v = 1; | |
37748 | } | |
37749 | } | |
37750 | if (_v) { | |
37751 | { | |
37752 | void *ptr; | |
37753 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37754 | _v = 0; | |
37755 | PyErr_Clear(); | |
37756 | } else { | |
37757 | _v = 1; | |
37758 | } | |
37759 | } | |
37760 | if (_v) { | |
37761 | if (argc <= 2) { | |
37762 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
37763 | } | |
37764 | { | |
37765 | void *ptr; | |
37766 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37767 | _v = 0; | |
37768 | PyErr_Clear(); | |
37769 | } else { | |
37770 | _v = 1; | |
37771 | } | |
37772 | } | |
37773 | if (_v) { | |
37774 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
37775 | } | |
37776 | } | |
37777 | } | |
37778 | } | |
37779 | if ((argc >= 3) && (argc <= 4)) { | |
37780 | int _v; | |
37781 | { | |
37782 | void *ptr; | |
37783 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
37784 | _v = 0; | |
37785 | PyErr_Clear(); | |
37786 | } else { | |
37787 | _v = 1; | |
37788 | } | |
37789 | } | |
37790 | if (_v) { | |
37791 | { | |
37792 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
37793 | } | |
37794 | if (_v) { | |
37795 | { | |
37796 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37797 | } | |
37798 | if (_v) { | |
37799 | if (argc <= 3) { | |
37800 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
37801 | } | |
37802 | { | |
37803 | void *ptr; | |
37804 | if (SWIG_ConvertPtr(argv[3], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
37805 | _v = 0; | |
37806 | PyErr_Clear(); | |
37807 | } else { | |
37808 | _v = 1; | |
37809 | } | |
37810 | } | |
37811 | if (_v) { | |
37812 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
37813 | } | |
37814 | } | |
37815 | } | |
37816 | } | |
37817 | } | |
37818 | ||
37819 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
37820 | return NULL; | |
37821 | } | |
37822 | ||
37823 | ||
37824 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
37825 | PyObject *obj; | |
37826 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37827 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
37828 | Py_INCREF(obj); | |
37829 | return Py_BuildValue((char *)""); | |
37830 | } | |
37831 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37832 | PyObject *resultobj; | |
37833 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37834 | int arg2 ; | |
37835 | wxWindow *arg3 = (wxWindow *) 0 ; | |
37836 | int arg4 ; | |
37837 | int arg5 = (int) 0 ; | |
37838 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
37839 | PyObject * obj0 = 0 ; | |
8edf1c75 | 37840 | PyObject * obj1 = 0 ; |
d14a1e28 | 37841 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
37842 | PyObject * obj3 = 0 ; |
37843 | PyObject * obj4 = 0 ; | |
37844 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37845 | char *kwnames[] = { |
37846 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
37847 | }; | |
37848 | ||
8edf1c75 | 37849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 37850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
37851 | { |
37852 | arg2 = (wxRelationship) SWIG_PyObj_AsInt(obj1); | |
37853 | if (PyErr_Occurred()) SWIG_fail; | |
37854 | } | |
d14a1e28 | 37855 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
37856 | { |
37857 | arg4 = (wxEdge) SWIG_PyObj_AsInt(obj3); | |
37858 | if (PyErr_Occurred()) SWIG_fail; | |
37859 | } | |
37860 | if (obj4) { | |
37861 | { | |
37862 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
37863 | if (PyErr_Occurred()) SWIG_fail; | |
37864 | } | |
37865 | } | |
37866 | if (obj5) { | |
37867 | { | |
37868 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
37869 | if (PyErr_Occurred()) SWIG_fail; | |
37870 | } | |
37871 | } | |
d14a1e28 RD |
37872 | { |
37873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37874 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
37875 | ||
37876 | wxPyEndAllowThreads(__tstate); | |
37877 | if (PyErr_Occurred()) SWIG_fail; | |
37878 | } | |
37879 | Py_INCREF(Py_None); resultobj = Py_None; | |
37880 | return resultobj; | |
37881 | fail: | |
37882 | return NULL; | |
37883 | } | |
37884 | ||
37885 | ||
37886 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37887 | PyObject *resultobj; | |
37888 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37889 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37890 | int arg3 = (int) 0 ; | |
37891 | PyObject * obj0 = 0 ; | |
37892 | PyObject * obj1 = 0 ; | |
8edf1c75 | 37893 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37894 | char *kwnames[] = { |
37895 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37896 | }; | |
37897 | ||
8edf1c75 | 37898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
37899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
37900 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
37901 | if (obj2) { |
37902 | { | |
37903 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
37904 | if (PyErr_Occurred()) SWIG_fail; | |
37905 | } | |
37906 | } | |
d14a1e28 RD |
37907 | { |
37908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37909 | (arg1)->LeftOf(arg2,arg3); | |
37910 | ||
37911 | wxPyEndAllowThreads(__tstate); | |
37912 | if (PyErr_Occurred()) SWIG_fail; | |
37913 | } | |
37914 | Py_INCREF(Py_None); resultobj = Py_None; | |
37915 | return resultobj; | |
37916 | fail: | |
37917 | return NULL; | |
37918 | } | |
37919 | ||
37920 | ||
37921 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37922 | PyObject *resultobj; | |
37923 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37924 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37925 | int arg3 = (int) 0 ; | |
37926 | PyObject * obj0 = 0 ; | |
37927 | PyObject * obj1 = 0 ; | |
8edf1c75 | 37928 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37929 | char *kwnames[] = { |
37930 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37931 | }; | |
37932 | ||
8edf1c75 | 37933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
37934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
37935 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
37936 | if (obj2) { |
37937 | { | |
37938 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
37939 | if (PyErr_Occurred()) SWIG_fail; | |
37940 | } | |
37941 | } | |
d14a1e28 RD |
37942 | { |
37943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37944 | (arg1)->RightOf(arg2,arg3); | |
37945 | ||
37946 | wxPyEndAllowThreads(__tstate); | |
37947 | if (PyErr_Occurred()) SWIG_fail; | |
37948 | } | |
37949 | Py_INCREF(Py_None); resultobj = Py_None; | |
37950 | return resultobj; | |
37951 | fail: | |
37952 | return NULL; | |
37953 | } | |
37954 | ||
37955 | ||
37956 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37957 | PyObject *resultobj; | |
37958 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37959 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37960 | int arg3 = (int) 0 ; | |
37961 | PyObject * obj0 = 0 ; | |
37962 | PyObject * obj1 = 0 ; | |
8edf1c75 | 37963 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37964 | char *kwnames[] = { |
37965 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
37966 | }; | |
37967 | ||
8edf1c75 | 37968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
37969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
37970 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
37971 | if (obj2) { |
37972 | { | |
37973 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
37974 | if (PyErr_Occurred()) SWIG_fail; | |
37975 | } | |
37976 | } | |
d14a1e28 RD |
37977 | { |
37978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37979 | (arg1)->Above(arg2,arg3); | |
37980 | ||
37981 | wxPyEndAllowThreads(__tstate); | |
37982 | if (PyErr_Occurred()) SWIG_fail; | |
37983 | } | |
37984 | Py_INCREF(Py_None); resultobj = Py_None; | |
37985 | return resultobj; | |
37986 | fail: | |
37987 | return NULL; | |
37988 | } | |
37989 | ||
37990 | ||
37991 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37992 | PyObject *resultobj; | |
37993 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
37994 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37995 | int arg3 = (int) 0 ; | |
37996 | PyObject * obj0 = 0 ; | |
37997 | PyObject * obj1 = 0 ; | |
8edf1c75 | 37998 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
37999 | char *kwnames[] = { |
38000 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38001 | }; | |
38002 | ||
8edf1c75 | 38003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
38004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
38005 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
38006 | if (obj2) { |
38007 | { | |
38008 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
38009 | if (PyErr_Occurred()) SWIG_fail; | |
38010 | } | |
38011 | } | |
d14a1e28 RD |
38012 | { |
38013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38014 | (arg1)->Below(arg2,arg3); | |
38015 | ||
38016 | wxPyEndAllowThreads(__tstate); | |
38017 | if (PyErr_Occurred()) SWIG_fail; | |
38018 | } | |
38019 | Py_INCREF(Py_None); resultobj = Py_None; | |
38020 | return resultobj; | |
38021 | fail: | |
38022 | return NULL; | |
38023 | } | |
38024 | ||
38025 | ||
38026 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38027 | PyObject *resultobj; | |
38028 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38029 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38030 | int arg3 ; | |
38031 | int arg4 = (int) 0 ; | |
38032 | PyObject * obj0 = 0 ; | |
38033 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
38034 | PyObject * obj2 = 0 ; |
38035 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
38036 | char *kwnames[] = { |
38037 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
38038 | }; | |
38039 | ||
8edf1c75 | 38040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
38041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
38042 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
38043 | { |
38044 | arg3 = (wxEdge) SWIG_PyObj_AsInt(obj2); | |
38045 | if (PyErr_Occurred()) SWIG_fail; | |
38046 | } | |
38047 | if (obj3) { | |
38048 | { | |
38049 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
38050 | if (PyErr_Occurred()) SWIG_fail; | |
38051 | } | |
38052 | } | |
d14a1e28 RD |
38053 | { |
38054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38055 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
38056 | ||
38057 | wxPyEndAllowThreads(__tstate); | |
38058 | if (PyErr_Occurred()) SWIG_fail; | |
38059 | } | |
38060 | Py_INCREF(Py_None); resultobj = Py_None; | |
38061 | return resultobj; | |
38062 | fail: | |
38063 | return NULL; | |
38064 | } | |
38065 | ||
38066 | ||
38067 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38068 | PyObject *resultobj; | |
38069 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38070 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38071 | int arg3 ; | |
38072 | int arg4 ; | |
38073 | PyObject * obj0 = 0 ; | |
38074 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
38075 | PyObject * obj2 = 0 ; |
38076 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
38077 | char *kwnames[] = { |
38078 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
38079 | }; | |
38080 | ||
8edf1c75 | 38081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
38082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
38083 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
38084 | { |
38085 | arg3 = (wxEdge) SWIG_PyObj_AsInt(obj2); | |
38086 | if (PyErr_Occurred()) SWIG_fail; | |
38087 | } | |
38088 | { | |
38089 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
38090 | if (PyErr_Occurred()) SWIG_fail; | |
38091 | } | |
d14a1e28 RD |
38092 | { |
38093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38094 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
38095 | ||
38096 | wxPyEndAllowThreads(__tstate); | |
38097 | if (PyErr_Occurred()) SWIG_fail; | |
38098 | } | |
38099 | Py_INCREF(Py_None); resultobj = Py_None; | |
38100 | return resultobj; | |
38101 | fail: | |
38102 | return NULL; | |
38103 | } | |
38104 | ||
38105 | ||
38106 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38107 | PyObject *resultobj; | |
38108 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38109 | int arg2 ; | |
38110 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38111 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38112 | char *kwnames[] = { |
38113 | (char *) "self",(char *) "val", NULL | |
38114 | }; | |
38115 | ||
8edf1c75 | 38116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 38117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
38118 | { |
38119 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
38120 | if (PyErr_Occurred()) SWIG_fail; | |
38121 | } | |
d14a1e28 RD |
38122 | { |
38123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38124 | (arg1)->Absolute(arg2); | |
38125 | ||
38126 | wxPyEndAllowThreads(__tstate); | |
38127 | if (PyErr_Occurred()) SWIG_fail; | |
38128 | } | |
38129 | Py_INCREF(Py_None); resultobj = Py_None; | |
38130 | return resultobj; | |
38131 | fail: | |
38132 | return NULL; | |
38133 | } | |
38134 | ||
38135 | ||
38136 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38137 | PyObject *resultobj; | |
38138 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38139 | PyObject * obj0 = 0 ; | |
38140 | char *kwnames[] = { | |
38141 | (char *) "self", NULL | |
38142 | }; | |
38143 | ||
38144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
38145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38146 | { | |
38147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38148 | (arg1)->Unconstrained(); | |
38149 | ||
38150 | wxPyEndAllowThreads(__tstate); | |
38151 | if (PyErr_Occurred()) SWIG_fail; | |
38152 | } | |
38153 | Py_INCREF(Py_None); resultobj = Py_None; | |
38154 | return resultobj; | |
38155 | fail: | |
38156 | return NULL; | |
38157 | } | |
38158 | ||
38159 | ||
38160 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38161 | PyObject *resultobj; | |
38162 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38163 | PyObject * obj0 = 0 ; | |
38164 | char *kwnames[] = { | |
38165 | (char *) "self", NULL | |
38166 | }; | |
38167 | ||
38168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
38169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38170 | { | |
38171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38172 | (arg1)->AsIs(); | |
38173 | ||
38174 | wxPyEndAllowThreads(__tstate); | |
38175 | if (PyErr_Occurred()) SWIG_fail; | |
38176 | } | |
38177 | Py_INCREF(Py_None); resultobj = Py_None; | |
38178 | return resultobj; | |
38179 | fail: | |
38180 | return NULL; | |
38181 | } | |
38182 | ||
38183 | ||
38184 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38185 | PyObject *resultobj; | |
38186 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38187 | wxWindow *result; | |
38188 | PyObject * obj0 = 0 ; | |
38189 | char *kwnames[] = { | |
38190 | (char *) "self", NULL | |
38191 | }; | |
38192 | ||
38193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
38194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38195 | { | |
38196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38197 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
38198 | ||
38199 | wxPyEndAllowThreads(__tstate); | |
38200 | if (PyErr_Occurred()) SWIG_fail; | |
38201 | } | |
38202 | { | |
38203 | resultobj = wxPyMake_wxObject(result); | |
38204 | } | |
38205 | return resultobj; | |
38206 | fail: | |
38207 | return NULL; | |
38208 | } | |
38209 | ||
38210 | ||
38211 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38212 | PyObject *resultobj; | |
38213 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38214 | int result; | |
38215 | PyObject * obj0 = 0 ; | |
38216 | char *kwnames[] = { | |
38217 | (char *) "self", NULL | |
38218 | }; | |
38219 | ||
38220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
38221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38222 | { | |
38223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38224 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
38225 | ||
38226 | wxPyEndAllowThreads(__tstate); | |
38227 | if (PyErr_Occurred()) SWIG_fail; | |
38228 | } | |
8edf1c75 | 38229 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38230 | return resultobj; |
38231 | fail: | |
38232 | return NULL; | |
38233 | } | |
38234 | ||
38235 | ||
38236 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38237 | PyObject *resultobj; | |
38238 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38239 | int arg2 ; | |
38240 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38241 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38242 | char *kwnames[] = { |
38243 | (char *) "self",(char *) "which", NULL | |
38244 | }; | |
38245 | ||
8edf1c75 | 38246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 38247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
38248 | { |
38249 | arg2 = (wxEdge) SWIG_PyObj_AsInt(obj1); | |
38250 | if (PyErr_Occurred()) SWIG_fail; | |
38251 | } | |
d14a1e28 RD |
38252 | { |
38253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38254 | (arg1)->SetEdge((wxEdge )arg2); | |
38255 | ||
38256 | wxPyEndAllowThreads(__tstate); | |
38257 | if (PyErr_Occurred()) SWIG_fail; | |
38258 | } | |
38259 | Py_INCREF(Py_None); resultobj = Py_None; | |
38260 | return resultobj; | |
38261 | fail: | |
38262 | return NULL; | |
38263 | } | |
38264 | ||
38265 | ||
38266 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38267 | PyObject *resultobj; | |
38268 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38269 | int arg2 ; | |
38270 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38271 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38272 | char *kwnames[] = { |
38273 | (char *) "self",(char *) "v", NULL | |
38274 | }; | |
38275 | ||
8edf1c75 | 38276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 38277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
38278 | { |
38279 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
38280 | if (PyErr_Occurred()) SWIG_fail; | |
38281 | } | |
d14a1e28 RD |
38282 | { |
38283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38284 | (arg1)->SetValue(arg2); | |
38285 | ||
38286 | wxPyEndAllowThreads(__tstate); | |
38287 | if (PyErr_Occurred()) SWIG_fail; | |
38288 | } | |
38289 | Py_INCREF(Py_None); resultobj = Py_None; | |
38290 | return resultobj; | |
38291 | fail: | |
38292 | return NULL; | |
38293 | } | |
38294 | ||
38295 | ||
38296 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38297 | PyObject *resultobj; | |
38298 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38299 | int result; | |
38300 | PyObject * obj0 = 0 ; | |
38301 | char *kwnames[] = { | |
38302 | (char *) "self", NULL | |
38303 | }; | |
38304 | ||
38305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
38306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38307 | { | |
38308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38309 | result = (int)(arg1)->GetMargin(); | |
38310 | ||
38311 | wxPyEndAllowThreads(__tstate); | |
38312 | if (PyErr_Occurred()) SWIG_fail; | |
38313 | } | |
8edf1c75 | 38314 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38315 | return resultobj; |
38316 | fail: | |
38317 | return NULL; | |
38318 | } | |
38319 | ||
38320 | ||
38321 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38322 | PyObject *resultobj; | |
38323 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38324 | int arg2 ; | |
38325 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38326 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38327 | char *kwnames[] = { |
38328 | (char *) "self",(char *) "m", NULL | |
38329 | }; | |
38330 | ||
8edf1c75 | 38331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 38332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
38333 | { |
38334 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
38335 | if (PyErr_Occurred()) SWIG_fail; | |
38336 | } | |
d14a1e28 RD |
38337 | { |
38338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38339 | (arg1)->SetMargin(arg2); | |
38340 | ||
38341 | wxPyEndAllowThreads(__tstate); | |
38342 | if (PyErr_Occurred()) SWIG_fail; | |
38343 | } | |
38344 | Py_INCREF(Py_None); resultobj = Py_None; | |
38345 | return resultobj; | |
38346 | fail: | |
38347 | return NULL; | |
38348 | } | |
38349 | ||
38350 | ||
38351 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38352 | PyObject *resultobj; | |
38353 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38354 | int result; | |
38355 | PyObject * obj0 = 0 ; | |
38356 | char *kwnames[] = { | |
38357 | (char *) "self", NULL | |
38358 | }; | |
38359 | ||
38360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
38361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38362 | { | |
38363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38364 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
38365 | ||
38366 | wxPyEndAllowThreads(__tstate); | |
38367 | if (PyErr_Occurred()) SWIG_fail; | |
38368 | } | |
8edf1c75 | 38369 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38370 | return resultobj; |
38371 | fail: | |
38372 | return NULL; | |
38373 | } | |
38374 | ||
38375 | ||
38376 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38377 | PyObject *resultobj; | |
38378 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38379 | int result; | |
38380 | PyObject * obj0 = 0 ; | |
38381 | char *kwnames[] = { | |
38382 | (char *) "self", NULL | |
38383 | }; | |
38384 | ||
38385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
38386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38387 | { | |
38388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38389 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
38390 | ||
38391 | wxPyEndAllowThreads(__tstate); | |
38392 | if (PyErr_Occurred()) SWIG_fail; | |
38393 | } | |
8edf1c75 | 38394 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38395 | return resultobj; |
38396 | fail: | |
38397 | return NULL; | |
38398 | } | |
38399 | ||
38400 | ||
38401 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38402 | PyObject *resultobj; | |
38403 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38404 | int result; | |
38405 | PyObject * obj0 = 0 ; | |
38406 | char *kwnames[] = { | |
38407 | (char *) "self", NULL | |
38408 | }; | |
38409 | ||
38410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
38411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38412 | { | |
38413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38414 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
38415 | ||
38416 | wxPyEndAllowThreads(__tstate); | |
38417 | if (PyErr_Occurred()) SWIG_fail; | |
38418 | } | |
8edf1c75 | 38419 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38420 | return resultobj; |
38421 | fail: | |
38422 | return NULL; | |
38423 | } | |
38424 | ||
38425 | ||
38426 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38427 | PyObject *resultobj; | |
38428 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38429 | bool result; | |
38430 | PyObject * obj0 = 0 ; | |
38431 | char *kwnames[] = { | |
38432 | (char *) "self", NULL | |
38433 | }; | |
38434 | ||
38435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
38436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38437 | { | |
38438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38439 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
38440 | ||
38441 | wxPyEndAllowThreads(__tstate); | |
38442 | if (PyErr_Occurred()) SWIG_fail; | |
38443 | } | |
8edf1c75 | 38444 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
38445 | return resultobj; |
38446 | fail: | |
38447 | return NULL; | |
38448 | } | |
38449 | ||
38450 | ||
38451 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38452 | PyObject *resultobj; | |
38453 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38454 | bool arg2 ; | |
38455 | PyObject * obj0 = 0 ; | |
38456 | PyObject * obj1 = 0 ; | |
38457 | char *kwnames[] = { | |
38458 | (char *) "self",(char *) "d", NULL | |
38459 | }; | |
38460 | ||
38461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
38462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 38463 | { |
8edf1c75 | 38464 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
38465 | if (PyErr_Occurred()) SWIG_fail; |
38466 | } | |
d14a1e28 RD |
38467 | { |
38468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38469 | (arg1)->SetDone(arg2); | |
38470 | ||
38471 | wxPyEndAllowThreads(__tstate); | |
38472 | if (PyErr_Occurred()) SWIG_fail; | |
38473 | } | |
38474 | Py_INCREF(Py_None); resultobj = Py_None; | |
38475 | return resultobj; | |
38476 | fail: | |
38477 | return NULL; | |
38478 | } | |
38479 | ||
38480 | ||
38481 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38482 | PyObject *resultobj; | |
38483 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38484 | int result; | |
38485 | PyObject * obj0 = 0 ; | |
38486 | char *kwnames[] = { | |
38487 | (char *) "self", NULL | |
38488 | }; | |
38489 | ||
38490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
38491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38492 | { | |
38493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38494 | result = (int)(arg1)->GetRelationship(); | |
38495 | ||
38496 | wxPyEndAllowThreads(__tstate); | |
38497 | if (PyErr_Occurred()) SWIG_fail; | |
38498 | } | |
8edf1c75 | 38499 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38500 | return resultobj; |
38501 | fail: | |
38502 | return NULL; | |
38503 | } | |
38504 | ||
38505 | ||
38506 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38507 | PyObject *resultobj; | |
38508 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38509 | int arg2 ; | |
38510 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38511 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38512 | char *kwnames[] = { |
38513 | (char *) "self",(char *) "r", NULL | |
38514 | }; | |
38515 | ||
8edf1c75 | 38516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 38517 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
38518 | { |
38519 | arg2 = (wxRelationship) SWIG_PyObj_AsInt(obj1); | |
38520 | if (PyErr_Occurred()) SWIG_fail; | |
38521 | } | |
d14a1e28 RD |
38522 | { |
38523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38524 | (arg1)->SetRelationship((wxRelationship )arg2); | |
38525 | ||
38526 | wxPyEndAllowThreads(__tstate); | |
38527 | if (PyErr_Occurred()) SWIG_fail; | |
38528 | } | |
38529 | Py_INCREF(Py_None); resultobj = Py_None; | |
38530 | return resultobj; | |
38531 | fail: | |
38532 | return NULL; | |
38533 | } | |
38534 | ||
38535 | ||
38536 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38537 | PyObject *resultobj; | |
38538 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38539 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38540 | bool result; | |
38541 | PyObject * obj0 = 0 ; | |
38542 | PyObject * obj1 = 0 ; | |
38543 | char *kwnames[] = { | |
38544 | (char *) "self",(char *) "otherW", NULL | |
38545 | }; | |
38546 | ||
38547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
38548 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38549 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38550 | { | |
38551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38552 | result = (bool)(arg1)->ResetIfWin(arg2); | |
38553 | ||
38554 | wxPyEndAllowThreads(__tstate); | |
38555 | if (PyErr_Occurred()) SWIG_fail; | |
38556 | } | |
8edf1c75 | 38557 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
38558 | return resultobj; |
38559 | fail: | |
38560 | return NULL; | |
38561 | } | |
38562 | ||
38563 | ||
38564 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38565 | PyObject *resultobj; | |
38566 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38567 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
38568 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38569 | bool result; | |
38570 | PyObject * obj0 = 0 ; | |
38571 | PyObject * obj1 = 0 ; | |
38572 | PyObject * obj2 = 0 ; | |
38573 | char *kwnames[] = { | |
38574 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
38575 | }; | |
38576 | ||
38577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38579 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38580 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38581 | { | |
38582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38583 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
38584 | ||
38585 | wxPyEndAllowThreads(__tstate); | |
38586 | if (PyErr_Occurred()) SWIG_fail; | |
38587 | } | |
8edf1c75 | 38588 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
38589 | return resultobj; |
38590 | fail: | |
38591 | return NULL; | |
38592 | } | |
38593 | ||
38594 | ||
38595 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38596 | PyObject *resultobj; | |
38597 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38598 | int arg2 ; | |
38599 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38600 | wxWindow *arg4 = (wxWindow *) 0 ; | |
38601 | int result; | |
38602 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38603 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38604 | PyObject * obj2 = 0 ; |
38605 | PyObject * obj3 = 0 ; | |
38606 | char *kwnames[] = { | |
38607 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
38608 | }; | |
38609 | ||
8edf1c75 | 38610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 38611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
38612 | { |
38613 | arg2 = (wxEdge) SWIG_PyObj_AsInt(obj1); | |
38614 | if (PyErr_Occurred()) SWIG_fail; | |
38615 | } | |
d14a1e28 RD |
38616 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
38617 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38618 | { | |
38619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38620 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
38621 | ||
38622 | wxPyEndAllowThreads(__tstate); | |
38623 | if (PyErr_Occurred()) SWIG_fail; | |
38624 | } | |
8edf1c75 | 38625 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
38626 | return resultobj; |
38627 | fail: | |
38628 | return NULL; | |
38629 | } | |
38630 | ||
38631 | ||
38632 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
38633 | PyObject *obj; | |
38634 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38635 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
38636 | Py_INCREF(obj); | |
38637 | return Py_BuildValue((char *)""); | |
38638 | } | |
38639 | static PyObject *_wrap_LayoutConstraints_left_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_left_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)->left); | |
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_top_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_top_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)->top); | |
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_right_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_right_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)->right); | |
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_bottom_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_bottom_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)->bottom); | |
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_width_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_width_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)->width); | |
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_height_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_height_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)->height); | |
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_centreX_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_centreX_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)->centreX); | |
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_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38780 | PyObject *resultobj; | |
38781 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38782 | wxIndividualLayoutConstraint *result; | |
38783 | PyObject * obj0 = 0 ; | |
38784 | char *kwnames[] = { | |
38785 | (char *) "self", NULL | |
38786 | }; | |
38787 | ||
38788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
38789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38790 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
38791 | ||
38792 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
38793 | return resultobj; | |
38794 | fail: | |
38795 | return NULL; | |
38796 | } | |
38797 | ||
38798 | ||
38799 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38800 | PyObject *resultobj; | |
38801 | wxLayoutConstraints *result; | |
38802 | char *kwnames[] = { | |
38803 | NULL | |
38804 | }; | |
38805 | ||
38806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
38807 | { | |
38808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38809 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
38810 | ||
38811 | wxPyEndAllowThreads(__tstate); | |
38812 | if (PyErr_Occurred()) SWIG_fail; | |
38813 | } | |
38814 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 1); | |
38815 | return resultobj; | |
38816 | fail: | |
38817 | return NULL; | |
38818 | } | |
38819 | ||
38820 | ||
38821 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38822 | PyObject *resultobj; | |
38823 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38824 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38825 | int *arg3 = (int *) 0 ; | |
38826 | bool result; | |
38827 | int temp3 ; | |
38828 | PyObject * obj0 = 0 ; | |
38829 | PyObject * obj1 = 0 ; | |
38830 | char *kwnames[] = { | |
38831 | (char *) "self",(char *) "win", NULL | |
38832 | }; | |
38833 | ||
38834 | arg3 = &temp3; | |
38835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
38836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38837 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38838 | { | |
38839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38840 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
38841 | ||
38842 | wxPyEndAllowThreads(__tstate); | |
38843 | if (PyErr_Occurred()) SWIG_fail; | |
38844 | } | |
8edf1c75 | 38845 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
38846 | { |
38847 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
38848 | resultobj = t_output_helper(resultobj,o); | |
38849 | } | |
38850 | return resultobj; | |
38851 | fail: | |
38852 | return NULL; | |
38853 | } | |
38854 | ||
38855 | ||
38856 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38857 | PyObject *resultobj; | |
38858 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38859 | bool result; | |
38860 | PyObject * obj0 = 0 ; | |
38861 | char *kwnames[] = { | |
38862 | (char *) "self", NULL | |
38863 | }; | |
38864 | ||
38865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
38866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
38867 | { | |
38868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38869 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
38870 | ||
38871 | wxPyEndAllowThreads(__tstate); | |
38872 | if (PyErr_Occurred()) SWIG_fail; | |
38873 | } | |
8edf1c75 | 38874 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
38875 | return resultobj; |
38876 | fail: | |
38877 | return NULL; | |
38878 | } | |
38879 | ||
38880 | ||
38881 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
38882 | PyObject *obj; | |
38883 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38884 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
38885 | Py_INCREF(obj); | |
38886 | return Py_BuildValue((char *)""); | |
38887 | } | |
38888 | static PyMethodDef SwigMethods[] = { | |
38889 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
d03fd34d | 38890 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, |
d14a1e28 RD |
38891 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, |
38892 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
38893 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
38894 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
38895 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
38896 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
38897 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
38898 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
38899 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
38900 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
38901 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
38902 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
38903 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
38904 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
38905 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
38906 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
38907 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
38908 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
38909 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
38910 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 38911 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38912 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, |
38913 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
38914 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
38915 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
38916 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
38917 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
38918 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
38919 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, |
38920 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
38921 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, |
38922 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 38923 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, |
423f194a | 38924 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38925 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, |
38926 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
38927 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
38928 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
38929 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
38930 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
38931 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
38932 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
38933 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
38934 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
38935 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
38936 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
38937 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
38938 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 38939 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38940 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, |
38941 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
38942 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
38943 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
38944 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
38945 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
38946 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
38947 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
38948 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
38949 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
38950 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
38951 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
38952 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
38953 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38954 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
38955 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
38956 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 RD |
38957 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, |
38958 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
38959 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
38960 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
38961 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, |
38962 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
38963 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
38964 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
38965 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
38966 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
38967 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
38968 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
38969 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
38970 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
38971 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
38972 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
38973 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
38974 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
38975 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
38976 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
38977 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
38978 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
38979 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
38980 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
38981 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
38982 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
38983 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
38984 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
38985 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
38986 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
38987 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
38988 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
38989 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 38990 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
38991 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, |
38992 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
38993 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
38994 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
38995 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
38996 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
38997 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
38998 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
38999 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
39000 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
39001 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
39002 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
39003 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
39004 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
39005 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
39006 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
39007 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
39008 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
39009 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
39010 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
39011 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39012 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39013 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, |
39014 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39015 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39016 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39017 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 39018 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39019 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, |
39020 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
39021 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
39022 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
39023 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
39024 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
39025 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
39026 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
39027 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
39028 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
39029 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
39030 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
39031 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
39032 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39033 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
39034 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
39035 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
39036 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
39037 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
39038 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
39039 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
39040 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
39041 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
39042 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
39043 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39044 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
39045 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
39046 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
39047 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
39048 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
39049 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
39050 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39051 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39052 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39053 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39054 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39055 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
39056 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
39057 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
39058 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
39059 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
39060 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
39061 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
39062 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
39063 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
39064 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
39065 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39066 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39067 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39068 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
39069 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
39070 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
39071 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
39072 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
39073 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39074 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39075 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39076 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
39077 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39078 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39079 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39080 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39081 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39082 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
39083 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
39084 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39085 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
39086 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39087 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
39088 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39089 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39090 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39091 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39092 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
39093 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
39094 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
39095 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
39096 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39097 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39098 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
39099 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
39100 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
39101 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39102 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
39103 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
39104 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
39105 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
39106 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
39107 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
39108 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
39109 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
39110 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
39111 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
39112 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, | |
39113 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39114 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
39115 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
39116 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39117 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
39118 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
39119 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
39120 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
39121 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
39122 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
39123 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
39124 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39125 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39126 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39127 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
39128 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
39129 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39130 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
39131 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
39132 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
39133 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
39134 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
39135 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
39136 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
39137 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
39138 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
39139 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39140 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39141 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
39142 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
39143 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
39144 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
39145 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
39146 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39147 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39148 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
39149 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
39150 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39151 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39152 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
39153 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
39154 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
39155 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
39156 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
39157 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
39158 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
39159 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
39160 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
39161 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
39162 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
39163 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
39164 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
39165 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
39166 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
39167 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
39168 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
39169 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
39170 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
39171 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
39172 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
39173 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
39174 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39175 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39176 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
39177 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
39178 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
39179 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
39180 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
39181 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
39182 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
39183 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
39184 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
39185 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
39186 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
39187 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
39188 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
39189 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
39190 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
39191 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
39192 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
39193 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
39194 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
39195 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
39196 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
39197 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
39198 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
39199 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
39200 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
39201 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
39202 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
39203 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
39204 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
39205 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39206 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39207 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
39208 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
39209 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
39210 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
39211 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
39212 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
39213 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
39214 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
39215 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
39216 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
39217 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
39218 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
39219 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
39220 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
39221 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
39222 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
39223 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
39224 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39225 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
39226 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
39227 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
39228 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
39229 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
39230 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
39231 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
39232 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
39233 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
39234 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
39235 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
39236 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
39237 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
39238 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39239 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
39240 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
39241 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
39242 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
39243 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
39244 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
39245 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
39246 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
39247 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
39248 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
39249 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
39250 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39251 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
39252 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
39253 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
39254 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
39255 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
39256 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39257 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39258 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39259 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39260 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
39261 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
39262 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39263 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39264 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39265 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39266 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
39267 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
39268 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
39269 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
39270 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
39271 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
39272 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
39273 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
39274 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
39275 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
39276 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
39277 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
39278 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
39279 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
39280 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
39281 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
39282 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
39283 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
39284 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
39285 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
39286 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
39287 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
39288 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
39289 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
39290 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
39291 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
39292 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
39293 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
39294 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
39295 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39296 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
39297 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
39298 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
39299 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
39300 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
39301 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
39302 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
39303 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
39304 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39305 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39306 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39307 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39308 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39309 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39310 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39311 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39312 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39313 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39314 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39315 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39316 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39317 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39318 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39319 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39320 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39321 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39322 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
39323 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
39324 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
39325 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
39326 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
39327 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
39328 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
39329 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
39330 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
39331 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
39332 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
39333 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
39334 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
39335 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
39336 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39337 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
39338 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
39339 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
39340 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
39341 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
39342 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
39343 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
39344 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
39345 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
39346 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39347 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
39348 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
39349 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
39350 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39351 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39352 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39353 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39354 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
39355 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
39356 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39357 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39358 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39359 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39360 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39361 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39362 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39363 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39364 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
39365 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
39366 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
39367 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
39368 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
39369 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
39370 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
39371 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
39372 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39373 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
39374 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
39375 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
39376 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
39377 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
39378 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
39379 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
39380 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
39381 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
39382 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39383 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
39384 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
39385 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39386 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
39387 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
39388 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
39389 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
39390 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
39391 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
39392 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
39393 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
39394 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
39395 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
39396 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
39397 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
39398 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
39399 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39400 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39401 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
39402 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
39403 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39404 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
39405 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
39406 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
39407 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
39408 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
39409 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
39410 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
39411 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
39412 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
39413 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
39414 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
39415 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
39416 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
39417 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
39418 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
39419 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
39420 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
39421 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
39422 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
39423 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
39424 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
39425 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
39426 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
39427 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
39428 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
39429 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
39430 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
39431 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
39432 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39433 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
39434 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
39435 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
39436 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
39437 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
39438 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39439 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
39440 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
39441 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
39442 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39443 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
39444 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39445 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
39446 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
39447 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
39448 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
39449 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
39450 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
39451 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
39452 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
39453 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
39454 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
39455 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
39456 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
39457 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
39458 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
39459 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
39460 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
39461 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
39462 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
39463 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
39464 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
39465 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
39466 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
39467 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
39468 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39469 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
39470 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
39471 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
39472 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
39473 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
39474 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
39475 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
39476 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
39477 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39478 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
39479 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39480 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39481 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
39482 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
39483 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39484 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39485 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
39486 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
39487 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
39488 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
39489 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
39490 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
39491 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
39492 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
39493 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39494 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39495 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39496 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39497 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
39498 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39499 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39500 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39501 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39502 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
39503 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
39504 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
39505 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39506 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
39507 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
39508 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
39509 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
39510 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
39511 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
39512 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
39513 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
39514 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
39515 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
39516 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
39517 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
39518 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
39519 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
39520 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
39521 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
39522 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39523 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, |
39524 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
39525 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
39526 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
39527 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
39528 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
39529 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
39530 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
39531 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 39532 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 39533 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39534 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, |
39535 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39536 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39537 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39538 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
39539 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
39540 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39541 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39542 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39543 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
39544 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
39545 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
39546 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
39547 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
39548 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
39549 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
39550 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
39551 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
39552 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
39553 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
39554 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
41f1cec7 RD |
39555 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, |
39556 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
39557 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
39558 | { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39559 | { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39560 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
39561 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
39562 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
39563 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
39564 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39565 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39566 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
39567 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
39568 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39569 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, |
39570 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
39571 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
39572 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
39573 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39574 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
39575 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
39576 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39577 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39578 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39579 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39580 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
39581 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
39582 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, | |
39583 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
39584 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
39585 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
39586 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
39587 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
39588 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
39589 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
39590 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
39591 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
39592 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
39593 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
39594 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
39595 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
39596 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
39597 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
39598 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39599 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
39600 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39601 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39602 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
39603 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
39604 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39605 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
39606 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
39607 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
39608 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39609 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
39610 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
39611 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
39612 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
39613 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
39614 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
39615 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39616 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39617 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, | |
39618 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
39619 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
39620 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
39621 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
39622 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
39623 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
39624 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
39625 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39626 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
39627 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
39628 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
39629 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39630 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
39631 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
39632 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39633 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
39634 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
39635 | { (char *)"Window_SetWindowStyle", (PyCFunction) _wrap_Window_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
39636 | { (char *)"Window_GetWindowStyle", (PyCFunction) _wrap_Window_GetWindowStyle, METH_VARARGS | METH_KEYWORDS }, | |
39637 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
39638 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
39639 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
39640 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
39641 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
39642 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39643 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39644 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
39645 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
39646 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
39647 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
39648 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
39649 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
39650 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
39651 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
39652 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
39653 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
39654 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
39655 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
39656 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
39657 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
39658 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
39659 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
39660 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
39661 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
39662 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39663 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39664 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39665 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39666 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39667 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
39668 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
39669 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39670 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39671 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
39672 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
39673 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
39674 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
39675 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
39676 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
39677 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
39678 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
39679 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
39680 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
39681 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
39682 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
39683 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
39684 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
39685 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
39686 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
39687 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
39688 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
39689 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
39690 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
39691 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
39692 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
39693 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
39694 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
39695 | { (char *)"Window_isExposedRect", (PyCFunction) _wrap_Window_isExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
39696 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39697 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39698 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39699 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39700 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
39701 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
39702 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
39703 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
39704 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
39705 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
39706 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
39707 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
39708 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
39709 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
39710 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
39711 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
39712 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
39713 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
39714 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
39715 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
39716 | { (char *)"Window_GetBorderFlags", (PyCFunction) _wrap_Window_GetBorderFlags, METH_VARARGS | METH_KEYWORDS }, | |
39717 | { (char *)"Window_GetBorder", (PyCFunction) _wrap_Window_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
39718 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, | |
39719 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
39720 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
39721 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
39722 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS }, | |
39723 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
39724 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
39725 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
39726 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
39727 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
39728 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
39729 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
39730 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
39731 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
39732 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
39733 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
39734 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
39735 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
39736 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
39737 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
39738 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
39739 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
39740 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
39741 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
39742 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
39743 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
39744 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
39745 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
39746 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
39747 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
39748 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
39749 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
39750 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
39751 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
39752 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
39753 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
39754 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
39755 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
39756 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
39757 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
39758 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
39759 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
39760 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
39761 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
39762 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
39763 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
39764 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
39765 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39766 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39767 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
39768 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
39769 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
39770 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
39771 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39772 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
39773 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
39774 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
39775 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
39776 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
39777 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
39778 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
39779 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
39780 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
39781 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
39782 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
39783 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
39784 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
39785 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
39786 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
39787 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
39788 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
39789 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
39790 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
39791 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
39792 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
39793 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
39794 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
39795 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
39796 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
39797 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39798 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
39799 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
39800 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
39801 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
39802 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
39803 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
39804 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
39805 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39806 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39807 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
39808 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
39809 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39810 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39811 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
39812 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
39813 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39814 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39815 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39816 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39817 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
39818 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
39819 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
39820 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
39821 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
39822 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
39823 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
39824 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
39825 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
39826 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
39827 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
39828 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
39829 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
39830 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
39831 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
39832 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
39833 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
39834 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
39835 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
39836 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
39837 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
39838 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
39839 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39840 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
39841 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
39842 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39843 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
39844 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
39845 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39846 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39847 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39848 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
39849 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
39850 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
39851 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
39852 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
39853 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
39854 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
39855 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39856 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
39857 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
39858 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
39859 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
39860 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
39861 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
39862 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39863 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
39864 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
39865 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
39866 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
39867 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
39868 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
39869 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
39870 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
39871 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39872 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39873 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
39874 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
39875 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
39876 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
39877 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
39878 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
39879 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
39880 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
39881 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
39882 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
39883 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
39884 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39885 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39886 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
39887 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39888 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39889 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
39890 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
39891 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
39892 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
39893 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
39894 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
39895 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39896 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39897 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
39898 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
39899 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
39900 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
39901 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
39902 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39903 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39904 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
39905 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
39906 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
39907 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
39908 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
39909 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
39910 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
39911 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
39912 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
39913 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
39914 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
39915 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
39916 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
39917 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
39918 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
39919 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
39920 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
39921 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
39922 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
39923 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
39924 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
39925 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
39926 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
39927 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
39928 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
39929 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39930 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39931 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
39932 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
39933 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
39934 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
39935 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
39936 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
39937 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
39938 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
39939 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
39940 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
39941 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
39942 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
39943 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
39944 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
39945 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
39946 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
39947 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39948 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39949 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
39950 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
39951 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
39952 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
39953 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
39954 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
39955 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39956 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
39957 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
39958 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
39959 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
39960 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
39961 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
39962 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
39963 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, | |
39964 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
39965 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
39966 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
39967 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
39968 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
39969 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39970 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39971 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
39972 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39973 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39974 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
39975 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
39976 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
39977 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39978 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39979 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
39980 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
39981 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
39982 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
39983 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
39984 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
39985 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
39986 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
39987 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
39988 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39989 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
39990 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
39991 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39992 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39993 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39994 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
39995 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
39996 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
39997 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
39998 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
39999 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40000 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
40001 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
40002 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40003 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40004 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
40005 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
40006 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
40007 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
40008 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
40009 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
40010 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
40011 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
40012 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
40013 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
40014 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40015 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40016 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
40017 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
40018 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
40019 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
40020 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
40021 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
40022 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
40023 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40024 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, |
40025 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40026 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, |
40027 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
40028 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
40029 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
40030 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
40031 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
40032 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40033 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40034 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, |
40035 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40036 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, |
40037 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
40038 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
40039 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
40040 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
40041 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
40042 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40043 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40044 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, |
40045 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40046 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, |
40047 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
40048 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
40049 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
40050 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40051 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
40052 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
40053 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
40054 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
40055 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
40056 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
40057 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
40058 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
40059 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
40060 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
40061 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
40062 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
40063 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
40064 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
40065 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
40066 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
40067 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
40068 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
40069 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
40070 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 40071 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40072 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, |
40073 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40074 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40075 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
40076 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
40077 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
40078 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
40079 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
40080 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
40081 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
40082 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
40083 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
40084 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
40085 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
40086 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
40087 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
40088 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
40089 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
40090 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
40091 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
40092 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
40093 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
40094 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
40095 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
40096 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
40097 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
40098 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
40099 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
40100 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
40101 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
40102 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
40103 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
40104 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
40105 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
40106 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
40107 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
40108 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40109 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40110 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
40111 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
40112 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40113 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40114 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
40115 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
40116 | { NULL, NULL } | |
40117 | }; | |
40118 | ||
40119 | ||
40120 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
40121 | ||
40122 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
40123 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
40124 | } | |
40125 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
40126 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
40127 | } | |
40128 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
40129 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40130 | } | |
40131 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
40132 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40133 | } | |
40134 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
40135 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
40136 | } | |
40137 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
40138 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40139 | } | |
40140 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
40141 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
40142 | } | |
40143 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
40144 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40145 | } | |
40146 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
40147 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40148 | } | |
40149 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
40150 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
40151 | } | |
40152 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
40153 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
40154 | } | |
40155 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
40156 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
40157 | } | |
40158 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
40159 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
40160 | } | |
40161 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
40162 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
40163 | } | |
40164 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
40165 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
40166 | } | |
40167 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
40168 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
40169 | } | |
40170 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
40171 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
40172 | } | |
40173 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
40174 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40175 | } | |
40176 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
40177 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
40178 | } | |
40179 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
40180 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40181 | } | |
40182 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
40183 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
40184 | } | |
40185 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
40186 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
40187 | } | |
40188 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
40189 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
40190 | } | |
40191 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
40192 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
40193 | } | |
40194 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
40195 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
40196 | } | |
40197 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
40198 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
40199 | } | |
40200 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
40201 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
40202 | } | |
40203 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
40204 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
40205 | } | |
40206 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
40207 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40208 | } | |
40209 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
40210 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
40211 | } | |
40212 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
40213 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
40214 | } | |
40215 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
40216 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
40217 | } | |
40218 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
40219 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
40220 | } | |
40221 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
40222 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
40223 | } | |
40224 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
40225 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
40226 | } | |
40227 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
40228 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40229 | } | |
40230 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
40231 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
40232 | } | |
40233 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
40234 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
40235 | } | |
40236 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
40237 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40238 | } | |
40239 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
40240 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40241 | } | |
40242 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
40243 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40244 | } | |
40245 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
40246 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
40247 | } | |
40248 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
40249 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
40250 | } | |
40251 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
40252 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40253 | } | |
40254 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
40255 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40256 | } | |
40257 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
40258 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40259 | } | |
40260 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
40261 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
40262 | } | |
40263 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
40264 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
40265 | } | |
40266 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
40267 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
40268 | } | |
40269 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
40270 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
40271 | } | |
40272 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
40273 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
40274 | } | |
40275 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
40276 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
40277 | } | |
40278 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
40279 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
40280 | } | |
40281 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
40282 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
40283 | } | |
40284 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
40285 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
40286 | } | |
40287 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
40288 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
40289 | } | |
40290 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
40291 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
40292 | } | |
40293 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
40294 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
40295 | } | |
40296 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
40297 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
40298 | } | |
40299 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
40300 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
40301 | } | |
40302 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
40303 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
40304 | } | |
40305 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
40306 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40307 | } | |
40308 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
40309 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
40310 | } | |
40311 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
40312 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
40313 | } | |
40314 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
40315 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
40316 | } | |
40317 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
40318 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40319 | } | |
40320 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
40321 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
40322 | } | |
40323 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
40324 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
40325 | } | |
40326 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
40327 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
40328 | } | |
40329 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
40330 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
40331 | } | |
40332 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
40333 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
40334 | } | |
40335 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
40336 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
40337 | } | |
40338 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
40339 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
40340 | } | |
40341 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
40342 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
40343 | } | |
40344 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
40345 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
40346 | } | |
40347 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
40348 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
40349 | } | |
40350 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
40351 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
40352 | } | |
40353 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
40354 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
40355 | } | |
40356 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
40357 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
40358 | } | |
40359 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
40360 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40361 | } | |
40362 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
40363 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
40364 | } | |
40365 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
40366 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
40367 | } | |
40368 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
40369 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
40370 | } | |
40371 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
40372 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
40373 | } | |
40374 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
40375 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
40376 | } | |
40377 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
40378 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
40379 | } | |
40380 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
40381 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
40382 | } | |
40383 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
40384 | return (void *)((wxObject *) ((wxSizer *) x)); | |
40385 | } | |
40386 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
40387 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
40388 | } | |
40389 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
40390 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40391 | } | |
40392 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
40393 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
40394 | } | |
40395 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
40396 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
40397 | } | |
40398 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
40399 | return (void *)((wxObject *) ((wxImage *) x)); | |
40400 | } | |
40401 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
40402 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
40403 | } | |
40404 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
40405 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40406 | } | |
40407 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
40408 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
40409 | } | |
40410 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
40411 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
40412 | } | |
40413 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
40414 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
40415 | } | |
41f1cec7 RD |
40416 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
40417 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
40418 | } | |
d14a1e28 RD |
40419 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
40420 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
40421 | } | |
40422 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
40423 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40424 | } | |
40425 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
40426 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
40427 | } | |
40428 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
40429 | return (void *)((wxObject *) ((wxEvent *) x)); | |
40430 | } | |
40431 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
40432 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
40433 | } | |
40434 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
40435 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
40436 | } | |
40437 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
40438 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
40439 | } | |
40440 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
40441 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
40442 | } | |
40443 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
40444 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
40445 | } | |
40446 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
40447 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
40448 | } | |
40449 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
40450 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40451 | } | |
40452 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
40453 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
40454 | } | |
40455 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
40456 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
40457 | } | |
40458 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
40459 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
40460 | } | |
40461 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
40462 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
40463 | } | |
40464 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
40465 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
40466 | } | |
40467 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
40468 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
40469 | } | |
40470 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
40471 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
40472 | } | |
40473 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
40474 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
40475 | } | |
40476 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
40477 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40478 | } | |
40479 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
40480 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
40481 | } | |
40482 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
40483 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
40484 | } | |
40485 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
40486 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
40487 | } | |
40488 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
40489 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
40490 | } | |
40491 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
40492 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
40493 | } | |
40494 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
40495 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
40496 | } | |
40497 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
40498 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
40499 | } | |
40500 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
40501 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
40502 | } | |
40503 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
40504 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40505 | } | |
40506 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
40507 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
40508 | } | |
40509 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
40510 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
40511 | } | |
40512 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
40513 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
40514 | } | |
40515 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
40516 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
40517 | } | |
40518 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
40519 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
40520 | } | |
40521 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
40522 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
40523 | } | |
40524 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
40525 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40526 | } | |
40527 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
40528 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
40529 | } | |
40530 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
40531 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
40532 | } | |
40533 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
40534 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
40535 | } | |
40536 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
40537 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
40538 | } | |
40539 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
40540 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
40541 | } | |
40542 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
40543 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
40544 | } | |
40545 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
40546 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
40547 | } | |
40548 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
40549 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40550 | } | |
40551 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
40552 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
40553 | } | |
40554 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
40555 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40556 | } | |
40557 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
40558 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40559 | } | |
40560 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
40561 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40562 | } | |
40563 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
40564 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
40565 | } | |
40566 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
40567 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
40568 | } | |
40569 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
40570 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
40571 | } | |
40572 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
40573 | return (void *)((wxWindow *) ((wxControl *) x)); | |
40574 | } | |
40575 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
40576 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
40577 | } | |
40578 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
40579 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
40580 | } | |
40581 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
40582 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40583 | } | |
40584 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
40585 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
40586 | } | |
40587 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
40588 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40589 | } | |
40590 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
40591 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40592 | } | |
40593 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
40594 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40595 | } | |
40596 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
40597 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40598 | } | |
40599 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
40600 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40601 | } | |
40602 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
40603 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40604 | } | |
40605 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
40606 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
40607 | } | |
40608 | static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0},{"_p_wxLayoutConstraints"},{0}}; | |
40609 | static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0},{"_p_wxRealPoint"},{0}}; | |
40610 | static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0},{"_p_wxSizerItem"},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem},{0}}; | |
40611 | static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0},{"_p_wxGBSizerItem"},{0}}; | |
40612 | static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0},{"_p_wxScrollEvent"},{0}}; | |
40613 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0},{"_p_wxIndividualLayoutConstraint"},{0}}; | |
40614 | 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}}; | |
40615 | static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0},{"_p_wxBoxSizer"},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer},{0}}; | |
40616 | static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0},{"_p_wxStaticBoxSizer"},{0}}; | |
40617 | static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0},{"_p_wxGridBagSizer"},{0}}; | |
40618 | static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0},{"_p_wxAcceleratorEntry"},{0}}; | |
40619 | static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0},{"_p_wxUpdateUIEvent"},{0}}; | |
40620 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
40621 | 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}}; | |
40622 | 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}}; | |
40623 | static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer},{"_p_wxFlexGridSizer"},{0}}; | |
40624 | static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0},{"_p_wxInitDialogEvent"},{0}}; | |
40625 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer},{"_p_wxItemContainer"},{0}}; | |
40626 | static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0},{"_p_wxNcPaintEvent"},{0}}; | |
40627 | static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0},{"_p_wxPaintEvent"},{0}}; | |
40628 | static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0},{"_p_wxSysColourChangedEvent"},{0}}; | |
40629 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0},{"_p_wxMouseCaptureChangedEvent"},{0}}; | |
40630 | static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0},{"_p_wxDisplayChangedEvent"},{0}}; | |
40631 | static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0},{"_p_wxPaletteChangedEvent"},{0}}; | |
40632 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}}; | |
40633 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
40634 | static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0},{"_p_wxMenuBarBase"},{0}}; | |
40635 | static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0},{"_p_wxSetCursorEvent"},{0}}; | |
40636 | static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0},{"_p_wxFSFile"},{0}}; | |
40637 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
40638 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
40639 | static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0},{"_p_wxPoint2D"},{0}}; | |
40640 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
40641 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
40642 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
40643 | static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0},{"_p_wxPySizer"},{0}}; | |
40644 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxNotifyEvent"},{0}}; | |
40645 | static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0},{"_p_wxPyEvent"},{0}}; | |
40646 | static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0},{"_p_wxPropagationDisabler"},{0}}; | |
40647 | static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0},{"_p_wxAppTraits"},{0}}; | |
40648 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
40649 | static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0},{"_p_wxShowEvent"},{0}}; | |
40650 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
d14a1e28 RD |
40651 | static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0},{"_p_wxIconizeEvent"},{0}}; |
40652 | static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0},{"_p_wxActivateEvent"},{0}}; | |
40653 | static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0},{"_p_wxMoveEvent"},{0}}; | |
40654 | static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0},{"_p_wxSizeEvent"},{0}}; | |
8edf1c75 | 40655 | static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0},{"_p_wxMaximizeEvent"},{0}}; |
d14a1e28 RD |
40656 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0},{"_p_wxQueryNewPaletteEvent"},{0}}; |
40657 | static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0},{"_p_wxWindowCreateEvent"},{0}}; | |
40658 | static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0},{"_p_wxIdleEvent"},{0}}; | |
40659 | static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0},{"_p_wxMenuItem"},{0}}; | |
40660 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
40661 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
40662 | static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0},{"_p_wxTIFFHandler"},{0}}; | |
40663 | static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0},{"_p_wxXPMHandler"},{0}}; | |
40664 | static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0},{"_p_wxPNMHandler"},{0}}; | |
40665 | static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0},{"_p_wxJPEGHandler"},{0}}; | |
40666 | static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0},{"_p_wxPCXHandler"},{0}}; | |
40667 | static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0},{"_p_wxGIFHandler"},{0}}; | |
40668 | static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0},{"_p_wxPNGHandler"},{0}}; | |
40669 | static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0},{"_p_wxANIHandler"},{0}}; | |
40670 | static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0},{"_p_wxMemoryFSHandler"},{0}}; | |
8edf1c75 | 40671 | static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0},{"_p_wxZipFSHandler"},{0}}; |
d14a1e28 RD |
40672 | 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}}; |
40673 | static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0},{"_p_wxCURHandler"},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler},{0}}; | |
40674 | 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}}; | |
40675 | 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}}; | |
40676 | 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}}; | |
40677 | 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}}; | |
40678 | static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0},{"_p_wxPyFileSystemHandler"},{0}}; | |
40679 | static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0},{"_p_wxInternetFSHandler"},{0}}; | |
d14a1e28 RD |
40680 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; |
40681 | static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0},{"_p_wxGBSpan"},{0}}; | |
40682 | static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0},{"_p_wxPropagateOnce"},{0}}; | |
40683 | static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0},{"_p_wxAcceleratorTable"},{0}}; | |
8edf1c75 | 40684 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
40685 | static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0},{"_p_wxGBPosition"},{0}}; |
40686 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}}; | |
40687 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
40688 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0},{"_p_wxScrollWinEvent"},{0}}; | |
40689 | static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0},{"_p_wxImageHistogram"},{0}}; | |
40690 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
40691 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
40692 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
41f1cec7 | 40693 | 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 |
40694 | static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0},{"_p_wxPyInputStream"},{0}}; |
40695 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; | |
40696 | static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}}; | |
40697 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
40698 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; | |
40699 | static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0},{"_p_wxNavigationKeyEvent"},{0}}; | |
40700 | static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0},{"_p_wxWindowDestroyEvent"},{0}}; | |
40701 | 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}}; | |
40702 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0},{"_p_wxMenuBar"},{0}}; | |
40703 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
40704 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}}; | |
40705 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
40706 | static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0},{"_p_wxMenuEvent"},{0}}; | |
40707 | static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0},{"_p_wxContextMenuEvent"},{0}}; | |
40708 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}}; | |
40709 | static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0},{"_p_wxCloseEvent"},{0}}; | |
40710 | static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0},{"_p_wxEraseEvent"},{0}}; | |
40711 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
40712 | static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0},{"_p_wxPyApp"},{0}}; | |
40713 | 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}}; | |
40714 | static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0},{"_p_wxPyCommandEvent"},{0}}; | |
44127b65 | 40715 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0},{"_p_wxPyDropTarget"},{0}}; |
d14a1e28 RD |
40716 | static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0},{"_p_wxChildFocusEvent"},{0}}; |
40717 | static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0},{"_p_wxFocusEvent"},{0}}; | |
40718 | static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0},{"_p_wxDropFilesEvent"},{0}}; | |
40719 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxControlWithItems"},{0}}; | |
40720 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
40721 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
40722 | static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0},{"_p_wxPyValidator"},{0}}; | |
40723 | ||
40724 | static swig_type_info *swig_types_initial[] = { | |
40725 | _swigt__p_wxLayoutConstraints, | |
40726 | _swigt__p_wxRealPoint, | |
40727 | _swigt__p_wxSizerItem, | |
40728 | _swigt__p_wxGBSizerItem, | |
40729 | _swigt__p_wxScrollEvent, | |
40730 | _swigt__p_wxIndividualLayoutConstraint, | |
40731 | _swigt__p_wxSizer, | |
40732 | _swigt__p_wxBoxSizer, | |
40733 | _swigt__p_wxStaticBoxSizer, | |
40734 | _swigt__p_wxGridBagSizer, | |
40735 | _swigt__p_wxAcceleratorEntry, | |
40736 | _swigt__p_wxUpdateUIEvent, | |
40737 | _swigt__p_wxMenu, | |
40738 | _swigt__p_wxEvent, | |
40739 | _swigt__p_wxGridSizer, | |
40740 | _swigt__p_wxFlexGridSizer, | |
40741 | _swigt__p_wxInitDialogEvent, | |
40742 | _swigt__p_wxItemContainer, | |
40743 | _swigt__p_wxNcPaintEvent, | |
40744 | _swigt__p_wxPaintEvent, | |
40745 | _swigt__p_wxSysColourChangedEvent, | |
40746 | _swigt__p_wxMouseCaptureChangedEvent, | |
40747 | _swigt__p_wxDisplayChangedEvent, | |
40748 | _swigt__p_wxPaletteChangedEvent, | |
40749 | _swigt__p_wxControl, | |
40750 | _swigt__p_wxFont, | |
40751 | _swigt__p_wxMenuBarBase, | |
40752 | _swigt__p_wxSetCursorEvent, | |
40753 | _swigt__p_wxFSFile, | |
40754 | _swigt__p_wxCaret, | |
40755 | _swigt__p_wxRegion, | |
40756 | _swigt__p_wxPoint2D, | |
40757 | _swigt__p_int, | |
40758 | _swigt__p_wxSize, | |
40759 | _swigt__p_wxDC, | |
40760 | _swigt__p_wxPySizer, | |
40761 | _swigt__p_wxNotifyEvent, | |
40762 | _swigt__p_wxPyEvent, | |
40763 | _swigt__p_wxPropagationDisabler, | |
40764 | _swigt__p_wxAppTraits, | |
40765 | _swigt__p_wxArrayString, | |
40766 | _swigt__p_wxShowEvent, | |
40767 | _swigt__p_wxToolTip, | |
d14a1e28 RD |
40768 | _swigt__p_wxIconizeEvent, |
40769 | _swigt__p_wxActivateEvent, | |
40770 | _swigt__p_wxMoveEvent, | |
40771 | _swigt__p_wxSizeEvent, | |
8edf1c75 | 40772 | _swigt__p_wxMaximizeEvent, |
d14a1e28 RD |
40773 | _swigt__p_wxQueryNewPaletteEvent, |
40774 | _swigt__p_wxWindowCreateEvent, | |
40775 | _swigt__p_wxIdleEvent, | |
40776 | _swigt__p_wxMenuItem, | |
40777 | _swigt__p_wxStaticBox, | |
40778 | _swigt__p_long, | |
40779 | _swigt__p_wxTIFFHandler, | |
40780 | _swigt__p_wxXPMHandler, | |
40781 | _swigt__p_wxPNMHandler, | |
40782 | _swigt__p_wxJPEGHandler, | |
40783 | _swigt__p_wxPCXHandler, | |
40784 | _swigt__p_wxGIFHandler, | |
40785 | _swigt__p_wxPNGHandler, | |
40786 | _swigt__p_wxANIHandler, | |
40787 | _swigt__p_wxMemoryFSHandler, | |
8edf1c75 | 40788 | _swigt__p_wxZipFSHandler, |
d14a1e28 RD |
40789 | _swigt__p_wxEvtHandler, |
40790 | _swigt__p_wxCURHandler, | |
40791 | _swigt__p_wxICOHandler, | |
40792 | _swigt__p_wxBMPHandler, | |
40793 | _swigt__p_wxImageHandler, | |
40794 | _swigt__p_wxFileSystemHandler, | |
40795 | _swigt__p_wxPyFileSystemHandler, | |
40796 | _swigt__p_wxInternetFSHandler, | |
d14a1e28 RD |
40797 | _swigt__p_wxRect, |
40798 | _swigt__p_wxGBSpan, | |
40799 | _swigt__p_wxPropagateOnce, | |
40800 | _swigt__p_wxAcceleratorTable, | |
8edf1c75 | 40801 | _swigt__p_char, |
d14a1e28 RD |
40802 | _swigt__p_wxGBPosition, |
40803 | _swigt__p_wxImage, | |
40804 | _swigt__p_wxFrame, | |
40805 | _swigt__p_wxScrollWinEvent, | |
40806 | _swigt__p_wxImageHistogram, | |
40807 | _swigt__p_byte, | |
40808 | _swigt__p_wxPoint, | |
40809 | _swigt__p_wxCursor, | |
40810 | _swigt__p_wxObject, | |
40811 | _swigt__p_wxPyInputStream, | |
40812 | _swigt__p_wxOutputStream, | |
40813 | _swigt__p_wxInputStream, | |
40814 | _swigt__p_wxDateTime, | |
40815 | _swigt__p_wxKeyEvent, | |
40816 | _swigt__p_wxNavigationKeyEvent, | |
40817 | _swigt__p_wxWindowDestroyEvent, | |
40818 | _swigt__p_wxWindow, | |
40819 | _swigt__p_wxMenuBar, | |
40820 | _swigt__p_wxString, | |
40821 | _swigt__p_wxFileSystem, | |
40822 | _swigt__p_wxBitmap, | |
40823 | _swigt__p_wxMenuEvent, | |
40824 | _swigt__p_wxContextMenuEvent, | |
40825 | _swigt__p_unsigned_char, | |
40826 | _swigt__p_wxCloseEvent, | |
40827 | _swigt__p_wxEraseEvent, | |
40828 | _swigt__p_wxMouseEvent, | |
40829 | _swigt__p_wxPyApp, | |
40830 | _swigt__p_wxCommandEvent, | |
40831 | _swigt__p_wxPyCommandEvent, | |
44127b65 | 40832 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
40833 | _swigt__p_wxChildFocusEvent, |
40834 | _swigt__p_wxFocusEvent, | |
40835 | _swigt__p_wxDropFilesEvent, | |
40836 | _swigt__p_wxControlWithItems, | |
40837 | _swigt__p_wxColour, | |
40838 | _swigt__p_wxValidator, | |
40839 | _swigt__p_wxPyValidator, | |
40840 | 0 | |
40841 | }; | |
40842 | ||
40843 | ||
40844 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
40845 | ||
40846 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
40847 | {0}}; |
40848 | ||
40849 | #ifdef __cplusplus | |
40850 | } | |
40851 | #endif | |
40852 | ||
40853 | #ifdef __cplusplus | |
40854 | extern "C" | |
40855 | #endif | |
40856 | SWIGEXPORT(void) SWIG_init(void) { | |
40857 | static PyObject *SWIG_globals = 0; | |
40858 | static int typeinit = 0; | |
40859 | PyObject *m, *d; | |
40860 | int i; | |
40861 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
40862 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
40863 | d = PyModule_GetDict(m); | |
40864 | ||
40865 | if (!typeinit) { | |
40866 | for (i = 0; swig_types_initial[i]; i++) { | |
40867 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
40868 | } | |
40869 | typeinit = 1; | |
40870 | } | |
40871 | SWIG_InstallConstants(d,swig_const_table); | |
40872 | ||
40873 | ||
40874 | #ifndef wxPyUSE_EXPORT | |
40875 | // Make our API structure a CObject so other modules can import it | |
40876 | // from this module. | |
40877 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
40878 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
40879 | Py_XDECREF(cobj); | |
40880 | #endif | |
40881 | ||
8edf1c75 RD |
40882 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_PyObj_FromInt((int)wxNOT_FOUND)); |
40883 | PyDict_SetItemString(d,"VSCROLL", SWIG_PyObj_FromInt((int)wxVSCROLL)); | |
40884 | PyDict_SetItemString(d,"HSCROLL", SWIG_PyObj_FromInt((int)wxHSCROLL)); | |
40885 | PyDict_SetItemString(d,"CAPTION", SWIG_PyObj_FromInt((int)wxCAPTION)); | |
40886 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_PyObj_FromInt((int)wxDOUBLE_BORDER)); | |
40887 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_PyObj_FromInt((int)wxSUNKEN_BORDER)); | |
40888 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_PyObj_FromInt((int)wxRAISED_BORDER)); | |
40889 | PyDict_SetItemString(d,"BORDER", SWIG_PyObj_FromInt((int)wxBORDER)); | |
40890 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_PyObj_FromInt((int)wxSIMPLE_BORDER)); | |
40891 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_PyObj_FromInt((int)wxSTATIC_BORDER)); | |
40892 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_PyObj_FromInt((int)wxTRANSPARENT_WINDOW)); | |
40893 | PyDict_SetItemString(d,"NO_BORDER", SWIG_PyObj_FromInt((int)wxNO_BORDER)); | |
40894 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_PyObj_FromInt((int)wxUSER_COLOURS)); | |
40895 | PyDict_SetItemString(d,"NO_3D", SWIG_PyObj_FromInt((int)wxNO_3D)); | |
40896 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_PyObj_FromInt((int)wxTAB_TRAVERSAL)); | |
40897 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_PyObj_FromInt((int)wxWANTS_CHARS)); | |
40898 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_PyObj_FromInt((int)wxPOPUP_WINDOW)); | |
40899 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_PyObj_FromInt((int)wxCENTER_FRAME)); | |
40900 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_PyObj_FromInt((int)wxCENTRE_ON_SCREEN)); | |
40901 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_PyObj_FromInt((int)wxCENTER_ON_SCREEN)); | |
40902 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_PyObj_FromInt((int)wxSTAY_ON_TOP)); | |
40903 | PyDict_SetItemString(d,"ICONIZE", SWIG_PyObj_FromInt((int)wxICONIZE)); | |
40904 | PyDict_SetItemString(d,"MINIMIZE", SWIG_PyObj_FromInt((int)wxMINIMIZE)); | |
40905 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_PyObj_FromInt((int)wxMAXIMIZE)); | |
40906 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_PyObj_FromInt((int)wxCLOSE_BOX)); | |
40907 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_PyObj_FromInt((int)wxTHICK_FRAME)); | |
40908 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_PyObj_FromInt((int)wxSYSTEM_MENU)); | |
40909 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_PyObj_FromInt((int)wxMINIMIZE_BOX)); | |
40910 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_PyObj_FromInt((int)wxMAXIMIZE_BOX)); | |
40911 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_PyObj_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
40912 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_PyObj_FromInt((int)wxTINY_CAPTION_VERT)); | |
40913 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_PyObj_FromInt((int)wxRESIZE_BOX)); | |
40914 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_PyObj_FromInt((int)wxRESIZE_BORDER)); | |
40915 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_PyObj_FromInt((int)wxDIALOG_MODAL)); | |
40916 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_PyObj_FromInt((int)wxDIALOG_MODELESS)); | |
40917 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_PyObj_FromInt((int)wxDIALOG_NO_PARENT)); | |
40918 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_PyObj_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
40919 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_PyObj_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
40920 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_PyObj_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
40921 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_PyObj_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
40922 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_PyObj_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
40923 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_PyObj_FromInt((int)wxFRAME_NO_TASKBAR)); | |
40924 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_PyObj_FromInt((int)wxFRAME_SHAPED)); | |
40925 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_PyObj_FromInt((int)wxED_CLIENT_MARGIN)); | |
40926 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_PyObj_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
40927 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_PyObj_FromInt((int)wxED_BUTTONS_RIGHT)); | |
40928 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_PyObj_FromInt((int)wxED_STATIC_LINE)); | |
40929 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_PyObj_FromInt((int)wxEXT_DIALOG_STYLE)); | |
40930 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_PyObj_FromInt((int)wxCLIP_CHILDREN)); | |
40931 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_PyObj_FromInt((int)wxCLIP_SIBLINGS)); | |
40932 | PyDict_SetItemString(d,"RETAINED", SWIG_PyObj_FromInt((int)wxRETAINED)); | |
40933 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_PyObj_FromInt((int)wxBACKINGSTORE)); | |
40934 | PyDict_SetItemString(d,"COLOURED", SWIG_PyObj_FromInt((int)wxCOLOURED)); | |
40935 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_PyObj_FromInt((int)wxFIXED_LENGTH)); | |
40936 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_PyObj_FromInt((int)wxLB_NEEDED_SB)); | |
40937 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_PyObj_FromInt((int)wxLB_ALWAYS_SB)); | |
40938 | PyDict_SetItemString(d,"LB_SORT", SWIG_PyObj_FromInt((int)wxLB_SORT)); | |
40939 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_PyObj_FromInt((int)wxLB_SINGLE)); | |
40940 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_PyObj_FromInt((int)wxLB_MULTIPLE)); | |
40941 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_PyObj_FromInt((int)wxLB_EXTENDED)); | |
40942 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_PyObj_FromInt((int)wxLB_OWNERDRAW)); | |
40943 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_PyObj_FromInt((int)wxLB_HSCROLL)); | |
40944 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxPROCESS_ENTER)); | |
40945 | PyDict_SetItemString(d,"PASSWORD", SWIG_PyObj_FromInt((int)wxPASSWORD)); | |
40946 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_PyObj_FromInt((int)wxCB_SIMPLE)); | |
40947 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_PyObj_FromInt((int)wxCB_DROPDOWN)); | |
40948 | PyDict_SetItemString(d,"CB_SORT", SWIG_PyObj_FromInt((int)wxCB_SORT)); | |
40949 | PyDict_SetItemString(d,"CB_READONLY", SWIG_PyObj_FromInt((int)wxCB_READONLY)); | |
40950 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxRA_HORIZONTAL)); | |
40951 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_PyObj_FromInt((int)wxRA_VERTICAL)); | |
40952 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_PyObj_FromInt((int)wxRA_SPECIFY_ROWS)); | |
40953 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_PyObj_FromInt((int)wxRA_SPECIFY_COLS)); | |
40954 | PyDict_SetItemString(d,"RB_GROUP", SWIG_PyObj_FromInt((int)wxRB_GROUP)); | |
40955 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_PyObj_FromInt((int)wxRB_SINGLE)); | |
40956 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSL_HORIZONTAL)); | |
40957 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_PyObj_FromInt((int)wxSL_VERTICAL)); | |
40958 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_PyObj_FromInt((int)wxSL_AUTOTICKS)); | |
40959 | PyDict_SetItemString(d,"SL_LABELS", SWIG_PyObj_FromInt((int)wxSL_LABELS)); | |
40960 | PyDict_SetItemString(d,"SL_LEFT", SWIG_PyObj_FromInt((int)wxSL_LEFT)); | |
40961 | PyDict_SetItemString(d,"SL_TOP", SWIG_PyObj_FromInt((int)wxSL_TOP)); | |
40962 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_PyObj_FromInt((int)wxSL_RIGHT)); | |
40963 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_PyObj_FromInt((int)wxSL_BOTTOM)); | |
40964 | PyDict_SetItemString(d,"SL_BOTH", SWIG_PyObj_FromInt((int)wxSL_BOTH)); | |
40965 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_PyObj_FromInt((int)wxSL_SELRANGE)); | |
40966 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSB_HORIZONTAL)); | |
40967 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_PyObj_FromInt((int)wxSB_VERTICAL)); | |
40968 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_PyObj_FromInt((int)wxST_SIZEGRIP)); | |
40969 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_PyObj_FromInt((int)wxST_NO_AUTORESIZE)); | |
40970 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_PyObj_FromInt((int)wxFLOOD_SURFACE)); | |
40971 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_PyObj_FromInt((int)wxFLOOD_BORDER)); | |
40972 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_PyObj_FromInt((int)wxODDEVEN_RULE)); | |
40973 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_PyObj_FromInt((int)wxWINDING_RULE)); | |
40974 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_PyObj_FromInt((int)wxTOOL_TOP)); | |
40975 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_PyObj_FromInt((int)wxTOOL_BOTTOM)); | |
40976 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_PyObj_FromInt((int)wxTOOL_LEFT)); | |
40977 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_PyObj_FromInt((int)wxTOOL_RIGHT)); | |
40978 | PyDict_SetItemString(d,"OK", SWIG_PyObj_FromInt((int)wxOK)); | |
40979 | PyDict_SetItemString(d,"YES_NO", SWIG_PyObj_FromInt((int)wxYES_NO)); | |
40980 | PyDict_SetItemString(d,"CANCEL", SWIG_PyObj_FromInt((int)wxCANCEL)); | |
40981 | PyDict_SetItemString(d,"YES", SWIG_PyObj_FromInt((int)wxYES)); | |
40982 | PyDict_SetItemString(d,"NO", SWIG_PyObj_FromInt((int)wxNO)); | |
40983 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_PyObj_FromInt((int)wxNO_DEFAULT)); | |
40984 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_PyObj_FromInt((int)wxYES_DEFAULT)); | |
40985 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_PyObj_FromInt((int)wxICON_EXCLAMATION)); | |
40986 | PyDict_SetItemString(d,"ICON_HAND", SWIG_PyObj_FromInt((int)wxICON_HAND)); | |
40987 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_PyObj_FromInt((int)wxICON_QUESTION)); | |
40988 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_PyObj_FromInt((int)wxICON_INFORMATION)); | |
40989 | PyDict_SetItemString(d,"ICON_STOP", SWIG_PyObj_FromInt((int)wxICON_STOP)); | |
40990 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_PyObj_FromInt((int)wxICON_ASTERISK)); | |
40991 | PyDict_SetItemString(d,"ICON_MASK", SWIG_PyObj_FromInt((int)wxICON_MASK)); | |
40992 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_PyObj_FromInt((int)wxICON_WARNING)); | |
40993 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_PyObj_FromInt((int)wxICON_ERROR)); | |
40994 | PyDict_SetItemString(d,"FORWARD", SWIG_PyObj_FromInt((int)wxFORWARD)); | |
40995 | PyDict_SetItemString(d,"BACKWARD", SWIG_PyObj_FromInt((int)wxBACKWARD)); | |
40996 | PyDict_SetItemString(d,"RESET", SWIG_PyObj_FromInt((int)wxRESET)); | |
40997 | PyDict_SetItemString(d,"HELP", SWIG_PyObj_FromInt((int)wxHELP)); | |
40998 | PyDict_SetItemString(d,"MORE", SWIG_PyObj_FromInt((int)wxMORE)); | |
40999 | PyDict_SetItemString(d,"SETUP", SWIG_PyObj_FromInt((int)wxSETUP)); | |
41000 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_PyObj_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
41001 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_PyObj_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
41002 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_PyObj_FromInt((int)wxSIZE_AUTO)); | |
41003 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_PyObj_FromInt((int)wxSIZE_USE_EXISTING)); | |
41004 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_PyObj_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
41005 | PyDict_SetItemString(d,"PORTRAIT", SWIG_PyObj_FromInt((int)wxPORTRAIT)); | |
41006 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_PyObj_FromInt((int)wxLANDSCAPE)); | |
41007 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
41008 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
41009 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_LOW)); | |
41010 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
41011 | PyDict_SetItemString(d,"ID_ANY", SWIG_PyObj_FromInt((int)wxID_ANY)); | |
41012 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_PyObj_FromInt((int)wxID_SEPARATOR)); | |
41013 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_PyObj_FromInt((int)wxID_LOWEST)); | |
41014 | PyDict_SetItemString(d,"ID_OPEN", SWIG_PyObj_FromInt((int)wxID_OPEN)); | |
41015 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_PyObj_FromInt((int)wxID_CLOSE)); | |
41016 | PyDict_SetItemString(d,"ID_NEW", SWIG_PyObj_FromInt((int)wxID_NEW)); | |
41017 | PyDict_SetItemString(d,"ID_SAVE", SWIG_PyObj_FromInt((int)wxID_SAVE)); | |
41018 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_PyObj_FromInt((int)wxID_SAVEAS)); | |
41019 | PyDict_SetItemString(d,"ID_REVERT", SWIG_PyObj_FromInt((int)wxID_REVERT)); | |
41020 | PyDict_SetItemString(d,"ID_EXIT", SWIG_PyObj_FromInt((int)wxID_EXIT)); | |
41021 | PyDict_SetItemString(d,"ID_UNDO", SWIG_PyObj_FromInt((int)wxID_UNDO)); | |
41022 | PyDict_SetItemString(d,"ID_REDO", SWIG_PyObj_FromInt((int)wxID_REDO)); | |
41023 | PyDict_SetItemString(d,"ID_HELP", SWIG_PyObj_FromInt((int)wxID_HELP)); | |
41024 | PyDict_SetItemString(d,"ID_PRINT", SWIG_PyObj_FromInt((int)wxID_PRINT)); | |
41025 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_PyObj_FromInt((int)wxID_PRINT_SETUP)); | |
41026 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_PyObj_FromInt((int)wxID_PREVIEW)); | |
41027 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_PyObj_FromInt((int)wxID_ABOUT)); | |
41028 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_PyObj_FromInt((int)wxID_HELP_CONTENTS)); | |
41029 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_PyObj_FromInt((int)wxID_HELP_COMMANDS)); | |
41030 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_PyObj_FromInt((int)wxID_HELP_PROCEDURES)); | |
41031 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_PyObj_FromInt((int)wxID_HELP_CONTEXT)); | |
41032 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_PyObj_FromInt((int)wxID_CLOSE_ALL)); | |
41033 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_PyObj_FromInt((int)wxID_PREFERENCES)); | |
41034 | PyDict_SetItemString(d,"ID_CUT", SWIG_PyObj_FromInt((int)wxID_CUT)); | |
41035 | PyDict_SetItemString(d,"ID_COPY", SWIG_PyObj_FromInt((int)wxID_COPY)); | |
41036 | PyDict_SetItemString(d,"ID_PASTE", SWIG_PyObj_FromInt((int)wxID_PASTE)); | |
41037 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_PyObj_FromInt((int)wxID_CLEAR)); | |
41038 | PyDict_SetItemString(d,"ID_FIND", SWIG_PyObj_FromInt((int)wxID_FIND)); | |
41039 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_PyObj_FromInt((int)wxID_DUPLICATE)); | |
41040 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_PyObj_FromInt((int)wxID_SELECTALL)); | |
41041 | PyDict_SetItemString(d,"ID_DELETE", SWIG_PyObj_FromInt((int)wxID_DELETE)); | |
41042 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_PyObj_FromInt((int)wxID_REPLACE)); | |
41043 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_PyObj_FromInt((int)wxID_REPLACE_ALL)); | |
41044 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_PyObj_FromInt((int)wxID_PROPERTIES)); | |
41045 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_PyObj_FromInt((int)wxID_VIEW_DETAILS)); | |
41046 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_PyObj_FromInt((int)wxID_VIEW_LARGEICONS)); | |
41047 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_PyObj_FromInt((int)wxID_VIEW_SMALLICONS)); | |
41048 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_PyObj_FromInt((int)wxID_VIEW_LIST)); | |
41049 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTDATE)); | |
41050 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTNAME)); | |
41051 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTSIZE)); | |
41052 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTTYPE)); | |
41053 | PyDict_SetItemString(d,"ID_FILE1", SWIG_PyObj_FromInt((int)wxID_FILE1)); | |
41054 | PyDict_SetItemString(d,"ID_FILE2", SWIG_PyObj_FromInt((int)wxID_FILE2)); | |
41055 | PyDict_SetItemString(d,"ID_FILE3", SWIG_PyObj_FromInt((int)wxID_FILE3)); | |
41056 | PyDict_SetItemString(d,"ID_FILE4", SWIG_PyObj_FromInt((int)wxID_FILE4)); | |
41057 | PyDict_SetItemString(d,"ID_FILE5", SWIG_PyObj_FromInt((int)wxID_FILE5)); | |
41058 | PyDict_SetItemString(d,"ID_FILE6", SWIG_PyObj_FromInt((int)wxID_FILE6)); | |
41059 | PyDict_SetItemString(d,"ID_FILE7", SWIG_PyObj_FromInt((int)wxID_FILE7)); | |
41060 | PyDict_SetItemString(d,"ID_FILE8", SWIG_PyObj_FromInt((int)wxID_FILE8)); | |
41061 | PyDict_SetItemString(d,"ID_FILE9", SWIG_PyObj_FromInt((int)wxID_FILE9)); | |
41062 | PyDict_SetItemString(d,"ID_OK", SWIG_PyObj_FromInt((int)wxID_OK)); | |
41063 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_PyObj_FromInt((int)wxID_CANCEL)); | |
41064 | PyDict_SetItemString(d,"ID_APPLY", SWIG_PyObj_FromInt((int)wxID_APPLY)); | |
41065 | PyDict_SetItemString(d,"ID_YES", SWIG_PyObj_FromInt((int)wxID_YES)); | |
41066 | PyDict_SetItemString(d,"ID_NO", SWIG_PyObj_FromInt((int)wxID_NO)); | |
41067 | PyDict_SetItemString(d,"ID_STATIC", SWIG_PyObj_FromInt((int)wxID_STATIC)); | |
41068 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_PyObj_FromInt((int)wxID_FORWARD)); | |
41069 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_PyObj_FromInt((int)wxID_BACKWARD)); | |
41070 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_PyObj_FromInt((int)wxID_DEFAULT)); | |
41071 | PyDict_SetItemString(d,"ID_MORE", SWIG_PyObj_FromInt((int)wxID_MORE)); | |
41072 | PyDict_SetItemString(d,"ID_SETUP", SWIG_PyObj_FromInt((int)wxID_SETUP)); | |
41073 | PyDict_SetItemString(d,"ID_RESET", SWIG_PyObj_FromInt((int)wxID_RESET)); | |
41074 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_PyObj_FromInt((int)wxID_CONTEXT_HELP)); | |
41075 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_PyObj_FromInt((int)wxID_YESTOALL)); | |
41076 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_PyObj_FromInt((int)wxID_NOTOALL)); | |
41077 | PyDict_SetItemString(d,"ID_ABORT", SWIG_PyObj_FromInt((int)wxID_ABORT)); | |
41078 | PyDict_SetItemString(d,"ID_RETRY", SWIG_PyObj_FromInt((int)wxID_RETRY)); | |
41079 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_PyObj_FromInt((int)wxID_IGNORE)); | |
41080 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_PyObj_FromInt((int)wxID_HIGHEST)); | |
41081 | PyDict_SetItemString(d,"OPEN", SWIG_PyObj_FromInt((int)wxOPEN)); | |
41082 | PyDict_SetItemString(d,"SAVE", SWIG_PyObj_FromInt((int)wxSAVE)); | |
41083 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_PyObj_FromInt((int)wxHIDE_READONLY)); | |
41084 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_PyObj_FromInt((int)wxOVERWRITE_PROMPT)); | |
41085 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_PyObj_FromInt((int)wxFILE_MUST_EXIST)); | |
41086 | PyDict_SetItemString(d,"MULTIPLE", SWIG_PyObj_FromInt((int)wxMULTIPLE)); | |
41087 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_PyObj_FromInt((int)wxCHANGE_DIR)); | |
41088 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_PyObj_FromInt((int)wxACCEL_ALT)); | |
41089 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_PyObj_FromInt((int)wxACCEL_CTRL)); | |
41090 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_PyObj_FromInt((int)wxACCEL_SHIFT)); | |
41091 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_PyObj_FromInt((int)wxACCEL_NORMAL)); | |
41092 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_PyObj_FromInt((int)wxPD_AUTO_HIDE)); | |
41093 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_PyObj_FromInt((int)wxPD_APP_MODAL)); | |
41094 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_PyObj_FromInt((int)wxPD_CAN_ABORT)); | |
41095 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_PyObj_FromInt((int)wxPD_ELAPSED_TIME)); | |
41096 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_PyObj_FromInt((int)wxPD_ESTIMATED_TIME)); | |
41097 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_PyObj_FromInt((int)wxPD_REMAINING_TIME)); | |
41098 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_PyObj_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
41099 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxDD_DEFAULT_STYLE)); | |
41100 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_PyObj_FromInt((int)wxMENU_TEAROFF)); | |
41101 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_PyObj_FromInt((int)wxMB_DOCKABLE)); | |
41102 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_PyObj_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
41103 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_PyObj_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
41104 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_PyObj_FromInt((int)wxLI_HORIZONTAL)); | |
41105 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_PyObj_FromInt((int)wxLI_VERTICAL)); | |
41106 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_PyObj_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
41107 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_PyObj_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
41108 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_PyObj_FromInt((int)wxWS_EX_TRANSIENT)); | |
41109 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_PyObj_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
41110 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_PyObj_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
41111 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_PyObj_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
41112 | PyDict_SetItemString(d,"MM_TEXT", SWIG_PyObj_FromInt((int)wxMM_TEXT)); | |
41113 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_PyObj_FromInt((int)wxMM_LOMETRIC)); | |
41114 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_PyObj_FromInt((int)wxMM_HIMETRIC)); | |
41115 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_PyObj_FromInt((int)wxMM_LOENGLISH)); | |
41116 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_PyObj_FromInt((int)wxMM_HIENGLISH)); | |
41117 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_PyObj_FromInt((int)wxMM_TWIPS)); | |
41118 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_PyObj_FromInt((int)wxMM_ISOTROPIC)); | |
41119 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_PyObj_FromInt((int)wxMM_ANISOTROPIC)); | |
41120 | PyDict_SetItemString(d,"MM_POINTS", SWIG_PyObj_FromInt((int)wxMM_POINTS)); | |
41121 | PyDict_SetItemString(d,"MM_METRIC", SWIG_PyObj_FromInt((int)wxMM_METRIC)); | |
41122 | PyDict_SetItemString(d,"CENTRE", SWIG_PyObj_FromInt((int)wxCENTRE)); | |
41123 | PyDict_SetItemString(d,"CENTER", SWIG_PyObj_FromInt((int)wxCENTER)); | |
41124 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_PyObj_FromInt((int)wxHORIZONTAL)); | |
41125 | PyDict_SetItemString(d,"VERTICAL", SWIG_PyObj_FromInt((int)wxVERTICAL)); | |
41126 | PyDict_SetItemString(d,"BOTH", SWIG_PyObj_FromInt((int)wxBOTH)); | |
41127 | PyDict_SetItemString(d,"LEFT", SWIG_PyObj_FromInt((int)wxLEFT)); | |
41128 | PyDict_SetItemString(d,"RIGHT", SWIG_PyObj_FromInt((int)wxRIGHT)); | |
41129 | PyDict_SetItemString(d,"UP", SWIG_PyObj_FromInt((int)wxUP)); | |
41130 | PyDict_SetItemString(d,"DOWN", SWIG_PyObj_FromInt((int)wxDOWN)); | |
41131 | PyDict_SetItemString(d,"TOP", SWIG_PyObj_FromInt((int)wxTOP)); | |
41132 | PyDict_SetItemString(d,"BOTTOM", SWIG_PyObj_FromInt((int)wxBOTTOM)); | |
41133 | PyDict_SetItemString(d,"NORTH", SWIG_PyObj_FromInt((int)wxNORTH)); | |
41134 | PyDict_SetItemString(d,"SOUTH", SWIG_PyObj_FromInt((int)wxSOUTH)); | |
41135 | PyDict_SetItemString(d,"WEST", SWIG_PyObj_FromInt((int)wxWEST)); | |
41136 | PyDict_SetItemString(d,"EAST", SWIG_PyObj_FromInt((int)wxEAST)); | |
41137 | PyDict_SetItemString(d,"ALL", SWIG_PyObj_FromInt((int)wxALL)); | |
41138 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_PyObj_FromInt((int)wxALIGN_NOT)); | |
41139 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
41140 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
41141 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxALIGN_LEFT)); | |
41142 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_PyObj_FromInt((int)wxALIGN_TOP)); | |
41143 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_PyObj_FromInt((int)wxALIGN_RIGHT)); | |
41144 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_PyObj_FromInt((int)wxALIGN_BOTTOM)); | |
41145 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
41146 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
41147 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_PyObj_FromInt((int)wxALIGN_CENTER)); | |
41148 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE)); | |
41149 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_PyObj_FromInt((int)wxALIGN_MASK)); | |
41150 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_PyObj_FromInt((int)wxSTRETCH_NOT)); | |
41151 | PyDict_SetItemString(d,"SHRINK", SWIG_PyObj_FromInt((int)wxSHRINK)); | |
41152 | PyDict_SetItemString(d,"GROW", SWIG_PyObj_FromInt((int)wxGROW)); | |
41153 | PyDict_SetItemString(d,"EXPAND", SWIG_PyObj_FromInt((int)wxEXPAND)); | |
41154 | PyDict_SetItemString(d,"SHAPED", SWIG_PyObj_FromInt((int)wxSHAPED)); | |
41155 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_PyObj_FromInt((int)wxADJUST_MINSIZE)); | |
41156 | PyDict_SetItemString(d,"TILE", SWIG_PyObj_FromInt((int)wxTILE)); | |
41157 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_PyObj_FromInt((int)wxBORDER_DEFAULT)); | |
41158 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_PyObj_FromInt((int)wxBORDER_NONE)); | |
41159 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_PyObj_FromInt((int)wxBORDER_STATIC)); | |
41160 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_PyObj_FromInt((int)wxBORDER_SIMPLE)); | |
41161 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_PyObj_FromInt((int)wxBORDER_RAISED)); | |
41162 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_PyObj_FromInt((int)wxBORDER_SUNKEN)); | |
41163 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_PyObj_FromInt((int)wxBORDER_DOUBLE)); | |
41164 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_PyObj_FromInt((int)wxBORDER_MASK)); | |
41165 | PyDict_SetItemString(d,"DEFAULT", SWIG_PyObj_FromInt((int)wxDEFAULT)); | |
41166 | PyDict_SetItemString(d,"DECORATIVE", SWIG_PyObj_FromInt((int)wxDECORATIVE)); | |
41167 | PyDict_SetItemString(d,"ROMAN", SWIG_PyObj_FromInt((int)wxROMAN)); | |
41168 | PyDict_SetItemString(d,"SCRIPT", SWIG_PyObj_FromInt((int)wxSCRIPT)); | |
41169 | PyDict_SetItemString(d,"SWISS", SWIG_PyObj_FromInt((int)wxSWISS)); | |
41170 | PyDict_SetItemString(d,"MODERN", SWIG_PyObj_FromInt((int)wxMODERN)); | |
41171 | PyDict_SetItemString(d,"TELETYPE", SWIG_PyObj_FromInt((int)wxTELETYPE)); | |
41172 | PyDict_SetItemString(d,"VARIABLE", SWIG_PyObj_FromInt((int)wxVARIABLE)); | |
41173 | PyDict_SetItemString(d,"FIXED", SWIG_PyObj_FromInt((int)wxFIXED)); | |
41174 | PyDict_SetItemString(d,"NORMAL", SWIG_PyObj_FromInt((int)wxNORMAL)); | |
41175 | PyDict_SetItemString(d,"LIGHT", SWIG_PyObj_FromInt((int)wxLIGHT)); | |
41176 | PyDict_SetItemString(d,"BOLD", SWIG_PyObj_FromInt((int)wxBOLD)); | |
41177 | PyDict_SetItemString(d,"ITALIC", SWIG_PyObj_FromInt((int)wxITALIC)); | |
41178 | PyDict_SetItemString(d,"SLANT", SWIG_PyObj_FromInt((int)wxSLANT)); | |
41179 | PyDict_SetItemString(d,"SOLID", SWIG_PyObj_FromInt((int)wxSOLID)); | |
41180 | PyDict_SetItemString(d,"DOT", SWIG_PyObj_FromInt((int)wxDOT)); | |
41181 | PyDict_SetItemString(d,"LONG_DASH", SWIG_PyObj_FromInt((int)wxLONG_DASH)); | |
41182 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_PyObj_FromInt((int)wxSHORT_DASH)); | |
41183 | PyDict_SetItemString(d,"DOT_DASH", SWIG_PyObj_FromInt((int)wxDOT_DASH)); | |
41184 | PyDict_SetItemString(d,"USER_DASH", SWIG_PyObj_FromInt((int)wxUSER_DASH)); | |
41185 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_PyObj_FromInt((int)wxTRANSPARENT)); | |
41186 | PyDict_SetItemString(d,"STIPPLE", SWIG_PyObj_FromInt((int)wxSTIPPLE)); | |
41187 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_PyObj_FromInt((int)wxBDIAGONAL_HATCH)); | |
41188 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_PyObj_FromInt((int)wxCROSSDIAG_HATCH)); | |
41189 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_PyObj_FromInt((int)wxFDIAGONAL_HATCH)); | |
41190 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_PyObj_FromInt((int)wxCROSS_HATCH)); | |
41191 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_PyObj_FromInt((int)wxHORIZONTAL_HATCH)); | |
41192 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_PyObj_FromInt((int)wxVERTICAL_HATCH)); | |
41193 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_PyObj_FromInt((int)wxJOIN_BEVEL)); | |
41194 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_PyObj_FromInt((int)wxJOIN_MITER)); | |
41195 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_PyObj_FromInt((int)wxJOIN_ROUND)); | |
41196 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_PyObj_FromInt((int)wxCAP_ROUND)); | |
41197 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_PyObj_FromInt((int)wxCAP_PROJECTING)); | |
41198 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_PyObj_FromInt((int)wxCAP_BUTT)); | |
41199 | PyDict_SetItemString(d,"CLEAR", SWIG_PyObj_FromInt((int)wxCLEAR)); | |
41200 | PyDict_SetItemString(d,"XOR", SWIG_PyObj_FromInt((int)wxXOR)); | |
41201 | PyDict_SetItemString(d,"INVERT", SWIG_PyObj_FromInt((int)wxINVERT)); | |
41202 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_PyObj_FromInt((int)wxOR_REVERSE)); | |
41203 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_PyObj_FromInt((int)wxAND_REVERSE)); | |
41204 | PyDict_SetItemString(d,"COPY", SWIG_PyObj_FromInt((int)wxCOPY)); | |
41205 | PyDict_SetItemString(d,"AND", SWIG_PyObj_FromInt((int)wxAND)); | |
41206 | PyDict_SetItemString(d,"AND_INVERT", SWIG_PyObj_FromInt((int)wxAND_INVERT)); | |
41207 | PyDict_SetItemString(d,"NO_OP", SWIG_PyObj_FromInt((int)wxNO_OP)); | |
41208 | PyDict_SetItemString(d,"NOR", SWIG_PyObj_FromInt((int)wxNOR)); | |
41209 | PyDict_SetItemString(d,"EQUIV", SWIG_PyObj_FromInt((int)wxEQUIV)); | |
41210 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_PyObj_FromInt((int)wxSRC_INVERT)); | |
41211 | PyDict_SetItemString(d,"OR_INVERT", SWIG_PyObj_FromInt((int)wxOR_INVERT)); | |
41212 | PyDict_SetItemString(d,"NAND", SWIG_PyObj_FromInt((int)wxNAND)); | |
41213 | PyDict_SetItemString(d,"OR", SWIG_PyObj_FromInt((int)wxOR)); | |
41214 | PyDict_SetItemString(d,"SET", SWIG_PyObj_FromInt((int)wxSET)); | |
41215 | PyDict_SetItemString(d,"WXK_BACK", SWIG_PyObj_FromInt((int)WXK_BACK)); | |
41216 | PyDict_SetItemString(d,"WXK_TAB", SWIG_PyObj_FromInt((int)WXK_TAB)); | |
41217 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_PyObj_FromInt((int)WXK_RETURN)); | |
41218 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_PyObj_FromInt((int)WXK_ESCAPE)); | |
41219 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_PyObj_FromInt((int)WXK_SPACE)); | |
41220 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_PyObj_FromInt((int)WXK_DELETE)); | |
41221 | PyDict_SetItemString(d,"WXK_START", SWIG_PyObj_FromInt((int)WXK_START)); | |
41222 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_PyObj_FromInt((int)WXK_LBUTTON)); | |
41223 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_PyObj_FromInt((int)WXK_RBUTTON)); | |
41224 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_PyObj_FromInt((int)WXK_CANCEL)); | |
41225 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_PyObj_FromInt((int)WXK_MBUTTON)); | |
41226 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_PyObj_FromInt((int)WXK_CLEAR)); | |
41227 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_PyObj_FromInt((int)WXK_SHIFT)); | |
41228 | PyDict_SetItemString(d,"WXK_ALT", SWIG_PyObj_FromInt((int)WXK_ALT)); | |
41229 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_PyObj_FromInt((int)WXK_CONTROL)); | |
41230 | PyDict_SetItemString(d,"WXK_MENU", SWIG_PyObj_FromInt((int)WXK_MENU)); | |
41231 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_PyObj_FromInt((int)WXK_PAUSE)); | |
41232 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_PyObj_FromInt((int)WXK_CAPITAL)); | |
41233 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_PyObj_FromInt((int)WXK_PRIOR)); | |
41234 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_PyObj_FromInt((int)WXK_NEXT)); | |
41235 | PyDict_SetItemString(d,"WXK_END", SWIG_PyObj_FromInt((int)WXK_END)); | |
41236 | PyDict_SetItemString(d,"WXK_HOME", SWIG_PyObj_FromInt((int)WXK_HOME)); | |
41237 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_PyObj_FromInt((int)WXK_LEFT)); | |
41238 | PyDict_SetItemString(d,"WXK_UP", SWIG_PyObj_FromInt((int)WXK_UP)); | |
41239 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_PyObj_FromInt((int)WXK_RIGHT)); | |
41240 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_PyObj_FromInt((int)WXK_DOWN)); | |
41241 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_PyObj_FromInt((int)WXK_SELECT)); | |
41242 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_PyObj_FromInt((int)WXK_PRINT)); | |
41243 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_PyObj_FromInt((int)WXK_EXECUTE)); | |
41244 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_PyObj_FromInt((int)WXK_SNAPSHOT)); | |
41245 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_PyObj_FromInt((int)WXK_INSERT)); | |
41246 | PyDict_SetItemString(d,"WXK_HELP", SWIG_PyObj_FromInt((int)WXK_HELP)); | |
41247 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_PyObj_FromInt((int)WXK_NUMPAD0)); | |
41248 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_PyObj_FromInt((int)WXK_NUMPAD1)); | |
41249 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_PyObj_FromInt((int)WXK_NUMPAD2)); | |
41250 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_PyObj_FromInt((int)WXK_NUMPAD3)); | |
41251 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_PyObj_FromInt((int)WXK_NUMPAD4)); | |
41252 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_PyObj_FromInt((int)WXK_NUMPAD5)); | |
41253 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_PyObj_FromInt((int)WXK_NUMPAD6)); | |
41254 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_PyObj_FromInt((int)WXK_NUMPAD7)); | |
41255 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_PyObj_FromInt((int)WXK_NUMPAD8)); | |
41256 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_PyObj_FromInt((int)WXK_NUMPAD9)); | |
41257 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_PyObj_FromInt((int)WXK_MULTIPLY)); | |
41258 | PyDict_SetItemString(d,"WXK_ADD", SWIG_PyObj_FromInt((int)WXK_ADD)); | |
41259 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_PyObj_FromInt((int)WXK_SEPARATOR)); | |
41260 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_PyObj_FromInt((int)WXK_SUBTRACT)); | |
41261 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_PyObj_FromInt((int)WXK_DECIMAL)); | |
41262 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_PyObj_FromInt((int)WXK_DIVIDE)); | |
41263 | PyDict_SetItemString(d,"WXK_F1", SWIG_PyObj_FromInt((int)WXK_F1)); | |
41264 | PyDict_SetItemString(d,"WXK_F2", SWIG_PyObj_FromInt((int)WXK_F2)); | |
41265 | PyDict_SetItemString(d,"WXK_F3", SWIG_PyObj_FromInt((int)WXK_F3)); | |
41266 | PyDict_SetItemString(d,"WXK_F4", SWIG_PyObj_FromInt((int)WXK_F4)); | |
41267 | PyDict_SetItemString(d,"WXK_F5", SWIG_PyObj_FromInt((int)WXK_F5)); | |
41268 | PyDict_SetItemString(d,"WXK_F6", SWIG_PyObj_FromInt((int)WXK_F6)); | |
41269 | PyDict_SetItemString(d,"WXK_F7", SWIG_PyObj_FromInt((int)WXK_F7)); | |
41270 | PyDict_SetItemString(d,"WXK_F8", SWIG_PyObj_FromInt((int)WXK_F8)); | |
41271 | PyDict_SetItemString(d,"WXK_F9", SWIG_PyObj_FromInt((int)WXK_F9)); | |
41272 | PyDict_SetItemString(d,"WXK_F10", SWIG_PyObj_FromInt((int)WXK_F10)); | |
41273 | PyDict_SetItemString(d,"WXK_F11", SWIG_PyObj_FromInt((int)WXK_F11)); | |
41274 | PyDict_SetItemString(d,"WXK_F12", SWIG_PyObj_FromInt((int)WXK_F12)); | |
41275 | PyDict_SetItemString(d,"WXK_F13", SWIG_PyObj_FromInt((int)WXK_F13)); | |
41276 | PyDict_SetItemString(d,"WXK_F14", SWIG_PyObj_FromInt((int)WXK_F14)); | |
41277 | PyDict_SetItemString(d,"WXK_F15", SWIG_PyObj_FromInt((int)WXK_F15)); | |
41278 | PyDict_SetItemString(d,"WXK_F16", SWIG_PyObj_FromInt((int)WXK_F16)); | |
41279 | PyDict_SetItemString(d,"WXK_F17", SWIG_PyObj_FromInt((int)WXK_F17)); | |
41280 | PyDict_SetItemString(d,"WXK_F18", SWIG_PyObj_FromInt((int)WXK_F18)); | |
41281 | PyDict_SetItemString(d,"WXK_F19", SWIG_PyObj_FromInt((int)WXK_F19)); | |
41282 | PyDict_SetItemString(d,"WXK_F20", SWIG_PyObj_FromInt((int)WXK_F20)); | |
41283 | PyDict_SetItemString(d,"WXK_F21", SWIG_PyObj_FromInt((int)WXK_F21)); | |
41284 | PyDict_SetItemString(d,"WXK_F22", SWIG_PyObj_FromInt((int)WXK_F22)); | |
41285 | PyDict_SetItemString(d,"WXK_F23", SWIG_PyObj_FromInt((int)WXK_F23)); | |
41286 | PyDict_SetItemString(d,"WXK_F24", SWIG_PyObj_FromInt((int)WXK_F24)); | |
41287 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_PyObj_FromInt((int)WXK_NUMLOCK)); | |
41288 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_PyObj_FromInt((int)WXK_SCROLL)); | |
41289 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_PyObj_FromInt((int)WXK_PAGEUP)); | |
41290 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_PyObj_FromInt((int)WXK_PAGEDOWN)); | |
41291 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SPACE)); | |
41292 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_PyObj_FromInt((int)WXK_NUMPAD_TAB)); | |
41293 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_PyObj_FromInt((int)WXK_NUMPAD_ENTER)); | |
41294 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F1)); | |
41295 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F2)); | |
41296 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F3)); | |
41297 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F4)); | |
41298 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_PyObj_FromInt((int)WXK_NUMPAD_HOME)); | |
41299 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_LEFT)); | |
41300 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_PyObj_FromInt((int)WXK_NUMPAD_UP)); | |
41301 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_RIGHT)); | |
41302 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DOWN)); | |
41303 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PRIOR)); | |
41304 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
41305 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_NEXT)); | |
41306 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
41307 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_PyObj_FromInt((int)WXK_NUMPAD_END)); | |
41308 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_BEGIN)); | |
41309 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_INSERT)); | |
41310 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DELETE)); | |
41311 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_PyObj_FromInt((int)WXK_NUMPAD_EQUAL)); | |
41312 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_PyObj_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
41313 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_PyObj_FromInt((int)WXK_NUMPAD_ADD)); | |
41314 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
41315 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
41316 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
41317 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
41318 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_PyObj_FromInt((int)WXK_WINDOWS_LEFT)); | |
41319 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_PyObj_FromInt((int)WXK_WINDOWS_RIGHT)); | |
41320 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_PyObj_FromInt((int)WXK_WINDOWS_MENU)); | |
41321 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_PyObj_FromInt((int)wxPAPER_NONE)); | |
41322 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_PyObj_FromInt((int)wxPAPER_LETTER)); | |
41323 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_PyObj_FromInt((int)wxPAPER_LEGAL)); | |
41324 | PyDict_SetItemString(d,"PAPER_A4", SWIG_PyObj_FromInt((int)wxPAPER_A4)); | |
41325 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_PyObj_FromInt((int)wxPAPER_CSHEET)); | |
41326 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_PyObj_FromInt((int)wxPAPER_DSHEET)); | |
41327 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_PyObj_FromInt((int)wxPAPER_ESHEET)); | |
41328 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_PyObj_FromInt((int)wxPAPER_LETTERSMALL)); | |
41329 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_PyObj_FromInt((int)wxPAPER_TABLOID)); | |
41330 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_PyObj_FromInt((int)wxPAPER_LEDGER)); | |
41331 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_PyObj_FromInt((int)wxPAPER_STATEMENT)); | |
41332 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_PyObj_FromInt((int)wxPAPER_EXECUTIVE)); | |
41333 | PyDict_SetItemString(d,"PAPER_A3", SWIG_PyObj_FromInt((int)wxPAPER_A3)); | |
41334 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_PyObj_FromInt((int)wxPAPER_A4SMALL)); | |
41335 | PyDict_SetItemString(d,"PAPER_A5", SWIG_PyObj_FromInt((int)wxPAPER_A5)); | |
41336 | PyDict_SetItemString(d,"PAPER_B4", SWIG_PyObj_FromInt((int)wxPAPER_B4)); | |
41337 | PyDict_SetItemString(d,"PAPER_B5", SWIG_PyObj_FromInt((int)wxPAPER_B5)); | |
41338 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_PyObj_FromInt((int)wxPAPER_FOLIO)); | |
41339 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_PyObj_FromInt((int)wxPAPER_QUARTO)); | |
41340 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_PyObj_FromInt((int)wxPAPER_10X14)); | |
41341 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_PyObj_FromInt((int)wxPAPER_11X17)); | |
41342 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_PyObj_FromInt((int)wxPAPER_NOTE)); | |
41343 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_PyObj_FromInt((int)wxPAPER_ENV_9)); | |
41344 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_PyObj_FromInt((int)wxPAPER_ENV_10)); | |
41345 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_PyObj_FromInt((int)wxPAPER_ENV_11)); | |
41346 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_PyObj_FromInt((int)wxPAPER_ENV_12)); | |
41347 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_PyObj_FromInt((int)wxPAPER_ENV_14)); | |
41348 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_PyObj_FromInt((int)wxPAPER_ENV_DL)); | |
41349 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C5)); | |
41350 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C3)); | |
41351 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C4)); | |
41352 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C6)); | |
41353 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C65)); | |
41354 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B4)); | |
41355 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B5)); | |
41356 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B6)); | |
41357 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_PyObj_FromInt((int)wxPAPER_ENV_ITALY)); | |
41358 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_PyObj_FromInt((int)wxPAPER_ENV_MONARCH)); | |
41359 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_PyObj_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
41360 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_US)); | |
41361 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
41362 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
41363 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_PyObj_FromInt((int)wxPAPER_ISO_B4)); | |
41364 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_PyObj_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
41365 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_PyObj_FromInt((int)wxPAPER_9X11)); | |
41366 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_PyObj_FromInt((int)wxPAPER_10X11)); | |
41367 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_PyObj_FromInt((int)wxPAPER_15X11)); | |
41368 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_PyObj_FromInt((int)wxPAPER_ENV_INVITE)); | |
41369 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
41370 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
41371 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
41372 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A4_EXTRA)); | |
41373 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
41374 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
41375 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
41376 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_A_PLUS)); | |
41377 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_B_PLUS)); | |
41378 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_PLUS)); | |
41379 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_A4_PLUS)); | |
41380 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
41381 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
41382 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A3_EXTRA)); | |
41383 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A5_EXTRA)); | |
41384 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_B5_EXTRA)); | |
41385 | PyDict_SetItemString(d,"PAPER_A2", SWIG_PyObj_FromInt((int)wxPAPER_A2)); | |
41386 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
41387 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
41388 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_PyObj_FromInt((int)wxDUPLEX_SIMPLEX)); | |
41389 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_PyObj_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
41390 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_PyObj_FromInt((int)wxDUPLEX_VERTICAL)); | |
41391 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_PyObj_FromInt((int)wxITEM_SEPARATOR)); | |
41392 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_PyObj_FromInt((int)wxITEM_NORMAL)); | |
41393 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_PyObj_FromInt((int)wxITEM_CHECK)); | |
41394 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_PyObj_FromInt((int)wxITEM_RADIO)); | |
41395 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_PyObj_FromInt((int)wxITEM_MAX)); | |
41396 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_PyObj_FromInt((int)wxHT_NOWHERE)); | |
41397 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
41398 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
41399 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
41400 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
41401 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
41402 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
41403 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
41404 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
41405 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
41406 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_PyObj_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
41407 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_PyObj_FromInt((int)wxHT_WINDOW_INSIDE)); | |
41408 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_PyObj_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
41409 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_PyObj_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
41410 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_PyObj_FromInt((int)wxHT_WINDOW_CORNER)); | |
41411 | PyDict_SetItemString(d,"HT_MAX", SWIG_PyObj_FromInt((int)wxHT_MAX)); | |
41412 | PyDict_SetItemString(d,"MOD_NONE", SWIG_PyObj_FromInt((int)wxMOD_NONE)); | |
41413 | PyDict_SetItemString(d,"MOD_ALT", SWIG_PyObj_FromInt((int)wxMOD_ALT)); | |
41414 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_PyObj_FromInt((int)wxMOD_CONTROL)); | |
41415 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_PyObj_FromInt((int)wxMOD_SHIFT)); | |
41416 | PyDict_SetItemString(d,"MOD_WIN", SWIG_PyObj_FromInt((int)wxMOD_WIN)); | |
41417 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_NONE)); | |
41418 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_RECURSE)); | |
41419 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
d14a1e28 | 41420 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
d03fd34d | 41421 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
8edf1c75 RD |
41422 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_INVALID)); |
41423 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_BMP)); | |
41424 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ICO)); | |
41425 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_CUR)); | |
41426 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XBM)); | |
41427 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
41428 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XPM)); | |
41429 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
41430 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_TIF)); | |
41431 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_GIF)); | |
41432 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PNG)); | |
41433 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
41434 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PNM)); | |
41435 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PCX)); | |
41436 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PICT)); | |
41437 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ICON)); | |
41438 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ANI)); | |
41439 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_IFF)); | |
41440 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
41441 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ANY)); | |
41442 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_PyObj_FromInt((int)wxCURSOR_NONE)); | |
41443 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_ARROW)); | |
41444 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
41445 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_PyObj_FromInt((int)wxCURSOR_BULLSEYE)); | |
41446 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_PyObj_FromInt((int)wxCURSOR_CHAR)); | |
41447 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_PyObj_FromInt((int)wxCURSOR_CROSS)); | |
41448 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_PyObj_FromInt((int)wxCURSOR_HAND)); | |
41449 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_PyObj_FromInt((int)wxCURSOR_IBEAM)); | |
41450 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
41451 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_PyObj_FromInt((int)wxCURSOR_MAGNIFIER)); | |
41452 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
41453 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_PyObj_FromInt((int)wxCURSOR_NO_ENTRY)); | |
41454 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_PyObj_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
41455 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_PyObj_FromInt((int)wxCURSOR_PENCIL)); | |
41456 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_PyObj_FromInt((int)wxCURSOR_POINT_LEFT)); | |
41457 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_PyObj_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
41458 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
41459 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
41460 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENESW)); | |
41461 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENS)); | |
41462 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENWSE)); | |
41463 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_PyObj_FromInt((int)wxCURSOR_SIZEWE)); | |
41464 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_PyObj_FromInt((int)wxCURSOR_SIZING)); | |
41465 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_PyObj_FromInt((int)wxCURSOR_SPRAYCAN)); | |
41466 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_PyObj_FromInt((int)wxCURSOR_WAIT)); | |
41467 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_PyObj_FromInt((int)wxCURSOR_WATCH)); | |
41468 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_PyObj_FromInt((int)wxCURSOR_BLANK)); | |
41469 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_PyObj_FromInt((int)wxCURSOR_DEFAULT)); | |
41470 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_COPY_ARROW)); | |
41471 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_PyObj_FromInt((int)wxCURSOR_ARROWWAIT)); | |
41472 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_PyObj_FromInt((int)wxCURSOR_MAX)); | |
d14a1e28 RD |
41473 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
41474 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
8edf1c75 RD |
41475 | PyDict_SetItemString(d,"FromStart", SWIG_PyObj_FromInt((int)wxFromStart)); |
41476 | PyDict_SetItemString(d,"FromCurrent", SWIG_PyObj_FromInt((int)wxFromCurrent)); | |
41477 | PyDict_SetItemString(d,"FromEnd", SWIG_PyObj_FromInt((int)wxFromEnd)); | |
d14a1e28 RD |
41478 | |
41479 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
41480 | ||
41481 | ||
41482 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
41483 | ||
41484 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
41485 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
41486 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
41487 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
41488 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
41489 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
8edf1c75 RD |
41490 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_PyObj_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); |
41491 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_PyObj_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
41492 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_PyObj_FromInt((int)wxBMP_24BPP)); | |
41493 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_PyObj_FromInt((int)wxBMP_8BPP)); | |
41494 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_PyObj_FromInt((int)wxBMP_8BPP_GREY)); | |
41495 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_PyObj_FromInt((int)wxBMP_8BPP_GRAY)); | |
41496 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_PyObj_FromInt((int)wxBMP_8BPP_RED)); | |
41497 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_PyObj_FromInt((int)wxBMP_8BPP_PALETTE)); | |
41498 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_PyObj_FromInt((int)wxBMP_4BPP)); | |
41499 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_PyObj_FromInt((int)wxBMP_1BPP)); | |
41500 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_PyObj_FromInt((int)wxBMP_1BPP_BW)); | |
41501 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_PyObj_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
41502 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_PyObj_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
d14a1e28 RD |
41503 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
41504 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
41505 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
41506 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
41507 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
41508 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
41509 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
41510 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
41511 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
41512 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
41513 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
41514 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
41515 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
41516 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
41517 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
41518 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
41519 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
41520 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
41521 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
41522 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
41523 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
41524 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
41525 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
41526 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
41527 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
41528 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
41529 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
41530 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
41531 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
41532 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
41533 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
41534 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
41535 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
41536 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
41537 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
41538 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
41539 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
41540 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
41541 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
41542 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
41543 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
41544 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
41545 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
41546 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
41547 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
41548 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
41549 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
41550 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
41551 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
41552 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
41553 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
41554 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
41555 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
41556 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
41557 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
41558 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
41559 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
41560 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
41561 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
41562 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
41563 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
41564 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
41565 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
41566 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
41567 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
41568 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
41569 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
41570 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
41571 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
41572 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
41573 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
41574 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
41575 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
41576 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
41577 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
41578 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
41579 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
41580 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
41581 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
41582 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
41583 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
41584 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
41585 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
41586 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
41587 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
41588 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
41589 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
41590 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
41591 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
41592 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
41593 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
41594 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
41595 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
41596 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
41597 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
41598 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
41599 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
41600 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
41601 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
41602 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
41603 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
41604 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
41605 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
41606 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
41607 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
41608 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
41609 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
41610 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
41611 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
41612 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
41613 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
41614 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
41615 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
41616 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
8edf1c75 RD |
41617 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_ANY)); |
41618 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_NONE)); | |
41619 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_LEFT)); | |
41620 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
41621 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
41622 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_PyObj_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
41623 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_PyObj_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
41624 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_PyObj_FromInt((int)wxIDLE_PROCESS_ALL)); | |
41625 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_PyObj_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
41626 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
41627 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
41628 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
41629 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
41630 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_PyObj_FromInt((int)wxPRINT_WINDOWS)); | |
41631 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_PyObj_FromInt((int)wxPRINT_POSTSCRIPT)); | |
41f1cec7 | 41632 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
423f194a | 41633 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
d14a1e28 | 41634 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
d03fd34d | 41635 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
8edf1c75 RD |
41636 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_NONE)); |
41637 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
41638 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
d14a1e28 | 41639 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
8edf1c75 RD |
41640 | PyDict_SetItemString(d,"Left", SWIG_PyObj_FromInt((int)wxLeft)); |
41641 | PyDict_SetItemString(d,"Top", SWIG_PyObj_FromInt((int)wxTop)); | |
41642 | PyDict_SetItemString(d,"Right", SWIG_PyObj_FromInt((int)wxRight)); | |
41643 | PyDict_SetItemString(d,"Bottom", SWIG_PyObj_FromInt((int)wxBottom)); | |
41644 | PyDict_SetItemString(d,"Width", SWIG_PyObj_FromInt((int)wxWidth)); | |
41645 | PyDict_SetItemString(d,"Height", SWIG_PyObj_FromInt((int)wxHeight)); | |
41646 | PyDict_SetItemString(d,"Centre", SWIG_PyObj_FromInt((int)wxCentre)); | |
41647 | PyDict_SetItemString(d,"Center", SWIG_PyObj_FromInt((int)wxCenter)); | |
41648 | PyDict_SetItemString(d,"CentreX", SWIG_PyObj_FromInt((int)wxCentreX)); | |
41649 | PyDict_SetItemString(d,"CentreY", SWIG_PyObj_FromInt((int)wxCentreY)); | |
41650 | PyDict_SetItemString(d,"Unconstrained", SWIG_PyObj_FromInt((int)wxUnconstrained)); | |
41651 | PyDict_SetItemString(d,"AsIs", SWIG_PyObj_FromInt((int)wxAsIs)); | |
41652 | PyDict_SetItemString(d,"PercentOf", SWIG_PyObj_FromInt((int)wxPercentOf)); | |
41653 | PyDict_SetItemString(d,"Above", SWIG_PyObj_FromInt((int)wxAbove)); | |
41654 | PyDict_SetItemString(d,"Below", SWIG_PyObj_FromInt((int)wxBelow)); | |
41655 | PyDict_SetItemString(d,"LeftOf", SWIG_PyObj_FromInt((int)wxLeftOf)); | |
41656 | PyDict_SetItemString(d,"RightOf", SWIG_PyObj_FromInt((int)wxRightOf)); | |
41657 | PyDict_SetItemString(d,"SameAs", SWIG_PyObj_FromInt((int)wxSameAs)); | |
41658 | PyDict_SetItemString(d,"Absolute", SWIG_PyObj_FromInt((int)wxAbsolute)); | |
d14a1e28 RD |
41659 | |
41660 | // Initialize threading, some globals and such | |
41661 | __wxPyPreStart(d); | |
41662 | ||
41663 | ||
41664 | // Although these are defined in __version__ they need to be here too so | |
41665 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
41666 | // versions match. | |
41667 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
41668 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
41669 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
41670 | ||
41671 | } | |
41672 |